spec: nice-to-have-sweep — S13–S19 from the 2026-07-26 review (rescue, founding, breakglass, backups, app) #147
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.
Dependencies
No dependencies set.
Reference
Matou/idss#147
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
Cross-feature sweep over specs #11/#17/#20/#21 — the remaining nice-to-have findings from the 2026-07-26 code-review Spec axis (
6596977..9e946b7). Blockers/should-fixes were #110–#123; standards debt is #125–#142; S12 is folded into the durable-attempt-state ticket. Each item below is small and independent; fix each against its origin ticket's spec text.Items
internal/rescue/keys.go:128(#32):Revokecuts by holder, not by key — a two-key holder loses the other key's access. Revoke exactly the named key.internal/founding/orchestrator.go:120(#31/#72): the post-handoff scrub makesOffered()true again, re-offering founding on a machine that already founded — violates ADR 0050. Scrubbed-after-handoff must not look like never-offered.internal/founding/handoff.go:382(#72): the enrolment token is minted lazily at hand-off read; the spec says it is minted at seeding. Mint at seeding, hand off what was minted.internal/breakglass/tier3.go:564(#97): the landing asserts "every ceremony step was written to the audit log" but noAuditSinkis wired — wire the sink (or make the landing honest about what was recorded).internal/backup/run.go:201(#88): step labels say "snapshot → replicate → verify" but the actual order is snapshot → verify → replicate. Make labels tell the truth (order is correct; the copy lies).internal/founding/standup.go:486(#47): switch-Access strands anApproved-never-Enrolledledger entry and the doc comment misdescribes it. Clean up the abandoned entry (or record it honestly) and fix the comment.internal/backup/pertarget.go:681(#90) unrequestedRemoveTarget— remove or justify against spec;app/src/lib/breakglass.ts:581synthFailedActionpublicly re-implements seam truth UI-side and unconditionally offersbeginTier3(vs #44's gating) — derive from the seam;app/src/lib/founding.ts:902hard-codes a mirror ofbrandkit.Presets()— read the seam;founding.ts:1231own-VPS empty-IP rejection reuses the wrong error copy (#39) — give it its own honest message.Acceptance criteria
Each checked item: the origin ticket's spec clause holds, with a test where behaviour changed (S13, S14, S15, S16, S18, S19's beginTier3 gating); label/copy fixes (S17, S19 error copy) with the test updated to pin the honest text.
Blocked by
None. Soft note: touches founding/backups/breakglass/rescue seams — if #132 (fakes→testing-seam) lands mid-flight, rebase on it.
Task manifest
Done in
c66cfda(on origin/main). Each S13–S19 clause fixed against its origin ticket, with a test where behaviour changed:keys.go:Revokenow cuts exactly the named key — a two-key holder keeps access via re-pairing the union of their remaining active keys; both sides cut only on the last active key. (TestRevoke_CutsNamedKeyNotHolder)orchestrator.go: a stickyfoundedlatch (set on create + hand-off completion) keepsOffered/Beginhonest after the scrub deletes the state file (ADR 0044/0050) — a scrubbed machine no longer re-offers founding. (TestScrub_DoesNotReofferFounding)seed.go/handoff.go: the credential-enrolment token is minted at seeding (ADR 0046), held in memory only (ADR 0051), and the passkey step registers with what was minted (re-minting only on expiry/restart-loss). (TestStory27_TokenMintedAtSeedingNotAtHandOff)tier3.go: the rebuilt landing now writes the ceremony's stand-up steps through the existingApplier.Auditsink (ActionTier3Rebuild) and states the write honestly (AuditLogged) — no claim without a sink. (TestRebuild_WritesCeremonyStepsToAuditLog)pertarget.go/run.go+ the p7-s3x wireframe: step labels now readsnapshot → verify → replicate(the run verifies the snapshot before replicating); pinned inpertarget_test.go.standup.go+enrollledger: newenroll.Ledger.Abandoncloses an approved-but-never-enrolled request honestly when switch-Access abandons it after a reachability/deploy failure (spent code stays spent); the spec-gate-fail edge still resumes on the same code. Comment corrected; the two strand-asserting tests updated;TestAbandon_ClosesApprovedRequestadded.RemoveTargetjustified — it is the p7-s2x wireframe'sdata-action="remove-target"affordance (dashboard-wired) — and given a Go test;synthFailedActionforks now derive from oneseamFailedActionForksrule; the wizard's brand-preset swatches read the seam over a newbrand-presetsop (brandkit.PresetSwatches()) instead of a hard-coded palette mirror; the own-VPS empty-IP rejection gets its own honest message.Note on S19's beginTier3 gating: the premise ('unconditionally offers beginTier3 vs #44's gating') is contradicted by the binding contract — DDR 0088 §6 and
p8-s4x-action-failed.htmlboth offerbegin-tier3on every failed break-glass action (the escalation door is never a dead end), and the Go seam'sfailedActionsets it unconditionally too. So no gate was added; instead the fake's forks now derive from a single documentedseamFailedActionForksrule (pinned by test) so the fake can't drift from the seam.Verify: app suite green (214), eslint + vue-tsc clean. Go build+test runs in the seam CI.