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.py script and its tests extensively use subprocess.run to 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.py to derive ownership rules by inspecting the repository's Makefile and Go dependency graph. It uses go list -deps to 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.md that requires creating a backup branch (backup/restructure/*) and recording the original tree SHA (ORIG_TREE) before any destructive operations. It also uses git push --force-with-lease to prevent accidental overwrites of remote changes.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 16, 2026, 03:57 AM