Verify State Store end-to-end and close migration #1147
Notifications
Due Date
No due date set.
Depends on
Reference: sam/archie#1147
Reference in new issue
Block a user
Add real-process smoke coverage for archie-state-store and consumers, including a combined dashboard view spanning task/event/capture data, remote error/deadline behavior, restart/recovery, and single-owner SQLite assertions. Update docs, Taskfile/CI/release artifacts, run task check plus race-relevant tests, audit for leftover direct internal/store imports, then close the Phase 2 issue only with clean evidence.
Notes
Progress this session (commits f94e484, accb987 on main):
container credentials (RegisterTaskGrant/RevokeTaskGrant + per-RPC
authorization), streaming capture RPCs (StreamCaptures/
StreamUndispatchedCaptures, fixing a >4MiB batch overflow), nil-Task
validation on Update, RequireHostGateway no longer forced for external
NATS, client/server token resolution parity, task dev now runs
archie-state-store.
single-owner-SQLite assertion (TestOpenStoresNeverOwnsTaskDB).
only narrow contract interfaces are imported.
payload-limit sections to match what's implemented now.
Still open before this can close:
and isn't in RELEASING.md's two-component split (tools/release.sh
only tracks cmd/archied and cmd/archie-agent). Unclear if that's
intentional (native-binary/systemd deployment per deployments/*.toml)
or a gap -- needs Sam's call, not an assumption.
reconciled: those are all still bd-OPEN despite matching commits
already on main (62e6936, dd335d3, 5b0d85f, 7dcb1b3, 8a24546) --
pre-existing tracker/git divergence, not caused by this session, but
blocks a clean close of the parent.
Close reason
All acceptance items closed out:
view, and remote error/deadline behavior: TestStateStoreConformance
(local+grpc modes) plus TestTokenInterceptorRejectsMissingOrInvalidToken,
pre-existing from PR #775.
(openProductionTaskStore is called exactly once, from
state_store.go's openStateStore, never daemon/gateway composition).
payload-limit sections updated to match what's implemented
(RegisterTaskGrant/RevokeTaskGrant scoping, streaming capture RPCs);
AGENTS.md/CLAUDE.md's State Store section corrected (stale
in-process-listener and daemon.StateStoreTokens references removed).
task devruns all fourprocesses.
deploy.yml), closed.
narrow contract interfaces are imported outside archie-state-store's
own composition.
Also fixed along the way: task-scoped State Store credentials
(RegisterTaskGrant/RevokeTaskGrant, replacing the daemon's admin token
being forwarded to every container), streaming capture RPCs (fixing a
Commits: f94e484, accb987, 4e1efd5, d687f05.
Imported from beads
archie-core-8cda.4.7· GitHub #757 · type task · priority P2 · created 2026-09-06 · closed 2026-09-07