Add the zcode write-path guard instance with its adaptation matrix #7

Merged
weichen merged 3 commits from feature/zcode-hooks into main 2026-09-30 03:43:38 +00:00
3 Commits
Author SHA1 Message Date
weichen ffa8dd63c2 Record the sync checkpoint 2026-09-30 03:43:26 +00:00
weichen ccddcc2b2b Add the zcode write-path guard instance with its adaptation matrix
Why: zcode lacks a rules feature (AGENTS.md is the resident layer) but
supports PreToolUse hooks that can block Edit/Write before the write lands,
upgrading A1/A3 from commit-time to write-time enforcement; the two block
shapes (integration branch, detached submodule) mirror the real incidents.
Evidence: script-level suite 8/8 (N1-N3 blocks with exit 2 and remediation
hints, P1-P5 allows incl. fail-open degradation paths); config JSON valid;
client-side live-fire interception marked pending-live in the matrix.
Impact: .zcode/config.json enables the hook runner for this workspace;
.zcode/plans/ ignored (client state); no product code change.
Refs: Development-Guidelines 0.1.0-draft.8; policy/tool-adaptation-zcode.md
2026-09-30 03:43:26 +00:00
weichen 17a07a5e42 Record the task card for feature-zcode-hooks 2026-09-30 03:41:53 +00:00