PHASE_ATTACHMENT_RESTRICTION_PREFILTER_LEGACY · branch loop/it49 · base 4ec0b9ef1 · candidate 3f734fb25 · took 48m 38s| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 21,785,258,253 | 21,788,254,668 | 4,000 | 5,446,689 | 2,532 | 2,357 |
| optimized | 21,787,411,731 | 21,783,778,051 | 4,000 | 5,446,399 | 2,613 | 2,542 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -0.82% — cycles-neutral (same-arm spread 8.13%) | same within noise |
| IPC (instructions per cycle, higher is better) | 1.004 / 1.009 | same |
| backend stall / frontend stall (share of cycles) | 18.3% / 16.9% · 42.7% / 44.1% | more waiting |
| L1D / L2D refills per 1k instructions (cache misses) | 12.83 / 12.84 · 11.22 / 11.19 | same |
| branch mispredicts per 1k instructions | 5.597 / 5.763 | same |
| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 78,435,095,828 | 78,426,213,621 | 11,418 | 6,869,036 | 18,963 | 12,722 |
| optimized | 78,450,200,094 | 78,427,527,881 | 11,418 | 6,869,755 | 21,331 | 13,710 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | +0.04% — cycles-neutral (same-arm spread 4.04%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.867 / 0.876 | same |
| backend stall / frontend stall (share of cycles) | 18.8% / 19.9% · 47.4% / 45.6% | less waiting |
| L1D / L2D refills per 1k instructions (cache misses) | 17.30 / 17.30 · 13.98 / 13.99 | same |
| branch mispredicts per 1k instructions | 5.351 / 5.302 | same |
Mechanism. In game/effects/attach.rs:1917, attachment_satisfies_restrictions evaluates functioning gates and conditions for every attachment static before selecting StaticMode::AttachmentRestriction. Select that mode first, then apply the existing authoritative functioning predicate and host-filter check.
Evidence. xn5.29, docs/stage0-decision-memo.md:2536, measured unattached-equipment SBA work as a material family. The newer saved report bench/reports/it48-ir4k-20261004-083350-optimized.json records sba_family_unattached_equipment_ns=627581487 against 34217 ms contract+apply, or 1.834%. Its verdict records matching fingerprints and equal work. This is an enclosing diagnostic bound; restriction-condition evaluation has no exclusive timer. The previous protection prefilters targeted protection-grant discovery, a different consumer.
Counter and kill threshold. Existing sba_family_unattached_equipment_ns bounds the main consumer at 1.834% of contract+apply in the saved 4,000-action report. Expected instruction reduction: 0.3–0.7% per action, an unmeasured estimate likely to be marginal. The unrelated-condition fraction is unknown.
Invariant. Unrelated static modes cannot impose an attachment restriction. Matching definitions must retain identical phasing, zone, Room-door, condition and host-filter gates, including when the supplied attachment is an entrant projection rather than the stored object. Preserve the attachment verdict, emitted events and all three fingerprints.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 11m 58s | 0 | 5,137,041 / 13,527 | |
| executor | codex / gpt-6-luna | 20m 55s | 0 | 4,374,145 / 9,658 | |
| reviewer | codex / gpt-6.1-sol | 0m 44s | 0 | 20,345 / 951 |
| 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 it49-build |
| ir1k | pass | 0 | Ir -+0.00% within +/-1%, same-arm spread 0.0245% | optimized 21,785,095,064 vs legacy 21,785,477,464 instructions; fingerprints match: True |
| ir4k | FAIL | 0 | Ir +0.02% within +/-1%, same-arm spread 0.0289% | optimized 78,438,638,516 vs legacy 78,426,106,991 instructions; fingerprints match: True |
Status: rejected (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_ATTACHMENT_RESTRICTION_PREFILTER_LEGACY, mechanism class compute. Mechanism: In game/effects/attach.rs:1917, attachment_satisfies_restrictions evaluates functioning gates and conditions for every attachment static before selecting StaticMode::AttachmentRestriction. Select that mode first, then apply the existing authoritative functioning predicate and host-filter check. Invariant: Unrelated static modes cannot impose an attachment restriction. Matching definitions must retain identical phasing, zone, Room-door, condition and host-filter gates, including when the supplied attachment is an entrant projection rather than the stored object. Preserve the attachment verdict, emitted events and all three fingerprints.
| 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.00% within +/-1%, same-arm spread 0.0245% |
| ir4k | NO | Ir +0.02% within +/-1%, same-arm spread 0.0289% |
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:12 · read-only · refreshes every 30 s