Verify UI Service end-to-end and audit coupling removal #1155
Notifications
Due Date
No due date set.
Depends on
Reference: sam/archie#1155
Reference in new issue
Block a user
Add real-process smoke coverage for UI Service against remote Gateway and State
Store, including tasks/logs/health/capture pages, chat streaming and task
actions, auth failures, dependency outages, and asset serving. Run task check
and task ui, then close Phase 3.
AMENDED 2026-09-09 to state the deletion gate precisely — the original text only
said "audit imports for leftover gateway or internal/store references", weaker
than the PRD. This bead closes Phase 3, so it owns the objective gate in
docs/prds/ui-service-boundary.md (the "deletion gate is objective" paragraph):
implementation, workflow, forge, channel, model, or secret runtime package. It
currently still links modernc.org/sqlite, internal/store, internal/channels,
internal/memory, internal/secret, internal/gateway, internal/agentexec,
internal/tools, internal/skill and internal/yaegiutil.
Gateway runtime types, and direct SQLite imports in the UI service.
RELOCATION REQUIRED, not just an import audit: webui.Server's field types are
the store interfaces in internal/store (TaskStore, CaptureStore, MappingStore,
BindingStore, BindingDispatcher), but Go package imports are atomic, so
referencing those interfaces pulls internal/store's SQLite driver into the UI
process. The producer-owned read-contract interfaces must move out of
internal/store (per state-store-contract.md, "the producer-owned interfaces may
move to the same infrastructure package or an approved contract location when
the store implementation relocates") so the UI can reference the contracts
without dragging the SQLite implementation. This is the concrete fix for the
sqlite link and is not named by any other bead.
DEPENDS ON: archie-core-8cda.5.4 (the cutover it audited) and the two
prerequisite contract beads (archie-core-za9f, archie-core-ymut) if their
decisions land as contracts rather than descopes.
Close reason
Deletion gate enforced (cmd/archie-ui/architecture_test.go re-runs go list -deps on every task check, exceptions checked in both directions) and the real-process smoke suite landed (cmd/archie-ui/main_test.go: real binary vs State Store + Gateway on loopback gRPC). task check exit 0, task ui built via the gate. Suite found and fixed one regression at the producer: task rows lost their forge links in the extracted process because taskURLs read a nil config.Holder; the forge now resolves from the daemon's published projection, withholding rather than guessing under identities. Follow-ups filed: archie-core-ml30 (move the daemon's ConfigView renderer and readiness probes off webui.Server) and archie-core-fnq8-class item for the two projection fields the dashboard still cannot see. Parent Phase 3 left open deliberately: its first acceptance criterion reads 'internal/webui no longer receives the daemon's live config.Holder', and bootstrap.go:1240 still assigns one to the daemon's own non-serving webui.Server.
Imported from beads
archie-core-8cda.5.6· GitHub #764 · type task · priority P3 · created 2026-09-06 · closed 2026-09-11sam wrote (originally 2026-09-11):
Correction to the close reason: the second follow-up is archie-core-wg23 (Publish the chat and setup fields the dashboard cannot see), not the placeholder id written there. The first is archie-core-ml30.