Skip to content

feat(guard): allow read-only RemoteTrigger actions in a primary home - #21

Merged
ywplee merged 1 commit into
mainfrom
fm/fm-remotetrigger-readonly
Nov 12, 2026
Merged

ywplee merged 1 commit into
mainfrom
fm/fm-remotetrigger-readonly

Conversation

@ywplee

@ywplee ywplee commented Nov 12, 2026

Copy link
Copy Markdown
Owner

What

The primary-home delegation-shape guard (bin/fm-subagent-pretool-check.sh) denied RemoteTrigger outright because its name matches the remote stem, so a primary could not read routine runs or their logs.

RemoteTrigger is now allowed only when the payload's tool_input.action is a string exactly equal to list, get, list_runs, or get_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 unreadable tool_input, and the --tool transport (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.sh passes, with new cases for each allowed action, denied write actions and near-miss spellings, missing and malformed actions, the --tool transport, and other tool names carrying a read-only action.
bin/fm-lint.sh and bin/fm-doc-audience-check.sh pass.

Note

The optional per-home Claude permissions.deny list recommended in docs/subagent-guard.md still names RemoteTrigger; a home that adopted it must drop that entry locally for the tool to be reachable at all.
That recommendation is unchanged here.

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.
@ywplee ywplee closed this Nov 12, 2026
@ywplee ywplee reopened this Nov 12, 2026
@ywplee
ywplee merged commit fe58422 into main Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant