rescue: tier3-ceremony — recombine shares, rebuild via founding's stand-up #97
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
1 participant
Notifications
Due date
No due date set.
Depends on
Reference
Matou/idss#97
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
Feature spec: #21 (rescue).
What to build
At total loss — reached only through the S3x variant-C door or a lost break-glass action — the app runs the Tier-3 recovery ceremony (P8-S8), in two acts.
Act 1 — recombine. The threshold of recovery shares combines with the recovery kit. Below threshold it is an honest stuck state naming exactly what is missing ("1 of 2 required — Mere's share unconfirmed, Hemi unreachable"): nothing is reconstituted below threshold and there is no operator-app override — the threshold is the community's decision (ADR 0091). When the threshold is met, the crown jewels are reconstituted in the app's memory only, for this rebuild.
Act 2 — rebuild from checkout. The operator picks the freshest checkout they can reach — this machine's replica, another operator's replica (freshest wins, named), or a repo restored from backup — and the machine to carry the control plane (one meeting the gateway minimum). The rebuild rides founding's own stand-up machinery: the helper drives the
foundingorchestrator's install → seed → deploy path with recovered material substituted for newly-born material (ADRs 0091/0043/0052), ending in the same scrub (ADR 0044) so the machine keeps no ambient crown jewels. It ends at recovered (P8-S5, rebuilt variant): the cluster and access are recovered — control plane, sign-in, mesh, dashboard — and data is not all back yet: restores continue in backups, per dataset, the Identity dataset first so members exist again (ADR 0078), and the spent shares show on Recovery readiness with a prompt to re-run the ceremony.Thin UI over the
breakglasshelper (stdio NDJSON), which composes thefoundingpackage already bundled in the helper — no new binary target. Data returns through backups' restore; rescue never grows a data-restore path.Note: build-depends on the
foundingorchestrator (install → seed → deploy → scrub) and consumes backups' rebuild-from-nothing restore artifacts.Acceptance criteria
Blocked by
Task manifest
Done in commit
681dc9d(onorigin/main).The two-act Tier-3 recovery ceremony (P8-S8, ADR 0091),
breakglass-hosted, composing the bundledfoundingpackage (no new binary target).Act 1 — recombine (
Recombine, stories 48/49): the threshold of recovery shares combining WITH the recovery kit (ShareSource) reconstitutes the crown jewels in the app's memory only (RecoveredMaterial— secret-bearing, unexported, never marshalled, ADR 0051). Below threshold is an honest stuck state naming exactly what is missing ("1 of 2 required — Mere's share unconfirmed, Hemi unreachable"); nothing is reconstituted and there is no operator-app override —Reconstituteis never called below threshold (proven at the seam).Act 2 — rebuild from checkout (
RebuildOptions/Rebuild, stories 50–52): offers this machine's replica / another operator's (freshest, named) / a repo from backup (CheckoutSource) and gateway-minimum machines (MachineSource; below-minimum named, not hidden). Drives founding's own stand-up via aFoundingStandupseam — install→seed→deploy with recovered material substituted for newly-born (ADRs 0043/0052) — ending in the same scrub (ADR 0044), asserted against founding's ownfounding.Residue(refusesErrRebuildNotScrubbed/ErrRebuildScrubResidue), then drops the in-memory jewels. Lands on P8-S5 rebuilt: cluster + access recovered (control plane · sign-in · mesh · dashboard), data not all back — restores continue per dataset via backups, Identity first (ADR 0078) — spent shares surfaced on Recovery readiness with a re-run prompt.Evidence:
internal/breakglass/tier3.go(+tier3_fakes.goin-memory founding stand-up harness, +tier3_test.goseam tests — 11 pass),recombine/rebuild-options/rebuildbridge ops,app/src/lib/breakglass.tsseam types + fake,Tier3CeremonyScreen.vue(both acts + rebuilt landing, built to the wireframe'sdata-field/data-action/data-statuscontract), helper wiring. Verified:go build/vet/test ./...+ gofmt clean;vue-tscclean; 183 app tests + Tier-3 seam tests pass.