PHASE_ATTACHMENT_PROTECTION_PREFILTER_LEGACY · branch loop/it11 · base 4ec0b9ef1 · candidate 6049eb7ba · took 5h 30m| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 22,098,281,089 | 22,096,681,909 | 4,000 | 5,524,370 | 3,890 | 3,743 |
| optimized | 22,086,215,441 | 22,082,813,510 | 4,000 | 5,521,129 | 2,963 | 3,051 |
perf: indicative only, not a clean timing.| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 81,023,655,694 | 81,047,622,440 | 11,418 | 7,097,183 | 18,639 | 12,781 |
| optimized | 80,449,690,501 | 80,473,471,515 | 11,418 | 7,046,907 | 19,038 | 12,209 |
perf: indicative only, not a clean timing.Mechanism. In game/effects/attach.rs:1549, protection_blocks_attachment computes definition indices, clones affected filters and evaluates recipient filters before discovering whether a static or transient effect contains AddKeyword { Protection(..) }. Check that modification shape first and skip effects with no protection grant. Keep the existing functioning-ability iterator and all protection matching, exemption and fallback logic.
Evidence. xn5.67, docs/stage0-decision-memo.md:L4904, identifies attachment_illegality_projected as an allocation owner in the saved profile. The fingerprint-valid xn5.65 reports provide a tighter family bound: sba_family_unattached_equipment_ns totals 172.016 ms / 8,255 ms contract+apply = 2.08% on seed 91, and 32.897 ms / 7,442 ms = 0.44% on seed 42. Reports: bench/reports/xn565-final-s91-20260923-135943-optimized.json and xn565-final-s42-20260923-140228-optimized.json. These historical family bounds include work the prefilter cannot remove; the protection-filter subset is unmeasured.
Counter and kill threshold. Existing sba_family_unattached_equipment_ns and xn5.67 attachment profile attribution. Expected instruction reduction per action: approximately 0.5–1.0% on seed 91, with a smaller 0.1–0.3% expectation on seed 42. These are hypotheses, not measured savings; this candidate may be marginal or dropped by the loop.
Invariant. Effects without an AddKeyword Protection modification cannot change any_matching_grant or produce a protection rejection in this function. Preserve traversal order for contributing effects, chosen-quality resolution, grant-start exemptions and the host-keyword fallback. Add a permanent differential regression comparing rejection reasons and settled attachment state across unrelated grants, printed protection, static/transient protection, chosen qualities and exempt attachments.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 12m 24s | 0 | 3,212,974 / 13,021 | |
| executor | codex / gpt-6-luna | 1h 7m | 0 | 8,203,082 / 15,884 | |
| reviewer | codex / gpt-6.1-sol | 0m 54s | 0 | 21,136 / 757 |
| 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 it11-build |
| ir1k | pass | 0 | Ir -0.06% within +/-1%, same-arm spread 0.0167% | optimized 22,083,851,710 vs legacy 22,096,692,353 instructions; fingerprints match: True |
| ir4k | FAIL | 0 | Ir -0.72% within +/-1%, same-arm spread 0.0319% | optimized 80,460,559,004 vs legacy 81,040,259,087 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 it11-parity |
Status: unknown (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_ATTACHMENT_PROTECTION_PREFILTER_LEGACY, mechanism class compute. Mechanism: In game/effects/attach.rs:1549, protection_blocks_attachment computes definition indices, clones affected filters and evaluates recipient filters before discovering whether a static or transient effect contains AddKeyword { Protection(..) }. Check that modification shape first and skip effects with no protection grant. Keep the existing functioning-ability iterator and all protection matching, exemption and fallback logic. Invariant: Effects without an AddKeyword Protection modification cannot change any_matching_grant or produce a protection rejection in this function. Preserve traversal order for contributing effects, chosen-quality resolution, grant-start exemptions and the host-keyword fallback. Add a permanent differential regression comparing rejection reasons and settled attachment state across unrelated grants, printed protection, static/transient protection, chosen qualities and exempt attachments.
| 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.06% within +/-1%, same-arm spread 0.0167% |
| ir4k | marginal: workstation check | Ir -0.72% within +/-1%, same-arm spread 0.0319% |
| 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:17 · read-only · refreshes every 30 s