rescue: breakglass-variant-honesty — key-absent is not "no replica" (#44) #120
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#120
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). Follow-up filed by the 2026-07-26 review sweep (code-review Standards/Spec + design-verify Design axes over
6596977..9e946b7). Should-fix:internal/breakglass/material.go:204falls through toVariantNoReplicawhen the real fault is key-absent (replica present, no valid peer key) — a dishonest state versus #44 story 37's honest-state requirement, and the combination is untested.Acceptance criteria
Blocked by
None.
Task manifest
Done in
590a05d(on origin/main).Fix:
internal/breakglass/material.goMaterialnow selects a distinctVariantKeyAbsentwhenever the operator key is absent while the config replica is present — a new laptop that synced the repo but was never granted a key. The honest state names what exists (the replica), what is missing (the operator key), and who can act (another operator holding a valid key + the operator-key ledger grant), and withholds Clone (the replica is already here). Theno-replicabranch is untouched when the replica is genuinely absent (fresh-install-no-replica stays variant B).AC1 (present replica, no valid peer key → key-absent honest state, never "no replica"): the branch fires on
key.State == KeyAbsent && replicaHere; the headline names the missing operator key and never says "no replica". App renders it atdata-status="key-absent"inNoTier1MaterialScreen.vue; the P8-S3x wireframe now draws the fourth frame (rule 2b, the binding contract).AC2 (combination tested):
TestMaterialKeyAbsentReplicaHereIsKeyAbsentNotNoReplicaandTestMaterialKeyAbsentReplicaHereNoValidPeerKey(internal/breakglass/material_test.go); component tests inapp/tests/unit/noTier1MaterialScreen.test.tsassert the honest state, absence of "no replica"/Clone, and Check-again → Situation on regained material.Verification:
go test ./internal/breakglassgreen; app vitest 197 passed; vue-tsc clean; eslint 0.