Repository navigation
feat(guard): allow read-only RemoteTrigger actions in a primary home - #21
Merged
Merged
Conversation
The delegation-shape guard denied RemoteTrigger outright on the remote stem, so a primary could not read routine runs or their logs. Allow the exact tool name only when tool_input.action is exactly list, get, list_runs, or get_run_log; create, update, run, a missing or non-string action, and the action-less --tool transport stay denied.
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.
What
The primary-home delegation-shape guard (
bin/fm-subagent-pretool-check.sh) deniedRemoteTriggeroutright because its name matches theremotestem, so a primary could not read routine runs or their logs.RemoteTriggeris now allowed only when the payload'stool_input.actionis a string exactly equal tolist,get,list_runs, orget_run_log.Everything else stays denied as before:
create,update,run, any other or near-miss action spelling, a missing or non-string action, an unreadabletool_input, and the--tooltransport (which carries no action).The allowance is an exact tool name plus an exact verbatim action set, documented in the script header and
docs/subagent-guard.md.Tests
bash tests/fm-subagent-pretool-check.test.shpasses, with new cases for each allowed action, denied write actions and near-miss spellings, missing and malformed actions, the--tooltransport, and other tool names carrying a read-only action.bin/fm-lint.shandbin/fm-doc-audience-check.shpass.Note
The optional per-home Claude
permissions.denylist recommended indocs/subagent-guard.mdstill namesRemoteTrigger; a home that adopted it must drop that entry locally for the tool to be reachable at all.That recommendation is unchanged here.