control-panel observability child spec: backup replication matrix (P7-S7) — standing dataset → target drill-down #838

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

Parent

Program map: #7 — Wayfinder map: OurCloud v1 program scope (Phase 0).
Design ticket: #762 — control-panel observability: backup replication matrix (sender → destination drill-down) (one of the six #759–#764 siblings filed from the 2026-08-24 matou-distributed-servers comparison; the map's v1 scope is what it lands inside).

Design tier this spec is written against (all present, all accepted):

  • DDR docs/adr/0205-design-replication-matrix-standing-dataset-target-drilldown.md — the ruling DDR: the matrix is a standing dataset → target drill-down (P7-S7), a projection of coverage and run/verification truth, never a second source.
  • Flow docs/ux/flows/p7-backups.mermaid, amended by the arc: node P7-S7 plus edges S1 → S7 (opens replication), S7 → S3 (a pair drills into its runs), S7 → S2x (a gone target routes to replace).
  • Wireframes docs/ux/wireframes/p7-backups/ — p7-s7-replication-matrix.html (new — depicts current, stale, not-backed-up-yet and unreachable-pair states in one matrix) and p7-s1-backups-overview.html (amended — the open-replication entry beside Restore/Export). Their data-field / data-action / data-status attributes are the stable element-ID contract every acceptance criterion below is written against.
  • Vocabulary CONTEXT.md — Replication matrix, Current (pair), Size on target / Snapshots held (never repo size — that is restic vocabulary).
  • Standing backups design law DDR 0083 (a backup that didn't run is a failure, not an absence; per-target outcomes; a gone target leaves coverage at once) and DDR 0085 (coverage exists before the operator does anything — drafted targets, never a blank row).

Siblings in the same observability arc (each specs separately, then all fan in at one /slice-map): #759 device telemetry (specced as #769 — mints the shared kit primitives and grading constants), #760 logs, #761 network, #763 activity feed, #764 topology map (deferred). This is the smallest sibling: an enrichment of the already-built Backups feature (P7), not a new surface.

Problem Statement

The Backups tab answers is each dataset safe? but not where, exactly, is it safe? P7-S1's coverage map gives one row per dataset — verified copies, offsite, last good — and P7-S3 gives a per-run log. Between them the sender → target fan-out is invisible: an operator cannot see which node sends which dataset to which targets, how current each individual pair is, how much of a dataset sits on each target, or how many snapshots each target holds. When the overview says "1 of 2" there is no screen that names which copy is behind and why — the operator reconstructs it from run rows.

The absence also hides the quiet failure modes the backups design already names: a pair whose copy is ageing on a reachable target, an unreachable target still silently holding last week's data, a drafted target that was never confirmed. Each is a per-pair fact with no per-pair surface.

Solution

One new screen-state, P7-S7 — the replication matrix — drilled into from the overview, and it is a projection. A Replication… button beside Restore/Export on P7-S1 opens the standing dataset → target drill-down in place on the Backups tab. One parent row per dataset (the sender node named on the row — "from the gateway", "from rimu"), expanding (multi-open) into a nested per-target table: per-pair reachability, last verified snapshot, size on target, snapshots held, and doors to the pair's run log (→ P7-S3) and to retrying a failed copy (the S3 inline-retry precedent).

The matrix mints no second truth: ADR 0079's backup orchestrator seam already carries the per-target facts (per-target outcomes, verification, the coverage counting rules), and S7 fans them out per (dataset, target) pair. S1 aggregates what S7 itemises — a dataset's last good is the max over its pairs' last verified snapshots, its verified copies count is its count of current pairs — and S3 explains it, each pair linking to its run log rather than restating run rows.

Every honesty rule carries over whole: a run that didn't happen is stale — a failure, not an absence, worn at the loudest available weight (DDR 0083 §1); a failed copy is named and retryable (§2); an unreachable target's last-known figures render labelled last known and are never counted as current — never a stale-green cell (§3); a gone target's copies leave counted coverage at once and its row routes to the policy's gone-target state (P7-S2x); a not-backed-up-yet dataset shows its drafted targets (DDR 0085 — the matrix exists before the operator acts), never a blank row. The kit compiles no red: wireframe {ok, warn, bad} grades to {healthy, warning, warning} exactly as BackupsOverviewScreen already does, with bad distinguished by weight and copy, never an invented red. The prototype's third sender grade down does not exist here: a sender that stops running its schedule manifests as stale, and the device's own down-ness stays monitoring's classification (ADR 0070/0081) — alerted through P5, linked, never duplicated as a second device-health verdict.

User Stories

A — Entry and placement (edges P7-S1 → S7, S7 → S1)

  1. As an operator, I want a replication door on the Backups overview, so that the fan-out behind the coverage map is one click away.

    • Given P7-S1 (or the first-run P7-S1x once datasets exist), When it renders, Then a Replication… control (data-action="open-replication") is offered beside Restore… and Export a dataset…, and activating it opens P7-S7 (edge S1 → S7).
    • Given the Backups tab, Then S7 mounts in place over the tab exactly as the policy/runs/restore drill-ins do — no new tab (ADR 0094's six are closed), no route of its own, no modal — with a back control returning to the overview, which re-reads so the coverage map says what the seam now says.
  2. As an operator, I want the matrix to say what it is, so that I never mistake it for a second source of truth.

    • Given P7-S7, Then it renders the marker line naming the screen DATASET → TARGET and stating PROJECTION — RUNS & VERIFICATION ARE THE SOURCE, and the screen offers no verb that changes policy or coverage — its only acts are the pair-level doors (runs, retry, confirm-policy, replace) that route to their owning screens or act through the seam's existing verbs.

B — Parent rows: dataset-centric, the sender named (DDR 0205 §Organization)

  1. As an operator, I want one row per dataset with its sender named, so that "which node sends what where" reads off the same axis the coverage map already uses.

    • Given P7-S7 with the projection settled, Then the matrix table (data-field="replication-matrix") carries the columns DATASET, REPLICATION, LAST RUN, TARGETS CURRENT, ON TARGETS plus the chevron column, and renders one parent row per dataset (data-field="matrix-row-<id>") with the dataset name and its sender node as the row's hint ("from the gateway", "from rimu").
    • Given the datasets, Then rows come from the port-declared dataset contracts via the seam — every dataset the coverage map shows appears here, Identity from founding on; the operator creates nothing.
  2. As an operator, I want rows to expand into their targets, several at once, so that I can compare two datasets' fan-outs side by side.

    • Given a collapsed parent row, When the operator activates its chevron (data-action="toggle-<id>"), Then the nested per-target table (data-field="targets-<id>") renders beneath it and the chevron flips ▸ → ▾; activating again collapses it.
    • Given one row already expanded, When another is expanded, Then the first stays open (multi-open, adopted from the prototype) — expansion is per-row render state, nothing re-reads.
  3. As an operator, I want each dataset's replication summarised on the parent row, so that a healthy fan-out is one glance.

    • Given a dataset all of whose pairs are current, Then its REPLICATION pill reads ✓ replicating (data-status="replicating", wireframe tone ok → kit healthy), LAST RUN carries the run's relative moment, and TARGETS CURRENT reads n of n.
    • Given a dataset with some pairs behind, Then the pill names it — 1 of 2 current (data-status="target-behind", tone warn → warning) — and TARGETS CURRENT carries the same n-of-total count; a pair is current exactly when its latest scheduled snapshot verified on that target (CONTEXT.md), as the seam rules it — the screen counts nothing.
  4. As an operator, I want the summed size across targets on the parent row, so that I can see what a dataset's replication footprint is. (gate 2 — see Further Notes)

    • Given a dataset with counted copies, Then the ON TARGETS cell carries the summed size across its targets' copies — labelled ON TARGETS because it is the sum of copies, never the dataset's live size.
    • Given a not-backed-up-yet dataset, Then ON TARGETS renders —, never 0 (absence is not zero).

C — Pair rows: the nested per-target table (DDR 0205 §Fields)

  1. As an operator, I want each pair's facts in one row, so that "how safe is this copy" needs no reconstruction from run logs.

    • Given an expanded dataset, Then its nested table carries the columns TARGET, REACHABILITY, LAST VERIFIED SNAPSHOT, SIZE ON TARGET, SNAPSHOTS HELD plus an actions column, and renders one row per (dataset, target) pair (data-field="pair-<dataset>-<target>") — the target a fleet node or the offsite, named in the operator's terms.
    • Given a current pair, Then REACHABILITY reads ✓ reachable (data-status="reachable"), LAST VERIFIED SNAPSHOT carries the verified moment (✓ last night 02:00), and SIZE ON TARGET / SNAPSHOTS HELD carry the seam's per-pair figures.
  2. As an operator, I want each pair to link to its run history, so that the matrix explains itself through the run log rather than restating it.

    • Given any pair row with run history, Then a runs… door is offered emitting the existing open-runs-<datasetId> intent, landing on that dataset's P7-S3 runs & verification screen (edge S7 → S3) with back returning to the matrix.
    • Given the runs screen reached this way, Then it is the same composed S3 the policy path lands on — no matrix-special run view exists.
  3. As an operator, I want a failed copy retryable from the matrix, so that closing a gap doesn't mean leaving the screen that named it.

    • Given a pair whose copy failed this run, Then its row offers retry this copy (data-action="retry-pair-<dataset>-<target>"), acting through the seam's existing per-target retry verb (the S3 inline-retry precedent — the same TargetRetryClient face, no new verb).
    • When the retry lands, Then the matrix re-reads the projection and renders what the seam now says — a rebuilt copy shows current, a still-failed one stays named; the screen decides no outcome itself.

D — The honest states (DDR 0083 / 0085 carried whole)

  1. As an operator, I want a dataset whose run didn't happen to be loud, so that the most dangerous backup failure — the one that makes no noise — cannot hide in a matrix of greens.

    • Given a dataset stale under DDR 0083 §1 (its scheduled run has not completed by the time the next was due), Then its REPLICATION pill wears the bad weight (data-status="stale") with the failure named in copy — "stale — due 02:00, no run completed" — and LAST RUN states the honest relative age ("2 nights ago"). (gate 3 on the pill weight — see Further Notes)
    • Given its pairs on reachable targets, Then each renders ageing (data-status="ageing", warn) with "no run since …" named — reachability and recency stated as two separate facts, and no pair renders current while the run didn't happen (no stale-green).
  2. As an operator, I want an unreachable target's record kept but never trusted, so that old copies cannot impersonate current ones.

    • Given a pair whose copy failed because the target is unreachable (DDR 0083 §2), Then REACHABILITY renders ✕ unreachable (data-status="unreachable", bad weight, warning tone in product), LAST VERIFIED SNAPSHOT states the last-known moment with "not counted while unreachable", and SIZE ON TARGET / SNAPSHOTS HELD render their figures explicitly labelled last known — never as current figures.
    • Given that pair, Then it is excluded from the parent's TARGETS CURRENT count and the parent grades accordingly (1 of 2 current), and the row offers both retry this copy and runs….
  3. As an operator, I want a gone target routed to its fix, so that the matrix hands me to the screen that owns replacement.

    • Given a pair whose target is known gone (a removed node, a dead offsite — DDR 0083 §3), Then its copies are out of every counted figure at once (TARGETS CURRENT, ON TARGETS, the parent grade), the row names the target gone, and its action routes to the policy's gone-target state via the existing open-gone-target-<datasetId> intent (edge S7 → S2x) — the matrix offers no replace verb of its own.
  4. As an operator, I want a not-yet-backed-up dataset present with its drafted targets, so that the matrix exists before I act (DDR 0085) and shows me what confirming would create.

    • Given a dataset with no confirmed policy, Then its parent row renders not backed up yet (data-status="not-backed-up-yet", warn) with — in LAST RUN and ON TARGETS, and expands into its drafted targets — each marked drafted with its recommendation reason ("drafted — zone spread", "drafted — offered"), no snapshots yet (data-status="no-snapshots-yet", muted) in LAST VERIFIED SNAPSHOT, and 0 snapshots held.
    • Given a drafted offsite not yet configured, Then its REACHABILITY renders not configured (data-status="not-configured", muted) — a stated fact, not a fault.
    • Given a drafted pair, Then a confirm policy… door (data-action="confirm-policy-<dataset>") emits the existing open-policy-<datasetId> intent, landing on P7-S2 — confirming stays the policy screen's act.
  5. As an operator, I want the matrix to name what needs attention, so that the screen tells me rather than waiting to be asked.

    • Given any dataset stale or any pair unreachable/gone, Then a warning callout (data-field="matrix-attention") beneath the matrix names each condition in plain words — the dataset, the target, what happened — and states that monitoring alerted (P5-S2); the callout links, it does not re-notify.
    • Given nothing needing attention, Then no callout renders.

E — One truth, one tone (DDR 0205 §Projection / §No-red)

  1. As a maintainer, I want the matrix and the overview provably consistent, so that two Backups screens can never disagree about a dataset's safety.

    • Given the same seam answer, Then a dataset's last good on P7-S1 equals the max over its S7 pairs' last verified snapshots, its verified copies count equals its count of current pairs, and a stale dataset is stale on both — because both are projections the orchestrator computes from one set of facts (ADR 0079); neither screen derives the other's numbers.
  2. As a maintainer, I want the no-red rule and the no-down rule encoded, so that the matrix speaks the tab's existing language.

    • Given any pill on S7, Then wireframe grades map {ok, warn, bad} → {healthy, warning, warning} (the BackupsOverviewScreen precedent): bad is told apart by weight and named copy, and no red/destructive token is emitted anywhere in the rendered CSS — the destructive palette stays reserved for destructive confirms (ADR 0060 family).
    • Given a sender node that is itself down, Then the matrix renders no down grade and no device-health verdict of its own — the dataset manifests as stale (a failure, not an absence) and device down-ness stays monitoring's classification (ADR 0070/0081), alerted through P5.
  3. As an operator, I want a failed matrix read to be an honest state, so that failure is never a blank pane.

    • Given the replication read faults at transport, Then the surface renders the shared error state with retry behind the existing async guard, exactly as the overview read already does (the #304 fail-loud precedent) — never a blank drill-in.
    • Given the retry succeeds, Then the matrix renders the returned projection.
  4. As an operator, I want the matrix current when I return to it, so that acting elsewhere shows up here.

    • Given S7 open, When the operator goes to a pair's runs (S7 → S3) or a gone target's replace (S7 → S2x) and comes back, Then the matrix re-reads the projection on return — a retried copy, a confirmed policy or a replaced target is simply the seam's next answer.

Implementation Decisions

Seam — the ADR 0079 backup orchestrator seam grows one read; no new seam

  • One new projection on the existing seam, nothing else. The backup orchestrator (ADR 0079 — the single test seam) already owns per-target outcomes, verification promotion, the coverage counting rules, target inventories and drafted policies. It gains one read: the replication projection — the standing per-(dataset, target) fan-out. The control-plane handler stays a thin projection over the orchestrator, re-deriving nothing, mapping faults to the shared Problem body, exactly as the existing Backups routes do. Rejected: any second store or collector of per-pair facts — the matrix is a projection, and a projection with its own source is a second truth.
  • Shape of the projection (view types, not files). A replication view carrying one entry per dataset: dataset id/name, sender node name, the dataset-level grade as a named state (replicating / target-behind / stale / not-backed-up-yet), the last-run relative label, targets-current n and total, the summed on-targets size label — and its pair rows: target field and name, drafted flag with reason, the pair-level state as a named state (reachable / unreachable / ageing / no-snapshots-yet / not-configured / gone), the last-verified-snapshot label, size-on-target and snapshots-held labels each with a last-known marking where the target is unreachable, and whether the pair is retryable. The seam words every label and decides every state; the screen renders verbatim and computes nothing (ADR 0097) — this is what makes stories 10–13 checkable rather than front-end discipline.
  • The dashboard face follows the house pattern. One new client face on the backups library (a replication read), implemented by the same live client class that already satisfies the seven existing P7 faces, over the generated OpenAPI client (ADR 0037) — wire snake_case, camelised at the client boundary (standards:wire-snake-case #126), no hand-rolled fetch. The retry verb is not new: pair retry rides the existing per-target TargetRetryClient face, exactly as S3's inline retry does.
  • Routing reuses the existing intents. runs… emits open-runs-<datasetId>, confirm policy… emits open-policy-<datasetId>, a gone pair emits open-gone-target-<datasetId> — all three already parsed and composed by the Backups surface. S7 mints one intent of its own: open-replication (S1 → S7), handled inside the surface like open-restore/open-export.

Surface

  • P7-S7 is one new screen component mounted inside the Backups surface, in the existing drill-in ladder (policy, runs, restore, export, gone-target…), with the same back-closes-and-re-reads behaviour. When the replication client is not composed, the open-replication intent only emits out — the existing progressive-composition pattern.
  • Expansion is render state. Multi-open chevrons are per-row component state; expanding reads nothing and collapsing forgets nothing — the projection arrives whole.
  • Every S7 data-field / data-action / data-status token is the built contract, carried from p7-s7-replication-matrix.html so design-verify can check the shipped UI — with the two wireframe deviations ruled below (Further Notes: found inconsistencies): pair runs… actions emit the house open-runs-<datasetId> intent, and the gone-pair row's tokens are spec-defined (data-status="gone") because the frame depicts no gone pair.
  • The nested table renders at product type scale (ADR 0122 amendment — micro-labels never below 0.75rem/0.85em); the wireframe's nested sizes are artboard-miniature values. All visuals express as --oc-* tokens; the tab keeps the pill vocabulary — DDR 0202's LED-dot primitive is deliberately not used here (one health glyph per tab).
  • The surface is operator-only behind the community door (DDR 0172), inherited whole from the tab.

Testing Decisions

A good test states externally-observable behaviour at a seam and never reaches into implementation detail. Two seams, both pre-existing — this spec adds no new seam class:

  1. The dashboard component seam (the primary one). The new S7 screen and the grown Backups surface driven against the hand-written fake of the backups seam, asserting on the wireframe's data-field / data-action / data-status contract: the parent columns and dataset states, multi-open expansion, every pair state (current, ageing, unreachable-with-last-known-labelled, gone-routes-to-S2x, drafted, not-configured), the n-of-total consistency between pill and cell, retry re-reads and renders the seam's next answer, runs… lands on the composed S3 and back re-reads, the attention callout's presence and absence, the S1 entry button, the no-red mapping, and the failed-read error state. Prior art: backupsOverview.test.ts, backupRuns.test.ts, backupPerTargetHonesty.test.ts, backupsSurfaceGuard.test.ts; the fake grows from the existing backups fake so its default fleet stays the wireframes' fleet.
  2. The orchestrator seam. The replication projection's tests in the backup package: a dataset with all pairs verified projects replicating with the right n-of-total and summed size; a missed cycle projects stale with reachable pairs ageing and none current; an unreachable target's pair carries last-known figures marked as such, excluded from the current count; a gone target's pair projects gone with its figures out of every count at once; an unconfirmed dataset projects its drafted targets with reasons, never an empty pair list; and the S1 coverage projection and the S7 replication projection computed from the same facts agree (last good = max over pairs, verified copies = current-pair count — story 15 as an executable property). Prior art: coverage_test.go, pertarget_test.go, rebuild_test.go.
  3. The transport seam. The Backups integration coverage grown for the one new route: the replication read returns the projection with named states, snake_case wire camelises through the generated client, absence serialises as null (never 0), and a faulted read maps to the shared Problem body. Prior art: backupsLive.test.ts and the existing backups control-plane integration tests.

Cross-cutting: the theming-contract check (every new visual is an --oc-* token, ADR 0122) and a rendered-CSS assertion that no red/destructive token is emitted by any matrix grade ride the existing harnesses.

Out of Scope

  • Any change to what S1 and S3 already say. The overview's columns, counting rules and gap banner, and the runs screen's rows are untouched — S1 gains only the Replication… button.
  • A host-centric matrix or any second organising axis. Parents are datasets (DDR 0205); "group by sender" is not offered.
  • Device health on this screen. No down grade, no device-health verdict — down-ness stays monitoring's (ADR 0070/0081), linked never duplicated. The sibling network surface (#761) owns reachability observability between devices.
  • Per-pair history, trends or a time axis. The matrix is a standing snapshot; history stays S3's. No series is stored.
  • New verbs. No replicate-now, no per-pair policy editing, no target add/remove here — retry rides the existing per-target retry, replace stays S2x's, confirm stays S2's.
  • New alert behaviour. Stale and unreachable already publish faults (ADR 0081); the callout links to what monitoring said, it raises nothing.
  • The observability kit primitives. Minted by #769 (ui-kit:telemetry-primitives); this surface uses the tab's existing pill vocabulary and consumes nothing from that slice — deliberately no OcStatusDot here (one health glyph per tab, DDR 0205).
  • The other siblings' surfaces (#760 logs, #761 network, #763 activity feed, #764 topology). None is built here.
  • A member-facing tier. Operators-only behind the community door (DDR 0172), inherited.

Further Notes

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

  1. backup:replication-projection — the orchestrator's replication read: per-(dataset, target) states, labels, counts and the S1-consistency property. Depends on nothing new.
  2. transport:backups-replication — the route on the existing seam: OpenAPI, handler, generated client, the live-client face. Depends on 1.
  3. shell:replication-matrix — the P7-S7 screen, the surface wiring (open-replication, back-re-reads, retry, the three reused routing intents) and S1's entry button. Depends on 2.

Cross-arc note for the fan-in: no dependency on #769's kit slice — this sibling deliberately consumes the tab's existing pill vocabulary, so it can land before or after the rest of the arc. The only cross-feature edges are the ones the flow already draws (S7 → S3, S7 → S2x, monitoring's P5 linkage), all built.

The DDR's three open gates (veto-open, not blocking — ADR 0174)

DDR 0205 is accepted with three decisions held open for Ben; each has a proposed default this spec is written against (the #769 ruling-1 precedent — the spec proceeds on the DDR defaults, the veto is asynchronous), and none is dependent on any other:

  • G1 — the entry affordance (default: the Replication… outline button beside Restore/Export, shipped in the amended S1 frame; alternative: dataset rows click through to S7). A veto swaps story 1's affordance for row-level entry — but S1's rows already open their policy, so the row-click alternative would also reassign an existing affordance; the button is the smaller contract. Everything from story 2 on works identically.
  • G2 — the ON TARGETS summed column (default: keep it, labelled ON TARGETS). A veto retires story 6 and drops the column; per-pair SIZE ON TARGET (story 7) is untouched.
  • G3 — stale wears the bad pill weight (default: yes — S1's own stale precedent, both grading to warning in product). A veto demotes the pill weight in story 10's first Then clause to warn; the copy, the ageing pairs and the no-stale-green rule stand regardless.

No gate changes the seam, a state, or a count — which is why all three slices can proceed without waiting.

Found inconsistencies, ruled here (report carried from the design read)

  • The wireframe's pair-level runs… action ids collide with the built intent grammar. The frame writes open-runs-identity on one pair but open-runs-identity-offsite / open-runs-git-totara on others; the built surface parses open-runs-<rest> as a dataset id, so a verbatim open-runs-git-totara would route to a dataset named "git-totara". Ruled: S3 is per-dataset, so every pair's runs… door emits open-runs-<datasetId>; per-pair element uniqueness lives in data-field="pair-<dataset>-<target>". The frame's suffixed variants are depiction uniqueness, not contract.
  • The gone-pair state is ruled (DDR table + flow edge S7 → S2x) but not depicted — the frame shows current, stale, not-backed-up-yet and unreachable only. Ruled: the gone pair carries data-status="gone" at the bad weight with its route emitting the existing open-gone-target-<datasetId> intent, following the frame's conventions; the frame owes a ✎ gone-pair row in the commit that implements slice 3 (ADR 0042 discipline).
  • The drafted pair's confirm policy… door is in the frame but absent from DDR 0205's action list (which names only runs/retry). Kept: it is DDR 0085's posture (the drafted state leads to confirming) and routes through the existing open-policy-<datasetId> intent — no new verb.

Implementation-time notes

  • The wireframe URL bar (admin.example.nz/backups/replication) is the P7 frames' depiction convention (S3's shows /backups/photos); the built tab has no sub-routes — S7 mounts in place and the URL stays the tab's (story 1).
  • CONTEXT.md rules the copy: replication matrix (never backup matrix or sender/destination matrix), current for a pair (never up to date or in sync), size on target / snapshots held (never repo size), backup target (never destination). Last known is a label on figures, never an omission of them.
  • The prototype (matou-distributed-servers BackupMatrix.vue) is a reference for the expandable-matrix mechanics only; nothing visual transfers (ADR 0122), and its env-derived dest_* topology, host-centric parents, LED dots and up/stale/down triad are all explicitly rejected by DDR 0205.

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

## Parent Program map: [#7 — Wayfinder map: OurCloud v1 program scope (Phase 0)](https://git.matou.nz/Matou/idss/issues/7). Design ticket: [#762 — control-panel observability: backup replication matrix (sender → destination drill-down)](https://git.matou.nz/Matou/idss/issues/762) (one of the six #759–#764 siblings filed from the 2026-08-24 `matou-distributed-servers` comparison; the map's v1 scope is what it lands inside). Design tier this spec is written against (all present, all `accepted`): - **DDR** [`docs/adr/0205-design-replication-matrix-standing-dataset-target-drilldown.md`](https://git.matou.nz/Matou/idss/src/branch/main/docs/adr/0205-design-replication-matrix-standing-dataset-target-drilldown.md) — the ruling DDR: the matrix is a standing dataset → target drill-down (P7-S7), a **projection** of coverage and run/verification truth, never a second source. - **Flow** `docs/ux/flows/p7-backups.mermaid`, amended by the arc: node P7-S7 plus edges S1 → S7 (opens replication), S7 → S3 (a pair drills into its runs), S7 → S2x (a gone target routes to replace). - **Wireframes** `docs/ux/wireframes/p7-backups/` — **`p7-s7-replication-matrix.html`** (new — depicts current, stale, not-backed-up-yet and unreachable-pair states in one matrix) and **`p7-s1-backups-overview.html`** (amended — the `open-replication` entry beside Restore/Export). Their `data-field` / `data-action` / `data-status` attributes are the stable element-ID contract every acceptance criterion below is written against. - **Vocabulary** `CONTEXT.md` — *Replication matrix*, *Current (pair)*, *Size on target* / *Snapshots held* (never *repo size* — that is restic vocabulary). - **Standing backups design law** DDR 0083 (a backup that didn't run is a failure, not an absence; per-target outcomes; a gone target leaves coverage at once) and DDR 0085 (coverage exists before the operator does anything — drafted targets, never a blank row). Siblings in the same observability arc (each specs separately, then all fan in at one `/slice-map`): #759 device telemetry (specced as #769 — mints the shared kit primitives and grading constants), #760 logs, #761 network, #763 activity feed, #764 topology map (deferred). This is the **smallest sibling**: an enrichment of the already-built Backups feature (P7), not a new surface. ## Problem Statement The Backups tab answers *is each dataset safe?* but not *where, exactly, is it safe?* P7-S1's coverage map gives one row per dataset — verified copies, offsite, last good — and P7-S3 gives a per-run log. Between them the sender → target **fan-out is invisible**: an operator cannot see which node sends which dataset to which targets, how current each individual pair is, how much of a dataset sits on each target, or how many snapshots each target holds. When the overview says "1 of 2" there is no screen that names *which* copy is behind and *why* — the operator reconstructs it from run rows. The absence also hides the quiet failure modes the backups design already names: a pair whose copy is ageing on a reachable target, an unreachable target still silently holding last week's data, a drafted target that was never confirmed. Each is a per-pair fact with no per-pair surface. ## Solution **One new screen-state, P7-S7 — the replication matrix — drilled into from the overview, and it is a projection.** A `Replication…` button beside Restore/Export on P7-S1 opens the standing dataset → target drill-down in place on the Backups tab. One parent row per **dataset** (the sender node named on the row — "from the gateway", "from rimu"), expanding (multi-open) into a nested per-target table: per-pair reachability, last verified snapshot, size on target, snapshots held, and doors to the pair's run log (→ P7-S3) and to retrying a failed copy (the S3 inline-retry precedent). The matrix mints **no second truth**: ADR 0079's backup orchestrator seam already carries the per-target facts (per-target outcomes, verification, the coverage counting rules), and S7 fans them out per (dataset, target) pair. S1 aggregates what S7 itemises — a dataset's *last good* is the max over its pairs' last verified snapshots, its *verified copies* count is its count of current pairs — and S3 explains it, each pair linking to its run log rather than restating run rows. Every honesty rule carries over whole: a run that didn't happen is **stale** — a failure, not an absence, worn at the loudest available weight (DDR 0083 §1); a failed copy is named and retryable (§2); an **unreachable** target's last-known figures render labelled *last known* and are never counted as current — never a stale-green cell (§3); a **gone** target's copies leave counted coverage at once and its row routes to the policy's gone-target state (P7-S2x); a **not-backed-up-yet** dataset shows its drafted targets (DDR 0085 — the matrix exists before the operator acts), never a blank row. The kit compiles no red: wireframe `{ok, warn, bad}` grades to `{healthy, warning, warning}` exactly as `BackupsOverviewScreen` already does, with `bad` distinguished by weight and copy, never an invented red. The prototype's third sender grade **`down` does not exist here**: a sender that stops running its schedule manifests as *stale*, and the device's own down-ness stays monitoring's classification (ADR 0070/0081) — alerted through P5, linked, never duplicated as a second device-health verdict. ## User Stories ### A — Entry and placement (edges P7-S1 → S7, S7 → S1) 1. As an operator, I want a replication door on the Backups overview, so that the fan-out behind the coverage map is one click away. - **Given** P7-S1 (or the first-run P7-S1x once datasets exist), **When** it renders, **Then** a `Replication…` control (`data-action="open-replication"`) is offered beside Restore… and Export a dataset…, and activating it opens P7-S7 (edge S1 → S7). - **Given** the Backups tab, **Then** S7 mounts in place over the tab exactly as the policy/runs/restore drill-ins do — no new tab (ADR 0094's six are closed), no route of its own, no modal — with a back control returning to the overview, which re-reads so the coverage map says what the seam now says. 2. As an operator, I want the matrix to say what it is, so that I never mistake it for a second source of truth. - **Given** P7-S7, **Then** it renders the marker line naming the screen `DATASET → TARGET` and stating `PROJECTION — RUNS & VERIFICATION ARE THE SOURCE`, and the screen offers **no verb that changes policy or coverage** — its only acts are the pair-level doors (runs, retry, confirm-policy, replace) that route to their owning screens or act through the seam's existing verbs. ### B — Parent rows: dataset-centric, the sender named (DDR 0205 §Organization) 3. As an operator, I want one row per dataset with its sender named, so that "which node sends what where" reads off the same axis the coverage map already uses. - **Given** P7-S7 with the projection settled, **Then** the matrix table (`data-field="replication-matrix"`) carries the columns `DATASET`, `REPLICATION`, `LAST RUN`, `TARGETS CURRENT`, `ON TARGETS` plus the chevron column, and renders one parent row per dataset (`data-field="matrix-row-<id>"`) with the dataset name and its sender node as the row's hint ("from the gateway", "from rimu"). - **Given** the datasets, **Then** rows come from the port-declared dataset contracts via the seam — every dataset the coverage map shows appears here, Identity from founding on; the operator creates nothing. 4. As an operator, I want rows to expand into their targets, several at once, so that I can compare two datasets' fan-outs side by side. - **Given** a collapsed parent row, **When** the operator activates its chevron (`data-action="toggle-<id>"`), **Then** the nested per-target table (`data-field="targets-<id>"`) renders beneath it and the chevron flips ▸ → ▾; activating again collapses it. - **Given** one row already expanded, **When** another is expanded, **Then** the first stays open (multi-open, adopted from the prototype) — expansion is per-row render state, nothing re-reads. 5. As an operator, I want each dataset's replication summarised on the parent row, so that a healthy fan-out is one glance. - **Given** a dataset all of whose pairs are current, **Then** its REPLICATION pill reads `✓ replicating` (`data-status="replicating"`, wireframe tone `ok` → kit healthy), LAST RUN carries the run's relative moment, and TARGETS CURRENT reads `n of n`. - **Given** a dataset with some pairs behind, **Then** the pill names it — `1 of 2 current` (`data-status="target-behind"`, tone `warn` → warning) — and TARGETS CURRENT carries the same n-of-total count; a pair is **current** exactly when its latest scheduled snapshot verified on that target (CONTEXT.md), as the seam rules it — the screen counts nothing. 6. As an operator, I want the summed size across targets on the parent row, so that I can see what a dataset's replication footprint is. *(gate 2 — see Further Notes)* - **Given** a dataset with counted copies, **Then** the ON TARGETS cell carries the summed size across its targets' copies — labelled ON TARGETS because it is the sum of copies, never the dataset's live size. - **Given** a not-backed-up-yet dataset, **Then** ON TARGETS renders `—`, never `0` (absence is not zero). ### C — Pair rows: the nested per-target table (DDR 0205 §Fields) 7. As an operator, I want each pair's facts in one row, so that "how safe is this copy" needs no reconstruction from run logs. - **Given** an expanded dataset, **Then** its nested table carries the columns `TARGET`, `REACHABILITY`, `LAST VERIFIED SNAPSHOT`, `SIZE ON TARGET`, `SNAPSHOTS HELD` plus an actions column, and renders one row per (dataset, target) pair (`data-field="pair-<dataset>-<target>"`) — the target a fleet node or the offsite, named in the operator's terms. - **Given** a current pair, **Then** REACHABILITY reads `✓ reachable` (`data-status="reachable"`), LAST VERIFIED SNAPSHOT carries the verified moment (`✓ last night 02:00`), and SIZE ON TARGET / SNAPSHOTS HELD carry the seam's per-pair figures. 8. As an operator, I want each pair to link to its run history, so that the matrix explains itself through the run log rather than restating it. - **Given** any pair row with run history, **Then** a `runs…` door is offered emitting the existing `open-runs-<datasetId>` intent, landing on that dataset's P7-S3 runs & verification screen (edge S7 → S3) with back returning to the matrix. - **Given** the runs screen reached this way, **Then** it is the same composed S3 the policy path lands on — no matrix-special run view exists. 9. As an operator, I want a failed copy retryable from the matrix, so that closing a gap doesn't mean leaving the screen that named it. - **Given** a pair whose copy failed this run, **Then** its row offers `retry this copy` (`data-action="retry-pair-<dataset>-<target>"`), acting through the seam's existing per-target retry verb (the S3 inline-retry precedent — the same `TargetRetryClient` face, no new verb). - **When** the retry lands, **Then** the matrix re-reads the projection and renders what the seam now says — a rebuilt copy shows current, a still-failed one stays named; the screen decides no outcome itself. ### D — The honest states (DDR 0083 / 0085 carried whole) 10. As an operator, I want a dataset whose run didn't happen to be loud, so that the most dangerous backup failure — the one that makes no noise — cannot hide in a matrix of greens. - **Given** a dataset stale under DDR 0083 §1 (its scheduled run has not completed by the time the next was due), **Then** its REPLICATION pill wears the `bad` weight (`data-status="stale"`) with the failure named in copy — "stale — due 02:00, no run completed" — and LAST RUN states the honest relative age ("2 nights ago"). *(gate 3 on the pill weight — see Further Notes)* - **Given** its pairs on reachable targets, **Then** each renders `ageing` (`data-status="ageing"`, `warn`) with "no run since …" named — reachability and recency stated as two separate facts, and **no pair renders current** while the run didn't happen (no stale-green). 11. As an operator, I want an unreachable target's record kept but never trusted, so that old copies cannot impersonate current ones. - **Given** a pair whose copy failed because the target is unreachable (DDR 0083 §2), **Then** REACHABILITY renders `✕ unreachable` (`data-status="unreachable"`, `bad` weight, warning tone in product), LAST VERIFIED SNAPSHOT states the last-known moment with "not counted while unreachable", and SIZE ON TARGET / SNAPSHOTS HELD render their figures explicitly labelled *last known* — never as current figures. - **Given** that pair, **Then** it is excluded from the parent's TARGETS CURRENT count and the parent grades accordingly (`1 of 2 current`), and the row offers both `retry this copy` and `runs…`. 12. As an operator, I want a gone target routed to its fix, so that the matrix hands me to the screen that owns replacement. - **Given** a pair whose target is known gone (a removed node, a dead offsite — DDR 0083 §3), **Then** its copies are out of every counted figure at once (TARGETS CURRENT, ON TARGETS, the parent grade), the row names the target gone, and its action routes to the policy's gone-target state via the existing `open-gone-target-<datasetId>` intent (edge S7 → S2x) — the matrix offers no replace verb of its own. 13. As an operator, I want a not-yet-backed-up dataset present with its drafted targets, so that the matrix exists before I act (DDR 0085) and shows me what confirming would create. - **Given** a dataset with no confirmed policy, **Then** its parent row renders `not backed up yet` (`data-status="not-backed-up-yet"`, `warn`) with `—` in LAST RUN and ON TARGETS, and expands into its **drafted** targets — each marked drafted with its recommendation reason ("drafted — zone spread", "drafted — offered"), `no snapshots yet` (`data-status="no-snapshots-yet"`, muted) in LAST VERIFIED SNAPSHOT, and `0` snapshots held. - **Given** a drafted offsite not yet configured, **Then** its REACHABILITY renders `not configured` (`data-status="not-configured"`, muted) — a stated fact, not a fault. - **Given** a drafted pair, **Then** a `confirm policy…` door (`data-action="confirm-policy-<dataset>"`) emits the existing `open-policy-<datasetId>` intent, landing on P7-S2 — confirming stays the policy screen's act. 14. As an operator, I want the matrix to name what needs attention, so that the screen tells me rather than waiting to be asked. - **Given** any dataset stale or any pair unreachable/gone, **Then** a warning callout (`data-field="matrix-attention"`) beneath the matrix names each condition in plain words — the dataset, the target, what happened — and states that monitoring alerted (P5-S2); the callout links, it does not re-notify. - **Given** nothing needing attention, **Then** no callout renders. ### E — One truth, one tone (DDR 0205 §Projection / §No-red) 15. As a maintainer, I want the matrix and the overview provably consistent, so that two Backups screens can never disagree about a dataset's safety. - **Given** the same seam answer, **Then** a dataset's *last good* on P7-S1 equals the max over its S7 pairs' last verified snapshots, its *verified copies* count equals its count of current pairs, and a stale dataset is stale on both — because both are projections the **orchestrator** computes from one set of facts (ADR 0079); neither screen derives the other's numbers. 16. As a maintainer, I want the no-red rule and the no-`down` rule encoded, so that the matrix speaks the tab's existing language. - **Given** any pill on S7, **Then** wireframe grades map `{ok, warn, bad}` → `{healthy, warning, warning}` (the `BackupsOverviewScreen` precedent): `bad` is told apart by weight and named copy, and **no red/destructive token is emitted anywhere in the rendered CSS** — the destructive palette stays reserved for destructive confirms (ADR 0060 family). - **Given** a sender node that is itself down, **Then** the matrix renders no `down` grade and no device-health verdict of its own — the dataset manifests as *stale* (a failure, not an absence) and device down-ness stays monitoring's classification (ADR 0070/0081), alerted through P5. 17. As an operator, I want a failed matrix read to be an honest state, so that failure is never a blank pane. - **Given** the replication read faults at transport, **Then** the surface renders the shared error state with retry behind the existing async guard, exactly as the overview read already does (the #304 fail-loud precedent) — never a blank drill-in. - **Given** the retry succeeds, **Then** the matrix renders the returned projection. 18. As an operator, I want the matrix current when I return to it, so that acting elsewhere shows up here. - **Given** S7 open, **When** the operator goes to a pair's runs (S7 → S3) or a gone target's replace (S7 → S2x) and comes back, **Then** the matrix re-reads the projection on return — a retried copy, a confirmed policy or a replaced target is simply the seam's next answer. ## Implementation Decisions ### Seam — the ADR 0079 backup orchestrator seam grows one read; no new seam - **One new projection on the existing seam, nothing else.** The `backup` orchestrator (ADR 0079 — the single test seam) already owns per-target outcomes, verification promotion, the coverage counting rules, target inventories and drafted policies. It gains one read: the **replication projection** — the standing per-(dataset, target) fan-out. The control-plane handler stays a thin projection over the orchestrator, re-deriving nothing, mapping faults to the shared Problem body, exactly as the existing Backups routes do. Rejected: any second store or collector of per-pair facts — the matrix is a projection, and a projection with its own source is a second truth. - **Shape of the projection (view types, not files).** A replication view carrying one entry per dataset: dataset id/name, sender node name, the dataset-level grade as a **named state** (`replicating` / `target-behind` / `stale` / `not-backed-up-yet`), the last-run relative label, targets-current n and total, the summed on-targets size label — and its pair rows: target field and name, drafted flag with reason, the pair-level state as a **named state** (`reachable` / `unreachable` / `ageing` / `no-snapshots-yet` / `not-configured` / `gone`), the last-verified-snapshot label, size-on-target and snapshots-held labels each with a last-known marking where the target is unreachable, and whether the pair is retryable. The seam words every label and decides every state; the screen renders verbatim and computes nothing (ADR 0097) — this is what makes stories 10–13 checkable rather than front-end discipline. - **The dashboard face follows the house pattern.** One new client face on the backups library (a replication read), implemented by the same live client class that already satisfies the seven existing P7 faces, over the generated OpenAPI client (ADR 0037) — wire snake_case, camelised at the client boundary (standards:wire-snake-case #126), no hand-rolled fetch. The retry verb is **not** new: pair retry rides the existing per-target `TargetRetryClient` face, exactly as S3's inline retry does. - **Routing reuses the existing intents.** `runs…` emits `open-runs-<datasetId>`, `confirm policy…` emits `open-policy-<datasetId>`, a gone pair emits `open-gone-target-<datasetId>` — all three already parsed and composed by the Backups surface. S7 mints one intent of its own: `open-replication` (S1 → S7), handled inside the surface like open-restore/open-export. ### Surface - **P7-S7 is one new screen component mounted inside the Backups surface**, in the existing drill-in ladder (policy, runs, restore, export, gone-target…), with the same back-closes-and-re-reads behaviour. When the replication client is not composed, the `open-replication` intent only emits out — the existing progressive-composition pattern. - **Expansion is render state.** Multi-open chevrons are per-row component state; expanding reads nothing and collapsing forgets nothing — the projection arrives whole. - **Every S7 `data-field` / `data-action` / `data-status` token is the built contract**, carried from `p7-s7-replication-matrix.html` so `design-verify` can check the shipped UI — with the two wireframe deviations ruled below (Further Notes: found inconsistencies): pair `runs…` actions emit the house `open-runs-<datasetId>` intent, and the gone-pair row's tokens are spec-defined (`data-status="gone"`) because the frame depicts no gone pair. - **The nested table renders at product type scale** (ADR 0122 amendment — micro-labels never below 0.75rem/0.85em); the wireframe's nested sizes are artboard-miniature values. All visuals express as `--oc-*` tokens; the tab keeps the pill vocabulary — DDR 0202's LED-dot primitive is deliberately not used here (one health glyph per tab). - The surface is operator-only behind the community door (DDR 0172), inherited whole from the tab. ## Testing Decisions A good test states externally-observable behaviour at a seam and never reaches into implementation detail. Two seams, **both pre-existing** — this spec adds no new seam class: 1. **The dashboard component seam (the primary one).** The new S7 screen and the grown Backups surface driven against the hand-written fake of the backups seam, asserting on the wireframe's `data-field` / `data-action` / `data-status` contract: the parent columns and dataset states, multi-open expansion, every pair state (current, ageing, unreachable-with-last-known-labelled, gone-routes-to-S2x, drafted, not-configured), the n-of-total consistency between pill and cell, retry re-reads and renders the seam's next answer, `runs…` lands on the composed S3 and back re-reads, the attention callout's presence and absence, the S1 entry button, the no-red mapping, and the failed-read error state. Prior art: `backupsOverview.test.ts`, `backupRuns.test.ts`, `backupPerTargetHonesty.test.ts`, `backupsSurfaceGuard.test.ts`; the fake grows from the existing backups fake so its default fleet stays the wireframes' fleet. 2. **The orchestrator seam.** The replication projection's tests in the backup package: a dataset with all pairs verified projects `replicating` with the right n-of-total and summed size; a missed cycle projects `stale` with reachable pairs `ageing` and none current; an unreachable target's pair carries last-known figures marked as such, excluded from the current count; a gone target's pair projects `gone` with its figures out of every count at once; an unconfirmed dataset projects its drafted targets with reasons, never an empty pair list; and the S1 coverage projection and the S7 replication projection computed from the same facts agree (last good = max over pairs, verified copies = current-pair count — story 15 as an executable property). Prior art: `coverage_test.go`, `pertarget_test.go`, `rebuild_test.go`. 3. **The transport seam.** The Backups integration coverage grown for the one new route: the replication read returns the projection with named states, snake_case wire camelises through the generated client, absence serialises as null (never `0`), and a faulted read maps to the shared Problem body. Prior art: `backupsLive.test.ts` and the existing backups control-plane integration tests. Cross-cutting: the theming-contract check (every new visual is an `--oc-*` token, ADR 0122) and a rendered-CSS assertion that no red/destructive token is emitted by any matrix grade ride the existing harnesses. ## Out of Scope - **Any change to what S1 and S3 already say.** The overview's columns, counting rules and gap banner, and the runs screen's rows are untouched — S1 gains only the `Replication…` button. - **A host-centric matrix or any second organising axis.** Parents are datasets (DDR 0205); "group by sender" is not offered. - **Device health on this screen.** No `down` grade, no device-health verdict — down-ness stays monitoring's (ADR 0070/0081), linked never duplicated. The sibling network surface (#761) owns reachability observability between devices. - **Per-pair history, trends or a time axis.** The matrix is a standing snapshot; history stays S3's. No series is stored. - **New verbs.** No replicate-now, no per-pair policy editing, no target add/remove here — retry rides the existing per-target retry, replace stays S2x's, confirm stays S2's. - **New alert behaviour.** Stale and unreachable already publish faults (ADR 0081); the callout links to what monitoring said, it raises nothing. - **The observability kit primitives.** Minted by #769 (`ui-kit:telemetry-primitives`); this surface uses the tab's existing pill vocabulary and consumes nothing from that slice — deliberately no `OcStatusDot` here (one health glyph per tab, DDR 0205). - **The other siblings' surfaces** (#760 logs, #761 network, #763 activity feed, #764 topology). None is built here. - **A member-facing tier.** Operators-only behind the community door (DDR 0172), inherited. ## Further Notes ### Vertical slices (named for the fan-in `/slice-map`) 1. **`backup:replication-projection`** — the orchestrator's replication read: per-(dataset, target) states, labels, counts and the S1-consistency property. Depends on nothing new. 2. **`transport:backups-replication`** — the route on the existing seam: OpenAPI, handler, generated client, the live-client face. Depends on 1. 3. **`shell:replication-matrix`** — the P7-S7 screen, the surface wiring (open-replication, back-re-reads, retry, the three reused routing intents) and S1's entry button. Depends on 2. Cross-arc note for the fan-in: **no dependency on #769's kit slice** — this sibling deliberately consumes the tab's existing pill vocabulary, so it can land before or after the rest of the arc. The only cross-feature edges are the ones the flow already draws (S7 → S3, S7 → S2x, monitoring's P5 linkage), all built. ### The DDR's three open gates (veto-open, not blocking — ADR 0174) DDR 0205 is `accepted` with three decisions held open for Ben; each has a **proposed default this spec is written against** (the #769 ruling-1 precedent — the spec proceeds on the DDR defaults, the veto is asynchronous), and none is dependent on any other: - **G1 — the entry affordance** (default: the `Replication…` outline button beside Restore/Export, shipped in the amended S1 frame; alternative: dataset rows click through to S7). A veto swaps **story 1**'s affordance for row-level entry — but S1's rows already open their policy, so the row-click alternative would also reassign an existing affordance; the button is the smaller contract. Everything from story 2 on works identically. - **G2 — the ON TARGETS summed column** (default: keep it, labelled ON TARGETS). A veto retires **story 6** and drops the column; per-pair SIZE ON TARGET (story 7) is untouched. - **G3 — stale wears the `bad` pill weight** (default: yes — S1's own stale precedent, both grading to warning in product). A veto demotes the pill weight in **story 10**'s first Then clause to `warn`; the copy, the ageing pairs and the no-stale-green rule stand regardless. No gate changes the seam, a state, or a count — which is why all three slices can proceed without waiting. ### Found inconsistencies, ruled here (report carried from the design read) - **The wireframe's pair-level `runs…` action ids collide with the built intent grammar.** The frame writes `open-runs-identity` on one pair but `open-runs-identity-offsite` / `open-runs-git-totara` on others; the built surface parses `open-runs-<rest>` as a dataset id, so a verbatim `open-runs-git-totara` would route to a dataset named "git-totara". Ruled: S3 is per-dataset, so **every pair's `runs…` door emits `open-runs-<datasetId>`**; per-pair element uniqueness lives in `data-field="pair-<dataset>-<target>"`. The frame's suffixed variants are depiction uniqueness, not contract. - **The gone-pair state is ruled (DDR table + flow edge S7 → S2x) but not depicted** — the frame shows current, stale, not-backed-up-yet and unreachable only. Ruled: the gone pair carries `data-status="gone"` at the `bad` weight with its route emitting the existing `open-gone-target-<datasetId>` intent, following the frame's conventions; the frame owes a `✎` gone-pair row in the commit that implements slice 3 (ADR 0042 discipline). - **The drafted pair's `confirm policy…` door is in the frame but absent from DDR 0205's action list** (which names only runs/retry). Kept: it is DDR 0085's posture (the drafted state leads to confirming) and routes through the existing `open-policy-<datasetId>` intent — no new verb. ### Implementation-time notes - The wireframe URL bar (`admin.example.nz/backups/replication`) is the P7 frames' depiction convention (S3's shows `/backups/photos`); the built tab has no sub-routes — S7 mounts in place and the URL stays the tab's (story 1). - `CONTEXT.md` rules the copy: **replication matrix** (never *backup matrix* or *sender/destination matrix*), **current** for a pair (never *up to date* or *in sync*), **size on target** / **snapshots held** (never *repo size*), **backup target** (never *destination*). *Last known* is a label on figures, never an omission of them. - The prototype (`matou-distributed-servers` `BackupMatrix.vue`) is a reference for the expandable-matrix mechanics only; nothing visual transfers (ADR 0122), and its env-derived `dest_*` topology, host-centric parents, LED dots and `up/stale/down` triad are all explicitly rejected by DDR 0205. --- *Produced by `/to-spec` in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #762.*
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 #762) and published the canonical spec #793, which the slice-map fan-in (#770, commit 44cd080, docs/slices/observability.yaml) and /to-tickets have already consumed. This duplicate is closed in #793's favour. Any materially unique findings from this draft are being transferred to #793 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 #762) and published the canonical spec **#793**, which the slice-map fan-in (#770, commit `44cd080`, `docs/slices/observability.yaml`) and `/to-tickets` have already consumed. This duplicate is closed in #793's favour. Any materially unique findings from this draft are being transferred to #793 as comments.
ben closed this issue 2026-08-25 16:20:44 +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#838
No description provided.