control-panel observability child spec: activity feed (P12) — fleet-wide ops-events chronology #839
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.
Dependencies
No dependencies set.
Reference
Matou/idss#839
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
Program map: #7 — Wayfinder map: OurCloud v1 program scope (Phase 0).
Design ticket: #763 — control-panel observability: fleet-wide ops-events activity feed (the arc was filed from the 2026-08-24
matou-distributed-serverscomparison rather than charted on the map; the map's v1 scope is what it lands inside).Design tier this spec is written against (all present, all
acceptedunder the ADR 0174 posture — Ben's veto is asynchronous):docs/adr/0206-design-the-activity-feed-is-fleet-chronology.md— the ruling DDR: the subject rule and the taxonomy, derivation as a read-time merge (no event store), the tabless placement behind Overview, chronology-vs-queue, the pinned raised-alert band, and the gated logs pairing.docs/ux/flows/p12-activity.mermaid.docs/ux/wireframes/p12-activity/—p12-s1-activity-feed,p12-s1x-first-run,p12-s2-filtered,p12-s3-event-selected,p12-s3x-source-unreachable,p12-s4-raised-alert-standing,p12-s5-logs-paired-gated. Theirdata-field/data-action/data-statusattributes are the stable element-ID contract every acceptance criterion below is written against.CONTEXT.md— Ops event and Activity feed (merged with the arc's fan-in). The feed's copy obeys both entries' Avoid lists.Siblings in the same observability arc (each specs separately, then all fan in at one
/slice-map): #759 device telemetry, #760 logs, #761 network, #762 replication matrix, #764 topology map (deferred).Problem Statement
The control panel can tell an operator what needs them now and what any one service did — and nothing else. Overview's NEEDS-ATTENTION is a queue of standing decisions that empties as the operator acts; P5-S3's events line is one service's curated timeline. "What happened across the fleet in the last day" has no answer surface anywhere. An operator who was away for a weekend, or who arrives mid-incident, or who wants to confirm "did last night's backups actually run, and did the rollout finish" has to visit five tabs and mentally merge five part-stories — which the low-skill, low-time operator this product is built for will not do.
The gap also has a fence problem waiting inside it. The obvious naive fix — "show a log of everything" — would drag person-subject history (sign-ins, member lifecycle and its reasons) onto a screen, which DDR 0172 deliberately forbids: that history lives in the ADR 0027 cross-cutting logs, off-screen. A chronology surface is only safe to build if the line between what the fleet did and who did what to whom is structural, not editorial.
Solution
The fleet gets one newest-first chronology — ops events only, derived, never stored. A tabless dashboard surface at
/activity(the DDR 0101 §3 routed-to precedent; ADR 0094's six tabs gain nothing), entered from a one-kv-row RECENT ACTIVITY line on Overview (the DDR 0101 §4 readiness-card shape — Overview is the owning neighbour for fleet-wide chronology). The feed is read-only: every door out is a drill-in to the owning surface, where the verbs live.Three decisions from DDR 0206 shape everything below:
controlapigains one read-composition,Activity(window, sources), fanning out to the owning stores; each owning seam gains an additiveRecentEvents(window)face deriving typed events at read time from records the owner already keeps. Consequences stated honestly on the surface: the horizon is what each owner keeps (the SHOWING footer names it), and a source that can't answer is a rendered named band with retry — partial truth, never a silently thinner feed and never a whole-surface failure.First run is never empty: chronology begins at "community founded" — founding's own stand-up events are the first rows. Severity is worn only by monitoring-derived rows (its decided scale); every other source wears its own outcome token. The prototype's best interaction — select an event, a log pane re-scopes to its subject — lands as the gated variant P12-S5, embedding #760's scoped-tail face; the feed stands alone without it and never grows a log reader of its own.
User Stories
A — Entering the feed (edge DO → P12-S1; DDR 0206 placement ruling)
As an operator, I want the latest fleet event visible on Overview, so that the chronology has a standing glance entry without costing Overview its minimalism.
kvrow (data-field="recent-activity") below the coverage headline:ACTIVITY/ the latest event's headline + relative time / adata-action="view-all-activity"door — the held DO/DOx amendment text in DDR 0206, applied verbatim; the row is a query over the same Activity read, first row only, and no widget, count or second row appears (DDR 0095's minimal glance surface survives).shell-do-overview.html(and DOx) frames gain their✎recent-activity note in the same commit, per the ADR 0042 discipline.As an operator, I want "view all" to open the full chronology without the tab set changing, so that navigation stays the six tabs I know.
view-all-activity, Then the tabless surface renders at/activity(the DDR 0101 §3 routed-to precedent) — no seventh tab appears, no existing tab is marked active for it, and ADR 0094 is not amended.As an operator, I want the feed to be honestly read-only, so that I never act on stale context from a chronology.
As a community, we want the feed operator-only behind the community door, so that fleet chronology is never member-visible.
/activityroute and the Activity read, Then both sit behind the community door exactly as every dashboard route does (DDR 0172), and the operator app is untouched — no app-side feed (the app stays thin, ADR 0031; A5 keeps its logs viewer).B — The resting chronology (P12-S1)
As an operator, I want everything the fleet did in one newest-first list, so that catching up is one surface.
/activityat rest with the read settled, Thendata-field="event-list"renders columnsWHEN,SOURCE,EVENT,SUBJECT,OUTCOME, rows merged newest-first across all sources, each rowdata-field="event-row"withdata-action="select-event"and its outcome token asdata-status.As a community, we want no person to ever be a subject on this screen, so that the audit fence holds on the fleet's most catch-all surface.
As a community, we want no operator attribution on rows, so that every row stays unambiguously on the ops side of the fence.
As an operator, I want each row's outcome in its owner's own words, so that no invented cross-source severity scale exists to mislearn.
criticalwithdata-status="raised".verified,applied,started,rolled back,connected,founded, …) rendered verbatim — the feed classifies nothing.As an operator, I want the feed's completeness stated, so that "nothing shown" is never mistaken for "nothing happened".
data-field="horizon-line"renders the SHOWING footer naming the oldest event in view and its source ("what each service keeps — oldest event in this view: 26 Jul (backups). The feed holds no record of its own.") — the horizon is each owner's retention, and no feed-side retention knob exists anywhere.As an operator, I want the chronology and the needs-attention queue to stay two different things, so that neither dilutes the other.
As an operator on a real screen, I want the rows readable at product scale, so that density never wins over legibility.
C — First run is founding's own events (P12-S1x; edges S1 ↔ S1x)
As a founding operator, I want the feed to already hold my community's story the first time I open it, so that no empty state exists.
/activityrenders, Thendata-field="event-list"(data-status="first-run") holds founding's own stand-up rows — community founded, gateway deployed, control plane seeded, portal live — newest first, each a real selectable event row; no blank feed exists, ever (the never-empty rule).As a founding operator, I want one orienting line with those first rows, so that I know what this surface will become.
data-field="hint-first-run"renders the orienting callout ("This is your fleet's story so far…") — one callout, not an empty-state illustration.As an operator, I want the story to simply grow, so that first-run needs no ceremony to exit.
D — Filtering (P12-S2; edges S1 ↔ S2)
As an operator, I want to narrow by source, problems, text and window, so that I can ask a specific question of the chronology.
data-field="activity-filters"), Then it offers source chipsfilter-source-all/-services/-devices/-updates/-backups/-rescue, atoggle-problems-onlychip, free text (data-field="activity-search") and a window control (data-field="activity-window": today / 7 days / 30 days).data-status="active"with a clear affordance (the✕), and the filter state is reflected in the URL (the depicted?source=backups&problems=1&window=7dshape) so a filtered view is shareable/reloadable.As an operator, I want the view to restate what it omits, so that I always know what I am not seeing.
data-field="filter-summary"renders a SHOWING line restating the active filters and the counts ("backups · problems only · last 7 days — 3 of 61 events") with adata-action="clear-filters"door.As an operator, I want problems-only to mean the owners' verdicts, so that the feed never grows a classifier.
As an operator, I want no-match stated in place, so that a filtered-to-nothing view is never a bare blank.
data-field="no-match-copy"'s contract).As an operator, I want clearing to return the whole story, so that filtering is never sticky beyond my intent.
clear-filters(or deactivates the last chip), Then the full chronology returns (edge S2 → S1).E — Selecting an event: the detail pane (P12-S3; edges S1/S2 → S3, S3 → owners)
As an operator, I want a selected event's full record beside the list, so that reading detail never loses my place in the chronology.
select-eventon a row, Then the surface renders two-pane: the list rail with the selected row markeddata-status="selected", anddata-field="event-detail"carrying the event's headline, its outcome pill,WHEN(absolute time + relative age),SOURCE(the owner and the record it derives from, e.g. "Backups — this dataset's run ledger") andSUBJECT.As an operator, I want WHAT HAPPENED in the owner's words, so that the feed can never drift from the source of truth.
data-field="seam-words"renders the owning seam's recorded words verbatim (ADR 0100 posture) — the feed re-derives nothing, summarises nothing, and shows no live status of its own (the drill-in door is for that).As an operator, I want every operation-shaped event to carry its own log, so that the standing rule holds here too.
data-action="open-log"anddata-action="download-log"against that operation's own log (ADR 0027).As an operator, I want one door per event — the owner's — so that the verbs stay where their guards live.
data-action="drill-in-owner") is offered, routed by the event's source: a service event opens monitoring's P5-S3, a backup-run event opens backups' P7-S3, a rollout event opens the release in provisioning's P4b-U2, a rescue event opens rescue's P8-S1 (the flow's four owner edges).F — A source can't answer (P12-S3x; edges S1 ↔ S3x)
As an operator, I want a failed source named, not silently omitted, so that a thinner feed can never read as "nothing happened".
data-field="source-unreachable"(data-status="source-unreachable") — a standing band naming the source, the missing span and the attempts ("Backups couldn't answer. Events from backups are missing from this view (since 07:41, 3 tries)."), stating the shown rows are complete for the other sources, withdata-action="retry-source". No toast — the band stands until the source answers.data-field="event-list"(data-status="partial") keeps every row the answering sources produced, anddata-field="horizon-line"names the missing source in the SHOWING line ("backups missing, named above") — the feed never claims completeness it doesn't have.As an operator, I want recovery to be automatic, so that a healed source needs no ceremony.
As an operator, I want a dead control plane handled like everywhere else, so that I learn one failure behaviour.
G — Raised alert standing (P12-S4; edges S1 ↔ S4, S4 → P5-S3)
As an operator, I want a standing alert pinned above the chronology, so that arriving mid-incident lands me on the live condition and its story at once.
/activityrenders, Thendata-field="raised-alert-band"(data-status="raised") renders pinned above the list — a live query over monitoring's standing-alert store (the ADR 0094 chrome-chip discipline) naming the count, subject, severity and standing duration ("1 raised alert — Chat down on rimu · critical · 4 min"), withdata-action="drill-in-alert"opening monitoring's P5-S3.As an operator, I want no band when nothing stands, so that absence stays the truthful all-clear.
As an operator arriving mid-incident, I want the detail pane already on the story, so that orientation costs zero clicks.
As an operator, I want the alert's history to outlive the alert, so that the chronology stays complete after the incident.
H — Derivation: the read-time merge (ADR 0097; maintainer stories)
As a maintainer, I want the feed to be one read-composition, so that chronology never becomes a second owner of anyone's truth.
controlapiserves oneActivity(window, sources)read-composition that fans out to the owning stores, derives typed events at read time from the records in story 5's taxonomy, and merges newest-first — no event store, no persistence, no pipeline component is added anywhere (the feed writes nothing, ever).As a maintainer, I want each source's contribution to be an additive face on its own seam, so that nothing confirmed moves.
RecentEvents(window)face (or the composition reads records the seam already exposes) deriving its events from the owner's existing records — the standing-alert store's transitions, the P5-S3 events projection, the enroll ledger, the deploy and rollout records, the run ledger, rescue's ladder memory; no owner's record shape changes.As a maintainer, I want one event shape on the wire, so that the dashboard renders and computes nothing (ADR 0097).
As a community, we want the subject rule enforced at derivation, so that the fence is structural.
RecentEventsface, Then no person-subject event is ever emitted at any layer — the rule is not a front-end filter, and no member-, sign-in- or code-lifecycle record is even read by the composition.As a maintainer, I want partial answers to be a first-class payload, so that one slow store can't take the surface down.
As an operator, I want the surface to keep itself current, so that a feed left open doesn't quietly age.
/activitymounted, Then it re-reads on the house cadence pattern (the mount registry's supplied interval, timer cleared on unmount) — the component invents no polling of its own, and a re-read preserves the operator's selection and filters.I — The gated logs pairing (P12-S5; blocked on #760)
As an operator, I want the feed complete without the logs sibling, so that #763 never waits on #760.
design-verifydoes not require P12-S5 until the gate is met (the frame's owndata-field="gate-note",data-status="gated-ddr-0203", records this).As an operator, I want the selected event's logs beside its record once logs exist, so that the incident's evidence is one glance from its story.
data-field="scoped-logs-pane"(data-status="scoped") — p10's scoped-tail face embedded via DDR 0203's target-scoping contract: the event's subject reference is a subject-kind scope resolved to targets through the same server-side catalogue; the pane is the same kit component p10 mounts, with its live/paused/lost states, and the feed grows no log reader of its own.As an operator, I want the pane to follow my selection, so that walking the chronology walks the evidence.
Implementation Decisions
Seams — one new read-composition; every source face additive
wholeOverview/wholeFleetprior art):controlapigains oneActivity(window, sources)read behind one route. No new dashboard seam class, no new pipeline component, no event store — architecture diagram 02 needs no new box (DDR 0206). Rejected: a feed store or write-time event bus — chronology as a store manufactures a second owner for every feature's history, the exact failure ADR 0097/DDR 0095 forbid.RecentEvents(window)face on the monitoring / enroll+provisioning / updates / backups / rescue seams (or a composition-side read of records the seam already exposes — the founding stand-up record takes this path). Derivation is per-owner code next to the owner's records; the composition merges and sorts only.Surface
/activity— the DDR 0101 §3 routed-to precedent (rescue's dashboard screens); ADR 0094's closed six-tab set is untouched. Entry is Overview's one-kv-row RECENT ACTIVITY line (the DDR 0101 §4 readiness-card shape), a query over the same Activity read, first row only.data-field/data-action/data-statusattributes are the built contract, carried verbatim from the wireframes fordesign-verify.--oc-*tokens (ADR 0122).ActivityPage.vue): incidents merged as synthetic critical rows with OPEN badges, a cross-source severity scale, its own log console (we embed p10's face instead), Pinia, naive polling.Testing Decisions
A good test states externally-observable behaviour at a seam and never reaches into implementation detail. Three seams, all pre-existing classes — this spec adds no new seam class:
data-field/data-action/data-statuscontract: resting merge order and columns; first-run's founding rows and callout; every filter (chips, problems-only predicate, window, text, SHOWING restatement, no-match in place, clear); selection and the detail pane's verbatim seam-words; log affordances present only on operation-shaped events; the four owner drill-in routes; the partial band + partial list + horizon naming; the raised band (present at ≥1, structurally absent at 0, default selection = raising event); the Overview row rendering the read's first row; and the S5 gate (pane absent without the face, scoped when embedded — the face itself faked at its injected boundary). Prior art:overview.test.ts,overviewFirstRun.test.ts,overviewLive.test.ts,surfaceFaultFrame.test.ts, and the shared-screen tests DDR 0203 names.whole_surfaces_test.go/wholeOverviewprior art): newest-first merge across sources; window bounding; the event shape serialised (snake_case, nullable log ref, problem classification, drill-in target); a source fault becomes an in-payload named failure while the others' events still serialise; a transport fault maps to the shared Problem body; the generated client camelises; the first-row read backing the Overview line.RecentEventsface unit-tested against its owner's own records: the taxonomy's events come out of real record fixtures (an alert transition, a rollout record, a per-target run outcome, a rescue rung, an enroll join, the founding stand-up record); person-subject records are never emitted (the fence test — the members/sign-in fixtures produce zero events); no attribution field survives into any event; the owner's words and outcome token are carried verbatim; horizon equals the owner's retention (an aged-out record contributes nothing, and the oldest-kept timestamp is reported for the SHOWING line). Prior art: each owner's existing store/orchestrator tests.Two cross-cutting checks ride existing harnesses: the theming contract tests (every visual an
--oc-*token, ADR 0122) and the copy-vocabulary check against CONTEXT.md's Avoid lists.Out of Scope
Further Notes
Vertical slices (named for the fan-in
/slice-map)sources:recent-events— the additiveRecentEvents(window)faces on the monitoring / enroll+provisioning / updates / backups / rescue seams plus the founding stand-up derivation; the subject-rule fence tests. Depends on nothing new.transport:activity-read— theActivity(window, sources)composition, in-payload partial answers, OpenAPI + generated client. Depends on 1.shell:activity-surface— the tabless/activitysurface: P12-S1, S1x, S2, S3, S3x. Depends on 2.shell:raised-alert-band— P12-S4: the pinned band over monitoring's standing-alert face + the default-to-raising-event selection. Depends on 3 (the store face exists — the chrome chip already reads it).shell:overview-activity-line— the DO/DOx one-kv-row entry + the canonical-frame✎amendment (ADR 0042). Depends on 2. Gate-1-sensitive (below).shell:activity-scoped-logs— P12-S5: embedding p10's scoped-tail face via the target-scoping contract. Depends on 3 and on #760's scoped-tail-face slice — a cross-arc edge the/slice-mapmust carry; until it lands, story 37 is the shipped behaviour.Cross-arc notes for the fan-in: slice 6 is this arc's only inbound dependency on a sibling; DDR 0203 already names the reciprocal optional door (p10 offering "show this target's activity" into a filtered P12-S2) — that door is #760's to spec, not this one's.
The open gates → story map (D1 first)
This feature sits in the D1 placement cluster — the cross-sibling decision of where the observability surfaces live (DDR 0206 open gates 1–2, shared shape with #761's DDR 0204). Ben has not vetoed; per ADR 0174 this spec proceeds on the DDR's shipped defaults (tabless
/activity+ the Overview RECENT ACTIVITY row). The reversals map as follows:/activity; DDR 0101 §3 stops being the operative precedent), and story 1 / slice 5 become Ben's call (a standing Overview row may be redundant beside a standing tab — retire slice 5 only if he says so, it is not implied by the reversal). Slices 1–4 and 6 are untouched; slice 3's mount is the only re-pointed work./activitysurface itself stands, DDR 0101 §3 routed-to surfaces do not require a standing entry — rescue's precedent). The feed then remains reachable only through proposed doors on other surfaces — #760's optional "show this target's activity" edge once it lands — and until one lands it is effectively direct-URL-only; that gap goes back to Ben as a named design question rather than this spec inventing a replacement door. Everything else stands.RecentEventsface (facts-only derivation, reasons structurally unread), a MEMBERS source chip in story 15, taxonomy rows in story 5, and an amendment to stories 6/34's "no person-subject event" phrasing to name the carved-out facts subset. Mark those tickets additive atto-ticketstime; nothing existing blocks on the gate.Design-tier inconsistencies found while speccing (reported, not fixed)
open-log. S3's pane offers Open log + Download log; S5's offers onlydownload-log. Plausibly deliberate (the embedded scoped tail is the open stream), but the frames don't say so;design-verifyshould treat S5's reduced button set as the S5 contract, not a drift from S3.Produced by
/to-specin an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #763.Withdrawn — race duplicate. The interactive session drafted this in parallel while asleep mid-claim; the session-runner overrode the stale claim (its 05:33Z comment on #763) and published the canonical spec #796, which the slice-map fan-in (#770, commit
44cd080,docs/slices/observability.yaml) and/to-ticketshave already consumed. This duplicate is closed in #796's favour. Any materially unique findings from this draft are being transferred to #796 as comments.