control-panel observability: backup replication matrix (sender → destination drill-down) #762

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

Context

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

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

Gap

The Backups tab (P7) has coverage map, policy, runs & verification, restore, and export —
but no cross-replication matrix: which sender replicates to which destinations, per-pair
last-snapshot recency, repo size, and reachability. P7-S3 shows runs per subject; the
sender→destination fan-out is invisible.

Prototype (matou-distributed-servers)

src/components/backups/BackupMatrix.vue — expandable matrix; parent row per sender
(chevron, hostname, health LED up/stale/down, last-run relative time,
dest_ok/dest_reachable (dest_total), summed repo size) toggling a nested destinations
table (receiver peer, last snapshot, repo size, snapshot count); multi-open supported.

Adopt / adapt

  • The smallest design delta of the six siblings: the Backups tab already owns the domain —
    this enriches the P7-S1/P7-S3 wireframes rather than minting a surface.
  • The three-state sender health (up/stale/down) maps cleanly onto the kit's
    healthy/warning posture (the kit deliberately compiles no red; stale and down both
    wear warning weights per the callout vocabulary).
  • Respect the honesty discipline: unreachable destination = rendered state, never a
    stale-green cell.

Do not adopt

restic/ansible specifics (dest_* env-derived topology); snake_case wire fields (IDSS wire
is snake_case → camelize() at the wire.ts boundary already).

Route

grill-ux-with-docs (short — likely folds into a P7 wireframe amendment) → DDR →
/to-spec.

## Context Filed from the 2026-08-24 comparison of the `matou-distributed-servers` admin dashboard (`roles/admin_dashboard/files/dashboard/`, Quasar/Vue read-only observability panel for the ansible-deployed fleet) against this repo's control panel. That dashboard is a working prototype of the observability tier the IDSS control panel lacks: IDSS is strong on verbs (provisioning, updates, members, rescue, brand kit) and thin on telemetry. Its styling is a drifted fork of the same Matou visual language, so **only the widget vocabulary and mechanics transfer — all visuals re-encode as `--oc-*` tokens per ADR 0122**, and every surface here flows through the design tier (grill → wireframe → DDR → `/to-spec`) before implementation. Siblings: this ticket is one of six filed together under the "control-panel observability" title prefix: #759, #760, #761, #763, #764. ## Gap The Backups tab (P7) has coverage map, policy, runs & verification, restore, and export — but no **cross-replication matrix**: which sender replicates to which destinations, per-pair last-snapshot recency, repo size, and reachability. P7-S3 shows runs per subject; the sender→destination fan-out is invisible. ## Prototype (matou-distributed-servers) `src/components/backups/BackupMatrix.vue` — expandable matrix; parent row per sender (chevron, hostname, health LED `up`/`stale`/`down`, last-run relative time, `dest_ok/dest_reachable (dest_total)`, summed repo size) toggling a nested destinations table (receiver peer, last snapshot, repo size, snapshot count); multi-open supported. ## Adopt / adapt - The smallest design delta of the six siblings: the Backups tab already owns the domain — this enriches the P7-S1/P7-S3 wireframes rather than minting a surface. - The three-state sender health (`up`/`stale`/`down`) maps cleanly onto the kit's healthy/warning posture (the kit deliberately compiles no red; `stale` and `down` both wear warning weights per the callout vocabulary). - Respect the honesty discipline: unreachable destination = rendered state, never a stale-green cell. ## Do not adopt restic/ansible specifics (`dest_*` env-derived topology); snake_case wire fields (IDSS wire is snake_case → `camelize()` at the `wire.ts` boundary already). ## Route `grill-ux-with-docs` (short — likely folds into a P7 wireframe amendment) → DDR → `/to-spec`.
Author
Owner

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

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

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

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

Close report — /to-spec ran; child spec is #793

Ruled by agent under ADR 0174 — veto anytime.

