observability: ui-kit-logs-screen — the shared LogsScreen over its injected feed source — two faces, four states, and A5 folded onto it #809
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#809
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Feature spec: #791 — control-panel observability child spec: logs (P10) (DDR 0203).
Design ticket #760; slice-map fan-in #770; wayfinder map #7.
Slice
ui-kit-logs-screenofdocs/slices/observability.yaml; covers spec #791 stories 5–34.What to build
One logs screen in the kit, two mounts (the
CodesLedgerScreenA4/DF2 precedent). The screenowns the controls — scope, search, level chips, pause/resume, download — and the terminal panel;
the feed is a seam-injected source with exactly two faces: a bounded face (an operation
log's lines, complete) and a live-stream face (subscribe / lines / lifecycle / release). The
screen renders the stream-lifecycle chrome only when the source presents the live face — so a
static feed being always complete means streaming / stream lost / paused never appear on A5, and
A5 never learns a stream vocabulary.
The app's A5 becomes a mount of this screen with its contract preserved: the operation filter, the
search, the level chips and Download bundle keep working and its existing tests keep passing.
Four object-states are proven here: streaming (bounds stated in the meta line, read from the
running configuration, not hard-coded copy), stream lost (the tail freezes, dims and
end-marks; a banner names the wall-clock moment of the loss and states reconnection is automatic —
never a toast, never a stale scroll under a live dot), paused (the idle prompt and the
operator's own pause are the same state and frame, differing only in copy) and nothing
followable (the control plane's reason plus the real catalogue, one pick away from streaming).
Level filtering is honest: authoritative on structured levels, a named text-match heuristic
on raw service lines, never presented as monitoring's classification, and each line in a mixed
scope filtered by its own kind's rule. The indicator dot is
OcStatusDotin healthy / warning /muted — lost is warning plus a named banner, never a third hue.
This slice also provides and tests the scoped-tail face #796's P12-S5 embeds — building P12-S5
is #796's, gated on this slice.
Acceptance criteria
LogsScreenowning the controls and terminal panel with the feed injected as a source; the screen holds no store and opens no transport of its own.log-streamcarriesdata-status="streaming"and renders lines newest-last with timestamp, source and message; the hub's tail renders immediately as backlog; andstream-standingcarries the state with anOcStatusDotin the healthy tone and the scope's name.data-statusis the state — the surface never renders a terminal panel with no standing line above it.stream-metastates the honest bounds in plain words, read from the running configuration — changing the render cap changes the meta line.--oc-term-*token (no raw hex is emitted by the component), lines render at the mono secondary size (≈0.85rem, line-height ≈1.65), timestamps and sources render in--oc-term-dim, and ok/warn/err lines in their tokens.pause-stream, then the surface enters the same paused state and frame as the idle pause, differing only in copy — no second paused implementation exists.stream-standingcarriesstream-lostwith the warning-tone indicator,stream-metareads that nothing shown is current,stream-lost-bannernames the wall-clock moment of the loss and states reconnection is automatic, andlog-streamcarriesdata-status="stale"with the tail frozen, dimmed, scrollable and end-marked — never a toast, never a spinner, never a silently retried green dot.log-streamcarriesdata-status="paused", the tail is end-marked, and nothing on the frame names a failure; paused and stream-lost are never conflated.no-targets-reasonrenders the control plane's reason for that scope, no terminal panel renders,followable-targetslists the catalogue's real answer withfollow-targetper row, a fleet where nothing is followable says so in the same honest voice, andback-to-emitteris offered.Design contract
docs/ux/flows/p10-logs.mermaiddocs/ux/wireframes/p10-logs/p10-s1-logs-streaming.htmldocs/ux/wireframes/p10-logs/p10-s1x-stream-lost.htmldocs/ux/wireframes/p10-logs/p10-s2-paused-still-watching.htmldocs/ux/wireframes/p10-logs/p10-s0x-nothing-followable.htmlBlocked by
observability:ui-kit-term-tokensobservability:ui-kit-telemetry-primitivesshell:app-side-shell(#28 — done, satisfied)Task manifest
Emitted by
/to-ticketsoverdocs/slices/observability.yamlin an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.swarm-claim host=elitebook-distributed-server-03 run=10079
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Decision: how literally the app's A5 folds onto the shared
LogsScreen. A5's wireframe/element-ID contract (operation-filter,log-search,filter-*,download-bundle,operation-log/.oc-logline) differs from P10's (log-scope,log-stream,download-logs, the lifecycle chrome). DDR 0203 Ruling 1 + Open-gate 1 say share with A5's contract preserved.Ruling:
LogsScreenis the one shared screen, reading an injected feed source with two faces (bounded / live-stream). It takes acontractprop with two presets —p10(default, the dashboard vocabulary) anda5(the app vocabulary). Both read onelogsFeedmodel (states, level-honesty, filtering, framing). The lifecycle chrome (standing dot, meta bounds, pause, idle prompt, stream-lost banner) renders only for the live face, so an always-bounded A5 never shows it. Avariant: 'tail'drops the controls chrome for #796's P12-S5 scoped-tail embed. The app'sLogsViewer.vuebecomes a bounded mount ofLogsScreen(contract=a5), owning only theLogBundleit builds from its ownLogEntry[].Why two-way: pure additive kit code + an internal app-screen refold; revertible by a later commit. Proven by: the new kit seam tests (all four P10 states + bounded-no-chrome + scoped-tail, driven by a hand-written fake source, no browser/server/timer) and the app's existing
logsViewer.test.tskept green unchanged.close-report for #809 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope