01 / hook event
PreToolUse rails-guard (advisory)
Denies with allow_tool: false on exit 0. Non-zero exit is fail-open: a crash or timeout can let a rail write through.
- PreToolUse
Advisory PreToolUse rails-guard for agy, plus skills and a prosecutor agent. The unbypassable CI rail-freeze gate is the real control. In-session rails are advisory. agy fails open on hook failure, so CI is the guarantee, not an optional extra.
npm install -g @adlc/antigravity agy plugin install $(npm root -g)/@adlc/antigravity npx adlc-agy install
Recommended: install globally via npm (npm install -g @adlc/antigravity) and register with agy, or run npx adlc-agy install. Export ADLC_P4_ENFORCEMENT=1 with an active ticket.
adlc-antigravity/ ├─ plugin.json agy manifest ├─ hooks/ 1 PreToolUse event ├─ skills/ 4 phase skills ├─ commands/ 3 bootstrap command └─ agents/ 7 prosecutor agent
01 / hook event
Denies with allow_tool: false on exit 0. Non-zero exit is fail-open: a crash or timeout can let a rail write through.
02 / skills
Skills wrap the adlc CLIs from triage through distill. The hook only covers the rail moment.
03 / commands
/adlc-init finishes the repo scaffold, /adlc-status inspects session context depth, and /adlc-doctor verifies integration health.
04 / prosecutor agents
P5 prosecution fans out five specialist lenses, dedupes findings via main prosecutor, and verifies with an independent verifier.
Skills and commands route work. The hook is only an in-session nudge. Treat CI as required before you rely on this integration for enforcement.
| Phase | Antigravity entry | Evidence produced |
|---|---|---|
| P0 | /adlc-init · adlc-ticket | ticket in .adlc/tickets.json |
| P1-P2 | adlc CLI via skills | spec-lint · premortem · coldstart |
| P3-P4 | PreToolUse + CI | advisory deny · rails-guard-ci |
| P5-P6 | prosecutor agent | hollow-test · behavior-diff · manifest |
| P7 | adlc skills | foundry · rejection mining |
In the session
Advisory deny with fail-open on hook failure. POSIX-oriented command paths; Windows in-session is unsupported. Shell writes are not gated. Do not treat the hook as a hard block.
In CI
scripts/rails-guard-ci.mjs is the guarantee for every platform, including Windows. Make docs/ci/rails-guard.yml a required check (or fold it into an existing required job on free private repos).
npm install -g @adlc/antigravity agy plugin install $(npm root -g)/@adlc/antigravity npx adlc-agy install
Recommended: install globally via npm (npm install -g @adlc/antigravity) and register with agy, or run npx adlc-agy install. Export ADLC_P4_ENFORCEMENT=1 with an active ticket.
# Recommended global npm install npm install -g @adlc/antigravity agy plugin install $(npm root -g)/@adlc/antigravity # Or one-liner via npx npx adlc-agy install # Arm enforcement for an active ticket export ADLC_P4_ENFORCEMENT=1