- Move classify_persistence_error into hermes_state beside is_disk_full_error and delegate the disk bucket to it (fixes 'ENOSPC writing state.db' and 'not enough space' classifying as unknown). run_agent keeps a thin lazy delegating wrapper so the documented import path and fast import survive. - Classify CompressionSessionBusyError (and its RPC-wrapped message forms) as 'locked': the motivating #81227 failure mode stringifies to 'is being compressed by another writer', which the substring heuristic missed. - Export PERSISTENCE_ERROR_CAUSES and iterate it in the cron explainer suppression instead of a hardcoded tuple, so a future cause bucket cannot silently desynchronize cron delivery. - Hedge the gateway locked/unknown recovery wording ('should already be saved' instead of 'was recorded') to match the explainer - the early turn-start persist may also have failed. - Drop STATE_DB_WAL_WARN_BYTES (speculative dead constant with no consumer; the pre-existing 50 MB doctor WAL check covers the warning). - Tests: compression-busy classification, is_disk_full_error delegation, causes-tuple coverage; mutation-checked red-green. |
||
|---|---|---|
| .. | ||
| assets | ||
| builtin_hooks | ||
| platforms | ||
| relay | ||
| __init__.py | ||
| agent_cache_pressure.py | ||
| authz_mixin.py | ||
| cgroup_cleanup.py | ||
| channel_directory.py | ||
| code_skew.py | ||
| config.py | ||
| cwd_placeholder.py | ||
| dead_targets.py | ||
| delivery.py | ||
| delivery_ledger.py | ||
| display_config.py | ||
| drain_control.py | ||
| hooks.py | ||
| kanban_watchers.py | ||
| lifecycle_ledger.py | ||
| memory_monitor.py | ||
| message_timestamps.py | ||
| mirror.py | ||
| pairing.py | ||
| platform_registry.py | ||
| profile_routing.py | ||
| readiness.py | ||
| response_filters.py | ||
| restart.py | ||
| restart_loop_guard.py | ||
| rich_sent_store.py | ||
| run.py | ||
| runtime_footer.py | ||
| scale_to_zero.py | ||
| session.py | ||
| session_context.py | ||
| session_stall.py | ||
| session_state.py | ||
| shutdown_flush.py | ||
| shutdown_forensics.py | ||
| shutdown_watchdog.py | ||
| slash_access.py | ||
| slash_commands.py | ||
| status.py | ||
| status_phrases.py | ||
| sticker_cache.py | ||
| stream_consumer.py | ||
| stream_dispatch.py | ||
| stream_events.py | ||
| streaming_tts_consumer.py | ||
| systemd_notify.py | ||
| turn_context.py | ||
| turn_lease.py | ||
| wake.py | ||
| whatsapp_identity.py | ||