T09 · Insecure Skill Coding Practices
- Location
autoresearch-agent/scripts/run_experiment.py:195- Finding
Repository-wide destructive rollback can erase unrelated work
- Content
View full analysis
- Remediation
View remediation
--staged --worktree -- ``` 6. Do not invoke repository-wide `checkout` or `reset --hard` automatically. 7. Require explicit user confirmation before any operation that rewrites branch history. 8. Preserve recovery metadata, including the pre-reset commit ID, and create a backup reference before rollback. ]]>
