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
- How to detect Instinct, the invite-only AI agent you text
- Colette Kress, the CFO who challenged Huang's bets, is Nvidia's interim CEO
- AI industry execs brace for future without leading hype man, Nvidia’s Jensen Huang
- How to detect Claude Duet AI agent traffic
- Thursday assorted links
- refactor(gateway): check agent runtime authority once at request star…
- Microsoft restores service to Outlook and Teams after global outage
- Oakland Coliseum's strange, glorious run is ending: ‘People took pride in the funkiness'
- 80 favorite Cleveland Browns players, coaches, execs to cover | Opinion
- Smartwatch blood pressure monitoring was okay. AI is making it better.
Current
·
C2
·2026-11






