observability: dashboard-replication-entry-and-mount — the smallest design delta of the arc — one intent pair, one onRoute branch, two drill-outs #823

Closed
opened 2026-08-25 10:59:37 +00:00 by matou-build-agent · 2 comments

Parent

Feature spec: #793 — control-panel observability child spec: backup replication matrix (P7-S7) (DDR 0205).
Design ticket #762; slice-map fan-in #770; wayfinder map #7.
Slice dashboard-replication-entry-and-mount of docs/slices/observability.yaml; covers spec #793 stories 1–6.

What to build

The smallest design delta of the six observability siblings: an openReplicationRoute() /
isOpenReplicationIntent() pair in src/lib/backups.ts, one more branch in BackupsSurface's
existing onRoute chain following isOpenRestoreIntent / isOpenExportIntent exactly, a ref
holding whether the matrix is open, and a close handler that clears it and re-reads the
overview
. Plus the two drill-outs (pair → P7-S3, gone → P7-S2x) reusing the existing intents.

No new tab, no new mount-table entry, no chrome wiring, no router change — and no placement
cluster: ADR 0094's six tabs stay closed and unamended, and the chrome's standing-indicator slot is
untouched (this feature raises no indicator and adds no tenant).

The ✎ wireframe amendment normalising the element contract rides here (ADR 0042 discipline): the
pair runs… action is dataset-scoped (open-runs-<datasetId>), because a target-suffixed
intent would be ambiguous for any dataset id containing a hyphen; the frame also gains the depicted
rows for the retry action and the gone-target pair.

Acceptance criteria

  • (story 1) Given the coverage map resting (P7-S1), then an element with data-action="open-replication" sits in the actions row beside open-restore and open-export.
  • (story 1) Given the replication client is wired, when open-replication is activated, then P7-S7 mounts over the overview and the coverage map is no longer rendered.
  • (story 1) Given the replication client is not wired, when open-replication is activated, then 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.
  • (story 2) Given the matrix open, then the tab strip still shows exactly the six tabs of ADR 0094 with Backups selected, and the chrome's standing-indicator slot is unchanged.
  • (story 3) Given the matrix open, when the back affordance is activated, then the coverage map renders again and the overview projection is re-read, so anything a retry changed is reflected.
  • (story 41) Given a gone pair row, when its action is activated, then the existing open-gone-target-<id> intent is emitted and, with the gone-target client wired, P7-S2x mounts for that dataset.
  • (story 43) Given the operator replaced the gone target on P7-S2x, when they return to the matrix, then it re-reads and the pair reflects the new policy — the replacement pair present, the gone pair absent.
  • (ADR 0042) Given this slice's commit, then p7-s7-replication-matrix.html carries its ✎ amendment normalising the pair runs… action to the dataset-scoped open-runs-<id> and adding the depicted retry and gone-target rows; docs/ux/flows/p7-backups.mermaid is untouched.

Design contract

  • Flow: docs/ux/flows/p7-backups.mermaid
  • Edges implemented: P7-S1→P7-S7, P7-S7→P7-S3, P7-S7→P7-S2x
  • Wireframes (the element-ID contract):
    • docs/ux/wireframes/p7-backups/p7-s1-backups-overview.html

