PHASE_CONTEXT_FREE_FILTER_PROPERTIES_LEGACY · branch loop/it36 · base 4ec0b9ef1 · candidate cc12c456d · took 2h 23m| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 21,785,685,490 | 21,788,902,235 | 4,000 | 5,446,823 | 2,630 | 2,570 |
| optimized | 21,776,190,367 | 21,773,094,518 | 4,000 | 5,443,661 | 3,033 | 3,201 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -6.40% — cycles-neutral (same-arm spread 10.20%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.966 / 0.937 | same |
| backend stall / frontend stall (share of cycles) | 18.1% / 15.4% · 45.0% / 48.7% | more waiting |
| L1D / L2D refills per 1k instructions (cache misses) | 12.94 / 12.93 · 11.25 / 11.13 | same |
| branch mispredicts per 1k instructions | 5.631 / 5.675 | same |
| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 78,669,004,767 | 78,660,925,353 | 11,418 | 6,889,557 | 18,851 | 12,438 |
| optimized | 78,413,609,423 | 78,384,160,044 | 11,418 | 6,866,254 | 19,841 | 12,998 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -1.90% — cycles-neutral (same-arm spread 2.56%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.869 / 0.854 | same |
| backend stall / frontend stall (share of cycles) | 17.4% / 17.7% · 49.4% / 49.6% | same |
| L1D / L2D refills per 1k instructions (cache misses) | 17.33 / 17.29 · 13.62 / 13.71 | same |
| branch mispredicts per 1k instructions | 4.943 / 5.060 | same |
Mechanism. In game/filter.rs:3328, nonempty TypedFilter properties construct SourceContext even when their predicates read only the matched object. Extract a small context-free predicate helper from matches_filter_prop and construct the existing source context lazily, only when an unsupported property needs it. Preserve property order and short-circuiting.
Evidence. xn5.67, docs/stage0-decision-memo.md:L4904, references bench/reports/uprof-xn565-20260923-owners-all.txt: source_context_from_filter_with_family owns 1.1% of process CPU. This is a measured family bound, not an isolated removable fraction. The profile predates the loop's empty-properties and source-payload borrowing changes; this candidate addresses nonempty properties that need no source context.
Counter and kill threshold. Existing profile row: source_context_from_filter_with_family, 1.1% nearest-owner CPU. Existing source_context_built counters can diagnose avoided construction. Expected instruction reduction: 0.4–0.9% per action at 4,000 actions; hypothesis, with the loop's normal tiers deciding.
Invariant. Each supported predicate must return exactly its current canonical result without consulting SourceContext. Source-dependent and unfamiliar properties retain the original evaluator and exact live/latched source authority. Permanent differential tests must compare both paths for simple properties, mixed property lists, early rejection, dynamic thresholds, missing sources, and recycled source identities.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 15m 41s | 0 | 4,088,809 / 14,529 | |
| executor | codex / gpt-6-luna | 1h 22m | 0 | 16,758,767 / 26,876 | |
| reviewer | codex / gpt-6.1-sol | 0m 44s | 0 | 25,178 / 793 |
| 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 it36-build |
| ir1k | pass | 0 | Ir -0.06% within +/-1%, same-arm spread 0.0149% | optimized 21,774,289,841 vs legacy 21,787,837,325 instructions; fingerprints match: True |
| ir4k | FAIL | 0 | Ir -0.34% within +/-1%, same-arm spread 0.0376% | optimized 78,395,597,929 vs legacy 78,662,151,765 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 it36-parity |
Status: unknown (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_CONTEXT_FREE_FILTER_PROPERTIES_LEGACY, mechanism class compute. Mechanism: In game/filter.rs:3328, nonempty TypedFilter properties construct SourceContext even when their predicates read only the matched object. Extract a small context-free predicate helper from matches_filter_prop and construct the existing source context lazily, only when an unsupported property needs it. Preserve property order and short-circuiting. Invariant: Each supported predicate must return exactly its current canonical result without consulting SourceContext. Source-dependent and unfamiliar properties retain the original evaluator and exact live/latched source authority. Permanent differential tests must compare both paths for simple properties, mixed property lists, early rejection, dynamic thresholds, missing sources, and recycled source identities.
| 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.0149% |
| ir4k | marginal: workstation check | Ir -0.34% within +/-1%, same-arm spread 0.0376% |
| 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