Work on scoping out what has already been done on backups in the IDSS repo — covering services, machines and the gateway #1386

Closed
opened 2026-09-11 02:41:13 +00:00 by Omar · 3 comments
Member

Work on scoping out what has already been done on backups in the IDSS repo — covering services, machines and the gateway

Ben: tagged for human design needed and then so like one of the things that I need to work on in the IDSS repo is scoping out what's been done as far as backups and what backups would look like it needs to work for the services for machines uh for the gateway um so yeah that would be like maybe it's two tickets actually the first ticket would be like a research and scoping document um to figure out what's already been done And then the second ticket would be to review the scoping document, which requires human design, to then do a wayfinder and grilling session on them to identify the steps to implement it properly.


Committed by Ben in meeting meeting-20260909-121038 at 00:00:25 (2026-09-09).
Transcript: /home/ian/Recordings/meeting-20260909-121038/transcript.md — private, not synced.
Opened by meeting-apply only because the box was ticked by hand in the session's review.md.

Work on scoping out what has already been done on backups in the IDSS repo — covering services, machines and the gateway > Ben: tagged for human design needed and then so like one of the things that I need to work on in the IDSS repo is scoping out what's been done as far as backups and what backups would look like it needs to work for the services for machines uh for the gateway um so yeah that would be like maybe it's two tickets actually the first ticket would be like a research and scoping document um to figure out what's already been done And then the second ticket would be to review the scoping document, which requires human design, to then do a wayfinder and grilling session on them to identify the steps to implement it properly. --- _Committed by **Ben** in meeting `meeting-20260909-121038` at 00:00:25 (2026-09-09)._ _Transcript: `/home/ian/Recordings/meeting-20260909-121038/transcript.md` — private, not synced._ _Opened by `meeting-apply` only because the box was ticked by hand in the session's `review.md`._

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: this ticket becomes ticket 1 of the two Ben described — the research/scoping document surveying what already exists for backups (services, machines, gateway). Labelled ready-for-agent + enhancement. The human-design half Ben named ("review the scoping document, which requires human design, then a wayfinder + grilling session to identify the implementation steps") is split out as a follow-on ready-for-human ticket, blocked on this one.

Why this is a two-way door: the deliverable is a single Markdown survey doc under docs/research/. It is fully revertible (edit or delete one file — no code, config, or infra changes) and provable (Ben reads it against the sources it cites; the accuracy of a "what exists today" survey is checkable against the tree). It is not on the one-way-door list — no credentials, no security widening, no member-facing trust surface, no data destruction, no spend. The genuine human-design step (deciding what to build next) is preserved on the follow-on ticket, so the irreversible judgement still stops on Ben; only the read-and-write-a-doc legwork moves at agent speed.

What proves it: the survey is already reproducible read-only work — a triage sweep of the tree turned up the full inventory below in one pass without touching anything.


Agent brief — backups scoping/survey document

Goal. Produce one consolidated Markdown document that scopes what has already been done on backups in this repo, across the three targets the issue names: services, machines, and the gateway. Descriptive only — this doc surveys the current state; it does not design new work (that is the follow-on human-design ticket).

Deliverable. A new file docs/research/backups-current-state.md (dated, in the docs/research/ house style). Structure it around: (1) the model — how backups are framed in this codebase; (2) per-target coverage — services, machines/nodes, gateway; (3) what is built vs. resting vs. absent; (4) the design record (ADRs/DDRs) behind it; (5) open threads / gaps a reader would want to know before planning implementation. Cite exact paths and ADR/spec numbers throughout so Ben can verify each claim.

