Generalize storerpc as the State Store gRPC contract #1142

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

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

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_
sam added the mediumtask labels 2026-10-27 13:39:11 +00:00
sam self-assigned this 2026-10-27 13:39:11 +00:00
sam closed this issue 2026-10-27 13:39:11 +00:00
sam added a new dependency 2026-10-27 13:42:15 +00:00
sam added a new dependency 2026-10-27 13:42:15 +00:00
sam added a new dependency 2026-10-27 13:42:15 +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#1142