Commit graph

2 commits

Author SHA1 Message Date
8bafe79e6b docs(multitenant): guard commit attribution via pre-commit hook
Confirms the Agent Identity fix zAI landed in 8138173: per-clone
`user.name` is sufficient for distinguishing zAI and Claude commits on
shared-Linux setups, provided each agent resets `user.name` at session
start. The one gotcha is that `.git/config` persists whichever name was
set last, so a forgotten reset silently misattributes.

Adds a dormant hooks/pre-commit guard that rejects any commit whose
`user.name` does not start with `Operator & ` (or the legacy
`Clawdie AI`). The hook only activates after `npm run install-hooks`
sets `core.hooksPath=hooks`, matching the existing opt-in pattern.

This commit itself is authored as `Operator & Claude`, proving the
mechanism end-to-end.
2026-04-24 19:59:21 +02:00
04cdb5250e fix: consolidate hooks into hooks/, update AGENTS.md
Move pre-commit hook from .githooks/ to hooks/ alongside existing
prepare-commit-msg. Fix install-hooks script to use `hooks` path.

AGENTS.md: document pre-commit hook (README version sync), fix stale
"16 steps" → 20 steps in Install Orchestrator section.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---
Build: pass | Tests: pass — Tests  414 passed | 10 skipped (424)
2026-03-16 08:10:18 +00:00
Renamed from .githooks/pre-commit (Browse further)