PHASE_PROTECTION_CONDITION_PREFILTER_LEGACY · branch loop/it16 · base 4ec0b9ef1 · candidate eabd48c40 · took 1h 47m| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 21,505,856,822 | 21,504,810,036 | 4,000 | 5,376,333 | 2,244 | 2,164 |
| optimized | 21,497,861,070 | 21,497,708,943 | 4,000 | 5,374,446 | 2,601 | 2,306 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | +1.86% — cycles-neutral (same-arm spread 3.00%) | same within noise |
| IPC (instructions per cycle, higher is better) | 1.023 / 1.044 | same |
| backend stall / frontend stall (share of cycles) | 17.3% / 18.7% · 43.4% / 41.0% | less waiting |
| L1D / L2D refills per 1k instructions (cache misses) | 12.90 / 12.98 · 11.27 / 11.06 | same |
| branch mispredicts per 1k instructions | 5.584 / 5.669 | same |
| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 76,531,641,399 | 76,521,546,620 | 11,418 | 6,702,277 | 18,019 | 12,185 |
| optimized | 75,363,338,369 | 75,375,820,936 | 11,418 | 6,600,944 | 19,305 | 12,596 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -3.90% — cycles-neutral (same-arm spread 3.56%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.914 / 0.900 | same |
| backend stall / frontend stall (share of cycles) | 22.0% / 19.9% · 42.2% / 45.0% | more waiting |
| L1D / L2D refills per 1k instructions (cache misses) | 17.55 / 17.46 · 14.09 / 13.87 | same |
| branch mispredicts per 1k instructions | 5.033 / 5.070 | same |
Mechanism. The loop-it11 prefilter rejects irrelevant modifications after battlefield_active_statics has already evaluated each definition's condition. Add a protection-specific enumeration path that checks mode and modification shape before applying the existing functioning-static gates. Leave attachment matching and protection exemptions unchanged.
Evidence. xn5.29, docs/stage0-decision-memo.md:2536, identifies unattached-equipment checks as a measured SBA cost. More recently, bench/reports/it11-ir4k-20261001-140827-optimized.json records 450.907 ms in that family, 1.443% of contract+apply, after the previous prefilter. Its validated instruction A/B saved 0.715%. Inspection of loop/it11 confirms condition evaluation still precedes its discriminator. The remaining condition-evaluation fraction is unmeasured.
Counter and kill threshold. Existing sba_family_unattached_equipment_ns bounds a principal caller; attachment checks elsewhere also use this path. Expected additional instruction reduction: 0.3–0.8% per action at 4,000 actions, an unmeasured estimate. The loop's existing tiers decide retention.
Invariant. Definitions without a Continuous AddKeyword Protection modification cannot contribute to this protection-grant loop. Surviving definitions must pass precisely the existing phased-out, zone, Room and condition gates, in their original order. Preserve original definition/modification indices, printed protection, transient grants, exemption riders and the live-keyword fallback. Permanently compare both arms across conditional grants, irrelevant conditional statics, phased-out sources, chosen colors and competing exempt/nonexempt grants.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 10m 4s | 0 | 4,063,056 / 12,029 | |
| executor | codex / gpt-6-luna | 1388h 20m | / | ||
| executor | codex / gpt-6-luna | 2m 59s | 0 | 1,010,592 / 3,568 | |
| reviewer | codex / gpt-6.1-sol | 0m 57s | 0 | 21,989 / 1,211 |
| Gate | Result | Exit | Detail |
|---|---|---|---|
| fmt | pass | 0 | cargo fmt --all -- --check |
| build | pass | 0 | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode build -CargoProfile bench-fast-inc -Label it16-build |
| ir1k | pass | 0 | Ir -0.04% within +/-1%, same-arm spread 0.0161% | optimized 21,496,658,335 vs legacy 21,505,911,113 instructions; fingerprints match: True |
| ir4k | pass | 0 | Ir -1.51% (threshold -1%), same-arm spread 0.0184% | optimized 75,367,037,128 vs legacy 76,524,483,619 instructions; fingerprints match: True |
| check | pass | 0 | |
| focused | pass | 0 | |
| parity | pass | 0 | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode parity -Seeds 1,2,3,5,7,11,13 -Actions 1000 -CargoProfile bench-fast-inc -Label it16-parity |
Status: unknown (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_PROTECTION_CONDITION_PREFILTER_LEGACY, mechanism class compute. Mechanism: The loop-it11 prefilter rejects irrelevant modifications after battlefield_active_statics has already evaluated each definition's condition. Add a protection-specific enumeration path that checks mode and modification shape before applying the existing functioning-static gates. Leave attachment matching and protection exemptions unchanged. Invariant: Definitions without a Continuous AddKeyword Protection modification cannot contribute to this protection-grant loop. Surviving definitions must pass precisely the existing phased-out, zone, Room and condition gates, in their original order. Preserve original definition/modification indices, printed protection, transient grants, exemption riders and the live-keyword fallback. Permanently compare both arms across conditional grants, irrelevant conditional statics, phased-out sources, chosen colors and competing exempt/nonexempt grants.
| gate | passed | detail |
|---|---|---|
| fmt | yes | cargo fmt --all -- --check |
| build | yes | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode build -CargoProfile bench-fa |
| ir1k | yes | Ir -0.04% within +/-1%, same-arm spread 0.0161% |
| ir4k | yes | Ir -1.51% (threshold -1%), same-arm spread 0.0184% |
| check | yes | |
| focused | yes | |
| parity | yes | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode parity -Seeds 1,2,3,5,7,11,1 |
Wall-clock confirmation on the workstation is required before this counts as a speedup; instruction count is a screen, not a time prediction.
generated 2026-11-28 18:17:13 · read-only · refreshes every 30 s