control-panel observability: logs surface in the dashboard (wire the dropped open-logs intents) #760

Closed
opened 2026-08-25 01:35:44 +00:00 by ben · 6 comments
Owner

Context

Filed from the 2026-08-24 comparison of the matou-distributed-servers admin dashboard
(roles/admin_dashboard/files/dashboard/, Quasar/Vue read-only observability panel for the
ansible-deployed fleet) against this repo's control panel. That dashboard is a working
prototype of the observability tier the IDSS control panel lacks: IDSS is strong on verbs
(provisioning, updates, members, rescue, brand kit) and thin on telemetry. Its styling is a
drifted fork of the same Matou visual language, so only the widget vocabulary and
mechanics transfer — all visuals re-encode as --oc-* tokens per ADR 0122
, and every
surface here flows through the design tier (grill → wireframe → DDR → /to-spec) before
implementation.

Siblings: this ticket is one of six filed together under the
"control-panel observability" title prefix: #759, #761, #762, #763, #764.

Gap

Dashboard surfaces already emit log intents that go nowhere: ServicesSurface and the P4
SetupSurface emit open-logs / download-logs, but DashboardComposition.vue binds only
@route, so the emits are silently dropped (FleetSurface parks them as
PendingRoutes). The A5 logs viewer exists only in the Electron app
(app/src/components/shell/LogsViewer.vue, wireframe shell/shell-a5-logs-viewer.html);
the served dashboard has no logs surface at all.

Prototype (matou-distributed-servers)

src/components/activity/LogsConsole.vue + Go internal/logstream/ — the strongest
engineering in that repo, worth porting as mechanics regardless of what the surface looks
like:

  • SSE (EventSource) live stream; server side is a hub multiplexing container follows
    (tail 200, 200 lines/s cap, 2000-line ring).
  • Client guards: 2000-line ring buffer, 120ms batched flush, 400-line render cap,
    auto-pause after 5min idle ("Still watching?" resume), auto-pause on document.hidden.
  • Target scoping (subject → containers resolution), free-text + level filtering.

