restructure-commits
Pass
Audited by Gen Agent Trust Hub on Nov 16, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
commit_layout.pyscript and its tests extensively usesubprocess.runto execute Git commands (git diff,git rev-parse,git restore, etc.). This is the intended purpose of the tool to automate history rewriting. The commands are constructed using list-based arguments which mitigates shell injection risks. - [DYNAMIC_EXECUTION]: The skill includes logic in
generate_ownership.pyto derive ownership rules by inspecting the repository's Makefile and Go dependency graph. It usesgo list -depsto identify component boundaries. This dynamic behavior is scoped to generating a static configuration file (ownership.json) and does not involve executing untrusted remote code. - [SAFE_PRACTICE]: The skill enforces a 'Preflight' routine in
SKILL.mdthat requires creating a backup branch (backup/restructure/*) and recording the original tree SHA (ORIG_TREE) before any destructive operations. It also usesgit push --force-with-leaseto prevent accidental overwrites of remote changes.
Audit Metadata