PHASE_ZONE_DEPENDENCY_FUSED_SCAN_LEGACY · branch loop/it48 · base 4ec0b9ef1 · candidate d807739e9 · took 1h 42m| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 21,540,436,032 | 21,541,396,980 | 4,000 | 5,385,229 | 2,695 | 2,864 |
| optimized | 21,468,561,891 | 21,470,650,126 | 4,000 | 5,367,402 | 3,266 | 3,185 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -0.26% — cycles-neutral (same-arm spread 2.38%) | same within noise |
| IPC (instructions per cycle, higher is better) | 1.015 / 1.026 | same |
| backend stall / frontend stall (share of cycles) | 17.1% / 18.7% · 44.3% / 42.1% | less waiting |
| L1D / L2D refills per 1k instructions (cache misses) | 12.97 / 13.10 · 11.29 / 11.09 | same |
| branch mispredicts per 1k instructions | 5.777 / 5.728 | same |
| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 77,423,777,729 | 77,439,617,157 | 11,418 | 6,781,546 | 20,034 | 12,437 |
| optimized | 77,208,262,077 | 77,205,827,756 | 11,418 | 6,761,871 | 20,464 | 13,753 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | +2.52% — cycles-neutral (same-arm spread 5.85%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.875 / 0.878 | same |
| backend stall / frontend stall (share of cycles) | 19.4% / 20.1% · 46.5% / 45.6% | same |
| L1D / L2D refills per 1k instructions (cache misses) | 17.51 / 17.52 · 14.05 / 14.09 | same |
| branch mispredicts per 1k instructions | 5.382 / 5.528 | same |
Mechanism. At layers.rs:4538, static_layer_dependency_for_zone_transition traverses static sources separately for the departure and destination zones. Traverse once and test static_definition_reads_zone_membership(def, from) || static_definition_reads_zone_membership(def, to) for each definition.
Evidence. xn5.67, docs/stage0-decision-memo.md:L4904, and bench/reports/uprof-xn565-20260923-owners-all.txt attribute 0.7% of process CPU to any_active_static_reads_zone_membership. zones.rs calls the paired query before and after each move. This historical function-level bound includes other callers; the removable second traversal is not separately measured. Preserve both pre-move and post-move queries.
Counter and kill threshold. Existing any_active_static_reads_zone_membership profile row: 0.7% CPU. Expected instruction reduction: 0.3–0.5% per action at 4,000 actions, with low confidence because paired-call coverage is unmeasured. Apply the loop's unchanged retention, marginal and drop tiers.
Invariant. Existential disjunction distributes over the identical immutable source and definition population. Preserve source admission, currently-false condition readers, index fallback and every invalidation checkpoint. Permanently compare the fused result with the original two queries across zone pairs and compare resulting transition states.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 9m 30s | 0 | 4,319,585 / 11,353 | |
| executor | codex / gpt-6-luna | 58m 49s | 0 | 10,868,470 / 18,976 | |
| reviewer | codex / gpt-6.1-sol | 0m 33s | 0 | 23,231 / 641 |
| 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 it48-build |
| ir1k | pass | 0 | Ir -0.33% within +/-1%, same-arm spread 0.0163% | optimized 21,468,790,594 vs legacy 21,539,998,562 instructions; fingerprints match: True |
| ir4k | FAIL | 0 | Ir -0.29% within +/-1%, same-arm spread 0.0205% | optimized 77,207,805,125 vs legacy 77,433,235,099 instructions; fingerprints match: True |
Status: rejected (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_ZONE_DEPENDENCY_FUSED_SCAN_LEGACY, mechanism class compute. Mechanism: At layers.rs:4538, static_layer_dependency_for_zone_transition traverses static sources separately for the departure and destination zones. Traverse once and test static_definition_reads_zone_membership(def, from) || static_definition_reads_zone_membership(def, to) for each definition. Invariant: Existential disjunction distributes over the identical immutable source and definition population. Preserve source admission, currently-false condition readers, index fallback and every invalidation checkpoint. Permanently compare the fused result with the original two queries across zone pairs and compare resulting transition states.
| 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.33% within +/-1%, same-arm spread 0.0163% |
| ir4k | NO | Ir -0.29% within +/-1%, same-arm spread 0.0205% |
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:12 · read-only · refreshes every 30 s