rescue: the display reads discard SweepExpired's cut failure — a key shown expired while the supporter may retain access #289
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#289
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?
internal/rescue/remotesupport.go:387and:409— both display reads call_ = e.keys.SweepExpired(). That sweep is what actually severs a supporter (internal/rescue/keys.go:208→Cuton mesh + SSH), and the comment at line 385 says the re-poll "is what makes 'auto-revoked at expiry' real" — then discards that mechanism's only failure signal.StatusAt(internal/rescue/keys_ledger.go:76-85) derivesKeyExpiredpurely from the clock, so a failed cut renders "expired, auto-revoked" while live mesh + SSH access persists.(The identity side is a resting refusal in today's whole composition — see the rescue-adapters slice ticket — so this is about the surface being honest once it's real, and about the read not lying meanwhile.)
Acceptance
Cut⇒ the rendered status does not claim the key is revoked.Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code).
The rescue-adapters slice referenced in the body is #306 — in today's whole composition the identity side is a resting refusal, so the sweep always errors; this ticket is about the display read being honest about that, and staying honest once #306 wires the real side.
Fixed in
c7ccd18(on origin/main).The remote-support display reads (
Engagement,EngagementForService) still fireSweepExpired()best-effort, butprojectnow reads the ledger key's own cut stamps: an expired supporter key with neither a hand-revocation (Revoked) nor an auto-revocation (AutoRevoked) stamp was never confirmed cut, so the projectedSupporterKeyGrantcarriesSeveringUnconfirmed: true+ note ("expired — severing failed, access may persist") and no revocation stamp. Because the three mutating call sites (grant/revoke/close) propagate their sweep error before reachingproject, this state only ever reflects a genuinely unlanded cut — their existing propagation is unchanged.Dashboard surface: the supporter-key line renders a live warning pill (
data-status="supporter-key-severing-unconfirmed") with the note instead of "auto-revoked at expiry".Tests (red-first): seam
internal/rescue/remotesupport_test.go::TestStory19_FailedExpirySweepDoesNotClaimRevoked— a failingCut⇒ the rendered status carries no revocation stamp and readsSeveringUnconfirmed; a recovered sweep then cuts for real and clears it. Dashboarddashboard/tests/unit/rescueRemoteSupport.test.ts. go test (rescue, controlapi) + vitest/eslint/vue-tsc green.