What landed

  • Forgejo issue #793 — control-panel observability child spec: backup replication matrix (P7-S7) — the standing dataset → target drill-down. Labelled no-triage (the standing child-spec label, #769/#791/#792 precedent — a spec is not an implementable slice).
  • 58 user stories, each with Given/When/Then acceptance criteria sourced from docs/ux/flows/p7-backups.mermaid's P7-S7 node and its three edges, and written against the data-field / data-action / data-status contract in p7-s7-replication-matrix.html and the amended p7-s1-backups-overview.html. Ten groups: entry & placement · parent rows and grades · expansion mechanics · current pairs · ageing & stale · unreachable + the last-known discipline · gone targets · not-backed-up-yet & drafted targets · attention/failure/empty · the projection discipline.
  • Implementation decisions, testing decisions, a scope fence, and five named vertical slices for the #770 fan-in.
  • Commit 427f05b (STATUS.md updated in the same commit, per repo discipline).

The shape of the ruling

This is the smallest delta of the six siblings and the arc's one true root. The Backups tab already owns the domain and is fully built over the backup orchestrator (ADR 0079), so P7-S7 is a drill-down inside it: no seventh tab, no mount-table entry, no chrome wiring, no indicator tenant, no D1 exposure. It consumes nothing from #769 (DDR 0205 deliberately rejects the LED-dot primitive and mints no thresholds) and blocks none of #791/#792.

The spec is written as a projection and enforces that mechanically: every figure derives from state the orchestrator already holds — confirmed policies, verified copies, the snapshot ledger, per-target run outcomes, fleet topology, ADR 0061's default-deny health bit — or from the self-describing target inventories ADR 0082 already builds. The read dials no target, runs no probe, fires no run and mutates nothing. Story group J tests exactly that, including a Rederive equivalence: the re-derived orchestrator answers the same per-pair verdicts as the live one, so a new surface cannot quietly break ADR 0082's rebuild-from-nothing promise.

The one lever on the surface is inherited, not new — retry this copy is TargetRetryClient.retryTarget, the same seam verb P7-S3's inline retry and P7-S3x already act over.

Two things the design tier described that the tree does not have

Named as veto-open gates, not specced over:

  • G4 — size on target is a RECORDED sealed size, not a measurement. The movement engine already computes len(cipher.Sealed) to check every target's headroom before it writes, logs it as bytes, and throws it away. The spec threads that same figure back onto the copy. This is the only change in the whole feature that touches a write path. A copy with no recorded size renders — with the reason stated — never 0 B, never an estimate (ADR 0100). A veto retires slice 2 and the two size fields render permanently absent; every other story is untouched.
  • G5 — reachability is LAST-OBSERVED, never probed on render. IDSS has no standing per-target prober, and minting one is a new collection loop with its own cadence, failure modes and alert surface. The matrix reports the last thing the fleet genuinely observed — the last replicate attempt's outcome, plus (for a node target) topology presence and the ADR 0061 gate coverage already consults — and states when that was.

DDR 0205's three own gates (G1 entry affordance, G2 the ON TARGETS sum, G3 stale's pill weight) are specced against their proposed defaults. Every gate touches at most one slice, so the feature is fully sliceable now.

Honesty discipline, made testable

An unreachable target's figures are labelled last known and excluded from both the parent's current count and its ON TARGETS sum — never a stale-green cell. A gone target leaves counted coverage at once and its row routes to P7-S2x. A not-backed-up-yet dataset shows its drafted targets rather than a blank row (DDR 0085). The prototype's down sender grade does not exist here: a stopped schedule is stale (a failure, not an absence — DDR 0083 §1), and a device's own down-ness is monitoring's classification (ADR 0070/0081) — linked, never re-decided on a backups screen. The kit compiles no red; stale and unreachable both grade to the warning tone through the built BackupsOverviewScreen map, distinguished by copy.

One element-contract ruling

