PHASE_EMPTY_FILTER_PROPERTIES_LEGACY · branch loop/it18 · base 4ec0b9ef1 · candidate ee5c123e6 · took 1h 24m| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 21,781,414,336 | 21,783,433,489 | 4,000 | 5,445,606 | 2,865 | 2,810 |
| optimized | 21,767,024,088 | 21,766,399,452 | 4,000 | 5,441,678 | 2,609 | 2,587 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -4.02% — cycles-neutral (same-arm spread 10.25%) | same within noise |
| IPC (instructions per cycle, higher is better) | 1.005 / 0.995 | same |
| backend stall / frontend stall (share of cycles) | 17.3% / 18.3% · 43.9% / 42.9% | less waiting |
| L1D / L2D refills per 1k instructions (cache misses) | 12.84 / 12.94 · 11.12 / 11.33 | same |
| branch mispredicts per 1k instructions | 5.683 / 5.720 | same |
| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 78,428,179,091 | 78,423,299,522 | 11,418 | 6,868,606 | 19,749 | 12,679 |
| optimized | 77,748,659,692 | 77,746,825,653 | 11,418 | 6,809,226 | 19,546 | 12,660 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -1.00% — cycles-neutral (same-arm spread 1.22%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.886 / 0.888 | same |
| backend stall / frontend stall (share of cycles) | 18.1% / 18.6% · 47.3% / 46.6% | same |
| L1D / L2D refills per 1k instructions (cache misses) | 17.43 / 17.32 · 13.92 / 13.85 | same |
| branch mispredicts per 1k instructions | 5.152 / 5.144 | same |
Mechanism. In game/filter.rs:3341, the Typed filter arm constructs SourceContext even when properties is empty. After the existing type and controller checks succeed, return true for an empty property list. Keep every nonempty property evaluation unchanged.
Evidence. xn5.67, docs/stage0-decision-memo.md:4904, is the latest indexed CPU profile. Its owners report attributes 1.1% of process CPU to source_context_from_filter_with_family and 2.1% to filter_inner_for_object. xn5.50 at memo line 3603 already removed eager LKI snapshots; this targets the residual context construction visible in the current source. The empty-property fraction is unmeasured, so 1.1% is a family ceiling, not a removable-share measurement. Profile artifact: bench/reports/uprof-xn565-20260923-owners-all.txt.
Counter and kill threshold. Existing source_context_built counters and xn5.67's 1.1% source-context owner row bound the opportunity. Expected instruction reduction: 0.4–0.9% per action at 4,000 actions, with substantial uncertainty about empty-property coverage; likely marginal.
Invariant. An empty property list is an empty conjunction and evaluates to true. Preserve object existence, phasing, type and controller checks before returning. Add a permanent differential regression covering successful and failed type/controller gates, missing and phased-out objects, nested filters, and a nonempty source-relative property that must still construct its context.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 7m 36s | 0 | 2,362,724 / 8,259 | |
| executor | codex / gpt-6-luna | 32m 57s | 0 | 7,136,401 / 12,895 | |
| reviewer | codex / gpt-6.1-sol | 0m 33s | 0 | 19,839 / 614 |
| 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 it18-build |
| ir1k | pass | 0 | Ir -0.07% within +/-1%, same-arm spread 0.0093% | optimized 21,766,590,045 vs legacy 21,782,337,769 instructions; fingerprints match: True |
| ir4k | FAIL | 0 | Ir -0.87% within +/-1%, same-arm spread 0.0126% | optimized 77,747,654,189 vs legacy 78,428,220,447 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 it18-parity |
Status: unknown (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_EMPTY_FILTER_PROPERTIES_LEGACY, mechanism class compute. Mechanism: In game/filter.rs:3341, the Typed filter arm constructs SourceContext even when properties is empty. After the existing type and controller checks succeed, return true for an empty property list. Keep every nonempty property evaluation unchanged. Invariant: An empty property list is an empty conjunction and evaluates to true. Preserve object existence, phasing, type and controller checks before returning. Add a permanent differential regression covering successful and failed type/controller gates, missing and phased-out objects, nested filters, and a nonempty source-relative property that must still construct its context.
| 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.07% within +/-1%, same-arm spread 0.0093% |
| ir4k | marginal: workstation check | Ir -0.87% within +/-1%, same-arm spread 0.0126% |
| 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:15 · read-only · refreshes every 30 s