PHASE_REPLACEMENT_EMPTY_SOURCE_LEGACY · branch loop/it15 · base 4ec0b9ef1 · candidate 91fa27e15 · took 1h 14m| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 20,817,710,048 | 20,812,215,082 | 4,000 | 5,203,741 | 2,889 | 2,767 |
| optimized | 20,623,178,000 | 20,625,801,930 | 4,000 | 5,156,122 | 2,467 | 2,487 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -2.00% — cycles-neutral (same-arm spread 5.33%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.983 / 0.987 | same |
| backend stall / frontend stall (share of cycles) | 19.6% / 20.2% · 42.4% / 41.7% | same |
| L1D / L2D refills per 1k instructions (cache misses) | 13.34 / 13.43 · 11.71 / 11.75 | same |
| branch mispredicts per 1k instructions | 6.056 / 5.875 | same |
| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 77,881,172,446 | 77,865,921,350 | 11,418 | 6,820,244 | 20,589 | 12,945 |
| optimized | 77,067,439,121 | 77,095,610,587 | 11,418 | 6,750,878 | 17,713 | 11,651 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -1.29% — cycles-neutral (same-arm spread 2.50%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.896 / 0.894 | same |
| backend stall / frontend stall (share of cycles) | 23.5% / 23.4% · 41.1% / 41.3% | same |
| L1D / L2D refills per 1k instructions (cache misses) | 17.30 / 17.39 · 13.94 / 13.97 | same |
| branch mispredicts per 1k instructions | 5.251 / 5.219 | same |
Mechanism. In functioning_abilities.rs:520, active_replacements evaluates object_functions and constructs the inner enumerate/filter/map chain for every stored object, including objects with no replacement definitions. Screen empty definition lists before that setup; retain the existing functioning gate and definition enumeration for surviving sources.
Evidence. xn5.69, docs/stage0-decision-memo.md:5379, measures active scan/staging at 322.749/309.324 ms against 8,561/7,659 ms contract+apply: 3.77%/4.04%. Raw bundles: bench/reports/xn569-counter-s91-20260924-131701-* and xn569-counter-s42-20260924-132036-*. This targets scanning, unlike the rejected bucket representation change. The timer bounds the family; the empty-source fraction is unmeasured, and HAMT traversal remains.
Counter and kill threshold. Existing replacement_index_active_scan_ns bounds the affected family. Expected instruction reduction: 0.4–1.0% per action at 4,000 actions, an unmeasured planning estimate. Compiler elimination of existing empty-iterator work could push it below 0.3%.
Invariant. Preserve the ordered sequence of (definition index, source, definition), hence replacement ordinals and candidate ordering. Empty sources contribute no entries today. Preserve every zone and functioning check; leave floating replacements, liminal entries, index lifetime and replacement appliers untouched. Add a permanent differential regression covering empty sources interspersed with functioning, phased-out and command-zone sources, plus fork-local definition insertion/removal.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 7m 43s | 0 | 1,900,375 / 9,512 | |
| executor | codex / gpt-6-luna | 22m 14s | 0 | 6,771,812 / 16,628 | |
| reviewer | codex / gpt-6.1-sol | 0m 26s | 0 | 20,745 / 555 |
| 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 it15-build |
| ir1k | pass | 0 | Ir -0.91% within +/-1%, same-arm spread 0.0264% | optimized 20,625,844,906 vs legacy 20,815,400,310 instructions; fingerprints match: True |
| ir4k | pass | 0 | Ir -1.02% (threshold -1%), same-arm spread 0.0365% | optimized 77,078,617,470 vs legacy 77,876,448,456 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 it15-parity |
Status: unknown (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_REPLACEMENT_EMPTY_SOURCE_LEGACY, mechanism class compute. Mechanism: In functioning_abilities.rs:520, active_replacements evaluates object_functions and constructs the inner enumerate/filter/map chain for every stored object, including objects with no replacement definitions. Screen empty definition lists before that setup; retain the existing functioning gate and definition enumeration for surviving sources. Invariant: Preserve the ordered sequence of (definition index, source, definition), hence replacement ordinals and candidate ordering. Empty sources contribute no entries today. Preserve every zone and functioning check; leave floating replacements, liminal entries, index lifetime and replacement appliers untouched. Add a permanent differential regression covering empty sources interspersed with functioning, phased-out and command-zone sources, plus fork-local definition insertion/removal.
| 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.91% within +/-1%, same-arm spread 0.0264% |
| ir4k | yes | Ir -1.02% (threshold -1%), same-arm spread 0.0365% |
| 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