Report control-plane watch outages for every kind #69
Notifications
Due Date
No due date set.
Blocks
Reference: sam/archie#69
Reference in new issue
Block a user
Goal
Losing the State Store stream shows an outage error on every watched kind's apply-status record for archied and archie-gateway, cleared on reconnect.
Evidence
internal/app/archied/control_plane.go:283 calls KeepWatch with no end callback; archiegateway/server.go:290 only logs (including refused documents).
Rules
Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. Run
task checkonce at the end; if it fails twice on the same problem, comment on this bead and stop.Stop when
Then commit (Conventional Commits, scoped by package),
bd closethis bead and stop.Close reason
Closed
Imported from beads
archie-core-4q28.17· GitHub #1245 · type bug · priority P1 · created 2026-10-05 · closed 2026-10-05sam wrote (originally 2026-10-05):
Implementation done in the working tree; gate blocked by a concurrent writer in this checkout, so per the rules (second failure on the same problem) I am commenting and stopping without committing.
Implemented, mirroring the workflow-execution-settings pattern at control_plane.go:87-140 exactly:
Verified before the tree was broken by the foreign change: go build ./internal/... clean, golangci-lint on internal/app/archied and internal/app/archiegateway '0 issues' (one dupl hit on the personas/soul pair fixed by the shared helper). task check run 1 failed at proto:check: the checkout carries another session's uncommitted dispatch-reason work (proto/state, internal/daemon, internal/infrastructure/postgres, migration 0032, binding_dispatch_test) and its latest edastore.go edit does not compile (undefined pgtype at 514/517), which fails the build for every package that imports postgres. That failure is not from this bead's files and was still present minutes later with edits continuing. Files changed for this bead, uncommitted in the tree: internal/app/archied/control_plane.go, internal/app/archiegateway/server.go, internal/app/archiegateway/gateway_runtime.go (plus .16's internal/app/controlplane/operational_settings.go and two ui files).