refactor(gateway): check node plugin approval decisions once (#201968)
Problem: plugin node approval re-checked an isCurrent predicate at every stage of one approval: when the plugin asked for approval, after the placement-grant resolution, after the decision arrived, in a second decision projection after consumption, and after grant retention. A started approval could then be refused ("agent runtime approval authority is no longer active") or turned into a null decision partway through.
Fix: those five approval-stage re-checks and the isCurrent parameter are deleted. The first decision projection (the decision's start check), record-specific allow-once consumption, the placement-owner binding and grant retention are kept. Every clause isCurrent composed (plugin currentness, private-owner currentness, and the upload/approval gate) is still refused at the policy's own pre-transport checks and at the final send. The lifetime-check count in node-invoke-plugin-approval.ts falls from 2 to 0.
User impact: a node approval that has started is no longer cancelled or turned into a null decision partway through by a re-check. Plugin replacement, private-owner closure and a disabled upload still stop the dispatch before it reaches the node.
Proof: 11 node-dispatch test files (204 tests) on current main, including two new upload-gate approval cases and allow-once consumption failure; 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 node plugin approval decisions once (#201968)
Find Your Interest
- refactor(gateway): check forwarded node approvals once at sanitizatio…
- refactor(gateway): check node dispatch run authority once at caller e…
- refactor(gateway): check exec approval authority once at request star…
- test(gateway): align placement standing grant test with check-once ap…
- refactor(gateway): check agent runtime authority once at request star…
- feat(plugins): grant conversation access through the capability revie…
- Ratlam Collector Orders Strict E-Office Implementation To Prevent File Delays
- Launching My Latest WordPress Plugin: REST Pro Tools
- Launching My Latest WordPress Plugin: REST Pro Tools
- Gatsby - Wrapping Markdown in HTML Divs with Custom Classes
Current
·
C2
·2026-11





