The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
chore: generalize field-report attribution in code comments
Victor Kyriazakos8b03e6580471
diff --git a/hermes_cli/goals.py b/hermes_cli/goals.pyindex db00cabb3b3..9a685ff8d36 100644--- a/hermes_cli/goals.py+++ b/hermes_cli/goals.py@@ -703,7 +703,7 @@ def _get_session_db() -> Optional[Any]:runs schema init, and a migration against a contended state.db blocks forseconds — on the gateway's loop thread that starves the loop-livenesswatchdog, which hard-exits the process (exit 75) and crash-loops the- gateway (Coatue field report, 2026-08-14). On a cache miss with a running+ gateway (enterprise field report, 2026-08-14). On a cache miss with a runningloop we kick a one-shot background bootstrap and return None; everycaller already degrades gracefully on None, and a later call returns thecached instance.diff --git a/hermes_state_schema.py b/hermes_state_schema.pyindex 57803190a5d..3fa101a7728 100644--- a/hermes_state_schema.py+++ b/hermes_state_schema.py@@ -95,7 +95,7 @@ class SessionSchemaMixin:the remainder. Letting the error propagate aborted schema initentirely, left the version below 25, and made every subsequent``SessionDB.__init__`` re-enter this migration against the same- contended DB (Coatue field report, 2026-08-14: gateway watchdog+ contended DB (enterprise field report, 2026-08-14: gateway watchdogcrash loop)."""try:diff --git a/tests/hermes_cli/test_goals_db_bootstrap_off_loop.py b/tests/hermes_cli/test_goals_db_bootstrap_off_loop.pyindex 011d4accfa4..c77387db341 100644--- a/tests/hermes_cli/test_goals_db_bootstrap_off_loop.py+++ b/tests/hermes_cli/test_goals_db_bootstrap_off_loop.py@@ -1,6 +1,6 @@"""SessionDB bootstrap must never run schema init on an event-loop thread.-Coatue field report (2026-08-14): after an unclean shutdown plus a+Enterprise field report (2026-08-14): after an unclean shutdown plus adouble-instance startup race, the v25 schema migration inside``SessionDB.__init__`` blocked the gateway's event-loop thread (reached via``_post_turn_goal_continuation`` → ``GoalManager()`` → ``load_goal`` →diff --git a/tests/state/test_dedupe_migration_contention.py b/tests/state/test_dedupe_migration_contention.pyindex 37fc4408fec..1fdcc07e30f 100644--- a/tests/state/test_dedupe_migration_contention.py+++ b/tests/state/test_dedupe_migration_contention.py@@ -1,6 +1,6 @@"""The v25 dedupe migration must degrade gracefully on a contended DB.-Coatue field report (2026-08-14): with state.db locked by another process,+Enterprise field report (2026-08-14): with state.db locked by another process,``_dedupe_legacy_system_prompts`` raised ``sqlite3.OperationalError``mid-loop (only the initial SELECT was guarded), which aborted schema init,left the schema version below 25, and made EVERY subsequent