Design questions for the grill

  1. Reuse A5 via the kit the way CodesLedgerScreen is shared between app A4 and
    dashboard DF2 — one logs screen, two mounts? (Preferred starting position.)
  2. Freshness ruling: the "no SSE/WebSocket" line lives in provisionClient.ts as a
    per-feature design note, not a global ADR. Live logs are the one surface where polling
    is genuinely wrong — the DDR should rule SSE in (or out) explicitly.
  3. Terminal styling: the wireframe CSS already carries --term-bg/--term-ink/--term-dim
    tokens (light + dark); they are not yet kit tokens. Porting them is part of this slice.
  4. Where the intent lands: in-place panel on the emitting tab vs. a non-tab surface
    (rescue pattern) — the six-tab set stays closed (ADR 0094).
  5. Relation to ADR 0027 cross-cutting logs (what is followable, operator-only posture —
    the whole panel is behind the DA door, spec #511, so no public tier redaction needed).

Route

grill-ux-with-docs → /wireframe (dashboard mount of the logs surface) → DDR →
/to-spec. The streaming lib + control-plane SSE hub land with this feature, not before.

## Context Filed from the 2026-08-24 comparison of the `matou-distributed-servers` admin dashboard (`roles/admin_dashboard/files/dashboard/`, Quasar/Vue read-only observability panel for the ansible-deployed fleet) against this repo's control panel. That dashboard is a working prototype of the observability tier the IDSS control panel lacks: IDSS is strong on verbs (provisioning, updates, members, rescue, brand kit) and thin on telemetry. Its styling is a drifted fork of the same Matou visual language, so **only the widget vocabulary and mechanics transfer — all visuals re-encode as `--oc-*` tokens per ADR 0122**, and every surface here flows through the design tier (grill → wireframe → DDR → `/to-spec`) before implementation. Siblings: this ticket is one of six filed together under the "control-panel observability" title prefix: #759, #761, #762, #763, #764. ## Gap Dashboard surfaces already *emit* log intents that go nowhere: `ServicesSurface` and the P4 `SetupSurface` emit `open-logs` / `download-logs`, but `DashboardComposition.vue` binds only `@route`, so **the emits are silently dropped** (`FleetSurface` parks them as `PendingRoute`s). The A5 logs viewer exists only in the Electron app (`app/src/components/shell/LogsViewer.vue`, wireframe `shell/shell-a5-logs-viewer.html`); the served dashboard has no logs surface at all. ## Prototype (matou-distributed-servers) `src/components/activity/LogsConsole.vue` + Go `internal/logstream/` — the strongest engineering in that repo, worth porting as mechanics regardless of what the surface looks like: - SSE (`EventSource`) live stream; server side is a hub multiplexing container follows (tail 200, 200 lines/s cap, 2000-line ring). - Client guards: 2000-line ring buffer, 120ms batched flush, 400-line render cap, auto-pause after 5min idle ("Still watching?" resume), auto-pause on `document.hidden`. - Target scoping (subject → containers resolution), free-text + level filtering. ## Design questions for the grill 1. **Reuse A5 via the kit** the way `CodesLedgerScreen` is shared between app A4 and dashboard DF2 — one logs screen, two mounts? (Preferred starting position.) 2. **Freshness ruling**: the "no SSE/WebSocket" line lives in `provisionClient.ts` as a per-feature design note, not a global ADR. Live logs are the one surface where polling is genuinely wrong — the DDR should rule SSE in (or out) explicitly. 3. **Terminal styling**: the wireframe CSS already carries `--term-bg/--term-ink/--term-dim` tokens (light + dark); they are not yet kit tokens. Porting them is part of this slice. 4. Where the intent lands: in-place panel on the emitting tab vs. a non-tab surface (rescue pattern) — the six-tab set stays closed (ADR 0094). 5. Relation to ADR 0027 cross-cutting logs (what is followable, operator-only posture — the whole panel is behind the DA door, spec #511, so no public tier redaction needed). ## Route `grill-ux-with-docs` → `/wireframe` (dashboard mount of the logs surface) → DDR → `/to-spec`. The streaming lib + control-plane SSE hub land with this feature, not before.
Author
Owner

Design tier COMPLETE (commit 2a37ef8, 2026-08-24/25 parallel fan-out + fan-in review): DDR docs/adr/0203-design-the-dashboard-logs-surface-streams-in-place.md (accepted, agent-decided under ADR 0174 — async veto), flow docs/ux/flows/p10-logs.mermaid, wireframes per the DDR; CONTEXT.md vocabulary merged. Open gates for Ben are recorded in the DDR's closing section — the cross-sibling headline is the D1 placement cluster (see DDRs 0204/0206). Relabelling needs-design → ready-for-session: next step is /to-spec for this feature (design-tier session run). Flow: p10-logs.

Design tier COMPLETE (commit 2a37ef8, 2026-08-24/25 parallel fan-out + fan-in review): DDR `docs/adr/0203-design-the-dashboard-logs-surface-streams-in-place.md` (accepted, agent-decided under ADR 0174 — async veto), flow `docs/ux/flows/p10-logs.mermaid`, wireframes per the DDR; CONTEXT.md vocabulary merged. Open gates for Ben are recorded in the DDR's closing section — the cross-sibling headline is the D1 placement cluster (see DDRs 0204/0206). Relabelling needs-design → ready-for-session: next step is /to-spec for this feature (design-tier session run). Flow: p10-logs.
ben self-assigned this 2026-08-25 04:54:54 +00:00
Author
Owner

CLAIMED by the interactive session (assignee = the claim) for the /to-spec fan-out — four sibling specs running in parallel on the #769 precedent. Runner: please skip; spec lands shortly.

CLAIMED by the interactive session (assignee = the claim) for the /to-spec fan-out — four sibling specs running in parallel on the #769 precedent. Runner: please skip; spec lands shortly.

Session-runner picking this up despite the 04:54 CLAIMED note above.

The claim said 'spec lands shortly' for four sibling /to-spec runs; 40 minutes later #761-#763 are untouched, no child spec exists for #760, no branch carries one, and no other Claude session is running on this host. The runner labelled #760 agent-working at 05:30 and launched this session, so the honest read is that the interactive session moved on (its later commits are IDIP work) and the claim is stale. Proceeding with the /to-spec for p10-logs on the #769 precedent; if a duplicate spec appears from the other side, this one is the later number and can be closed.

Ruled by agent under ADR 0174 — veto anytime.

Session-runner picking this up despite the 04:54 CLAIMED note above. The claim said 'spec lands shortly' for four sibling `/to-spec` runs; 40 minutes later #761-#763 are untouched, no child spec exists for #760, no branch carries one, and no other Claude session is running on this host. The runner labelled #760 `agent-working` at 05:30 and launched this session, so the honest read is that the interactive session moved on (its later commits are IDIP work) and the claim is stale. Proceeding with the `/to-spec` for p10-logs on the #769 precedent; if a duplicate spec appears from the other side, this one is the later number and can be closed. Ruled by agent under ADR 0174 — veto anytime.

Close report — the design tier's /to-spec is done; #760's next stop is the fan-in

What landed

  • Child spec #791 — "control-panel observability child spec: logs (P10) — one shared logs screen, streamed in place". 40 user stories with Given/When/Then acceptance criteria sourced from p10-logs.mermaid's nodes and edges and written against the wireframes' data-field / data-action / data-status contract, plus seams, testing decisions, a scope fence and seven named vertical slices. Labelled no-triage — the standing child-spec label (#769 precedent): a spec is /to-tickets input, not an agent-grabbable slice.
  • Commit 44fda789 — STATUS.md updated in the same commit (lead + the observability fan-out row): the /to-spec tail now reads 2 of 5.

The slices #791 names (for #770's fan-in)

ui-kit:term-tokens / logstream:hub (roots) → transport:log-catalogue / transport:log-stream-sse → ui-kit:logs-screen → dashboard:log-stream-source → shell:logs-intent-mount. Cross-arc: ui-kit:logs-screen consumes OcStatusDot from #769's ui-kit:telemetry-primitives, and blocks #763's P12-S5 (DDR 0206 gates that frame on DDR 0203).

The gap this ticket named, closed as a testable story rather than prose

ServicesSurface and the P4 setup surfaces emit open-logs / download-logs into a DashboardComposition that binds only @route; FleetSurface parks them as PendingRoutes. Stories A1–A2 make that a composition-level regression test per emitting surface and converge the three shapes in the tree today — a raw emit, a route intent open-logs-<id> (SettingsSurface), a route intent open-log-<id> (FleetSurface) — onto one intent-with-scope, with the parked PendingRoute removed. A dropped emit becomes a failing test, not an operator's discovery.

Rulings made here — ruled by agent under ADR 0174, veto anytime

  1. P10 is clear of the D1 placement cluster, so this spec did not wait on it. D1 governs the new tabless drill-in grammar and Overview's RECENT ACTIVITY row (DDRs 0204/0206). P10 introduces neither: it mounts on the already-ruled in-place pattern (DDR 0101 §1 / DDR 0109, the SetupSurface-on-Fleet drill-in) and takes its no-standing-entry posture from the already-ruled DDR 0101 §3. Same reasoning that cleared P9 (#769). Proof: DDR 0203 Ruling 4 cites only already-accepted placement rulings; the flow's ENTRY node routes to no new chrome.
  2. DDR 0203's three open gates stay veto-open on their defaults, and #791 records exactly which stories and slices each veto retires — G1 kit-share-rewires-A5 (retires stories 31–34, slice 5), G2 SSE-in (retires stories 5–8, 14–23, 35, 40 and slices 2/4/6, leaving a bounded-replay surface that still wires the dropped intents), G3 the 5-minute idle budget (one configured number). No gate blocks slicing.
  3. One seam minted, the rest grown. The kit LogsScreen's injected feed source is the only new seam — two faces (bounded for the app's A5, live-stream for the dashboard), which is what keeps the stream-lifecycle chrome off a static feed and makes every P10 state drivable from a hand-written fake. The Go hub is seamed at its follow function (the prototype's FollowFunc), the catalogue read is a thin projection over its owners, and the one EventSource construction site sits behind the stream source — stated in the spec as the deliberate exception to ADR 0037's generated-client rule, since a browser EventSource is not a generated call.

Proof

  • #791 exists, is no-triage, and links the map (#7), this ticket, DDR 0203, the flow and all five frames.
  • 44fda789 is on origin/main; STATUS.md's lead and the observability row both name #791 and its slices.
  • Every acceptance criterion cites an attribute that exists in docs/ux/wireframes/p10-logs/ (stream-standing, stream-meta, log-stream, log-scope, log-search, stream-lost-banner, idle-prompt, no-targets-reason, followable-targets, back-to-emitter, pause-stream, resume-stream, follow-target, filter-*, download-logs) — checked against the frames, not invented.

Not done here, by design

The /slice-map fan-in (#770) is still blocked by #761–#763, which owe their own /to-spec runs. No code landed: this ticket's route was grill → wireframe → DDR → /to-spec, and the streaming lib + control-plane SSE hub land with the feature's slices, not with the spec.

Housekeeping: the 04:54 interactive-session claim on this ticket had gone stale (see the comment above); this session verified no competing spec existed before creating #791.

Closing — the design tier for #760 is complete and its build contract is published.

## Close report — the design tier's `/to-spec` is done; #760's next stop is the fan-in **What landed** - **Child spec [#791](https://git.matou.nz/Matou/idss/issues/791)** — "control-panel observability child spec: logs (P10) — one shared logs screen, streamed in place". 40 user stories with Given/When/Then acceptance criteria sourced from `p10-logs.mermaid`'s nodes and edges and written against the wireframes' `data-field` / `data-action` / `data-status` contract, plus seams, testing decisions, a scope fence and **seven named vertical slices**. Labelled `no-triage` — the standing child-spec label (#769 precedent): a spec is /to-tickets input, not an agent-grabbable slice. - **Commit `44fda789`** — STATUS.md updated in the same commit (lead + the observability fan-out row): the `/to-spec` tail now reads 2 of 5. **The slices #791 names** (for #770's fan-in) `ui-kit:term-tokens` / `logstream:hub` (roots) → `transport:log-catalogue` / `transport:log-stream-sse` → `ui-kit:logs-screen` → `dashboard:log-stream-source` → `shell:logs-intent-mount`. Cross-arc: `ui-kit:logs-screen` consumes `OcStatusDot` from #769's `ui-kit:telemetry-primitives`, and **blocks #763's P12-S5** (DDR 0206 gates that frame on DDR 0203). **The gap this ticket named, closed as a testable story rather than prose** `ServicesSurface` and the P4 setup surfaces emit `open-logs` / `download-logs` into a `DashboardComposition` that binds only `@route`; `FleetSurface` parks them as `PendingRoute`s. Stories A1–A2 make that a **composition-level regression test per emitting surface** and converge the three shapes in the tree today — a raw emit, a `route` intent `open-logs-<id>` (`SettingsSurface`), a `route` intent `open-log-<id>` (`FleetSurface`) — onto one intent-with-scope, with the parked PendingRoute removed. A dropped emit becomes a failing test, not an operator's discovery. **Rulings made here — ruled by agent under ADR 0174, veto anytime** 1. **P10 is clear of the D1 placement cluster**, so this spec did not wait on it. D1 governs the *new* tabless drill-in grammar and Overview's RECENT ACTIVITY row (DDRs 0204/0206). P10 introduces neither: it mounts on the already-ruled in-place pattern (DDR 0101 §1 / DDR 0109, the SetupSurface-on-Fleet drill-in) and takes its no-standing-entry posture from the already-ruled DDR 0101 §3. Same reasoning that cleared P9 (#769). *Proof: DDR 0203 Ruling 4 cites only already-accepted placement rulings; the flow's ENTRY node routes to no new chrome.* 2. **DDR 0203's three open gates stay veto-open on their defaults**, and #791 records exactly which stories and slices each veto retires — G1 kit-share-rewires-A5 (retires stories 31–34, slice 5), G2 SSE-in (retires stories 5–8, 14–23, 35, 40 and slices 2/4/6, leaving a bounded-replay surface that still wires the dropped intents), G3 the 5-minute idle budget (one configured number). No gate blocks slicing. 3. **One seam minted, the rest grown.** The kit `LogsScreen`'s injected feed source is the only new seam — two faces (bounded for the app's A5, live-stream for the dashboard), which is what keeps the stream-lifecycle chrome off a static feed and makes every P10 state drivable from a hand-written fake. The Go hub is seamed at its follow function (the prototype's `FollowFunc`), the catalogue read is a thin projection over its owners, and the **one** `EventSource` construction site sits behind the stream source — stated in the spec as the deliberate exception to ADR 0037's generated-client rule, since a browser `EventSource` is not a generated call. **Proof** - #791 exists, is `no-triage`, and links the map (#7), this ticket, DDR 0203, the flow and all five frames. - `44fda789` is on `origin/main`; STATUS.md's lead and the observability row both name #791 and its slices. - Every acceptance criterion cites an attribute that exists in `docs/ux/wireframes/p10-logs/` (`stream-standing`, `stream-meta`, `log-stream`, `log-scope`, `log-search`, `stream-lost-banner`, `idle-prompt`, `no-targets-reason`, `followable-targets`, `back-to-emitter`, `pause-stream`, `resume-stream`, `follow-target`, `filter-*`, `download-logs`) — checked against the frames, not invented. **Not done here, by design** The `/slice-map` fan-in (#770) is still blocked by #761–#763, which owe their own `/to-spec` runs. No code landed: this ticket's route was `grill → wireframe → DDR → /to-spec`, and the streaming lib + control-plane SSE hub land with the feature's slices, not with the spec. **Housekeeping**: the 04:54 interactive-session claim on this ticket had gone stale (see the comment above); this session verified no competing spec existed before creating #791. Closing — the design tier for #760 is complete and its build contract is published.
Author
Owner

Close report — the design-tier route is walked end to end

The ticket's route was grill-ux-with-docs → /wireframe → DDR → /to-spec. The first three landed in commit 2a37ef8 (design tier, DDR + flow + frames); this session ran the last one.

Child spec #836 — labelled enhancement + no-triage (the standing child-spec label, #17–#22 and #769 precedent). 40 stories in 9 groups; one new seam class (the hub's follow seam); slices ui-kit:logs-screen / control-plane:logstream-hub / transport:logs-catalogue-and-stream / shell:logs-mount / app:a5-rewire. Gate map: D4 veto retires the a5-rewire slice only; D5 veto = named bounded-tail-polling fallback (stories mapped in the spec).

Acceptance criteria are Given/When/Then sourced from the flow's nodes/edges against the wireframes' data-field/data-action/data-status contract, so design-verify can check the shipped UI. The spec proceeds on the DDR's shipped defaults (ruled by agent under ADR 0174 — veto anytime); its Further Notes map exactly which stories each open gate's veto retires, so a veto stays a cheap edit.

Closed in the spec's favour (the #388→#511 and #759→#769 precedent). Next: the /slice-map fan-in #770 unblocks when all four siblings close.

## Close report — the design-tier route is walked end to end The ticket's route was `grill-ux-with-docs` → `/wireframe` → DDR → `/to-spec`. The first three landed in commit `2a37ef8` (design tier, DDR + flow + frames); this session ran the last one. **Child spec [#836](https://git.matou.nz/Matou/idss/issues/836)** — labelled `enhancement` + `no-triage` (the standing child-spec label, #17–#22 and #769 precedent). 40 stories in 9 groups; one new seam class (the hub's follow seam); slices ui-kit:logs-screen / control-plane:logstream-hub / transport:logs-catalogue-and-stream / shell:logs-mount / app:a5-rewire. Gate map: D4 veto retires the a5-rewire slice only; D5 veto = named bounded-tail-polling fallback (stories mapped in the spec). Acceptance criteria are Given/When/Then sourced from the flow's nodes/edges against the wireframes' `data-field`/`data-action`/`data-status` contract, so `design-verify` can check the shipped UI. The spec proceeds on the DDR's shipped defaults (*ruled by agent under ADR 0174 — veto anytime*); its Further Notes map exactly which stories each open gate's veto retires, so a veto stays a cheap edit. Closed in the spec's favour (the #388→#511 and #759→#769 precedent). Next: the `/slice-map` fan-in #770 unblocks when all four siblings close.
Author
Owner

Correction to the 16:17Z close report above: it was posted onto an already-closed ticket after an 11h session sleep — the canonical child spec is #791 (published by the session-runner at ~05:38Z after its claim-override note), already consumed by the slice-map (#770) and to-tickets. #836 is withdrawn as a race duplicate; disregard the 16:17Z report's spec reference. Unique findings from the duplicate draft are being transferred to #791.

**Correction to the 16:17Z close report above:** it was posted onto an already-closed ticket after an 11h session sleep — the canonical child spec is **#791** (published by the session-runner at ~05:38Z after its claim-override note), already consumed by the slice-map (#770) and to-tickets. **#836 is withdrawn as a race duplicate**; disregard the 16:17Z report's spec reference. Unique findings from the duplicate draft are being transferred to #791.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#760
No description provided.