AGENTS.md@hooks · git:20261005.5db538c · 2026-10-05 · sha256 047582829209db97

AGENTS.md@hooks git:20261005.5db538cA

Immutable. This exact content never changes and is served at /api/v1/blob/047582829209db97.

<!-- BEGIN GENERATED: rules/repo -->
<!-- Generated from rules/repo/ by scripts/checks/check-rules.py --write. Do not edit by hand. -->

### hook-scripts.md

- Parse stdin JSON explicitly, and validate every field before use.
- Resolve each path to its canonical form before you check it; do not rely on a regex alone.
- Never `eval` hook input. Quote every shell variable.
- Fail closed: a guard that cannot parse its input exits 2 (deny), never 0.
- Keep synchronous hooks fast. Redact logs and notifications.
- Match the JSON output to the schema of the event.
Why and procedure: skills/universal/agents-hooks/references/hook-security.md#critical-rules

<!-- END GENERATED: rules/repo -->