branch-finish
Pass
Audited by Gen Agent Trust Hub on Nov 14, 2026
Risk Level: SAFE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes potentially untrusted data from external sources, including Git logs, pull request bodies, and review comments. It mitigates this risk through a dedicated 'Security Model' section that explicitly instructs the agent to treat discovered content as 'untrusted evidence' rather than instructions. It further forbids these inputs from expanding the scope of operations or granting authorization for destructive actions.
- [COMMAND_EXECUTION]: The skill utilizes a Python helper script (
scripts/inspect_finish_state.py) to determine repository state viasubprocess.run. This execution is secured by limiting the script to read-only Git subcommands. Additionally, the skill includes a test suite (scripts/test_inspect_finish_state.py) that performs a static allowlist check on the script's source code to ensure no mutating Git verbs (likepush,delete, orreset) are introduced. - [DATA_EXFILTRATION]: While the skill performs network operations (e.g.,
git push,gh pr merge), these are restricted to the repository's configured remotes. The security model ensures that remote mutations only run under explicit, per-operation user authorization granted in the current conversation, preventing automated data exfiltration to unauthorized endpoints. - [PRIVILEGE_ESCALATION]: The skill follows the principle of least privilege. It explicitly identifies five environment capabilities (e.g., push authority, PR tooling) and instructs the agent to degrade gracefully if a capability is missing rather than attempting to bypass sandbox restrictions or use high-level privileges like
sudo. - [SAFE]: The skill implements significant safety nets for destructive actions. Cleanup of workspaces is restricted to specific ownership values (e.g.,
SKILL_OWNED), and branch deletions are gated by tree verification and confirmation of content preservation on the base branch or remote.
Audit Metadata