[SIDECAR-5] Install drift guards — prevent future commits to hermes-agent #341
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of Epic: #336
Task
Put technical guardrails so agents never commit directly to hermes-agent again.
Guards
Acceptance Criteria
Drift Guards Installed ✅
Guard 1: Pre-commit Hook
~/.hermes/hermes-agent/.git/hooks/pre-commit— blocks all commits with a clear warning message. Tested and confirmed working (exit code 1).Escape hatch:
HERMES_UPSTREAM_COMMIT=1 git commit ...for genuine upstream PRs.Guard 2: Skill File
Written to
/tmp/sidecar-boundary-skill.md— ready for parent agent to install viaskill_manage. Documents:Guard 3: AGENTS.md Override
Prepended
## SOVEREIGN BOUNDARY RULEsection to~/.hermes/hermes-agent/AGENTS.md. Any AI agent reading the repo will see the boundary rule first.Test Output
Note: AGENTS.md will be overwritten on next upstream pull — the hook is the real enforcer.