test(ui): smoke the archie-ui process against live dependencies

The in-process suite proved the composition; nothing proved the process.
This builds the real binary, points it at a State Store and a Gateway on
loopback gRPC through an operator-shaped config.toml, and drives it over
HTTP: the token exchange and its 401s, the embedded SPA, a chat stream
relayed frame by frame, an operator task action crossing to the Gateway
and refused without the CSRF header, unauthenticated capture intake, the
ratified degradations, readiness dropping when a dependency dies while
liveness holds, and a clean SIGTERM.

It found one regression, fixed here at the producer. Task rows lost their
forge links in the extracted process: taskURLs read config.Holder, which
is nil once the dashboard stops sharing the daemon's process, so every
click-through to the issue and the PR silently disappeared. The forge is
now resolved once per request from whichever source that process owns,
the daemon's configuration or the daemon's published projection.

A multi-identity deployment keeps no links rather than gaining wrong ones:
the projection carries the default identity alone, so it now says so and
the renderer withholds.
This commit is contained in:
sam committed 2026-09-11 20:10:59 +10:00
1 parent 51234eaed4
commit 50845430e3
5 files changed
+808 -15

No files matched your search

+16 -1
View File
@@ -247,7 +247,22 @@ a holder, and the composition test fails if it ever does, but removing the
field outright means moving that renderer and the readiness probes off
`webui.Server` onto the daemon's own configuration owner.
Remaining for Phase 3 closure: the end-to-end smoke suite over real processes.
### Real-process evidence (archie-core-8cda.5.6)
`cmd/archie-ui/main_test.go` builds the binary and runs it against a State
Store and a Gateway on loopback gRPC, then drives it over HTTP: liveness
without a token, 401 for an API request without one, the `?t=` exchange into
an HttpOnly cookie, task rows with their forge links, the embedded SPA and its
assets, a chat stream relayed frame by frame from the Gateway, an operator
task action crossing to the Gateway (and refused without the CSRF header),
capture intake accepted unauthenticated, the ratified degradations, readiness
dropping when the State Store dies while liveness holds, and a clean SIGTERM.
Two dashboard values still degrade because the published projection does not
carry them, both daemon configuration the UI cannot see: `chat.show_tool_calls`
(the chat page never expands tool calls) and the `/api/setup` checklist (the
panel is omitted rather than rendered from what the snapshot knows). Neither is
a boundary violation; both are fields the projection could publish.
## Non-goals and open work