Reading anchors (start here).

  • Architecture: docs/architecture/13-backup-data-flow.md (the full pipeline + "Decisions encoded" index) and docs/architecture/12-tiered-recovery.md (recovery, distinct from restore — relevant to the machines/gateway angle).
  • ADRs: 0079–0085 (orchestrator, port-declared datasets, faults-as-state, offsite state-homing, "a backup that didn't run is a failure", deliberate restore, coverage-before-operator) + 0104 (engine executes port verbs, age-sealed artifacts) + 0201 (IDIP identity dataset backup/restore + the no-backup rung). Adjacent recovery/rescue: 0006, 0086–0092, 0091, 0195.
  • Spec/slices: P7 = issue #20 (32 stories, backup seam); docs/slices/backups.yaml (child slices #82–#94, #130 — all done); docs/slices/engine-adapters.yaml (#168, #170); docs/slices/rescue.yaml; docs/slices/idip.yaml (#767 story 32, restore #787).
  • Code: internal/backup/backup.go (orchestrator), internal/backupengine/backupengine.go (engine), internal/controlapi/backups.go (HTTP seam), internal/keria/backup.go (identity dataset), control-plane/cmd/control-plane/backup_wiring.go (composition root), control-plane/cmd/smoke-backups/main.go (clan-lab smoke #177). Dashboard: dashboard/src/lib/backups.ts + dashboard/src/components/backups/ (11 screens). App: app/src/lib/noBackupReissue.ts (no-backup rung).
  • UX contract: docs/ux/flows/p7-backups.mermaid + docs/ux/wireframes/p7-backups/ (11 screens).
  • Hazards/state: GOTCHAS #83 (signify-ts random per-AID salt silently breaks the no-backup rung); STATUS.md backup rows (line ~780 P7 row; #170 engine; #130 split-and-close; operation-log 2026-08-26).

Key framing to get right (verify, don't just repeat). The model is deliberately per-dataset, not per-machine: services are the backed-up units (each ships snapshot/verify/restore/quiesce verbs via its port, ADR 0080); machines/nodes appear only as targets — whole-machine loss is handled by recovery (ADR 0006/0091), a distinct pipeline, not by P7 backups; the gateway is where the orchestrator + engine + Identity (kanidm) dataset live, and hosts the offsite-target contract and the config repo where policy state homes (ADR 0082). Make the services/machines/gateway boundary — and the backup-vs-recovery vs. Garage-redundancy distinction — explicit, since that is exactly what a reader scoping "backups for machines and the gateway" will otherwise get wrong.

Scope guard. No implementation, no new ADRs/DDRs, no code changes — a survey document only. Recommendations belong as a short "open threads / gaps" section framed as questions for the follow-on design session, not decisions. When the doc lands, it unblocks the follow-on human-design ticket.

Done when: docs/research/backups-current-state.md exists, every claim cites a path or ADR/spec number, and the three targets (services / machines / gateway) are each covered with what exists vs. what does not.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** this ticket becomes **ticket 1 of the two Ben described** — the research/scoping document surveying what already exists for backups (services, machines, gateway). Labelled `ready-for-agent` + `enhancement`. The **human-design half** Ben named ("review the scoping document, which requires human design, then a wayfinder + grilling session to identify the implementation steps") is split out as a follow-on `ready-for-human` ticket, blocked on this one. **Why this is a two-way door:** the deliverable is a single Markdown survey doc under `docs/research/`. It is fully **revertible** (edit or delete one file — no code, config, or infra changes) and **provable** (Ben reads it against the sources it cites; the accuracy of a "what exists today" survey is checkable against the tree). It is not on the one-way-door list — no credentials, no security widening, no member-facing trust surface, no data destruction, no spend. The genuine human-design step (deciding *what to build next*) is preserved on the follow-on ticket, so the irreversible judgement still stops on Ben; only the read-and-write-a-doc legwork moves at agent speed. **What proves it:** the survey is already reproducible read-only work — a triage sweep of the tree turned up the full inventory below in one pass without touching anything. --- ## Agent brief — backups scoping/survey document **Goal.** Produce one consolidated Markdown document that scopes **what has already been done on backups** in this repo, across the three targets the issue names: **services, machines, and the gateway**. Descriptive only — this doc surveys the current state; it does **not** design new work (that is the follow-on human-design ticket). **Deliverable.** A new file `docs/research/backups-current-state.md` (dated, in the `docs/research/` house style). Structure it around: (1) the model — how backups are framed in this codebase; (2) per-target coverage — services, machines/nodes, gateway; (3) what is built vs. resting vs. absent; (4) the design record (ADRs/DDRs) behind it; (5) open threads / gaps a reader would want to know before planning implementation. Cite exact paths and ADR/spec numbers throughout so Ben can verify each claim. **Reading anchors (start here).** - Architecture: `docs/architecture/13-backup-data-flow.md` (the full pipeline + "Decisions encoded" index) and `docs/architecture/12-tiered-recovery.md` (recovery, distinct from restore — relevant to the machines/gateway angle). - ADRs: **0079–0085** (orchestrator, port-declared datasets, faults-as-state, offsite state-homing, "a backup that didn't run is a failure", deliberate restore, coverage-before-operator) + **0104** (engine executes port verbs, age-sealed artifacts) + **0201** (IDIP identity dataset backup/restore + the no-backup rung). Adjacent recovery/rescue: 0006, 0086–0092, 0091, 0195. - Spec/slices: P7 = issue **#20** (32 stories, `backup` seam); `docs/slices/backups.yaml` (child slices #82–#94, #130 — all `done`); `docs/slices/engine-adapters.yaml` (#168, #170); `docs/slices/rescue.yaml`; `docs/slices/idip.yaml` (#767 story 32, restore #787). - Code: `internal/backup/backup.go` (orchestrator), `internal/backupengine/backupengine.go` (engine), `internal/controlapi/backups.go` (HTTP seam), `internal/keria/backup.go` (identity dataset), `control-plane/cmd/control-plane/backup_wiring.go` (composition root), `control-plane/cmd/smoke-backups/main.go` (clan-lab smoke #177). Dashboard: `dashboard/src/lib/backups.ts` + `dashboard/src/components/backups/` (11 screens). App: `app/src/lib/noBackupReissue.ts` (no-backup rung). - UX contract: `docs/ux/flows/p7-backups.mermaid` + `docs/ux/wireframes/p7-backups/` (11 screens). - Hazards/state: GOTCHAS **#83** (signify-ts random per-AID salt silently breaks the no-backup rung); STATUS.md backup rows (line ~780 P7 row; #170 engine; #130 split-and-close; operation-log 2026-08-26). **Key framing to get right (verify, don't just repeat).** The model is deliberately **per-dataset, not per-machine**: **services** are the backed-up units (each ships snapshot/verify/restore/quiesce verbs via its port, ADR 0080); **machines/nodes** appear only as *targets* — whole-machine loss is handled by **recovery** (ADR 0006/0091), a distinct pipeline, not by P7 backups; the **gateway** is where the orchestrator + engine + Identity (kanidm) dataset live, and hosts the offsite-target contract and the config repo where policy state homes (ADR 0082). Make the services/machines/gateway boundary — and the backup-vs-recovery vs. Garage-redundancy distinction — explicit, since that is exactly what a reader scoping "backups for machines and the gateway" will otherwise get wrong. **Scope guard.** No implementation, no new ADRs/DDRs, no code changes — a survey document only. Recommendations belong as a short "open threads / gaps" section framed as *questions for the follow-on design session*, not decisions. When the doc lands, it unblocks the follow-on human-design ticket. **Done when:** `docs/research/backups-current-state.md` exists, every claim cites a path or ADR/spec number, and the three targets (services / machines / gateway) are each covered with what exists vs. what does not.

swarm-claim host=matou-dev-server-01 run=21600
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=21600 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1386 — status success

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

envelope
{
  "issue": 1386,
  "status": "success",
  "commits": [
    "6911efd7"
  ],
  "changed_files": [
    "docs/research/backups-current-state.md"
  ],
  "tests": [],
  "criteria": {
    "docs/research/backups-current-state.md exists": "Added in commit 6911efd7 (git show --stat lists exactly this path); it is the sole changed file.",
    "every claim cites a path or ADR/spec number": "The doc's intro states the citation rule; every row and bullet carries a path:line, an ADR/DDR number, or a #issue — e.g. §1 cites 13-backup-data-flow.md:17/88-89, backup.go:188-197; §2.1 backupengine.go:89-124; §5.1 rebuild.go:101-147 + keys_crownjewel.go:96-104 (both verified first-hand); §4 lists ADRs 0079-0085/0104/0006/0086-0092/0195/0078/0201 and spec #20.",
    "the three targets (services / machines / gateway) are each covered with what exists vs what does not": "§2 is split into 2.1 Services (the backed-up units; fully built, slices #82-#94 done), 2.2 Machines/nodes (targets only; whole-machine loss is recovery/P8, not P7 — explicitly what backups does NOT do), and 2.3 the Gateway (orchestrator+engine+Identity dataset+offsite contract+config repo; what lives there). §3 is a built-vs-resting-vs-absent state table across all three.",
    "descriptive only — no new decisions/ADRs/code (scope guard)": "The commit changes only one Markdown file under docs/research/; no ADR, code, or config touched. §5 recommendations are all phrased as 'Question for the session', not decisions."
  },
  "summary": "Landed docs/research/backups-current-state.md — a cited survey of what backups already covers across services, machines, and the gateway, with open threads framed as questions for the follow-on human-design ticket.",
  "blockers": []
}
**close-report** for #1386 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1386, "status": "success", "commits": [ "6911efd7" ], "changed_files": [ "docs/research/backups-current-state.md" ], "tests": [], "criteria": { "docs/research/backups-current-state.md exists": "Added in commit 6911efd7 (git show --stat lists exactly this path); it is the sole changed file.", "every claim cites a path or ADR/spec number": "The doc's intro states the citation rule; every row and bullet carries a path:line, an ADR/DDR number, or a #issue — e.g. §1 cites 13-backup-data-flow.md:17/88-89, backup.go:188-197; §2.1 backupengine.go:89-124; §5.1 rebuild.go:101-147 + keys_crownjewel.go:96-104 (both verified first-hand); §4 lists ADRs 0079-0085/0104/0006/0086-0092/0195/0078/0201 and spec #20.", "the three targets (services / machines / gateway) are each covered with what exists vs what does not": "§2 is split into 2.1 Services (the backed-up units; fully built, slices #82-#94 done), 2.2 Machines/nodes (targets only; whole-machine loss is recovery/P8, not P7 — explicitly what backups does NOT do), and 2.3 the Gateway (orchestrator+engine+Identity dataset+offsite contract+config repo; what lives there). §3 is a built-vs-resting-vs-absent state table across all three.", "descriptive only — no new decisions/ADRs/code (scope guard)": "The commit changes only one Markdown file under docs/research/; no ADR, code, or config touched. §5 recommendations are all phrased as 'Question for the session', not decisions." }, "summary": "Landed docs/research/backups-current-state.md — a cited survey of what backups already covers across services, machines, and the gateway, with open threads framed as questions for the follow-on human-design ticket.", "blockers": [] } ``` </details>
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#1386
No description provided.