The pair's runs… action is dataset-scoped (open-runs-<id>), reusing the existing openRunsDatasetId parser. The wireframe depicts target-suffixed variants (open-runs-git-totara); those would be ambiguous for any dataset id containing a hyphen, and P7-S3 is a per-dataset log whose own per-target outcomes already name the target. A ✎ frame amendment normalises the depiction with the implementing slice (docs/ux/flows/p7-backups.mermaid is untouched — nothing here is a new state).

On the 04:55 claim

The interactive session claimed this ticket for the parallel /to-spec fan-out and asked the runner to skip. Three hours later it had landed #769/#791/#792 and closed #759/#760/#761, but no #762 child spec existed and the ticket was still ready-for-session, so the runner launched this session onto it. Verified no duplicate spec existed immediately before filing #793. #763 is the one still owing its spec.

Follow-on

#770 (the observability /slice-map fan-in) is now blocked by #763 alone.


Ruled by agent under ADR 0174 — veto anytime.

## Close report — `/to-spec` ran; child spec is **#793** **Ruled by agent under ADR 0174 — veto anytime.** ### What landed - **Forgejo issue #793** — `control-panel observability child spec: backup replication matrix (P7-S7) — the standing dataset → target drill-down`. Labelled `no-triage` (the standing child-spec label, #769/#791/#792 precedent — a spec is not an implementable slice). - **58 user stories**, each with Given/When/Then acceptance criteria sourced from `docs/ux/flows/p7-backups.mermaid`'s P7-S7 node and its three edges, and written against the `data-field` / `data-action` / `data-status` contract in `p7-s7-replication-matrix.html` and the amended `p7-s1-backups-overview.html`. Ten groups: entry & placement · parent rows and grades · expansion mechanics · current pairs · ageing & stale · unreachable + the last-known discipline · gone targets · not-backed-up-yet & drafted targets · attention/failure/empty · the projection discipline. - **Implementation decisions, testing decisions, a scope fence, and five named vertical slices** for the #770 fan-in. - Commit `427f05b` (STATUS.md updated in the same commit, per repo discipline). ### The shape of the ruling This is the **smallest delta of the six siblings and the arc's one true root.** The Backups tab already owns the domain and is fully built over the `backup` orchestrator (ADR 0079), so P7-S7 is a drill-down inside it: **no seventh tab, no mount-table entry, no chrome wiring, no indicator tenant, no D1 exposure.** It consumes nothing from #769 (DDR 0205 deliberately rejects the LED-dot primitive and mints no thresholds) and blocks none of #791/#792. The spec is written as a **projection and enforces that mechanically**: every figure derives from state the orchestrator already holds — confirmed policies, verified copies, the snapshot ledger, per-target run outcomes, fleet topology, ADR 0061's default-deny health bit — or from the self-describing target inventories ADR 0082 already builds. The read dials no target, runs no probe, fires no run and mutates nothing. Story group J tests exactly that, including a **`Rederive` equivalence**: the re-derived orchestrator answers the same per-pair verdicts as the live one, so a new surface cannot quietly break ADR 0082's rebuild-from-nothing promise. The one lever on the surface is **inherited, not new** — `retry this copy` is `TargetRetryClient.retryTarget`, the same seam verb P7-S3's inline retry and P7-S3x already act over. ### Two things the design tier described that the tree does not have Named as **veto-open gates**, not specced over: - **G4 — size on target is a RECORDED sealed size, not a measurement.** The movement engine already computes `len(cipher.Sealed)` to check every target's headroom before it writes, logs it as `bytes`, and throws it away. The spec threads that same figure back onto the copy. **This is the only change in the whole feature that touches a write path.** A copy with no recorded size renders `—` with the reason stated — never `0 B`, never an estimate (ADR 0100). A veto retires slice 2 and the two size fields render permanently absent; every other story is untouched. - **G5 — reachability is LAST-OBSERVED, never probed on render.** IDSS has no standing per-target prober, and minting one is a new collection loop with its own cadence, failure modes and alert surface. The matrix reports the last thing the fleet genuinely observed — the last replicate attempt's outcome, plus (for a node target) topology presence and the ADR 0061 gate coverage already consults — and states when that was. DDR 0205's three own gates (G1 entry affordance, G2 the `ON TARGETS` sum, G3 stale's pill weight) are specced against their proposed defaults. Every gate touches at most one slice, so **the feature is fully sliceable now.** ### Honesty discipline, made testable An unreachable target's figures are labelled *last known* and excluded from **both** the parent's current count and its `ON TARGETS` sum — never a stale-green cell. A gone target leaves counted coverage at once and its row routes to P7-S2x. A not-backed-up-yet dataset shows its **drafted** targets rather than a blank row (DDR 0085). The prototype's `down` sender grade **does not exist here**: a stopped schedule is *stale* (a failure, not an absence — DDR 0083 §1), and a device's own down-ness is monitoring's classification (ADR 0070/0081) — linked, never re-decided on a backups screen. The kit compiles no red; *stale* and *unreachable* both grade to the warning tone through the built `BackupsOverviewScreen` map, distinguished by copy. ### One element-contract ruling The pair's `runs…` action is **dataset-scoped** (`open-runs-<id>`), reusing the existing `openRunsDatasetId` parser. The wireframe depicts target-suffixed variants (`open-runs-git-totara`); those would be ambiguous for any dataset id containing a hyphen, and P7-S3 is a per-dataset log whose own per-target outcomes already name the target. A ✎ frame amendment normalises the depiction with the implementing slice (`docs/ux/flows/p7-backups.mermaid` is untouched — nothing here is a new state). ### On the 04:55 claim The interactive session claimed this ticket for the parallel `/to-spec` fan-out and asked the runner to skip. Three hours later it had landed #769/#791/#792 and closed #759/#760/#761, but no #762 child spec existed and the ticket was still `ready-for-session`, so the runner launched this session onto it. Verified no duplicate spec existed immediately before filing #793. #763 is the one still owing its spec. ### Follow-on #770 (the observability `/slice-map` fan-in) is now blocked by **#763 alone**. --- *Ruled by agent under ADR 0174 — veto anytime.*
Author
Owner

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

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

