| new file mode 100644 |
| index 000000000..ed144c631 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/sdd-ledgers/member-backups-slice1-ledger.md |
| @@ -0,0 +1,85 @@ |
| +# SDD ledger — plan: docs/superpowers/plans/2026-11-11-member-backups-slice1.md |
| + |
| +Branch member-backups-1 (base b358d51d). Spec docs/superpowers/specs/2026-11-11-member-backups-design.md rev 4.1. Implementers Opus; task reviews Astra (codex gpt-6-astra high); final Astra. |
| + |
| +## Pre-flight scan |
| +| Pair / task | Produces vs consumes | Found | |
| +|---|---|---| |
| +| T1→T2 | PositionAndHistory(ctx, rd, maxFiles) (RestorePlan, time.Time, bool, error), ErrTooManyFiles | consistent | |
| +| T2→T3 | backupsFor/backupsView JSON incl. files; T3 key-set test lists files per class | consistent | |
| +| T2→T4 | backupsView, classifyBackups | consistent | |
| +| T2→T5 | door JSON mirrored by backupsJSON | consistent | |
| +| T0→T4,T5 | approved copy record; plan names ids MB1-C*, review used backups.* ids | conflict, ruled below | |
| +| T0 | test skipped until T5 removes skip | self-consistent | |
| +| T3 | route tables named by test | self-consistent | |
| +| T6 | census CLAIMS file, needs T1 + T5 changes | self-consistent | |
| + |
| +Ruling: approved copy ids are the review's `backups.*` ids, not `MB1-C*` — the review is the record; costs a rename if wrong. |
| +Ruling: Tasks 1-3 run while Paul's copy review (Task 0) is open; they contain no copy (reason codes are API values) — costs a copy touch-up in T3 if a reason label turns out to be copy. |
| +Ruling: copy review added `backups.unavailable` and `backups.cli.heading` beyond the plan's list, and the CLI reuses the page's sentences — costs a CLI-copy pass if Paul wants terminal-specific wording. |
| +Ruling: the copy-review drafts live in untracked `mb-copy/` because repo-root `copy-review/` is tracked by an older feature — costs nothing. |
| +Task 1: dispatched (base b358d51d) |
| +Task 1: implemented 25cedabc (DONE_WITH_CONCERNS: maxFiles<=0 admits none; PlanFrom shares listing cache; extra test WithoutTimes) — Astra review running |
| +Task 1: complete (commits b358d51d..25cedabc, review clean) |
| +Task 2: dispatched (base 25cedabc) |
| +Task 2: implemented cf2ef5d9 (DONE_WITH_CONCERNS) |
| +Ruling: resolveReplica calls replicaPlacement (pool+fleet half) not replicaIntrinsic — preserves db pull's existing error precedence (golden rows) — costs a small refactor if review wants one entry point. |
| +Ruling: nothing_replicated and unavailable answers are not memoised (only replicated/known classes are) — the copy says "check back in a minute" — costs a few extra listings for brand-new instances. |
| +Ruling: with cfg.HostClaim on, backupsFor answers not_shown/unavailable without reading — claims are shelved, and reading the hibernate prefix would show the wrong copy — costs nothing until claims return. |
| +Ruling: timestamp precision left to Task 3's JSON — costs nothing. |
| +Task 2: fix round 1/5 dispatched (Astra P2 setup-deadline mapping; rulings: no memo for nothing_replicated/unavailable; HostClaim -> not_shown/unavailable) |
| +Task 2: fix round 1 implemented 477cdc56 — re-review running |
| +Task 2: fix round 1/5 (3 addressed, 0 open; commits cf2ef5d9..477cdc56) |
| +Task 2: complete (commits 25cedabc..477cdc56, review clean) |
| +Ruling: JSON times stay Go's RFC 3339 encoding (fractions allowed), never truncated — truncating written_at would claim an earlier change — costs a format tweak if the CLI wants whole seconds (it can format on print). |
| +Task 3: dispatched (base 477cdc56) |
| +Task 3: implemented f5b886ff (DONE; extra read probe in claim_invariant_probes_read_test.go; teamClosed) |
| +Ruling: bad host shape answers 404 like every other instance door, not the plan's 400 — costs a test tweak if review disagrees. |
| +Ruling: deploy rungs don't narrow this metadata door (gate-pass checks them because it acts) — costs one rung check if review disagrees. |
| +Task 3: minor (deferred): socket tests used TMPDIR=/tmp/g (house rule from sdd-session-lessons); shared /tmp is a RAM disk — keep it tiny and remove /tmp/g at branch close |
| +Ruling: Astra's ⚠️ on app-less tokens is resolved — the only app-requiring credential (deploy) can't be minted without an app, and the test covers that; account-scoped operate/admin are legitimately admitted — costs one extra test if a new app-requiring role appears. |
| +Task 3: complete (commits 477cdc56..f5b886ff, review clean) |
| +Ruling: Paul asked for a UX pass (2026-11-11). Task 4 now builds spec rev 5 §2's layout (section head, three stat tiles, 'What we keep' table with chips, CLI disclosure) instead of a stack of sentences; the copy review was resubmitted with the redesigned strings (backups.* ids, 33 strings). The Download button and its states are slice 1b (§2b), not Task 4 — Task 4 renders no button until 1b ships — costs a template touch in 1b. |
| +Task 0: Paul approved copy review ddwtnxr27ojv5j7v5ntnrha6cq unedited (33 strings, redesigned layout); folded into Task 4 |
| +Ruling: Task 4 follows task-4-ux-override.md (spec rev 6.1 §2 layout, approved mockup); no Download button until 1b; backups.why.otherregion's 'You can still download one.' ships flagged until 1b — costs one sentence that over-promises briefly if 1b slips. |
| +Task 4: dispatched (base f5b886ff) |
| +Task 4: implemented ae7950f3 (DONE_WITH_CONCERNS) |
| +Ruling: backups.why.otherregion's approved 'You can still download one.' contradicts spec rev 6.1 §2b (other-region downloads refused, D-1); a corrected line went to Paul's open copy review (2jhfdd2h…) — applied as a fix once approved — costs one re-approval. |
| +Ruling: TestPlan9B8RecordWriteCensus (fails since Task 3: linkedPolicies, routeDecls, handleAppInstance) joins Task 6 with a layered inventory — costs nothing extra; CI would fail otherwise. |
| +Ruling: times shown with ' UTC' like the page's other times (no viewer zone in the console) — costs a small mismatch with the mockup. |
| +Ruling: db pull commands carry --out <first-label>.db (needed to run) — not copy. |
| +Ruling: CLI disclosure also shown for too_large_to_plan (db pull still serves it), hidden for unavailable — accepted. |
| +Copy: Paul approved backups.why.otherregion = 'Copies in {region} aren't shown here yet. Use the command line below to get one.' (approved-copy-2.json) — apply in Task 4's fix round |
| +Task 4: Astra review Needs fixes (P2 record-read failure claims Not copied; P2 viewer-local time) |
| +Ruling: Astra's viewer-time P2 is overruled — the console has no viewer zone and the page's other times show UTC; times on one page must agree — costs a later pass if the console gains a viewer zone. |
| +Task 4: fix round 1/5 dispatched (record-read failure -> Can't read now; approved other-region wording) |
| +Task 4: fix round 1 implemented d070fb13 — re-review running |
| +Task 4: fix round 1/5 (2 addressed, 0 open; commits ae7950f3..d070fb13) |
| +Task 4: complete (commits f5b886ff..d070fb13, review clean) |
| +Task 5: dispatched (base d070fb13) |
| +Task 5: implemented a106e8af (DONE; new leaf internal/backupswords holds shared strings; mapping logic duplicated page vs CLI; --instance help text and cli.md need copy) |
| +Task 5: Astra review Needs fixes (P2 unapproved --instance help; P2 em dashes in CLI; P2 duplicated display rules) |
| +Ruling: --instance help reuses db pull's shipped text verbatim (no new copy); CLI prints no dash, only approved labels; display rules + time helpers move to internal/backupswords shared by page and CLI — costs a refactor of Task 4's page code (re-run its tests). |
| +Task 5: fix round 1/5 dispatched |
| +Task 5: fix round 1 implemented dabd213c — re-review running |
| +Task 5: fix round 1/5 (3 addressed, 0 open; commits a106e8af..dabd213c) |
| +Task 5: complete (commits d070fb13..dabd213c, review clean) |
| +Task 6: dispatched (base dabd213c) |
| +Task 6: implemented 216773f5 (record-write inventory) + 5e345d46 (root-read proposal, envelope-only); both census tests pass |
| +Task 6: minor (deferred): routedecls.go comment on the new door says 'carlos backups' (command is 'carlos instances backups') |
| +Ruling: census merge order — whichever of member-backups-1/2a merges second reruns census-propose with the same NAME and layers its record-write inventory on the first; approval is re-checked on the new tip — costs one rerun. |
| +Task 6: census review (Astra) running on brief 4572b87b |
| +Task 6: census approved READY by Astra (recorded on #280) |
| +Final review: dispatched (Astra, 01d6ca78..791acdce) |
| +Final review: Astra READY AFTER FIXES (P2: operate credential without --instance gets 403 from the instance list; P3: stale 'carlos backups' comments; P3: spec on branch still rev 4.1) |
| +Ruling: don't widen the instance-list route (needs security review); the CLI detects the list refusal and prints one new line (micro copy review 3wp2xlbu…) — costs one re-approval. |
| +Ruling: the branch takes the design branch's current spec and review notes (rev 6.1) so the governing revision ships with the code — costs nothing. |
| +Ruling: /tmp/g (2,630 entries, shared by other sessions) is left alone — can't tell this session's entries from others' — costs some RAM-disk space until its owners clean up. |
| +Copy: Paul approved backups.cli.needinstance unedited ('This credential can't list the app's instances. Name one with --instance.') |
| +Final review fix wave dispatched (needinstance; stale comments; spec rev 6.1 onto the branch) |
| +Final fix wave implemented d28afa8f 56d01f24 (census changed; re-confirm needed) |
| +Final fix wave: re-review all addressed, no new breakage; census re-confirmed READY (#280) |
| +Final review: complete (01d6ca78..a055d094e23063dc6afc5331a0f2fe079e51e625), awaiting CI and Paul's merge go |
| +CI fix: TestCLIGolden re-recorded 5b0b481c (two new cases only); pushed for CI |
| +Merged origin/main (6ee600ca) for #897's CI fixes; census re-proposed on main's chain; re-confirm + CI running |
| +CI: TestDBForwardLongRequestThroughTheEdge fails on main 5fac2ff too (flake); census re-confirm R3 READY; CI rerun queued |