control-panel observability child spec: activity feed (P12) — fleet-wide ops-events chronology #839

Closed
opened 2026-08-25 16:17:31 +00:00 by ben · 1 comment
Owner

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-servers comparison 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 accepted under the ADR 0174 posture — Ben's veto is asynchronous):

  • DDR 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.
  • Flow docs/ux/flows/p12-activity.mermaid.
  • Wireframes 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. Their data-field / data-action / data-status attributes are the stable element-ID contract every acceptance criterion below is written against.
  • Vocabulary CONTEXT.md — Ops event and Activity feed (merged with the arc's fan-in). The feed's copy obeys both entries' Avoid lists.
  • Consumed sibling contract DDR 0203 §"The sibling pairing" (#760) — the scoped-tail face and its subject-kind target-scoping contract, which the gated P12-S5 embeds. That face is specced and built by #760's spec; this spec only consumes it.

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:

  1. The subject rule is the fence. A feed event's subject is always a machine, a service, a dataset, or a release — an event whose subject is a person never renders, and no row carries operator attribution ("rimu redeployed", never "Ben redeployed rimu"). The rule is enforced at derivation, so the audit fence (DDR 0172 / ADR 0027) holds by construction, not by front-end discipline.
  2. The feed is a query, never a store (ADR 0097 applied to chronology). controlapi gains one read-composition, Activity(window, sources), fanning out to the owning stores; each owning seam gains an additive RecentEvents(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.
  3. Chronology is not the queue, and an alert is not an event. Rows are past-tense and immutable — they age, they never leave; NEEDS-ATTENTION empties as the operator acts. A raised alert is a standing condition: it renders as a pinned band above the chronology — a live query over monitoring's alert store — never a synthetic event row wearing an OPEN badge. Zero raised → no band. While an alert stands, the detail pane defaults to its raising event so an operator arriving mid-incident lands on the story.

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)

  1. 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.

    • Given the Overview tab at rest with at least one event derivable (always true — founding's rows exist), When DO renders, Then it carries one kv row (data-field="recent-activity") below the coverage headline: ACTIVITY / the latest event's headline + relative time / a data-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).
    • Given the amendment lands, Then the canonical shell-do-overview.html (and DOx) frames gain their ✎ recent-activity note in the same commit, per the ADR 0042 discipline.
  2. 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.

    • Given DO, When the operator activates 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.
  3. As an operator, I want the feed to be honestly read-only, so that I never act on stale context from a chronology.

    • Given any P12 frame, Then no act affordance exists anywhere on the surface — no retry-the-run, no restart, no acknowledge; every door out is a drill-in to the owning surface (stories 22–23, 29) or a log (ADR 0027), and the resting frame's hint states the posture in words.
  4. As a community, we want the feed operator-only behind the community door, so that fleet chronology is never member-visible.

    • Given the /activity route 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)

  1. As an operator, I want everything the fleet did in one newest-first list, so that catching up is one surface.

    • Given /activity at rest with the read settled, Then data-field="event-list" renders columns WHEN, SOURCE, EVENT, SUBJECT, OUTCOME, rows merged newest-first across all sources, each row data-field="event-row" with data-action="select-event" and its outcome token as data-status.
    • Given the taxonomy (DDR 0206, verbatim), Then the sources contributing rows are: monitoring (alert raised / resolved / acknowledged / escalated; curated service events — crashed, recovered; unexpected silence and return), devices (device joined the fleet; deploy started / completed / failed; a service failed its health check; device removed; role changed), updates (rollout started with the canary named; applied; rolled back; quarantined), backups (run outcome per target — verified / target failed / failed; a dataset going stale; restore started / verified / failed partway; export taken), rescue (rescue opened; rung applied / failed; recovered; remote-support engagement opened / ended), and founding (community founded; gateway deployed; control plane seeded; portal live).
  2. 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.

    • Given any state of any source, Then no rendered row's subject is a person: sign-ins, invite/approval history, suspension and removal (above all their reasons, P6-S6), reset links, mailbox claims, komiti changes and supporter-key grants never appear — they stay in the ADR 0027 cross-cutting logs, off-screen (DDR 0172).
    • Given a device approval, Then it renders as "mātai joined the fleet" (subject: the device) — never "X approved mātai".
    • Given a remote-support engagement, Then its opened/ended events render (subject: the engagement/fleet — outside hands on the fleet belong on the community's record) while the supporter's identity and key mechanics stay in rescue's surface and the audit log.
  3. As a community, we want no operator attribution on rows, so that every row stays unambiguously on the ops side of the fence.

    • Given any operation-derived row, Then it names the what, never the who ("rimu redeployed", never "Ben redeployed rimu") — the who lives in each operation's own log (ADR 0027). Enrollment-code lifecycle never appears at all: the codes ledger (A4/DF2) is its standing home and carries attribution deliberately.
  4. 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.

    • Given a monitoring-derived row, Then it alone may wear severity (monitoring's decided info/warning/critical scale) — e.g. the raised-alert row's pill reads critical with data-status="raised".
    • Given any other source's row, Then its pill is the owner's own outcome token (verified, applied, started, rolled back, connected, founded, …) rendered verbatim — the feed classifies nothing.
  5. As an operator, I want the feed's completeness stated, so that "nothing shown" is never mistaken for "nothing happened".

    • Given the resting list, Then 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.
  6. As an operator, I want the chronology and the needs-attention queue to stay two different things, so that neither dilutes the other.

    • Given the feed, Then rows are past-tense and immutable — they age and never leave; acting elsewhere appends new rows, removes none.
    • Given Overview's NEEDS-ATTENTION, Then it is unchanged by this feature, shares no machinery with the feed, and neither surface renders the other.
  7. As an operator on a real screen, I want the rows readable at product scale, so that density never wins over legibility.

    • Given the list, Then rows render at body scale and WHEN/SOURCE/outcome at micro-label scale, never below the ADR 0122 amendment floor (0.75rem/0.85em) — the wireframes' artboard values are ratios, not sizes.

C — First run is founding's own events (P12-S1x; edges S1 ↔ S1x)

  1. 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.

    • Given a freshly founded community and no operation since, When /activity renders, Then data-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).
  2. As a founding operator, I want one orienting line with those first rows, so that I know what this surface will become.

    • Given first-run, Then data-field="hint-first-run" renders the orienting callout ("This is your fleet's story so far…") — one callout, not an empty-state illustration.
  3. As an operator, I want the story to simply grow, so that first-run needs no ceremony to exit.

    • Given first-run, When any later operation lands through its owning seam, Then the next read renders it above the founding rows and the first-run status and callout go (edge S1x → S1); nothing marks the transition.

D — Filtering (P12-S2; edges S1 ↔ S2)

  1. As an operator, I want to narrow by source, problems, text and window, so that I can ask a specific question of the chronology.

    • Given the filter bar (data-field="activity-filters"), Then it offers source chips filter-source-all / -services / -devices / -updates / -backups / -rescue, a toggle-problems-only chip, free text (data-field="activity-search") and a window control (data-field="activity-window": today / 7 days / 30 days).
    • Given active filters, Then each active chip wears data-status="active" with a clear affordance (the ✕), and the filter state is reflected in the URL (the depicted ?source=backups&problems=1&window=7d shape) so a filtered view is shareable/reloadable.
  2. As an operator, I want the view to restate what it omits, so that I always know what I am not seeing.

    • Given any active filter, Then 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 a data-action="clear-filters" door.
  3. As an operator, I want problems-only to mean the owners' verdicts, so that the feed never grows a classifier.

    • Given problems-only active, Then the view keeps exactly the rows whose outcome the owning seam classified as failure or degradation (failed runs, stale datasets, raised alerts, rollbacks, quarantines…) — the filter is a mechanical predicate over the owner-supplied classification each event carries; the feed applies no judgement of its own.
  4. As an operator, I want no-match stated in place, so that a filtered-to-nothing view is never a bare blank.

    • Given filters that match no event, Then the table states it in place with the active filters named ("No matching activity: backups · problems only · last 7 days") and the clear-filters door (data-field="no-match-copy"'s contract).
  5. As an operator, I want clearing to return the whole story, so that filtering is never sticky beyond my intent.

    • Given a filtered view, When the operator activates 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)

  1. 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.

    • Given any list state, When the operator activates select-event on a row, Then the surface renders two-pane: the list rail with the selected row marked data-status="selected", and data-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") and SUBJECT.
    • Given a selection from a filtered list, Then the behaviour is identical (edge S2 → S3).
  2. As an operator, I want WHAT HAPPENED in the owner's words, so that the feed can never drift from the source of truth.

    • Given the detail pane, Then 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).
  3. As an operator, I want every operation-shaped event to carry its own log, so that the standing rule holds here too.

    • Given a selected event that is an operation (a run, a deploy, a rollout step, a rescue rung…), Then the pane offers data-action="open-log" and data-action="download-log" against that operation's own log (ADR 0027).
    • Given an event that is not operation-shaped (e.g. a device join, an alert transition without an operation), Then no log affordance is fabricated for it.
  4. As an operator, I want one door per event — the owner's — so that the verbs stay where their guards live.

    • Given the detail pane, Then exactly one drill-in (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)

  1. As an operator, I want a failed source named, not silently omitted, so that a thinner feed can never read as "nothing happened".

    • Given the merged read where one owning source fails to answer, Then the surface renders 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, with data-action="retry-source". No toast — the band stands until the source answers.
    • Given that state, Then data-field="event-list" (data-status="partial") keeps every row the answering sources produced, and data-field="horizon-line" names the missing source in the SHOWING line ("backups missing, named above") — the feed never claims completeness it doesn't have.
  2. As an operator, I want recovery to be automatic, so that a healed source needs no ceremony.

    • Given the partial state, When the source answers again (on retry or the next read), Then the band clears and its events return to the merge (edge S3x → S1).
  3. As an operator, I want a dead control plane handled like everywhere else, so that I learn one failure behaviour.

    • Given the Activity read itself fails at transport, Then the surface renders shell's shared error state with retry (the fail-loud discipline every dashboard surface uses) — P12-S3x covers exactly one-source-of-several failing, reported inside a successful read's payload; the two mechanisms are never conflated.

G — Raised alert standing (P12-S4; edges S1 ↔ S4, S4 → P5-S3)

  1. 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.

    • Given monitoring holds one or more raised alerts, When /activity renders, Then data-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"), with data-action="drill-in-alert" opening monitoring's P5-S3.
    • Given the band, Then it is never a synthetic event row in the list (the prototype's incident merge is deliberately not adopted — an alert is a standing condition, not an event; CONTEXT.md), and it is not dismissible.
  2. As an operator, I want no band when nothing stands, so that absence stays the truthful all-clear.

    • Given zero raised alerts, Then no band renders — no "0 alerts" copy, no empty band (DDR 0155 §6).
  3. As an operator arriving mid-incident, I want the detail pane already on the story, so that orientation costs zero clicks.

    • Given the band standing and no explicit selection made, Then the detail pane defaults to the alert's raising event (the S4 frame's selected row), with its seam-words, logs and owner door as any selected event (stories 21–23).
  4. As an operator, I want the alert's history to outlive the alert, so that the chronology stays complete after the incident.

    • Given the alert resolves or is acknowledged, Then the band goes on the next read (edge S4 → S1) while the raise, resolve and acknowledge transitions remain as immutable rows in the chronology forever.

H — Derivation: the read-time merge (ADR 0097; maintainer stories)

  1. As a maintainer, I want the feed to be one read-composition, so that chronology never becomes a second owner of anyone's truth.

    • Given the dashboard's request, Then controlapi serves one Activity(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).
  2. As a maintainer, I want each source's contribution to be an additive face on its own seam, so that nothing confirmed moves.

    • Given each owning seam (monitoring, enroll/provisioning, updates, backups, rescue, founding's stand-up record), Then it gains an additive 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.
  3. As a maintainer, I want one event shape on the wire, so that the dashboard renders and computes nothing (ADR 0097).

    • Given any served event, Then it carries: time, source, subject, the owner's own words, the owner's outcome token (with its problem/degradation classification for story 17's filter), its operation-log reference where the event is an operation (ADR 0027), and its drill-in target — and the dashboard renders all of it verbatim, performing no re-derivation, no classification and no severity mapping of its own.
    • Given the wire, Then it is snake_case camelised at the client boundary, the OpenAPI spec is the contract and the generated client is the transport — no hand-rolled fetch (ADR 0037).
  4. As a community, we want the subject rule enforced at derivation, so that the fence is structural.

    • Given every RecentEvents face, 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.
  5. As a maintainer, I want partial answers to be a first-class payload, so that one slow store can't take the surface down.

    • Given a fan-out where a source errors or times out, Then the composition returns the merged events from the sources that answered plus a named per-source failure (source, missing span) inside the successful payload — story 24's band renders it; the read fails whole only when transport itself fails (story 26).
  6. As an operator, I want the surface to keep itself current, so that a feed left open doesn't quietly age.

    • Given /activity mounted, 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)

  1. As an operator, I want the feed complete without the logs sibling, so that #763 never waits on #760.

    • Given #760's scoped-tail face not yet landed, Then a selected event renders exactly P12-S3's detail pane alone — the standalone contract — and design-verify does not require P12-S5 until the gate is met (the frame's own data-field="gate-note", data-status="gated-ddr-0203", records this).
  2. 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.

    • Given #760's scoped-tail face landed, When an event is selected, Then the detail stage additionally renders 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.
    • Given a subject with no readable stream, Then the pane states it (p10's honest state) and the feed's own detail above stays complete.
  3. As an operator, I want the pane to follow my selection, so that walking the chronology walks the evidence.

    • Given P12-S5, When the operator selects another event, Then the embedded face re-scopes to the new subject (edge S5 → S5); the feed's detail re-renders as story 20.

Implementation Decisions

Seams — one new read-composition; every source face additive

  • The highest seam is the whole-surface composition the dashboard already reads through (the wholeOverview/wholeFleet prior art): controlapi gains one Activity(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.
  • Per-owner contribution is an additive 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.
  • The event view type carries time, source, subject, headline, the owner's verbatim words, the owner's outcome token plus its problem classification (the mechanical predicate story 17 filters on), a nullable operation-log reference, and a typed drill-in target. Nullable log ref is load-bearing: it is what makes story 22's "no fabricated log" structural.
  • Partial answers travel in-payload (per-source failure: source + missing span + attempts), so P12-S3x renders from a successful read; only a transport fault reaches the shared async-guard error state. Two failures, two mechanisms, deliberately.
  • The subject rule lives in derivation: no face reads member, sign-in or code-lifecycle records at all. The fence is enforced where events are minted, testable at the seam, and cannot be regressed by a front-end change.
  • Wire snake_case camelised at the client boundary (standards:wire-snake-case #126); OpenAPI is the contract, the generated client the transport (ADR 0037).

Surface

  • Tabless at /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.
  • Client pattern is the house one: injected client + shared async guard + the mount registry's cadence, timer cleared on unmount. Rejected with the prototype: Pinia stores and component-invented polling.
  • Filters: source and window ride the read's parameters; problems-only and free text are mechanical narrowing over owner-supplied fields already in the payload — no dashboard-side classification (ADR 0097). Filter state reflects in the URL.
  • The raised-alert band and the Overview row are queries, not caches: the band reads monitoring's standing-alert store through the face the chrome alert chip already uses; both disappear structurally at zero/veto — no shown-zero.
  • Every P12 frame's data-field / data-action / data-status attributes are the built contract, carried verbatim from the wireframes for design-verify.
  • Visual vocabulary is consumed, not minted: rows and pills are the existing wireframe kit; any LED/grading vocabulary a row ever wants references #759's DDR 0202 primitives. All visuals express as --oc-* tokens (ADR 0122).
  • Copy obeys CONTEXT.md's two new entries: say ops event and activity feed; never audit entry, incident (alerts are standing conditions), notification, event log, history tab, or timeline (P5-S3 keeps that word).
  • Not adopted from the prototype (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:

  1. The dashboard component seam (primary). The activity surface driven against a hand-written fake of the Activity client, asserting on the wireframes' data-field / data-action / data-status contract: 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.
  2. The composition/transport seam. The Activity endpoint over faked owning stores (the whole_surfaces_test.go / wholeOverview prior 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.
  3. The per-source derivation seam. Each RecentEvents face 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

  • The audit log and any person-subject history. Sign-ins, member-lifecycle history and its reasons stay in the ADR 0027 cross-cutting logs, off-screen (DDR 0172); this spec builds no surface, no read and no derivation for them (see Further Notes for the gate that could loosen the facts subset).
  • An event store, feed-side retention, or history beyond the owners' horizons. The feed persists nothing; extending any owner's retention is that owner's own arc.
  • The logs surface and the scoped-tail face's internals — #760's spec builds the face, its states and the target-scoping catalogue; this spec only embeds it (P12-S5), and that slice blocks on #760's.
  • Acting from the feed. No verb of any owner's is mirrored here; the owning surfaces keep their guards.
  • Notifications. Notify is monitoring's (P5-S2); the feed is where notified operators come to read, never a second notifier.
  • An app-side or member-facing feed. The app stays thin (ADR 0031, A5 untouched); the panel is operators-only (DDR 0172).
  • Enrollment-code lifecycle rows — the codes ledger (A4/DF2) is their standing home, attribution intact.
  • The sibling surfaces — telemetry (#759), logs (#760), network (#761), replication matrix (#762), topology (#764). The feed references #759's primitives if a row ever wants them; none is built here.
  • A cross-source severity scale, feed-side classification, or alert-ladder changes. Severity stays monitoring's; every other outcome stays its owner's token.

Further Notes

Vertical slices (named for the fan-in /slice-map)

  1. sources:recent-events — the additive RecentEvents(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.
  2. transport:activity-read — the Activity(window, sources) composition, in-payload partial answers, OpenAPI + generated client. Depends on 1.
  3. shell:activity-surface — the tabless /activity surface: P12-S1, S1x, S2, S3, S3x. Depends on 2.
  4. 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).
  5. shell:overview-activity-line — the DO/DOx one-kv-row entry + the canonical-frame ✎ amendment (ADR 0042). Depends on 2. Gate-1-sensitive (below).
  6. 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-map must 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:

  • D1(a) — Ben rules the shared seventh "Observability" tab (gate 2 reversed; the ADR 0094 amendment text is held in DDR 0206). Nothing about the feed's content, states, seams or derivation changes — groups B–I stand whole. What moves: story 2 relocates (the surface mounts as a section under the Observability tab instead of the routed tabless /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.
  • D1(b) — the Overview row is vetoed alone (gate 1 reversed, tabless posture kept). Story 1 and slice 5 retire; story 2 amends (the DO → S1 entry edge is dropped; the routed /activity surface 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.
  • Gate 3 — the subject rule's strictness (member-lifecycle facts — approved, suspended, removed; facts only, never reasons — currently ruled OFF the feed). The shipped default keeps the crisp fence, and no story here retires under either ruling. If Ben later loosens it, the change is additive: a members RecentEvents face (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 at to-tickets time; nothing existing blocks on the gate.

Design-tier inconsistencies found while speccing (reported, not fixed)

  • Founding rows wear other sources' chips. DDR 0206's taxonomy names Founding as a sixth source, but the filter bar (P12-S1/S2, and the flow's filter edge) offers only five source chips — services / devices / updates / backups / rescue — and P12-S1x dresses the founding rows in SERVICES ("Portal live") and DEVICES chips. Which chip filters founding's rows is undecided on the frames; this spec follows the frames (founding events wear the chip of their nearest owner) and flags the mismatch for the design tier.
  • P12-S5's detail pane drops open-log. S3's pane offers Open log + Download log; S5's offers only download-log. Plausibly deliberate (the embedded scoped tail is the open stream), but the frames don't say so; design-verify should treat S5's reduced button set as the S5 contract, not a drift from S3.

Produced by /to-spec in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #763.

## Parent Program map: [#7 — Wayfinder map: OurCloud v1 program scope (Phase 0)](https://git.matou.nz/Matou/idss/issues/7). Design ticket: [#763 — control-panel observability: fleet-wide ops-events activity feed](https://git.matou.nz/Matou/idss/issues/763) (the arc was filed from the 2026-08-24 `matou-distributed-servers` comparison 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 `accepted` under the ADR 0174 posture — Ben's veto is asynchronous): - **DDR** [`docs/adr/0206-design-the-activity-feed-is-fleet-chronology.md`](https://git.matou.nz/Matou/idss/src/branch/main/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. - **Flow** `docs/ux/flows/p12-activity.mermaid`. - **Wireframes** `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`. Their `data-field` / `data-action` / `data-status` attributes are the stable element-ID contract every acceptance criterion below is written against. - **Vocabulary** `CONTEXT.md` — *Ops event* and *Activity feed* (merged with the arc's fan-in). The feed's copy obeys both entries' Avoid lists. - **Consumed sibling contract** DDR 0203 §"The sibling pairing" (#760) — the **scoped-tail face** and its subject-kind target-scoping contract, which the gated P12-S5 embeds. That face is specced and built by **#760's spec**; this spec only consumes it. 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: 1. **The subject rule is the fence.** A feed event's subject is always a machine, a service, a dataset, or a release — **an event whose subject is a person never renders**, and no row carries operator attribution ("rimu redeployed", never "Ben redeployed rimu"). The rule is enforced at derivation, so the audit fence (DDR 0172 / ADR 0027) holds by construction, not by front-end discipline. 2. **The feed is a query, never a store** (ADR 0097 applied to chronology). `controlapi` gains one read-composition, `Activity(window, sources)`, fanning out to the owning stores; each owning seam gains an additive `RecentEvents(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. 3. **Chronology is not the queue, and an alert is not an event.** Rows are past-tense and immutable — they age, they never leave; NEEDS-ATTENTION empties as the operator acts. A raised alert is a standing condition: it renders as a **pinned band above the chronology** — a live query over monitoring's alert store — never a synthetic event row wearing an OPEN badge. Zero raised → no band. While an alert stands, the detail pane defaults to its raising event so an operator arriving mid-incident lands on the story. 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) 1. 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. - **Given** the Overview tab at rest with at least one event derivable (always true — founding's rows exist), **When** DO renders, **Then** it carries one `kv` row (`data-field="recent-activity"`) below the coverage headline: `ACTIVITY` / the latest event's headline + relative time / a `data-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). - **Given** the amendment lands, **Then** the canonical `shell-do-overview.html` (and DOx) frames gain their `✎` recent-activity note in the same commit, per the ADR 0042 discipline. 2. 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. - **Given** DO, **When** the operator activates `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. 3. As an operator, I want the feed to be honestly read-only, so that I never act on stale context from a chronology. - **Given** any P12 frame, **Then** no act affordance exists anywhere on the surface — no retry-the-run, no restart, no acknowledge; every door out is a drill-in to the owning surface (stories 22–23, 29) or a log (ADR 0027), and the resting frame's hint states the posture in words. 4. As a community, we want the feed operator-only behind the community door, so that fleet chronology is never member-visible. - **Given** the `/activity` route 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) 5. As an operator, I want everything the fleet did in one newest-first list, so that catching up is one surface. - **Given** `/activity` at rest with the read settled, **Then** `data-field="event-list"` renders columns `WHEN`, `SOURCE`, `EVENT`, `SUBJECT`, `OUTCOME`, rows merged newest-first across all sources, each row `data-field="event-row"` with `data-action="select-event"` and its outcome token as `data-status`. - **Given** the taxonomy (DDR 0206, verbatim), **Then** the sources contributing rows are: **monitoring** (alert raised / resolved / acknowledged / escalated; curated service events — crashed, recovered; unexpected silence and return), **devices** (device joined the fleet; deploy started / completed / failed; a service failed its health check; device removed; role changed), **updates** (rollout started with the canary named; applied; rolled back; quarantined), **backups** (run outcome per target — verified / target failed / failed; a dataset going stale; restore started / verified / failed partway; export taken), **rescue** (rescue opened; rung applied / failed; recovered; remote-support engagement opened / ended), and **founding** (community founded; gateway deployed; control plane seeded; portal live). 6. 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. - **Given** any state of any source, **Then** no rendered row's subject is a person: sign-ins, invite/approval history, suspension and removal (above all their reasons, P6-S6), reset links, mailbox claims, komiti changes and supporter-key grants never appear — they stay in the ADR 0027 cross-cutting logs, off-screen (DDR 0172). - **Given** a device approval, **Then** it renders as "mātai joined the fleet" (subject: the device) — never "X approved mātai". - **Given** a remote-support engagement, **Then** its opened/ended events render (subject: the engagement/fleet — outside hands on the fleet belong on the community's record) while the supporter's identity and key mechanics stay in rescue's surface and the audit log. 7. As a community, we want no operator attribution on rows, so that every row stays unambiguously on the ops side of the fence. - **Given** any operation-derived row, **Then** it names the *what*, never the *who* ("rimu redeployed", never "Ben redeployed rimu") — the who lives in each operation's own log (ADR 0027). Enrollment-code lifecycle never appears at all: the codes ledger (A4/DF2) is its standing home and carries attribution deliberately. 8. 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. - **Given** a monitoring-derived row, **Then** it alone may wear severity (monitoring's decided info/warning/critical scale) — e.g. the raised-alert row's pill reads `critical` with `data-status="raised"`. - **Given** any other source's row, **Then** its pill is the owner's own outcome token (`verified`, `applied`, `started`, `rolled back`, `connected`, `founded`, …) rendered verbatim — the feed classifies nothing. 9. As an operator, I want the feed's completeness stated, so that "nothing shown" is never mistaken for "nothing happened". - **Given** the resting list, **Then** `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. 10. As an operator, I want the chronology and the needs-attention queue to stay two different things, so that neither dilutes the other. - **Given** the feed, **Then** rows are past-tense and immutable — they age and never leave; acting elsewhere appends new rows, removes none. - **Given** Overview's NEEDS-ATTENTION, **Then** it is unchanged by this feature, shares no machinery with the feed, and neither surface renders the other. 11. As an operator on a real screen, I want the rows readable at product scale, so that density never wins over legibility. - **Given** the list, **Then** rows render at body scale and WHEN/SOURCE/outcome at micro-label scale, never below the ADR 0122 amendment floor (0.75rem/0.85em) — the wireframes' artboard values are ratios, not sizes. ### C — First run is founding's own events (P12-S1x; edges S1 ↔ S1x) 12. 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. - **Given** a freshly founded community and no operation since, **When** `/activity` renders, **Then** `data-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). 13. As a founding operator, I want one orienting line with those first rows, so that I know what this surface will become. - **Given** first-run, **Then** `data-field="hint-first-run"` renders the orienting callout ("This is your fleet's story so far…") — one callout, not an empty-state illustration. 14. As an operator, I want the story to simply grow, so that first-run needs no ceremony to exit. - **Given** first-run, **When** any later operation lands through its owning seam, **Then** the next read renders it above the founding rows and the first-run status and callout go (edge S1x → S1); nothing marks the transition. ### D — Filtering (P12-S2; edges S1 ↔ S2) 15. As an operator, I want to narrow by source, problems, text and window, so that I can ask a specific question of the chronology. - **Given** the filter bar (`data-field="activity-filters"`), **Then** it offers source chips `filter-source-all` / `-services` / `-devices` / `-updates` / `-backups` / `-rescue`, a `toggle-problems-only` chip, free text (`data-field="activity-search"`) and a window control (`data-field="activity-window"`: today / 7 days / 30 days). - **Given** active filters, **Then** each active chip wears `data-status="active"` with a clear affordance (the `✕`), and the filter state is reflected in the URL (the depicted `?source=backups&problems=1&window=7d` shape) so a filtered view is shareable/reloadable. 16. As an operator, I want the view to restate what it omits, so that I always know what I am not seeing. - **Given** any active filter, **Then** `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 a `data-action="clear-filters"` door. 17. As an operator, I want problems-only to mean the owners' verdicts, so that the feed never grows a classifier. - **Given** problems-only active, **Then** the view keeps exactly the rows whose outcome the *owning seam* classified as failure or degradation (failed runs, stale datasets, raised alerts, rollbacks, quarantines…) — the filter is a mechanical predicate over the owner-supplied classification each event carries; the feed applies no judgement of its own. 18. As an operator, I want no-match stated in place, so that a filtered-to-nothing view is never a bare blank. - **Given** filters that match no event, **Then** the table states it in place with the active filters named ("No matching activity: backups · problems only · last 7 days") and the clear-filters door (`data-field="no-match-copy"`'s contract). 19. As an operator, I want clearing to return the whole story, so that filtering is never sticky beyond my intent. - **Given** a filtered view, **When** the operator activates `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) 20. 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. - **Given** any list state, **When** the operator activates `select-event` on a row, **Then** the surface renders two-pane: the list rail with the selected row marked `data-status="selected"`, and `data-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") and `SUBJECT`. - **Given** a selection from a filtered list, **Then** the behaviour is identical (edge S2 → S3). 21. As an operator, I want WHAT HAPPENED in the owner's words, so that the feed can never drift from the source of truth. - **Given** the detail pane, **Then** `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). 22. As an operator, I want every operation-shaped event to carry its own log, so that the standing rule holds here too. - **Given** a selected event that is an operation (a run, a deploy, a rollout step, a rescue rung…), **Then** the pane offers `data-action="open-log"` and `data-action="download-log"` against that operation's own log (ADR 0027). - **Given** an event that is not operation-shaped (e.g. a device join, an alert transition without an operation), **Then** no log affordance is fabricated for it. 23. As an operator, I want one door per event — the owner's — so that the verbs stay where their guards live. - **Given** the detail pane, **Then** exactly one drill-in (`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) 24. As an operator, I want a failed source named, not silently omitted, so that a thinner feed can never read as "nothing happened". - **Given** the merged read where one owning source fails to answer, **Then** the surface renders `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, with `data-action="retry-source"`. No toast — the band stands until the source answers. - **Given** that state, **Then** `data-field="event-list"` (`data-status="partial"`) keeps every row the answering sources produced, and `data-field="horizon-line"` names the missing source in the SHOWING line ("backups missing, named above") — the feed never claims completeness it doesn't have. 25. As an operator, I want recovery to be automatic, so that a healed source needs no ceremony. - **Given** the partial state, **When** the source answers again (on retry or the next read), **Then** the band clears and its events return to the merge (edge S3x → S1). 26. As an operator, I want a dead control plane handled like everywhere else, so that I learn one failure behaviour. - **Given** the Activity read itself fails at transport, **Then** the surface renders shell's shared error state with retry (the fail-loud discipline every dashboard surface uses) — P12-S3x covers exactly one-source-of-several failing, reported *inside* a successful read's payload; the two mechanisms are never conflated. ### G — Raised alert standing (P12-S4; edges S1 ↔ S4, S4 → P5-S3) 27. 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. - **Given** monitoring holds one or more raised alerts, **When** `/activity` renders, **Then** `data-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"), with `data-action="drill-in-alert"` opening monitoring's P5-S3. - **Given** the band, **Then** it is never a synthetic event row in the list (the prototype's incident merge is deliberately not adopted — an alert is a standing condition, not an event; CONTEXT.md), and it is not dismissible. 28. As an operator, I want no band when nothing stands, so that absence stays the truthful all-clear. - **Given** zero raised alerts, **Then** no band renders — no "0 alerts" copy, no empty band (DDR 0155 §6). 29. As an operator arriving mid-incident, I want the detail pane already on the story, so that orientation costs zero clicks. - **Given** the band standing and no explicit selection made, **Then** the detail pane defaults to the alert's **raising event** (the S4 frame's selected row), with its seam-words, logs and owner door as any selected event (stories 21–23). 30. As an operator, I want the alert's history to outlive the alert, so that the chronology stays complete after the incident. - **Given** the alert resolves or is acknowledged, **Then** the band goes on the next read (edge S4 → S1) while the raise, resolve and acknowledge transitions remain as immutable rows in the chronology forever. ### H — Derivation: the read-time merge (ADR 0097; maintainer stories) 31. As a maintainer, I want the feed to be one read-composition, so that chronology never becomes a second owner of anyone's truth. - **Given** the dashboard's request, **Then** `controlapi` serves one `Activity(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). 32. As a maintainer, I want each source's contribution to be an additive face on its own seam, so that nothing confirmed moves. - **Given** each owning seam (monitoring, enroll/provisioning, updates, backups, rescue, founding's stand-up record), **Then** it gains an additive `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. 33. As a maintainer, I want one event shape on the wire, so that the dashboard renders and computes nothing (ADR 0097). - **Given** any served event, **Then** it carries: time, source, subject, the owner's own words, the owner's outcome token (with its problem/degradation classification for story 17's filter), its operation-log reference where the event is an operation (ADR 0027), and its drill-in target — and the dashboard renders all of it verbatim, performing no re-derivation, no classification and no severity mapping of its own. - **Given** the wire, **Then** it is snake_case camelised at the client boundary, the OpenAPI spec is the contract and the generated client is the transport — no hand-rolled fetch (ADR 0037). 34. As a community, we want the subject rule enforced at derivation, so that the fence is structural. - **Given** every `RecentEvents` face, **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. 35. As a maintainer, I want partial answers to be a first-class payload, so that one slow store can't take the surface down. - **Given** a fan-out where a source errors or times out, **Then** the composition returns the merged events from the sources that answered plus a named per-source failure (source, missing span) *inside* the successful payload — story 24's band renders it; the read fails whole only when transport itself fails (story 26). 36. As an operator, I want the surface to keep itself current, so that a feed left open doesn't quietly age. - **Given** `/activity` mounted, **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**) 37. As an operator, I want the feed complete without the logs sibling, so that #763 never waits on #760. - **Given** #760's scoped-tail face not yet landed, **Then** a selected event renders exactly P12-S3's detail pane alone — the standalone contract — and `design-verify` does not require P12-S5 until the gate is met (the frame's own `data-field="gate-note"`, `data-status="gated-ddr-0203"`, records this). 38. 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. - **Given** #760's scoped-tail face landed, **When** an event is selected, **Then** the detail stage additionally renders `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. - **Given** a subject with no readable stream, **Then** the pane states it (p10's honest state) and the feed's own detail above stays complete. 39. As an operator, I want the pane to follow my selection, so that walking the chronology walks the evidence. - **Given** P12-S5, **When** the operator selects another event, **Then** the embedded face re-scopes to the new subject (edge S5 → S5); the feed's detail re-renders as story 20. ## Implementation Decisions ### Seams — one new read-composition; every source face additive - **The highest seam is the whole-surface composition the dashboard already reads through** (the `wholeOverview`/`wholeFleet` prior art): `controlapi` gains **one** `Activity(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. - **Per-owner contribution is an additive `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. - **The event view type** carries time, source, subject, headline, the owner's verbatim words, the owner's outcome token plus its problem classification (the mechanical predicate story 17 filters on), a nullable operation-log reference, and a typed drill-in target. Nullable log ref is load-bearing: it is what makes story 22's "no fabricated log" structural. - **Partial answers travel in-payload** (per-source failure: source + missing span + attempts), so P12-S3x renders from a *successful* read; only a transport fault reaches the shared async-guard error state. Two failures, two mechanisms, deliberately. - **The subject rule lives in derivation**: no face reads member, sign-in or code-lifecycle records at all. The fence is enforced where events are minted, testable at the seam, and cannot be regressed by a front-end change. - Wire snake_case camelised at the client boundary (standards:wire-snake-case #126); OpenAPI is the contract, the generated client the transport (ADR 0037). ### Surface - **Tabless at `/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. - **Client pattern is the house one**: injected client + shared async guard + the mount registry's cadence, timer cleared on unmount. Rejected with the prototype: Pinia stores and component-invented polling. - **Filters**: source and window ride the read's parameters; problems-only and free text are mechanical narrowing over owner-supplied fields already in the payload — no dashboard-side classification (ADR 0097). Filter state reflects in the URL. - **The raised-alert band and the Overview row are queries, not caches**: the band reads monitoring's standing-alert store through the face the chrome alert chip already uses; both disappear structurally at zero/veto — no shown-zero. - **Every P12 frame's `data-field` / `data-action` / `data-status` attributes are the built contract**, carried verbatim from the wireframes for `design-verify`. - **Visual vocabulary is consumed, not minted**: rows and pills are the existing wireframe kit; any LED/grading vocabulary a row ever wants references #759's DDR 0202 primitives. All visuals express as `--oc-*` tokens (ADR 0122). - **Copy obeys CONTEXT.md's two new entries**: say *ops event* and *activity feed*; never *audit entry*, *incident* (alerts are standing conditions), *notification*, *event log*, *history tab*, or *timeline* (P5-S3 keeps that word). - **Not adopted from the prototype** (`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: 1. **The dashboard component seam (primary).** The activity surface driven against a hand-written fake of the Activity client, asserting on the wireframes' `data-field` / `data-action` / `data-status` contract: 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. 2. **The composition/transport seam.** The Activity endpoint over faked owning stores (the `whole_surfaces_test.go` / `wholeOverview` prior 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. 3. **The per-source derivation seam.** Each `RecentEvents` face 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 - **The audit log and any person-subject history.** Sign-ins, member-lifecycle history and its reasons stay in the ADR 0027 cross-cutting logs, off-screen (DDR 0172); this spec builds no surface, no read and no derivation for them (see Further Notes for the gate that could loosen the *facts* subset). - **An event store, feed-side retention, or history beyond the owners' horizons.** The feed persists nothing; extending any owner's retention is that owner's own arc. - **The logs surface and the scoped-tail face's internals** — #760's spec builds the face, its states and the target-scoping catalogue; this spec only embeds it (P12-S5), and that slice blocks on #760's. - **Acting from the feed.** No verb of any owner's is mirrored here; the owning surfaces keep their guards. - **Notifications.** Notify is monitoring's (P5-S2); the feed is where notified operators come to read, never a second notifier. - **An app-side or member-facing feed.** The app stays thin (ADR 0031, A5 untouched); the panel is operators-only (DDR 0172). - **Enrollment-code lifecycle rows** — the codes ledger (A4/DF2) is their standing home, attribution intact. - **The sibling surfaces** — telemetry (#759), logs (#760), network (#761), replication matrix (#762), topology (#764). The feed references #759's primitives if a row ever wants them; none is built here. - **A cross-source severity scale, feed-side classification, or alert-ladder changes.** Severity stays monitoring's; every other outcome stays its owner's token. ## Further Notes ### Vertical slices (named for the fan-in `/slice-map`) 1. **`sources:recent-events`** — the additive `RecentEvents(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. 2. **`transport:activity-read`** — the `Activity(window, sources)` composition, in-payload partial answers, OpenAPI + generated client. Depends on 1. 3. **`shell:activity-surface`** — the tabless `/activity` surface: P12-S1, S1x, S2, S3, S3x. Depends on 2. 4. **`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). 5. **`shell:overview-activity-line`** — the DO/DOx one-`kv`-row entry + the canonical-frame `✎` amendment (ADR 0042). Depends on 2. **Gate-1-sensitive** (below). 6. **`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-map` must 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: - **D1(a) — Ben rules the shared seventh "Observability" tab** (gate 2 reversed; the ADR 0094 amendment text is held in DDR 0206). Nothing about the feed's content, states, seams or derivation changes — groups B–I stand whole. What moves: **story 2 relocates** (the surface mounts as a section under the Observability tab instead of the routed tabless `/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. - **D1(b) — the Overview row is vetoed alone** (gate 1 reversed, tabless posture kept). **Story 1 and slice 5 retire**; story 2 amends (the DO → S1 entry edge is dropped; the routed `/activity` surface 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. - **Gate 3 — the subject rule's strictness** (member-lifecycle *facts* — approved, suspended, removed; facts only, never reasons — currently ruled OFF the feed). The shipped default keeps the crisp fence, and **no story here retires under either ruling**. If Ben later loosens it, the change is **additive**: a members `RecentEvents` face (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 at `to-tickets` time; nothing existing blocks on the gate. ### Design-tier inconsistencies found while speccing (reported, not fixed) - **Founding rows wear other sources' chips.** DDR 0206's taxonomy names **Founding** as a sixth source, but the filter bar (P12-S1/S2, and the flow's filter edge) offers only five source chips — services / devices / updates / backups / rescue — and P12-S1x dresses the founding rows in SERVICES ("Portal live") and DEVICES chips. Which chip filters founding's rows is undecided on the frames; this spec follows the frames (founding events wear the chip of their nearest owner) and flags the mismatch for the design tier. - **P12-S5's detail pane drops `open-log`.** S3's pane offers Open log + Download log; S5's offers only `download-log`. Plausibly deliberate (the embedded scoped tail *is* the open stream), but the frames don't say so; `design-verify` should treat S5's reduced button set as the S5 contract, not a drift from S3. --- *Produced by `/to-spec` in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #763.*
Author
Owner

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-tickets have already consumed. This duplicate is closed in #796's favour. Any materially unique findings from this draft are being transferred to #796 as comments.

**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-tickets` have already consumed. This duplicate is closed in #796's favour. Any materially unique findings from this draft are being transferred to #796 as comments.
ben closed this issue 2026-08-25 16:20:47 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#839
No description provided.