rescue: supporter-expiry-revocation — expiry actually cuts mesh + SSH together (#98) #111
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#111
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). Blocker: supporter-key expiry is display-only —internal/rescue/remotesupport.go:331Closeonly revokes keys stillKeyActive; nothing revokes at expiry, so an "auto-revoked" supporter keeps both mesh and SSH access while the ledger claims "nothing remained granted".What to fix
Make expiry real: at the expiry time the supporter's key is revoked on both the mesh and SSH sides together, and the ledger reflects it truthfully — #98's "auto-revoked at expiry … cutting the mesh and SSH sides together".
TestStory20_CloseAfterAutoRevokeResolvesAlertmust actually assert the cut. Dashboard side:RemoteSupportScreen.vuerenders expiry once from a staticexpiresInSeconds— make the countdown live (ticker/re-poll) so expiry is reflected without a manual reload.Acceptance criteria
Blocked by
None.
Task manifest
Done in
c1e158d(onorigin/main).Expiry now cuts for real. The blocker was that
internal/rescue/remotesupport.goCloseonly revoked keys stillKeyActive, and nothing ever calledIdentitySide.Cutat expiry —StatusAtderivedKeyExpiredfrom the clock while the mesh recipient-set membership and the SSH principals stayed paired. An auto-revoked supporter kept both paths.Keyring.SweepExpired(internal/rescue/keys.go) cuts both sides together (ADR 0087) the moment a time-boxed key is observed past its expiry, stamping the new idempotentOperatorKey.AutoRevokedat the expiry moment (status staysKeyExpired).Engagementsreconciles on every read (Engagement/EngagementForService— the dashboard re-poll makes expiry real with no background timer) and every action (GrantSupporterKey/RevokeSupporterKey/Close, error-propagating), soCloses "nothing remained granted" is true in fact.TestStory19_SupporterKeyCountsDownAndAutoRevokeschecks the mesh + SSH sides are dropped after expiry;TestStory20_CloseAfterAutoRevokeResolvesAlertasserts the supporter is no longer paired and the revocation copy is honest.RemoteSupportScreen.vuecountsexpiresInSecondsdown with a per-second ticker and emitsrefreshat zero;RemoteSupportSurface.vuere-reads the engagement by id, so the auto-revocation shows without a manual reload. New fake-timer component test inrescueRemoteSupport.test.tsproves the live countdown (03→02→01) and the expiry re-read.All three acceptance clauses satisfied.
go test ./internal/rescue/and the full dashboard vitest suite (433 tests) pass; the changed files lint clean.St
(out of scope): the one existingpnpm linterror is indashboard/src/components/provisioning/UpdatesSurface.vue` from #112 (commit0ac036f), untouched by this slice.