PHASE_COMPOSITE_RESOLUTION_BOOKKEEPING_LEGACY · branch loop/it28 · base 4ec0b9ef1 · candidate 4f6d039b7 · took 2h 4m| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 22,096,582,742 | 22,097,573,492 | 4,000 | 5,524,270 | 2,963 | 2,867 |
| optimized | 22,097,993,617 | 22,097,432,682 | 4,000 | 5,524,428 | 3,748 | 3,768 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -1.27% — cycles-neutral (same-arm spread 5.98%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.894 / 0.877 | same |
| backend stall / frontend stall (share of cycles) | 17.0% / 16.7% · 48.7% / 48.5% | same |
| L1D / L2D refills per 1k instructions (cache misses) | 12.69 / 12.72 · 11.46 / 11.38 | same |
| branch mispredicts per 1k instructions | 5.936 / 6.020 | same |
| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 81,090,728,873 | 81,077,612,202 | 11,418 | 7,101,434 | 24,254 | 16,283 |
| optimized | 81,095,060,486 | 81,099,456,528 | 11,418 | 7,102,580 | 20,992 | 13,865 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | +4.60% — cycles-neutral (same-arm spread 15.62%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.801 / 0.790 | same |
| backend stall / frontend stall (share of cycles) | 21.4% / 22.6% · 47.0% / 46.1% | less waiting |
| L1D / L2D refills per 1k instructions (cache misses) | 16.74 / 16.76 · 13.70 / 13.75 | same |
| branch mispredicts per 1k instructions | 5.655 / 5.469 | same |
Mechanism. In costs.rs::pay_ability_cost_inner, the Composite arm clones waiting_for and constructs sub_resume_cost for every component, although both are consumed only in Resolution scope. Gate those constructions on Resolution scope. Preserve suffix construction when a component actually pauses, including activation pauses.
Evidence. xn5.67, docs/stage0-decision-memo.md:L4904, attributes 7.2% inclusive process CPU to pay_ability_cost_inner beneath activation payability. xn5.75 at L5537 records activation dry-run totals of 982.123 ms on seed 91 and 689.498 ms on seed 42. These are overlapping family ceilings, not measured removable shares; no suffix-specific timer exists. The source explicitly constructs owned suffixes before discarding their references in Activation scope.
Counter and kill threshold. Existing activation_dry_run timers and xn5.67's pay_ability_cost_inner profile row bound the containing work. Forecast: 0.5–1.2% fewer instructions per action at 4,000 actions, with substantial uncertainty about composite coverage. Copy and allocation savings may place this in the marginal band.
Invariant. Payment order, outcome, emitted events, waiting_for, and every paused unpaid suffix remain identical. Activation passes None as resume_cost today; removing the unused owned temporary must preserve that. Resolution keeps its full continuation bookkeeping.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 7m 48s | 0 | 2,104,637 / 9,715 | |
| executor | codex / gpt-6-luna | 52m 39s | 0 | 5,768,216 / 15,732 | |
| reviewer | codex / gpt-6.1-sol | 0m 47s | 0 | 24,013 / 1,019 | |
| executor | codex / gpt-6-luna | 39m 21s | 0 | 3,792,228 / 9,541 | |
| reviewer | codex / gpt-6.1-sol | 0m 30s | 0 | 22,266 / 582 |
| 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 it28-build |
| ir1k | pass | 0 | Ir +0.00% within +/-1%, same-arm spread 0.0048% | optimized 22,097,454,933 vs legacy 22,096,972,733 instructions; fingerprints match: True |
| ir4k | FAIL | 0 | Ir +0.01% within +/-1%, same-arm spread 0.0261% | optimized 81,090,940,575 vs legacy 81,082,908,994 instructions; fingerprints match: True |
Status: rejected (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_COMPOSITE_RESOLUTION_BOOKKEEPING_LEGACY, mechanism class copy. Mechanism: In costs.rs::pay_ability_cost_inner, the Composite arm clones waiting_for and constructs sub_resume_cost for every component, although both are consumed only in Resolution scope. Gate those constructions on Resolution scope. Preserve suffix construction when a component actually pauses, including activation pauses. Invariant: Payment order, outcome, emitted events, waiting_for, and every paused unpaid suffix remain identical. Activation passes None as resume_cost today; removing the unused owned temporary must preserve that. Resolution keeps its full continuation bookkeeping.
| 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.00% within +/-1%, same-arm spread 0.0048% |
| ir4k | NO | Ir +0.01% within +/-1%, same-arm spread 0.0261% |
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