Generalize storerpc as the State Store gRPC contract #1142
Notifications
Due Date
No due date set.
Blocks
Depends on
Reference: sam/archie#1142
Reference in new issue
Block a user
TRANSPORT-FOCUSED task. PREREQUISITE: archie-core-8cda.4.8 does the Task/Status/Source + workflow.Store type/interface relocation (so internal/domain/workflow imports no internal/store). With that landed, generate protobuf/gRPC client and server adapters for every ratified store contract (authority: docs/prds/state-store-contract.md). Change store.BindingDispatcher.RecordDispatch to drop its *sql.Tx parameter (production passes nil today; the tx-bearing interface + TestRecordDispatchViaExplicitTx must be removed). Serve the State Store gRPC service in-process (multiplexed, PRD Q3) so archie-agent has a gRPC target before the archie-state-store binary exists, binding the host-gateway bridge address when agent containers consume it (rev. 2c listener-topology rule). Preserve typed errors, context/deadline behavior, request validation, auth/transport boundaries, and compile-time interface assertions; build a bufconn conformance suite over local and remote adapters. Wire the agent handoff: daemon injects STATE_STORE_URL / STATE_STORE_TOKEN per task via containerEnv (next to NATS_URL), agent reads them as it reads NATS_URL/NATS_TOKEN, and Transport.Store returns a long-lived gRPC workflow.Store client.
Close reason
Re-closed after bd github sync reverted status (2026-09-07); same evidence as the original close: RecordDispatch drops *sql.Tx, no TestRecordDispatchViaExplicitTx, bufconn conformance suite, containerEnv injects STATE_STORE_URL/TOKEN, Transport.Store returns a gRPC workflow.Store client, legacy NATS storerpc fully deleted.
Imported from beads
archie-core-8cda.4.2· GitHub #762 · type task · priority P2 · created 2026-09-06 · closed 2026-09-07