Cut daemon and Gateway over to the remote State Store #1146

Closed
opened 2026-10-27 13:39:12 +00:00 by sam · 0 comments
Owner

Once adapters and the service are proven, remove direct archie.db ownership from archied and Gateway. Wire configured local/remote State Store selection, ensure all task/capture/mapping/binding/workflow consumers use one endpoint, and delete in-process fallbacks in the same commit. Verify the Gateway session database remains independently Gateway-owned and no process opens archie.db outside archie-state-store.

Close reason

Re-closed after bd github sync reverted status (2026-09-07); same evidence as the original close: openProductionTaskStore is called exactly once, from state_store.go's openStateStore, never from daemon/gateway composition (guarded by TestOpenStoresNeverOwnsTaskDB); gateway session SQLite is independently owned; legacy NATS storerpc fully deleted.


Imported from beads archie-core-8cda.4.6 · GitHub #758 · type task · priority P2 · created 2026-09-06 · closed 2026-09-07

Once adapters and the service are proven, remove direct archie.db ownership from archied and Gateway. Wire configured local/remote State Store selection, ensure all task/capture/mapping/binding/workflow consumers use one endpoint, and delete in-process fallbacks in the same commit. Verify the Gateway session database remains independently Gateway-owned and no process opens archie.db outside archie-state-store. ### Close reason Re-closed after bd github sync reverted status (2026-09-07); same evidence as the original close: openProductionTaskStore is called exactly once, from state_store.go's openStateStore, never from daemon/gateway composition (guarded by TestOpenStoresNeverOwnsTaskDB); gateway session SQLite is independently owned; legacy NATS storerpc fully deleted. --- _Imported from beads `archie-core-8cda.4.6` · GitHub #758 · type task · priority P2 · created 2026-09-06 · closed 2026-09-07_
sam added the mediumtask labels 2026-10-27 13:39:12 +00:00
sam self-assigned this 2026-10-27 13:39:12 +00:00
sam closed this issue 2026-10-27 13:39:12 +00:00
sam added a new dependency 2026-10-27 13:42:16 +00:00
sam added a new dependency 2026-10-27 13:42:16 +00:00
sam added a new dependency 2026-10-27 13:42:16 +00:00
sam added a new dependency 2026-10-27 13:42:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1146