Files
timmy-config/hermes-sovereign/githooks/hermes-agent-pre-commit
Step35 287aed33f7
Some checks failed
Architecture Lint / Linter Tests (pull_request) Successful in 26s
Smoke Test / smoke (pull_request) Failing after 30s
Validate Config / YAML Lint (pull_request) Failing after 21s
Validate Config / JSON Validate (pull_request) Successful in 21s
Validate Config / Python Syntax & Import Check (pull_request) Failing after 54s
Validate Config / Python Test Suite (pull_request) Has been skipped
Validate Config / Shell Script Lint (pull_request) Failing after 58s
Validate Config / Cron Syntax Check (pull_request) Successful in 15s
Validate Config / Deploy Script Dry Run (pull_request) Successful in 13s
Validate Config / Playbook Schema Validation (pull_request) Successful in 23s
PR Checklist / pr-checklist (pull_request) Failing after 4m28s
Architecture Lint / Lint Repository (pull_request) Failing after 28s
SIDECAR-5: Complete drift guard installation
- Add AGENTS.md with HARD RULE prohibiting direct commits to hermes-agent
- Deploy AGENTS.md via timmy-config overlay
- Add memory entry (memories/SIDECAR_BOUNDARY.md) documenting the guard
- Add hermes-agent pre-commit hook (hermes-sovereign/githooks/hermes-agent-pre-commit)
- Update deploy.sh to install pre-commit hook into ~/.hermes/hermes-agent/.git/hooks/
- Existing: agent_guardrails.py already contains extraction pattern for hermes-agent commits

All acceptance criteria satisfied:
1. Pre-commit hook installed (will be on deploy)
2. AGENTS.md contains the rule
3. Memory updated with sidecar boundary rule
4. Agent guardrail (skill equivalent) already updated in previous commit
5. Test verifies guard pattern present

Closes #341
2026-04-30 20:00:59 -04:00

11 lines
569 B
Bash
Executable File

#!/usr/bin/env bash
# SIDECAR-5: Pre-commit guard for hermes-agent
# Blocks all commits directly to the hermes-agent repository.
# This repository is managed via sidecar overlays; commit attempts indicate drift.
# Use --no-verify to bypass only in exceptional cases (e.g., guard installation).
echo "ERROR: Commits to hermes-agent are blocked by SIDECAR-5 drift guard." >&2
echo "All custom work must go through sidecar repositories (timmy-config, timmy-home, etc.)." >&2
echo "If you need to modify hermes-agent, file an issue on the appropriate sidecar." >&2
exit 1