Commit 72be9b4
authored
Implementation Plan: T5-P5-A3-WP3 Make the INVARIANT_REGISTRY Reflect Actual Enforcement Reality (#4152)
## Summary
Update two `INVARIANT_REGISTRY` entries — `recipe-read-headless` and
`write-path-prefix` — to have `enforcement_layer="server-side"` instead
of `"hook-deny"`. This reflects the actual enforcement reality:
P5-A3-WP1 (commit `c9ed35e3d`, PR #4105) added server-side guards
`_check_recipe_read_prohibition()` and `_check_write_target_boundary()`
in `server/_guards.py`, which are injected into `run_cmd` and
`run_python` tool handlers in `server/tools/tools_execution.py`. The
registry entries still say `"hook-deny"` — this WP updates them to match
reality. Add two pin tests asserting the new values.
## Implementation Plan
Plan file:
`/home/talon/projects/autoskillit-runs/impl-20260628-200621-936012/.autoskillit/temp/make-plan/t5-p5-a3-wp3-invariant-registry-enforcement-layer_plan_2026-06-28_201500.md`
Closes #4035
🤖 Generated with [Claude Code](https://claude.com/claude-code) via
AutoSkillit
<!-- autoskillit:pipeline-signature
steps=prepare_pr,run_arch_lenses,compose_pr,annotate_pr_diff,review_pr
-->
## Token Usage Summary
| Step | Model | count | uncached | output | cache_read | peak_ctx |
turns | cache_write | time |
|------|-------|-------|----------|--------|------------|----------|-------|-------------|------|
| plan* | opus[1m] | 1 | 46 | 4.9k | 563.1k | 73.4k | 22 | 76.1k | 4m
37s |
| verify* | sonnet | 1 | 44 | 3.8k | 161.4k | 41.5k | 15 | 23.7k | 1m
53s |
| implement* | MiniMax-M3 | 1 | 59.2k | 4.3k | 1.3M | 0 | 59 | 0 | 2m 5s
|
| audit_impl* | sonnet | 1 | 52 | 3.4k | 198.4k | 39.2k | 13 | 23.5k |
2m 13s |
| prepare_pr* | MiniMax-M3 | 1 | 39.7k | 1.9k | 146.6k | 0 | 12 | 0 |
26s |
| compose_pr* | MiniMax-M3 | 1 | 36.0k | 1.4k | 140.8k | 0 | 12 | 0 |
38s |
| **Total** | | | 135.0k | 19.8k | 2.6M | 73.4k | | 123.3k | 11m 53s |
\* *Step used a non-Anthropic provider; caching behavior may differ.*
## Token Efficiency
| Step | LoC Changed | cache_read/LoC | cache_write/LoC | output/LoC |
|------|-------------|----------------|-----------------|------------|
| plan | 0 | — | — | — |
| verify | 0 | — | — | — |
| implement | 18 | 74595.6 | 0.0 | 241.4 |
| audit_impl | 0 | — | — | — |
| prepare_pr | 0 | — | — | — |
| compose_pr | 0 | — | — | — |
| **Total** | **18** | 141834.2 | 6847.3 | 1097.5 |
## Model Usage Breakdown
| Model | steps | uncached | output | cache_read | cache_write | time |
|-------|-------|----------|--------|------------|-------------|------|
| opus[1m] | 1 | 46 | 4.9k | 563.1k | 76.1k | 4m 37s |
| sonnet | 2 | 96 | 7.2k | 359.8k | 47.2k | 4m 7s |
| MiniMax-M3 | 3 | 134.9k | 7.7k | 1.6M | 0 | 3m 9s |1 parent b23b5ef commit 72be9b4
2 files changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
103 | 117 | | |
104 | 118 | | |
105 | 119 | | |
| |||
0 commit comments