PHASE_PRIORITY_DEFINITION_PREFILTER_LEGACY · branch loop/it7 · base 4ec0b9ef1 · candidate 069f7c67f · took 17h 55m| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 21,785,757,955 | 21,785,156,715 | 4,000 | 5,446,364 | 2,453 | 2,365 |
| optimized | 21,599,817,650 | 21,592,649,549 | 4,000 | 5,399,058 | 2,551 | 2,523 |
perf: indicative only, not a clean timing.| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 78,389,451,626 | 78,402,641,582 | 11,418 | 6,866,005 | 18,959 | 12,387 |
| optimized | 77,502,589,533 | 77,508,919,550 | 11,418 | 6,788,032 | 18,860 | 12,945 |
perf: indicative only, not a clean timing.Mechanism. casting.rs:502–555 clones and resolves every printed ability before candidates.rs:4238–4400 discards non-activated, wrong-zone and mana abilities. Add a priority-specific enumerator that applies these predicates to borrowed definitions before cloning and resolving survivors. Preserve runtime-grant generation and original ability indices.
Evidence. xn5.67, docs/stage0-decision-memo.md:4904: ability::impl$1662::clone owns 3.6% of process CPU in bench/reports/uprof-xn565-20260923-owners-all.txt, including 1.3% allocator CPU in owners-alloc.txt. This bounds the clone family, not the fraction attributable to discarded priority definitions. The profile predates xn5.71 and xn5.77; these shares are historical ceilings.
Counter and kill threshold. Existing xn5.67 ability-clone owner rows: 3.6% total CPU, including 1.3% allocator CPU; nested, not additive. Expected instruction reduction: 0.5–1.2% per action at 4,000 actions, an unmeasured hypothesis. Copy and allocation savings may register only in the marginal band.
Invariant. The ordered activation domain, ability indices, payment verdicts and all three fingerprints remain identical. Cost resolution changes mana amounts without changing kind, activation zone or library-movement classification. Enumerate runtime grants before filtering so discarded definitions cannot renumber later grants. Retained candidates still use the existing legality and payment authorities.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 8m 0s | 0 | 1,707,983 / 8,796 | |
| executor | codex / gpt-6-luna | 1h 41m | 0 | 15,683,398 / 28,280 | |
| reviewer | codex / gpt-6.1-sol | 1m 0s | 0 | 23,694 / 1,248 |
| Gate | Result | Exit | Detail |
|---|---|---|---|
| fmt | pass | 0 | cargo fmt --all -- --check |
| ir1k | pass | 0 | Ir -0.87% within +/-1%, same-arm spread 0.0332% | optimized 21,596,233,600 vs legacy 21,785,457,335 instructions; fingerprints match: True |
| ir4k | pass | 0 | Ir -1.14% (threshold -1%), same-arm spread 0.0168% | optimized 77,505,754,542 vs legacy 78,396,046,604 instructions; fingerprints match: True |
| check | pass | 0 | |
| focused | pass | 0 | |
| build | pass | 0 | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode build -CargoProfile bench-fast-inc -Label it7-build |
| 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 it7-parity |
Status: rejected (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_PRIORITY_DEFINITION_PREFILTER_LEGACY, mechanism class copy. Mechanism: casting.rs:502–555 clones and resolves every printed ability before candidates.rs:4238–4400 discards non-activated, wrong-zone and mana abilities. Add a priority-specific enumerator that applies these predicates to borrowed definitions before cloning and resolving survivors. Preserve runtime-grant generation and original ability indices. Invariant: The ordered activation domain, ability indices, payment verdicts and all three fingerprints remain identical. Cost resolution changes mana amounts without changing kind, activation zone or library-movement classification. Enumerate runtime grants before filtering so discarded definitions cannot renumber later grants. Retained candidates still use the existing legality and payment authorities.
| 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.87% within +/-1%, same-arm spread 0.0332% |
| ir4k | yes | Ir -1.14% (threshold -1%), same-arm spread 0.0168% |
| check | yes | |
| focused | yes | |
| parity | NO | 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.
Status: rejected (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_PRIORITY_DEFINITION_PREFILTER_LEGACY, mechanism class copy. Mechanism: casting.rs:502–555 clones and resolves every printed ability before candidates.rs:4238–4400 discards non-activated, wrong-zone and mana abilities. Add a priority-specific enumerator that applies these predicates to borrowed definitions before cloning and resolving survivors. Preserve runtime-grant generation and original ability indices. Invariant: The ordered activation domain, ability indices, payment verdicts and all three fingerprints remain identical. Cost resolution changes mana amounts without changing kind, activation zone or library-movement classification. Enumerate runtime grants before filtering so discarded definitions cannot renumber later grants. Retained candidates still use the existing legality and payment authorities.
| gate | passed | detail |
|---|---|---|
| fmt | yes | cargo fmt --all -- --check |
| ir1k | yes | Ir -0.87% within +/-1%, same-arm spread 0.0332% |
| ir4k | yes | Ir -1.14% (threshold -1%), same-arm spread 0.0168% |
| check | yes | |
| focused | yes | |
| build | yes | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode build -CargoProfile bench-fa |
| parity | infra | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode parity -Seeds 1,2,3,5,7,11,1 |
| parity | infra | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode parity -Seeds 1,2,3,5,7,11,1 |
| parity | infra | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode parity -Seeds 1,2,3,5,7,11,1 |
| parity | infra | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode parity -Seeds 1,2,3,5,7,11,1 |
| parity | NO | 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.
Status: unknown (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_PRIORITY_DEFINITION_PREFILTER_LEGACY, mechanism class copy. Mechanism: casting.rs:502–555 clones and resolves every printed ability before candidates.rs:4238–4400 discards non-activated, wrong-zone and mana abilities. Add a priority-specific enumerator that applies these predicates to borrowed definitions before cloning and resolving survivors. Preserve runtime-grant generation and original ability indices. Invariant: The ordered activation domain, ability indices, payment verdicts and all three fingerprints remain identical. Cost resolution changes mana amounts without changing kind, activation zone or library-movement classification. Enumerate runtime grants before filtering so discarded definitions cannot renumber later grants. Retained candidates still use the existing legality and payment authorities.
| gate | passed | detail |
|---|---|---|
| fmt | yes | cargo fmt --all -- --check |
| ir1k | yes | Ir -0.87% within +/-1%, same-arm spread 0.0332% |
| ir4k | yes | Ir -1.14% (threshold -1%), same-arm spread 0.0168% |
| check | yes | |
| focused | yes | |
| build | yes | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode build -CargoProfile bench-fa |
| 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:07 · read-only · refreshes every 30 s