PHASE_LAYER_PAIR_CANDIDATES_LEGACY · branch loop/it13 · base 4ec0b9ef1 · candidate cc5b3495f · took 2h 8m| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 22,086,280,956 | 22,091,850,186 | 4,000 | 5,522,266 | 3,878 | 3,643 |
| optimized | 21,971,955,232 | 21,973,564,847 | 4,000 | 5,493,190 | 2,671 | 2,522 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -3.59% — cycles-neutral (same-arm spread 6.90%) | same within noise |
| IPC (instructions per cycle, higher is better) | 1.014 / 0.981 | same |
| backend stall / frontend stall (share of cycles) | 17.6% / 18.3% · 42.8% / 43.2% | same |
| L1D / L2D refills per 1k instructions (cache misses) | 12.63 / 12.72 · 11.10 / 11.44 | same |
| branch mispredicts per 1k instructions | 5.620 / 5.901 | same |
| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 81,013,330,425 | 81,020,066,156 | 11,418 | 7,095,524 | 20,403 | 12,793 |
| optimized | 80,505,444,759 | 80,507,987,431 | 11,418 | 7,050,860 | 20,075 | 13,776 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -3.54% — cycles-neutral (same-arm spread 5.23%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.893 / 0.884 | same |
| backend stall / frontend stall (share of cycles) | 20.8% / 20.4% · 43.9% / 44.7% | same |
| L1D / L2D refills per 1k instructions (cache misses) | 16.74 / 16.73 · 13.50 / 13.44 | same |
| branch mispredicts per 1k instructions | 5.070 / 5.154 | same |
Mechanism. In layers.rs:3084 and :3243, cleanup_invalid_pairs repeatedly walks the entire object store after Control, Type and the final pass. Capture the ordered IDs with paired_with present once before resetting characteristics, then run the existing validation and break logic over that list at every original checkpoint. Keep the public standalone cleanup function unchanged.
Evidence. xn5.67, docs/stage0-decision-memo.md:L4904, attributes 0.65% inclusive process CPU to cleanup_invalid_pairs under evaluate_layers. bench/reports/uprof-xn565-20260923-owners-all.txt independently reports approximately 0.6% directly owned CPU. Source inspection confirms multiple full-store scans per evaluation; their individual shares are not separately measured.
Counter and kill threshold. Existing xn5.67 cleanup_invalid_pairs profile row: 0.65% inclusive CPU. Expected reduction: 0.3–0.5% instructions/action at 4,000 actions, an estimate rather than a measurement; likely marginal under the loop's unchanged tiers.
Invariant. Preserve cleanup checkpoint timing, candidate order, broken pairs, layer dirtiness and final characteristics. Pair creation occurs through pair_objects outside layer evaluation; layer application can only retain or remove existing pair links. Capture candidates across all zones, including malformed off-zone fixtures, and re-read their current links at each checkpoint.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 7m 43s | 0 | 1,840,630 / 8,932 | |
| executor | codex / gpt-6-luna | 45m 24s | 0 | 5,767,618 / 15,457 | |
| reviewer | codex / gpt-6.1-sol | 0m 39s | 0 | 20,702 / 831 | |
| executor | codex / gpt-6-luna | 31m 22s | 0 | 5,772,662 / 12,643 | |
| reviewer | codex / gpt-6.1-sol | 0m 40s | 0 | 21,347 / 823 |
| 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 it13-build |
| ir1k | pass | 0 | Ir -0.52% within +/-1%, same-arm spread 0.0252% | optimized 21,973,885,565 vs legacy 22,089,388,936 instructions; fingerprints match: True |
| ir4k | FAIL | 0 | Ir -0.63% within +/-1%, same-arm spread 0.0230% | optimized 80,512,474,925 vs legacy 81,019,584,699 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 it13-parity |
Status: unknown (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_LAYER_PAIR_CANDIDATES_LEGACY, mechanism class compute. Mechanism: In layers.rs:3084 and :3243, cleanup_invalid_pairs repeatedly walks the entire object store after Control, Type and the final pass. Capture the ordered IDs with paired_with present once before resetting characteristics, then run the existing validation and break logic over that list at every original checkpoint. Keep the public standalone cleanup function unchanged. Invariant: Preserve cleanup checkpoint timing, candidate order, broken pairs, layer dirtiness and final characteristics. Pair creation occurs through pair_objects outside layer evaluation; layer application can only retain or remove existing pair links. Capture candidates across all zones, including malformed off-zone fixtures, and re-read their current links at each checkpoint.
| 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.52% within +/-1%, same-arm spread 0.0252% |
| ir4k | marginal: workstation check | Ir -0.63% within +/-1%, same-arm spread 0.0230% |
| 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