Repository navigation
fix: stop retained sends after device revocation - #200353
Conversation
Preserve the existing device revocation owner across detached authority reconstruction without inheriting accepting-turn lifetime or persisting an incidental token. Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Use the actual revocation cause rather than a generic lifecycle refusal. Authority behavior is unchanged; current session-identity ratchet and format checks pass. Co-authored-by: RomneyDa <[email protected]>
|
Codex review: needs maintainer review before merge. What this changesThis PR preserves device revocation when retained sends reconstruct their authority from tokenless saved facts. Example: Bob's tokenless device starts a retained send, its accepting request ends, and an administrator revokes the device before replay admission.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs a concrete device-revocation gap still present on current main; no actionable introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGateway admission captures the authenticated operator's authority, and detached work reconstructs it from saved facts before later execution; the device-revocation owner supplies the live revocation signal. flowchart LR
A[Authenticated device] --> B[Operator authority]
B --> C[Saved facts]
C --> D[Detached continuation]
E[Device revocation owner] --> B
E --> D
D --> F[Replay admission]
F --> G[Delivery or refusal]
Technical reviewBest possible solution: Carry the existing device-revocation owner through authority wrappers and detached continuations while keeping tokenless snapshots credential-free. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the missing original-device subscription, and the PR supplies a focused red/green regression report; no target code was executed during this read-only review. Is this the best way to solve the issue? The patch uses the existing revocation owner and shared continuation boundary, preserves scope narrowing and request independence, and adds one distinct regression without new persistent state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9f441adcf1e7. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +17, Tests +40. Total +57 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 16, 2026, 9:42 PM ET / November 17, 2026, 02:42 UTC. |
|
Merged via squash.
|
Backport main f57dbb4. Preserve the release line session-identity implementation while retaining device-revocation custody across detached recovery. Release recovery 39/39 and real Gateway allowed/revoked proof retained; main exact-head CI passed before merge. Co-authored-by: RomneyDa <[email protected]>
* fix: stop retained sends after device revocation Preserve the existing device revocation owner across detached authority reconstruction without inheriting accepting-turn lifetime or persisting an incidental token. Co-authored-by: RomneyDa <[email protected]> * fix: name device revocation in continuation refusal Use the actual revocation cause rather than a generic lifecycle refusal. Authority behavior is unchanged; current session-identity ratchet and format checks pass. Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Fixes retained in-process sends continuing after their originating device is revoked when the continuation is reconstructed from tokenless saved facts. Found while qualifying the release after #200313.
User Impact
Revoked work is refused and reports the refusal instead of delivering. Allowed work still finishes after its accepting request ends. No configuration or stored-credential changes.
Why This Change Was Made
Preserve the existing device revocation owner across authority wrappers and subscribe detached continuations to that owner. Do not inherit the accepting request/turn lifetime or add a device credential to tokenless recovery snapshots. The product fixture also keeps loopback mock traffic out of inherited HTTP proxies without changing external proxy routing.
Evidence