Child spec #838 — labelled enhancement + no-triage (the standing child-spec label, #17–#22 and #769 precedent). 18 stories in 5 groups; NO new seams (the ADR 0079 orchestrator seam grows one read-projection; retry rides the existing per-target client). Deliberately independent of #769's kit slice — can land first. Wrinkles ruled in the spec: canonical open-runs- intent (the frame's suffixed forms would mis-parse), gone-pair row owes a ✎ frame amendment at implementation.

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

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

## Close report — the design-tier route is walked end to end The ticket's route was `grill-ux-with-docs` → `/wireframe` → DDR → `/to-spec`. The first three landed in commit `2a37ef8` (design tier, DDR + flow + frames); this session ran the last one. **Child spec [#838](https://git.matou.nz/Matou/idss/issues/838)** — labelled `enhancement` + `no-triage` (the standing child-spec label, #17–#22 and #769 precedent). 18 stories in 5 groups; NO new seams (the ADR 0079 orchestrator seam grows one read-projection; retry rides the existing per-target client). Deliberately independent of #769's kit slice — can land first. Wrinkles ruled in the spec: canonical open-runs-<datasetId> intent (the frame's suffixed forms would mis-parse), gone-pair row owes a ✎ frame amendment at implementation. Acceptance criteria are Given/When/Then sourced from the flow's nodes/edges against the wireframes' `data-field`/`data-action`/`data-status` contract, so `design-verify` can check the shipped UI. The spec proceeds on the DDR's shipped defaults (*ruled by agent under ADR 0174 — veto anytime*); its Further Notes map exactly which stories each open gate's veto retires, so a veto stays a cheap edit. Closed in the spec's favour (the #388→#511 and #759→#769 precedent). Next: the `/slice-map` fan-in #770 unblocks when all four siblings close.
Author
Owner

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

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

No due date set.

Reference
Matou/idss#762
No description provided.