refactor(gateway): check forwarded node approvals once at sanitization (#201947) Problem: node.invoke re-checked a forwarded approval's liveness several times after the approval had been accepted: in the policy liveness callback, just before the raw transport after policy awaits, and in the registry's final isDispatchAuthorized. If the approval's retained binding changed while the command was being prepared, a node command that had already started was refused with "approved runtime authority closed before node dispatch". Fix: a forwarded approval is checked once, when the request starts, by the forwarded-approval sanitizer (decision start check, provenance, target node, requester, command binding, allow-once consumption). isForwardedNodeInvokeApprovalAuthorityActive and resolveNodeInvokeRuntimeAuthorityError and their node.invoke uses are deleted. The sanitizer, allow-once consumption, retainForHandoff and the upload gate are unchanged; node.invoke still passes the upload gate to the policy's final send. User impact: a node command whose forwarded approval was accepted is no longer refused because the approval's retained binding changed while the command was being prepared. A request whose approval is no longer usable is still refused at sanitization. Proof: 12 node-dispatch test files (238 tests) on current main; tsgo and test types; oxlint, format and the lifetime-check, line-cap, session-identity, mock-export and max-lines ratchets; ocx build --dts plus a packed install smoke on the head. Co-authored-by: Ayaan Zaidi <hi@obviy.us>
Current
·
C2
·2026-11
refactor(gateway): check forwarded node approvals once at sanitizatio…
Find Your Interest
- Language in the brain
- Cocaine Dependency and restricted learning
- Samsung One UI 9.5 beta code hints at upcoming Android laptops
- 4 Google Maps features that make holiday trips easier
- Exclusive: Samsung’s upcoming 14-inch and 16-inch Android laptops are codenamed ‘Origin’
- One UI 9.5 code reveals Samsung’s dedicated Android laptop interface with Circle to Search
- Samsung prepares Galaxy AI on Snapdragon X Elite for its upcoming Android laptops
- Samsung’s Origin laptops will plug into the Galaxy ecosystem, and One UI is laying the foundation
- Here’s everything new in Samsung One UI 9.5 beta
- refactor(gateway): check node dispatch run authority once at caller e…
Current
·
C2
·2026-11






