control-panel observability child spec: backup replication matrix (P7-S7) — the standing dataset → target drill-down #793
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#793
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Program map: #7 — Wayfinder map: OurCloud v1 program scope (Phase 0).
Design ticket: #762 — control-panel observability: backup replication matrix (sender → destination drill-down) (filed from the 2026-08-24
matou-distributed-serverscomparison rather than charted on the map; the map's v1 scope is what it lands inside).Design tier this spec is written against (all present, all
accepted):docs/adr/0205-design-replication-matrix-standing-dataset-target-drilldown.md— the ruling DDR: P7-S7 is its own screen-state drilled into from P7-S1 (not embedded in S1, not folded into S3); dataset-centric parents with the sender named on the row; the field set and the grade table; how stale and unreachable render without red; the projection rule; three open gates.docs/ux/flows/p7-backups.mermaid— node P7-S7 ✎ and its three edges: S1 → S7 (opens replication), S7 → S3 (a pair drills into its runs), S7 → S2x (a gone target routes to replace).docs/ux/wireframes/p7-backups/—p7-s7-replication-matrix.html✎ new (depicting current, stale, not-backed-up-yet and unreachable-pair states in one matrix) andp7-s1-backups-overview.html✎ amended (theopen-replicationentry beside Restore/Export). Theirdata-field/data-action/data-statusattributes are the stable element-ID contract every acceptance criterion below is written against.CONTEXT.md— Replication matrix, Current (pair), Size on target / Snapshots held, merged with the design arc (alongside the standing Coverage, Last good, Backup target, Sampled restore test entries this surface inherits).No sibling dependency. Unlike #791/#792, this spec consumes nothing from #769: DDR 0205 explicitly rejects the LED-dot primitive (the P7 tab already speaks the pill vocabulary — two health glyphs on one tab is the thing being avoided) and mints no thresholds of its own, so
OcStatusDotandstatusGradesare neither used nor re-minted here. This feature can be built before, after or beside every sibling.Siblings in the same observability arc (each specs separately, then all fan in at one
/slice-map, #770): #759 device telemetry (specced, #769), #760 logs (specced, #791), #761 network (specced, #792), #763 activity feed, #764 topology map (deferred).Problem Statement
The operator can see that a dataset is covered, and can see that a run happened — but not where the copies actually are.
The Backups tab is the most complete surface in the panel. P7-S1 answers is the data safe? with one row per dataset — verified copies, offsite, last good, gaps named loudly. P7-S3 answers did last night work? with a run log, and P7-S3x fans one failed run out per target. P7-S2 holds the arrangement. All of it is built and live over the
backuporchestrator (ADR 0079).Between the headline and the log there is a hole: the standing fan-out. Nothing anywhere answers which dataset is replicating to which target, and how is each of those pairs doing right now?
The consequences are ordinary and daily:
VERIFIED COPIEScell names devices, but the moment a dataset has three or four targets — a node, a second node, an offsite partner — the operator cannot see which pair is carrying and which is drifting without opening the run log and reading backwards through per-run outcomes.last goodis the max over its pairs. A dataset whose offsite copy has been failing for four nights while its on-fleet copy verifies nightly reads covered on S1 and shows fourpartialruns on S3 — and there is no surface that says, in one line, "the offsite copy has been behind since Wednesday."The
matou-distributed-serversadmin dashboard has had this widget working for months (BackupMatrix.vue): expandable sender rows over a nested destinations table. It is the right information design and the wrong vocabulary — restic/ansible topology,dest_*env-derived fields, host-centric parents, a three-state LED. This spec takes the mechanics and leaves the nouns.Solution
One new screen-state in the Backups tab — P7-S7, the replication matrix — drilled into from the overview: one parent row per dataset, its sender node named, expanding into that dataset's target pairs.
Five things land:
The placement is a drill-down, not a tab and not an embed (DDR 0205's ruling). ADR 0094's six tabs stay closed and unamended. A
Replication…outline button joins Restore and Export on P7-S1 (data-action="open-replication", already in the amended wireframe) and mounts P7-S7 over the overview throughBackupsSurface's existing intent-composition — the exact pattern the policy, runs, run-failed, gone-target, restore and export screens already use. Back returns to the overview and re-reads. This is the smallest design delta of the six observability siblings: no new tab, no new mount-table entry, no chrome wiring, no placement cluster.Dataset-centric parents; the sender rides the row. The prototype's parent is a sender host. Here the parent is the dataset — policy, coverage, runs and last good are all per-dataset, and a host-centric axis would be a second organizing principle competing with the coverage map. The ticket's "which sender" half is satisfied on the row:
Identity — from the gateway,Photos — from rimu. Rows expand, multi-open (adopted from the prototype), into a nested per-target table.It is a projection, and the spec enforces that mechanically. Every figure the matrix shows already exists in the
backuporchestrator's state or in the target inventories ADR 0082 already builds: per-pair last good istargetLastGood, snapshots held is the count of retained verified momentsInventoryForalready emits, reachability is the last thing the fleet actually observed. No new source of truth, no new collection loop, no probe minted at render time. Each pair links to its run log rather than restating run rows.The honesty rules carry over whole — no stale-green cell, ever. An unreachable target's size and snapshot count render labelled last known and are never counted as current; a run that didn't happen is stale — a failure, not an absence (DDR 0083 §1); a failed copy is named and retryable (§2); a gone target leaves counted coverage at once and its row routes to P7-S2x (§3); a not-backed-up-yet dataset shows its drafted targets rather than a blank row (DDR 0085). The kit compiles no red: stale and unreachable wear the loudest available weight and both grade to the warning tone, distinguished by copy — the built
BackupsOverviewScreenprecedent ({ok, warn, bad} → {healthy, warning, warning}), unchanged.The prototype's
downsender grade does not exist here. A sender that stops running its schedule manifests as stale. A device's own down-ness is monitoring's classification (ADR 0070/0081) — alerted through P5, linked from here, never duplicated as a second device-health verdict on a backups screen.Two truths this spec is deliberately loud about, because the design tier described figures the engine does not yet keep:
bytes) — and then discards it. This spec has it recorded alongside the copy, so size on target and the parent's on targets sum are real numbers the fleet actually produced. A copy whose sealed size was never recorded (written before this lands, or re-derived from an inventory that carried none) renders—with the figure stated as not recorded — never0, never an estimate (ADR 0100).Read-only, with exactly one lever inherited. The matrix adds no verb of its own. The single act on the surface is
retry this copyon a failed pair — and that is not new: it isTargetRetryClient.retryTarget, the same seam verb P7-S3's inline failed-row retry and P7-S3x already act over. Everything else routes out:runs…to P7-S3, a gone target to P7-S2x,confirm policy…to P7-S2.User Stories
A. Entry, placement and the surface's shape
As an operator, I want a
Replication…entry beside Restore and Export on the backups overview, so that the fan-out is reachable from the surface that aggregates it.data-action="open-replication"sits in the actions row besideopen-restoreandopen-export.open-replicationthen the P7-S7 matrix mounts over the overview and the coverage map is no longer rendered.open-replicationthen the intent is emitted out to the shell's navigator and the overview stays put — the same absent-client behaviour every other P7 drill-in has.As an operator, I want the matrix to be a screen-state inside the Backups tab, so that no new tab or mount appears in the panel's chrome.
As an operator, I want a way back to the overview, so that the drill-down is a drill-down and not a dead end.
As an operator, I want the matrix to say what it is, so that I never mistake it for a second source of truth.
DATASET → TARGETmarker and the projection marker naming runs & verification as the source.As an operator, I want the matrix to be operators-only, so that the community's replication topology is not member-facing.
As an operator, I want one read to compose the whole screen, so that the surface holds no truth of its own.
B. Parent rows — the dataset and its grade
As an operator, I want one parent row per dataset, so that the matrix's spine matches the coverage map's.
identity,files,chat,photos,gitwhen the matrix renders thendata-field="replication-matrix"contains adata-field="matrix-row-<id>"row for each, in the same enumeration order the coverage map uses.As an operator, I want each parent row to name its sender node, so that "which sender replicates to which destinations" is answered on the row.
identityis sourced from the gateway when its parent row renders then the dataset name is followed by the sender hintfrom the gateway.photosis sourced fromrimuwhen its parent row renders then the sender hint readsfrom rimu.As an operator, I want a dataset whose every pair is current to read as replicating, so that a healthy fan-out is legible at a glance.
identityholds the latest scheduled snapshot verified when its parent row renders then its grade pill carriesdata-status="replicating"in the healthy tone andTARGETS CURRENTreads2 of 2.As an operator, I want a dataset with some pairs behind to say how many, so that a partial fan-out is not rounded up to healthy or down to broken.
githas one current pair of two when its parent row renders then its grade pill carriesdata-status="target-behind"with the wording1 of 2 currentin the warning tone andTARGETS CURRENTreads1 of 2.As an operator, I want a stale dataset to be as loud here as it is on the overview, so that the two surfaces cannot disagree.
chat's 02:00 run did not complete before the next was due (DDR 0083 §1) when its parent row renders then its grade pill carriesdata-status="stale"with wording naming the due time and that no run completed andTARGETS CURRENTreads0 of 2.stale— the two surfaces read the same orchestrator state and can never disagree about staleness.As an operator, I want a not-backed-up-yet dataset to appear in the matrix, so that the fan-out exists before I have acted (DDR 0085).
photoshas no confirmed policy when its parent row renders then its grade pill carriesdata-status="not-backed-up-yet"in the warning tone,LAST RUNreads—andON TARGETSreads—.As an operator, I want the last run stated in the fleet's own words, so that no component invents a duration against a clock.
last night 02:00when the parent row renders then theLAST RUNcell renders that string verbatim.2 nights agowhen the parent row renders then that string renders verbatim — the seam words every time, as it already does forlastGoodLabel,whenandmomentWhen.As an operator, I want the parent's summed size labelled as copies, so that I never read it as the dataset's live size.
identity's copies sum to 1.1 GB across its targets when its parent row renders then theON TARGETScell reads1.1 GBunder a column header naming it as on targets.ON TARGETSreads—and never0 B.As an operator, I want the parent grade to be the aggregate of its pairs and nothing else, so that the row cannot contradict the rows beneath it.
replicating; given at least one pair is behind but the run completed then it istarget-behind; given the run did not complete then it isstale; given no policy is confirmed then it isnot-backed-up-yet.TARGETS CURRENTcount is read then it equals the number of its pair rows whose pair state is current.As an operator, I want the matrix's counted figures to agree with the coverage map's, so that the drill-down aggregates rather than competes.
VERIFIED COPIEScount is 2 when its matrix parent row renders then its current-pair count is also 2 — both are the count of pairs holding a counted verified copy.LAST GOODis last night 02:00 when its pairs are read then the newest pair last-verified moment is that same moment — S1's last good is the max over the pairs.C. Expansion mechanics
As an operator, I want to expand a dataset to see its targets, so that the fan-out is one click from the spine.
data-action="toggle-<id>"then a nesteddata-field="targets-<id>"table renders beneath it with one row per target.As an operator, I want to collapse it again, so that a long matrix stays readable.
As an operator, I want several datasets open at once, so that I can compare two fan-outs side by side (the prototype's multi-open, adopted).
identityis expanded when the operator expandschatthen both nested tables are rendered simultaneously and neither collapses the other.As an operator, I want the chevron to say which way it goes, so that the affordance is not guesswork.
As an operator, I want the matrix to open in a legible resting state, so that the screen is useful before I touch it.
stale,target-behind) is expanded and healthy datasets are collapsed.As an operator, I want the nested table to be readable, so that a drill-down is not a wall of micro-type.
D. Pair rows — a current copy
As an operator, I want one row per dataset → target pair, so that every copy has a place it is accounted for.
identityreplicates totōtaraand an offsite partner site when its nested table renders then it holdsdata-field="pair-identity-totara"anddata-field="pair-identity-offsite".As an operator, I want a current pair to say so plainly, so that "verified on that target" is the thing I read.
tōtaraholdsidentity's latest scheduled snapshot verified when its pair row renders then the last-verified cell renders the verified marker with the seam's moment wording and the row counts toward the parent's current count.As an operator, I want a reachable target marked reachable, so that the pair's two questions — is it there, is it current — are answered separately.
data-status="reachable"in the healthy tone.As an operator, I want per-pair size and snapshot count, so that I can see what each target is actually holding.
tōtaraholds 30 retained verified snapshots ofidentitytotalling 560 MB when its pair row renders thenSIZE ON TARGETreads560 MBandSNAPSHOTS HELDreads30.SIZE ON TARGETreads—with the not-recorded reason available, and never0 B.As an operator, I want every pair to link to its run log, so that the matrix explains itself without restating runs.
<id>when it renders then it offersdata-action="open-runs-<id>".open-runs-<id>intent and its existing parser, reused unchanged.E. Ageing and stale
As an operator, I want a reachable-but-ageing pair distinguished from an unreachable one, so that "the run didn't happen" and "the copy failed" are never conflated.
chat's run did not fire andrimuis reachable when the pair row renders then the reachability cell isreachableand the last-verified cell carriesdata-status="ageing"with wording naming how long since a run.As an operator, I want a stale dataset's pairs to all read ageing, so that the aggregate and the detail tell one story.
chatis stale with two reachable targets when it is expanded then both pair rows carryageingand the parent reads0 of 2.As an operator, I want ageing to be the read's verdict and not the browser's, so that two operators in different timezones see the same word.
As an operator, I want stale never rendered in red, so that the panel's palette keeps its one meaning.
staleparent pill or anageingpair pill when its computed style is read then its status token resolves to--oc-status-warningand no destructive/red token appears anywhere on this surface.As an operator, I want ageing to survive a partial read, so that a gap never quietly clears a known fault.
F. Unreachable copies and the last-known discipline
As an operator, I want a failed copy named on its own row, so that I know which target broke and not merely that something did.
git's copy ontōtarafailed to write on the last run when its pair row renders then the reachability cell carriesdata-status="unreachable"with the loud weight, wording naming the target.As an operator, I want an unreachable target's figures labelled last known, so that no cell is ever a stale green.
last knownmarker and the last-verified cell states the moment is not counted while unreachable.ON TARGETSsum are computed then the pair's last-known figures are excluded from both.As an operator, I want to retry a failed copy without leaving the matrix, so that the obvious next action is where the problem is (the P7-S3 inline-retry precedent).
data-action="retry-pair-<id>-<field>".retryTarget(datasetId, field)seam verb runs and the matrix re-reads afterwards so the row shows what the seam now says.As an operator, I want a successful retry to be visible immediately, so that I can tell the fix landed.
last knownmarker, and the parent's current count increases by one.As an operator, I want a failed retry to stay honest, so that trying is never mistaken for fixing.
As an operator, I want a retry's failure to be a rendered state, so that a lost action is never silent.
As an operator, I want reachability to carry when it was observed, so that I know how fresh the verdict is.
G. Gone targets
As an operator, I want a target that has left the fleet marked gone, so that its copies stop being counted the moment it is known gone (DDR 0083 §3).
ON TARGETSsum are computed then it contributes to neither.As an operator, I want a gone target's row to route me to the fix, so that the matrix hands the problem to the surface that owns it.
open-gone-target-<id>intent is emitted and, with the gone-target client wired, P7-S2x mounts for that dataset (flow edge S7 → S2x).As an operator, I want a gone target still named, so that I can tell what was lost.
As an operator, I want replacing a gone target to be reflected on return, so that the matrix never shows a resolved problem.
H. Not backed up yet, and drafted targets
As an operator, I want a not-yet-backed-up dataset to show its drafted targets, so that the matrix is never a blank row (DDR 0085).
photoshas no confirmed policy but a drafted recommended policy when it is expanded then its nested table renders one row per drafted target rather than an empty table or a "nothing here" message.As an operator, I want a drafted target marked drafted, so that I never mistake a recommendation for an arrangement.
data-status="not-configured"in the muted tone — neverreachable, because nothing has ever been attempted.As an operator, I want a pair with no snapshots to say exactly that, so that empty is not confused with failed.
data-status="no-snapshots-yet"in the muted tone,SIZE ON TARGETreads—andSNAPSHOTS HELDreads0.As an operator, I want the drafted row to offer the act that would make it real, so that the honest empty state is also the way forward.
data-action="confirm-policy-<id>"and activating it routes to that dataset's P7-S2 policy screen through the existing open-policy intent.As an operator, I want a single-node fleet's matrix to stay honest, so that the floor DDR 0085 names is not contradicted here.
I. Attention, failure and empty
As an operator, I want the matrix's problems summarised in one plain-language line, so that I do not have to scan every nested table.
data-field="matrix-attention"renders in the warning posture naming each problem in plain language and stating that monitoring alerted.As an operator, I want the attention line to point at monitoring rather than replace it, so that this screen is never the only place a failure shows (ADR 0081).
As an operator, I want a failed read to be a rendered state with a retry, so that a broken control plane is never a blank screen (the fail-loud sweep, #304).
As an operator, I want a fleet with no datasets at all to say so, so that an empty matrix is a statement and not a bug.
As an operator, I want the matrix to reflect what the fleet holds now, so that a service provisioned since my last visit simply appears.
As an operator, I want the matrix's copy to use the community's vocabulary, so that the panel speaks one language.
J. The projection discipline
As an operator, I want the matrix to invent no facts, so that it can never disagree with the surfaces it drills out of.
As an operator, I want the matrix to be as re-derivable as everything else in backups, so that ADR 0082's promise is not quietly broken by a new surface.
Rederive) when the replication read runs against it then it answers with the same shape and the same per-pair verdicts as the live one, with sizes present exactly where the inventories carried them.As an operator, I want the surface to hold no state, so that back-and-forth navigation cannot drift.
As a maintainer, I want one route and one client face, so that the matrix costs the transport layer as little as it costs the design.
wire.tsboundary, with faults on the shared Problem body — no new client class, no hand-rolled fetch.Implementation Decisions
The
backuporchestrator (ADR 0079 — THE seam)Replication, returning the whole P7-S7 view: the dataset rows, each row's pairs, the counts, the seam-worded labels and pill statuses, and the attention sentences. It joinsOverview,RunsView,RunFailedView,GoneTargetView,RestoreViewandExportDatasetsas another projection over the same in-memory state. No new orchestrator field is added for the view itself.Healthybit (ADR 0061). For an offsite target: the outcome of the last replicate attempt. Nothing dials anything.len(cipher.Sealed)to check headroom before every write and currently only logs it. That figure is threaded back so the copy carries it, and size on target is the sum over the moments the target retains; the parent's on targets is the sum over its counted pairs. Absent is absent: a copy with no recorded size contributes nothing to the sum and renders—with the reason stated. The re-derived path takes the size from the inventory's ciphertext length where the inventory carried it.retry this copyisTargetRetryClient.retryTarget(datasetID, field)— the same seam verb, the sameRetryResult, the same attribution-in-request-context rule (ADR 0027). Thefieldis the pair row's field (node id oroffsite), identical to P7-S3x's.The transport
GETon the backups route family returning the replication view, registered beside the existing overview/runs/policy routes and behind the same auth gate. OpenAPI spec first (the spec is the contract, ADR 0037), generated client, thin handler over the orchestrator, faults on the sharedProblembody.HttpBackupsClientgrows areplication()method and implements one more interface; it is already the single instance satisfying all seven P7 faces, and the surface composes them from that one instance.camelizeat the boundary as everywhere (standards:wire-snake-case, #126) — the wire stays snake_case and no component ever sees it.The dashboard
BackupsSurfacegains one more optional injected client and one more branch in itsonRoutechain, following the shape ofisOpenRestoreIntent/isOpenExportIntentexactly: anopenReplicationRoute()/isOpenReplicationIntent()pair insrc/lib/backups.ts, a ref holding whether the matrix is open, a close handler that clears it and re-reads the overview. No router change, no mount-table entry, no chrome wiring.BackupsOverviewScreencontract, unchanged.{ok, warn, bad}→{healthy, warning, warning}, the exact mapBackupsOverviewScreenalready applies, with the muted tone fornot-configured/no-snapshots-yet. The kit compiles no red and this surface introduces none;--oc-*tokens only, no raw hex (ADR 0122).OcPill,OcButtonandOcErrorStatecover the surface; the nested table is plain markup at product type scale. DDR 0205 rejects the LED dot deliberately — the P7 tab speaks pills, and a second health glyph on one tab is the thing being avoided.setInterval— the matrix re-reads on mount, after a retry, and on return from a drill-out.data-field/data-action/data-statusattribute in the P7-S7 wireframe is the built contract, carried verbatim sodesign-verifycan check the shipped UI against it.Element-contract rulings this spec makes
runs…action is dataset-scoped:open-runs-<datasetId>. The wireframe depicts per-pair variants (open-runs-identity-offsite,open-runs-git-totara); those are depiction, not contract. P7-S3 is a per-dataset log with no per-target filter, and a target-suffixed intent would be ambiguous for any dataset id containing a hyphen. The dataset-scoped intent reuses the existingopenRunsDatasetIdparser unchanged, and S3's own per-target outcomes already name the target. A ✎ wireframe amendment normalises the depiction with the implementing slice.retry-pair-<datasetId>-<field>, and the gone pair's action emits the existingopen-gone-target-<datasetId>intent. Both are new depictions the same amendment adds (the wireframe depicts the retry and describes the gone row in its caption without a frame row).ON TARGETSis kept (DDR 0205's open gate 2 default), labelled as the sum of copies. Dropping it is a one-field change to the read and one column in the component.Testing Decisions
A good test states externally-observable behaviour at a seam and never reaches into implementation detail. Three seams, all pre-existing — this feature mints no new seam.
Overview(current-pair count == verified copies; newest pair moment == last good); the read mutating nothing and dialling nothing; and theRederiveequivalence (the re-derived orchestrator answers the same shape). Prior art:coverage_test.go,pertarget_test.go,rebuild_test.go,run_test.go.data-field/data-action/data-statuscontract: parent rows and their grades, sender hints, expansion/collapse/multi-open, the problem-rows-open resting state, every pair state's pills and cells, thelast knownmarkers, the retry round-trip (success re-reads and clears; failure stays honest; a transport failure renders an error state), the attention callout present and absent, the failed-read error state and its retry, the never-empty drafted table, and the empty-fleet statement. Plus the surface composition:open-replicationmounts the matrix, back returns to the overview and re-reads, and the intent emits out when no client is wired. Prior art:backupsOverview.test.ts,backupPerTargetHonesty.test.ts,backupRuns.test.ts,backupsSurfaceGuard.test.ts.backups_integration_test.go,backupsLive.test.ts,backupsGuard304.test.ts.Two cross-cutting checks ride existing harnesses rather than new ones: the theming contract tests (no raw hex in the new component; every grade resolves to an
--oc-status-*token and the surface compiles no red — ADR 0122) and the callout vocabulary test (the attention callout wears the warning posture and the honest-limits voice where a limit is stated, not a warning).The movement-engine change (recording the sealed size) is proven at the existing movement seam: a replicated copy's recorded size equals the sealed byte length headroom checked, and a copy written before the ledger existed reads absent rather than zero. Prior art:
movement_test.go,movement_production_test.go.Out of Scope
duover the target. A target's total free space is headroom's concern (ADR 0104), not this screen's.downsender grade does not exist in IDSS.OcStatusDotandstatusGradesare neither used nor re-minted./backups/replicationas a deep-linkable URL. The wireframe's address bar is depiction. The served router is the flat six-tab map; non-tab paths are a shared refactor across every drilled-to surface (a later ticket, noted in #792).dest_*fields, no repo/repository nouns, no env-derived target sets.Further Notes
Vertical slices (named for the fan-in
/slice-map, #770)backup:pair-projection— the orchestrator's replication projection over existing state: dataset rows and their four grades, pairs and their four states, current/total counts, the seam-worded labels and pill statuses, the attention sentences, the last-known exclusion discipline, and theRederiveequivalence. Sizes render absent at this point. No dependencies.backup:sealed-size-ledger— the movement engine records each copy's sealed size (the figure headroom already computes and logs) and the projection sums it into size on target / on targets; absent stays absent, never zero. Depends on 1 only for where the number lands — buildable in parallel and mergeable in either order.transport:replication-read— the OpenAPI route, the thin handler, the generated client andHttpBackupsClient.replication(), behind the existing auth gate, on the shared Problem body. Depends on 1.dashboard:replication-matrix— the P7-S7 screen over its injected client: parent rows, expansion (multi-open, problems-open at rest), nested pair tables, every state, the attention callout, the error and empty states, the retry round-trip. Depends on 3.dashboard:replication-entry-and-mount— theopen-replicationintent pair inlib/backups.ts, theBackupsSurfacebranch and back-with-re-read, and the two drill-out edges (pair → P7-S3, gone → P7-S2x) reusing the existing intents. The ✎ wireframe amendment for the normalised element contract rides here. Depends on 4.Cross-arc note for the fan-in: this feature is a root with no cross-feature dependency — it consumes nothing from #769, #791 or #792 and blocks none of them. Its only shared surface is the Backups tab, and its only shared file is
BackupsSurface.vue, which every P7 slice has already amended in turn without conflict. If the fan-in needs a scheduling hint: this is the arc's cheapest feature and the one whose acceptance criteria are most fully covered by existing seams and existing prior art.The DDR's three open gates, plus two this spec adds (all veto-open, not blocking)
DDR 0205 is
acceptedwith three decisions held open for Ben under the ADR 0174 posture; this spec is written against their proposed defaults, and the veto is asynchronous.Replication…button beside Restore/Export, already shipped in the amended P7-S1 frame). A veto preferring "dataset rows click through to S7" changes one affordance in slice 5 and one story's Given/When/Then; nothing else moves, and the button is the smaller contract.ON TARGETSsummed size on the parent row (default: keep it, labelled as the sum of copies). A veto drops one field from the read, one column from the component and one story; slice 2 still earns its keep for the per-pair figure.Two the spec adds, because the design tier described figures the engine does not yet keep:
Neither gate is a placement question, so — unlike #792 and #763 — this spec has no D1 exposure and is fully sliceable now. Any veto touches at most one slice.
Implementation-time notes
p7-s7-replication-matrix.htmlnormalises the pairruns…action to the dataset-scopedopen-runs-<id>and adds the depicted rows for the retry action and the gone-target pair.docs/ux/flows/p7-backups.mermaidis untouched — none of this is a new state, and all three S7 edges are already drawn.matou-distributed-servers,src/components/backups/BackupMatrix.vue) is a reference for information design and mechanics only: the expandable parent → nested destinations table, multi-open, relative-time recency, per-pair size and count, the "n of total" summary. Its styling is a drifted fork of the same Mātou visual language; nothing visual transfers, and every colour re-encodes as an--oc-*token (ADR 0122). Not adopted: host-centric parents, the LED-dot glyph, theup/stale/downtriad,dest_*env-derived topology, snake_case wire fields in components.CONTEXT.mdrules the copy: say replication matrix, backup target, size on target, snapshots held, current, stale, last good, verified copies. Never destination, never repo size, never sender/destination matrix, never up to date or in sync, never backup as the noun for a snapshot, and never a bare healthy where a state has a name.docs/GOTCHAS.mdis worth a read before touching the movement path for slice 2 — the sealed-size figure crosses the same boundary the crown-jewel sealing does, and nothing may be logged or persisted that discloses key material or plaintext length beyond the sealed size already recorded for headroom.backuppackage's file layout suggests where the projection lands:coverage.goholds the S1 projection,pertarget.gothe S3x/S2x ones,rebuild.gothe inventory path. The pair projection reads from all three and should not edit any of their rules.Produced by
/to-specin an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #762.Closed in the 2026-08-27
other-state sweep (Ben's ruling) — child spec complete: all derived tickets closed (#819–#823).