Blocked by

  • #822 — observability:dashboard-replication-matrix
  • backups:transport-backups-rescue-live (#130 — done, satisfied)

Task manifest

task: observability:dashboard-replication-entry-and-mount
implements_flow: p7-backups
implements_edge: P7-S1→P7-S7, P7-S7→P7-S3, P7-S7→P7-S2x
wireframe: docs/ux/wireframes/p7-backups/p7-s1-backups-overview.html
interface: an `openReplicationRoute()` / `isOpenReplicationIntent()` pair in `lib/backups.ts` plus one
  branch in `BackupsSurface`'s existing `onRoute` chain with back-and-re-read; the two drill-outs reuse
  the existing `open-runs-<datasetId>` and `open-gone-target-<datasetId>` intents
seam: 'the surface composition tests (prior art `backupsSurfaceGuard.test.ts`, `backupsOverview.test.ts`):
  `open-replication` mounts the matrix; back returns to the overview and re-reads; the intent emits out
  when no client is wired; the tab strip still shows six; both drill-outs emit their existing intents
  and mount their screens with the clients wired'
acceptance:
- given: the resting coverage map
  when: it renders
  then: '`open-replication` sits in the actions row beside `open-restore` and `open-export`'
- given: the replication client wired
  when: '`open-replication` is activated'
  then: P7-S7 mounts over the overview and the coverage map is no longer rendered
- given: no replication client wired
  when: '`open-replication` is activated'
  then: the intent emits out to the navigator and the overview stays put
- given: the matrix open
  when: back is activated
  then: the coverage map renders again and the overview projection is re-read
- given: a gone pair row
  when: its action is activated
  then: the existing `open-gone-target-<id>` intent emits and P7-S2x mounts with the client wired
depends_on:
- dashboard-replication-matrix
- backups:transport-backups-rescue-live
out_of_scope:
- a new tab, mount-table entry, chrome wiring or router change
- '`/backups/replication` as a deep-linkable URL'
- any new intent parser — both drill-outs reuse the existing ones
- the matrix screen itself (`dashboard-replication-matrix`)
- a chrome indicator — this feature raises none
needs_human_decision: []

Emitted by /to-tickets over docs/slices/observability.yaml in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.

## Parent Feature spec: **#793** — control-panel observability child spec: backup replication matrix (P7-S7) (DDR 0205). Design ticket #762; slice-map fan-in **#770**; wayfinder map #7. Slice `dashboard-replication-entry-and-mount` of `docs/slices/observability.yaml`; covers spec #793 stories 1–6. ## What to build **The smallest design delta of the six observability siblings**: an `openReplicationRoute()` / `isOpenReplicationIntent()` pair in `src/lib/backups.ts`, one more branch in `BackupsSurface`'s existing `onRoute` chain following `isOpenRestoreIntent` / `isOpenExportIntent` exactly, a ref holding whether the matrix is open, and a close handler that clears it and **re-reads the overview**. Plus the two drill-outs (pair → P7-S3, gone → P7-S2x) reusing the existing intents. **No new tab, no new mount-table entry, no chrome wiring, no router change** — and no placement cluster: ADR 0094's six tabs stay closed and unamended, and the chrome's standing-indicator slot is untouched (this feature raises no indicator and adds no tenant). The `✎` wireframe amendment normalising the element contract rides here (ADR 0042 discipline): the pair `runs…` action is **dataset-scoped** (`open-runs-<datasetId>`), because a target-suffixed intent would be ambiguous for any dataset id containing a hyphen; the frame also gains the depicted rows for the retry action and the gone-target pair. ## Acceptance criteria - [ ] (story 1) Given the coverage map resting (P7-S1), then an element with `data-action="open-replication"` sits in the actions row beside `open-restore` and `open-export`. - [ ] (story 1) Given the replication client is wired, when `open-replication` is activated, then P7-S7 mounts over the overview and the coverage map is no longer rendered. - [ ] (story 1) Given the replication client is **not** wired, when `open-replication` is activated, then 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. - [ ] (story 2) Given the matrix open, then the tab strip still shows exactly the six tabs of ADR 0094 with Backups selected, and the chrome's standing-indicator slot is unchanged. - [ ] (story 3) Given the matrix open, when the back affordance is activated, then the coverage map renders again **and the overview projection is re-read**, so anything a retry changed is reflected. - [ ] (story 41) Given a gone pair row, when its action is activated, then the existing `open-gone-target-<id>` intent is emitted and, with the gone-target client wired, P7-S2x mounts for that dataset. - [ ] (story 43) Given the operator replaced the gone target on P7-S2x, when they return to the matrix, then it re-reads and the pair reflects the new policy — the replacement pair present, the gone pair absent. - [ ] (ADR 0042) Given this slice's commit, then `p7-s7-replication-matrix.html` carries its `✎` amendment normalising the pair `runs…` action to the dataset-scoped `open-runs-<id>` and adding the depicted retry and gone-target rows; `docs/ux/flows/p7-backups.mermaid` is **untouched**. ## Design contract - **Flow:** `docs/ux/flows/p7-backups.mermaid` - **Edges implemented:** `P7-S1→P7-S7, P7-S7→P7-S3, P7-S7→P7-S2x` - **Wireframes (the element-ID contract):** - `docs/ux/wireframes/p7-backups/p7-s1-backups-overview.html` ## Blocked by - #822 — `observability:dashboard-replication-matrix` - `backups:transport-backups-rescue-live` (#130 — done, satisfied) ## Task manifest ```yaml task: observability:dashboard-replication-entry-and-mount implements_flow: p7-backups implements_edge: P7-S1→P7-S7, P7-S7→P7-S3, P7-S7→P7-S2x wireframe: docs/ux/wireframes/p7-backups/p7-s1-backups-overview.html interface: an `openReplicationRoute()` / `isOpenReplicationIntent()` pair in `lib/backups.ts` plus one branch in `BackupsSurface`'s existing `onRoute` chain with back-and-re-read; the two drill-outs reuse the existing `open-runs-<datasetId>` and `open-gone-target-<datasetId>` intents seam: 'the surface composition tests (prior art `backupsSurfaceGuard.test.ts`, `backupsOverview.test.ts`): `open-replication` mounts the matrix; back returns to the overview and re-reads; the intent emits out when no client is wired; the tab strip still shows six; both drill-outs emit their existing intents and mount their screens with the clients wired' acceptance: - given: the resting coverage map when: it renders then: '`open-replication` sits in the actions row beside `open-restore` and `open-export`' - given: the replication client wired when: '`open-replication` is activated' then: P7-S7 mounts over the overview and the coverage map is no longer rendered - given: no replication client wired when: '`open-replication` is activated' then: the intent emits out to the navigator and the overview stays put - given: the matrix open when: back is activated then: the coverage map renders again and the overview projection is re-read - given: a gone pair row when: its action is activated then: the existing `open-gone-target-<id>` intent emits and P7-S2x mounts with the client wired depends_on: - dashboard-replication-matrix - backups:transport-backups-rescue-live out_of_scope: - a new tab, mount-table entry, chrome wiring or router change - '`/backups/replication` as a deep-linkable URL' - any new intent parser — both drill-outs reuse the existing ones - the matrix screen itself (`dashboard-replication-matrix`) - a chrome indicator — this feature raises none needs_human_decision: [] ``` --- *Emitted by `/to-tickets` over `docs/slices/observability.yaml` in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.*
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=10065
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=10065 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #823 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 823,
  "status": "success",
  "commits": [
    "a3004bb"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/lib/backups.ts",
    "dashboard/src/components/backups/BackupsSurface.vue",
    "dashboard/src/components/backups/BackupsOverviewScreen.vue",
    "dashboard/tests/unit/backupsReplicationEntry.test.ts",
    "docs/ux/wireframes/p7-backups/p7-s7-replication-matrix.html"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/unit/backupsReplicationEntry.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx vitest run (full dashboard suite, 1069 tests)",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "npx eslint <changed .ts/.vue files>",
      "exit_code": 0
    },
    {
      "command": "npx prettier --check <changed .ts/.vue files>",
      "exit_code": 0
    }
  ],
  "criteria": {
    "story 1 — open-replication in the actions row beside open-restore/open-export": "BackupsOverviewScreen.vue adds the Replication… OcButton (action=open-replication) before open-restore/open-export; asserted by backupsReplicationEntry.test.ts 'offers open-replication in the actions row'",
    "story 1 — client wired: open-replication mounts P7-S7 over the overview, coverage map no longer rendered": "BackupsSurface onRoute branch sets replicationOpen and mounts BackupReplicationMatrixScreen; test 'mounts the matrix over the overview when the replication client is wired' asserts data-field=replication-matrix-screen present, open-replication gone, replication read = 1",
    "story 1 — no client wired: intent emits out, overview stays": "onRoute emits route first, replication branch guarded on props.replicationClient; test 'emits the intent out and stays on the overview when no client is wired'",
    "story 2 — six tabs unchanged, chrome indicator slot unchanged": "no mount-registry / chrome change in the diff (out_of_scope respected); no new tab or mount-table entry added — verified by git diff (mountRegistry.ts untouched)",
    "story 3 — back: coverage map renders again and overview re-read": "closeReplication clears replicationOpen and awaits reload(); test 'back returns to the coverage map and re-reads the overview' asserts matrix gone, open-replication back, client.reads 1->2",
    "story 41 — gone pair: open-gone-target-<id> emitted and P7-S2x mounts": "matrix emits openGoneTargetRoute through onRoute -> goneTargetDatasetId set -> BackupPolicyTargetGoneScreen mounts; test 'a gone pair emits open-gone-target-<id> and mounts P7-S2x' asserts the emitted intent and data-field=policy-target-gone",
    "story 43 — replaced on P7-S2x, return: matrix re-reads, replacement present, gone pair absent": "replicationOpen persists across the gone drill, so returning remounts the matrix (re-reads on mount); test 'returning from the gone-target state remounts the matrix, which re-reads' asserts replication reads 1->2 and pair-git-matai absent after set()",
    "ADR 0042 — wireframe amendment + flow untouched": "p7-s7-replication-matrix.html normalises open-runs-<id> (dropped -offsite/-totara suffixes), adds the depicted retry + gone-target rows and a dated ✎ note; docs/ux/flows/p7-backups.mermaid has zero diff (git diff --stat empty)"
  },
  "summary": "The P7-S7 replication entry-and-mount: an openReplicationRoute/isOpenReplicationIntent pair, one BackupsSurface onRoute branch with back-and-re-read, the overview's Replication… action, and the ✎ wireframe amendment normalising open-runs-<id>.",
  "blockers": []
}
**close-report** for #823 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 823, "status": "success", "commits": [ "a3004bb" ], "changed_files": [ "STATUS.md", "dashboard/src/lib/backups.ts", "dashboard/src/components/backups/BackupsSurface.vue", "dashboard/src/components/backups/BackupsOverviewScreen.vue", "dashboard/tests/unit/backupsReplicationEntry.test.ts", "docs/ux/wireframes/p7-backups/p7-s7-replication-matrix.html" ], "tests": [ { "command": "npx vitest run tests/unit/backupsReplicationEntry.test.ts", "exit_code": 0 }, { "command": "npx vitest run (full dashboard suite, 1069 tests)", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "npx eslint <changed .ts/.vue files>", "exit_code": 0 }, { "command": "npx prettier --check <changed .ts/.vue files>", "exit_code": 0 } ], "criteria": { "story 1 — open-replication in the actions row beside open-restore/open-export": "BackupsOverviewScreen.vue adds the Replication… OcButton (action=open-replication) before open-restore/open-export; asserted by backupsReplicationEntry.test.ts 'offers open-replication in the actions row'", "story 1 — client wired: open-replication mounts P7-S7 over the overview, coverage map no longer rendered": "BackupsSurface onRoute branch sets replicationOpen and mounts BackupReplicationMatrixScreen; test 'mounts the matrix over the overview when the replication client is wired' asserts data-field=replication-matrix-screen present, open-replication gone, replication read = 1", "story 1 — no client wired: intent emits out, overview stays": "onRoute emits route first, replication branch guarded on props.replicationClient; test 'emits the intent out and stays on the overview when no client is wired'", "story 2 — six tabs unchanged, chrome indicator slot unchanged": "no mount-registry / chrome change in the diff (out_of_scope respected); no new tab or mount-table entry added — verified by git diff (mountRegistry.ts untouched)", "story 3 — back: coverage map renders again and overview re-read": "closeReplication clears replicationOpen and awaits reload(); test 'back returns to the coverage map and re-reads the overview' asserts matrix gone, open-replication back, client.reads 1->2", "story 41 — gone pair: open-gone-target-<id> emitted and P7-S2x mounts": "matrix emits openGoneTargetRoute through onRoute -> goneTargetDatasetId set -> BackupPolicyTargetGoneScreen mounts; test 'a gone pair emits open-gone-target-<id> and mounts P7-S2x' asserts the emitted intent and data-field=policy-target-gone", "story 43 — replaced on P7-S2x, return: matrix re-reads, replacement present, gone pair absent": "replicationOpen persists across the gone drill, so returning remounts the matrix (re-reads on mount); test 'returning from the gone-target state remounts the matrix, which re-reads' asserts replication reads 1->2 and pair-git-matai absent after set()", "ADR 0042 — wireframe amendment + flow untouched": "p7-s7-replication-matrix.html normalises open-runs-<id> (dropped -offsite/-totara suffixes), adds the depicted retry + gone-target rows and a dated ✎ note; docs/ux/flows/p7-backups.mermaid has zero diff (git diff --stat empty)" }, "summary": "The P7-S7 replication entry-and-mount: an openReplicationRoute/isOpenReplicationIntent pair, one BackupsSurface onRoute branch with back-and-re-read, the overview's Replication… action, and the ✎ wireframe amendment normalising open-runs-<id>.", "blockers": [] } ``` </details>
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.

Reference
Matou/idss#823
No description provided.