The CSA git guard emits a false-positive block for git version invoked by a repository pre-commit hook. The hook ultimately exits successfully, but the guard output is unexpected and can make a valid local gate look broken.
- Session ID:
01KZRK013A0S9616A4GW4CJWFF
- Session directory:
/home/obj/.local/state/cli-sub-agent/home/obj/project/github/RyderFreeman4Logos/mempal/sessions/01KZRK013A0S9616A4GW4CJWFF
- Command:
lefthook run pre-commit
- Exit code:
0
- stderr excerpt:
CSA git-guard: blocked command: git <command>
Use a hermetic local bare fixture under $CSA_SESSION_DIR/git-fixtures and push to its direct canonical path or file:// URL.
Expected: read-only git version remains allowed so scripts/hooks/branch-protection.sh can run without a spurious guard diagnostic.
The CSA git guard emits a false-positive block for
git versioninvoked by a repository pre-commit hook. The hook ultimately exits successfully, but the guard output is unexpected and can make a valid local gate look broken.01KZRK013A0S9616A4GW4CJWFF/home/obj/.local/state/cli-sub-agent/home/obj/project/github/RyderFreeman4Logos/mempal/sessions/01KZRK013A0S9616A4GW4CJWFFlefthook run pre-commit0Expected: read-only
git versionremains allowed soscripts/hooks/branch-protection.shcan run without a spurious guard diagnostic.