Files
hermes-agent/persistence/sqlite
yoniebans 9cff11b8e8 F22 replay: the authority ledgers import the writer mutex from its home after the removal
Main's backend holds the writer mutex helpers in one module beside the store; at this level that module is persistence/sqlite/_state/write.py, where _holder.py already imports them from.

F22 (sqlite-backend) added `from hermes_state_write import write_site, writer_mutex_until` to persistence/sqlite/authority/coordination.py while hermes_state_write.py still existed. The replayed removal commit deletes hermes_state_write.py and did not move that import, so at this level every import of the authority package raised ModuleNotFoundError: 25 of the 34 stand-in cases failed with it.

The import now names persistence.sqlite._state.write, the same objects _holder.py uses.

Proof: tests/test_hermes_state_standin.py at 1b486ca4e2: 25 cases fail on ModuleNotFoundError: No module named 'hermes_state_write'; with this change none does (the 6 left are F20's TypeError, fixed next). tests/scripts/test_check_backend_imports.py 30 passed both ways. Import-only check of the module passes; ruff clean.
2026-11-17 19:10:58 +01:00
..