Repository navigation
bridge: a permission is raised with its call as the bridge's tool.call saw it, never the engine's restored input (7.189.3) - #276
Merged
Conversation
SSFSKIM
added a commit
that referenced
this pull request
Oct 19, 2026
… question's raise pinned; DX5 and tech debt Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
Owner
Author
|
Review (doperpowers:reviewer-medium, run on opus): changes requested for one P2 finding only; the leak fix itself was confirmed. The reviewer found no path that posts the restored input, the digest consistent end to end, and no regressions.
Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook) |
…l saw it, never the engine's restored input (7.189.2) The engine's tool.check and classic.PermissionRequest come after every tool.call hook beneath the bridge, where devcloud's secrets guard restores its handles to their values (the check's input is pinned). The bridge kept that input for its raise, so a prompt for a call with a restored handle carried the secret to the desk hub, whose pending table kept it. The bridge's own tool.call hook now keeps each running call's input as it was handed it, the check records it beside the engine's input (which still pairs the PermissionRequest), and a permission is raised with it. With doperpowers seated outside devcloud (prependPlugins) that is the handle form; the engine's form stays on the machine, since an allow hands no input back. The digest needs no change: the hub and the daemon's check both hash the input the raise carried. A permission for a call the bridge did not see is left to the terminal; a question is still raised as the engine gave it (the ask mod widens its dialog beneath the bridge). Seated inside the guard, the bridge is handed the restored call, and raises it as its call event already carries it. Tests: a fake guard composed beneath and outside the bridge's tool.call, with the engine's check and PermissionRequest beneath both; the permission tests now open their call through the bridge's tool.call. Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
… question's raise pinned; DX5 and tech debt Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
SSFSKIM
force-pushed
the
bridge-raise-handle-form
branch
from
October 19, 2026 16:43
654e82f to
8a534bb
Compare
…ise-handle-form; bump to 7.189.2 Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
…orm; bump to 7.189.3 Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 19, 2026
…s-guide-roster; bump to 7.189.4 Conflicts only where both sides edited one line: CLAUDE.md's hooks/ row and hooks.json's description (main's compact-offer figures, with the roster clause kept), and the version manifests (main's side, devcloud 0.4.3 with it, then bump-version.sh to 7.189.4). Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The leak
The engine's
tool.checkandclassic.PermissionRequestcome after everytool.callhook beneath the bridge. devcloud's secrets guard restores its handles ([secret:KEY]and the like) to their values in itstool.callhook, beforenext, and the check's input is pinned, so both the check and the dialog's PermissionRequest hold the restored call. The bridge kept that input (state.checks) and raised it (raisedFields), so a prompt for a call whose handle the guard restored carried the secret to the desk hub, where thependingtable kept it. This happens whatever the hook-module order is.The fix
tool.callhook keeps each running call's input as it was handed it (Call.shown).tool.checkhook records that input beside the engine's (Check.shown). The engine's input still pairs the PermissionRequest, and it stays on the machine.engineDecision), so the engine runs its own form.The digest needs no change. The hub hashes the
raisedit was sent. The daemon'scheck_digesthashes the input served by the bridge child'sGET /requests/<id>, which is that same raised event (sminos_bridge.request_info). So both sides hash the handle form.tests/sminos/test_rpcs.py::test_e_a_decision_is_bound_to_the_request_still_pendingalready pins that a digest over any other input is refused.What the hub receives, by order
prependPlugins): the bridge'stool.calleis what the model wrote, so the raise, a resync'spending, and the call'stoolevents carry the handle. The result comes back after the guard has scrubbed it.toolcall event and its result already do. The fix cannot close this order. Seating doperpowers outside devcloud is the only fix for it, and the owner applies that in settings.Tests
tests/mods/bridge.test.tshas a fake guard composed beneath and outside the bridge'stool.call, with the engine's check and PermissionRequest beneath both.tool.call, as the engine does. A new helper,called, keeps the call running until the test ends it or the turn is aborted.e.tool_input), the guard-beneath test and the "did not see" test fail.Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)