PHASE_CANCEL_CAST_VALIDATION_LEGACY · branch loop/it14 · base 4ec0b9ef1 · candidate 37d2c5d4a · took 1h 13m| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 22,065,383,034 | 22,061,860,001 | 4,000 | 5,515,905 | 2,683 | 2,498 |
| optimized | 22,056,642,903 | 22,056,782,716 | 4,000 | 5,514,178 | 2,983 | 2,669 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -2.46% — cycles-neutral (same-arm spread 3.05%) | same within noise |
| IPC (instructions per cycle, higher is better) | 1.013 / 1.001 | same |
| backend stall / frontend stall (share of cycles) | 19.0% / 18.2% · 42.1% / 43.4% | same |
| L1D / L2D refills per 1k instructions (cache misses) | 12.68 / 12.78 · 11.41 / 11.26 | same |
| branch mispredicts per 1k instructions | 6.009 / 6.098 | same |
| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 80,988,335,847 | 80,990,612,459 | 11,418 | 7,093,140 | 21,533 | 14,465 |
| optimized | 80,964,105,337 | 80,959,192,408 | 11,418 | 7,090,703 | 18,870 | 12,164 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -1.08% — cycles-neutral (same-arm spread 5.14%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.904 / 0.887 | same |
| backend stall / frontend stall (share of cycles) | 24.0% / 20.2% · 40.5% / 45.4% | more waiting |
| L1D / L2D refills per 1k instructions (cache misses) | 16.76 / 16.73 · 13.64 / 13.75 | same |
| branch mispredicts per 1k instructions | 5.699 / 5.429 | same |
Mechanism. At ai_support/filter.rs:143–194, CancelCast falls through to clone-and-apply validation. Add a sufficient immutable validator for ordinary casting prompts, sharing the reducer's cancellation refusal predicates. Certified cancellations bypass fallback_simulation in both accept methods; unsupported prompts and parked continuation states retain simulation.
Evidence. docs/stage0-decision-memo.md L4524, xn5.59: CancelCast consumed 179.6 ms across 802 raw-validation simulations in the combined 4,000-action seed-91/42 attribution. This bounds an actual action-specific component rather than the entire 9.4% fallback_simulation family in xn5.67. Coverage by the proposed conservative validator remains unmeasured.
Counter and kill threshold. Existing xn5.59 raw-validation action-kind timing for CancelCast: 802 calls, 179.6 ms. Expected instruction reduction per action: 0.4–0.9% at 4,000 actions, an estimate requiring the loop's A/B.
Invariant. The complete ordered legal domain must match clone-and-apply validation. Certification must preserve authenticated actor and semantic-owner authorization, committed-cost refusals, and the fallback's post-action pending-spell check. A permanent differential regression compares certified answers with fallback_simulation and verifies that enumeration leaves the input state unchanged.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 9m 6s | 0 | 4,055,519 / 11,015 | |
| executor | codex / gpt-6-luna | 48m 22s | 0 | 8,095,737 / 14,478 | |
| reviewer | codex / gpt-6.1-sol | 0m 46s | 0 | 20,370 / 1,153 |
| 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 it14-build |
| ir1k | pass | 0 | Ir -0.02% within +/-1%, same-arm spread 0.0292% | optimized 22,057,921,136 vs legacy 22,062,062,721 instructions; fingerprints match: True |
| ir4k | FAIL | 0 | Ir -0.03% within +/-1%, same-arm spread 0.0271% | optimized 80,961,952,023 vs legacy 80,982,525,398 instructions; fingerprints match: True |
Status: rejected (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_CANCEL_CAST_VALIDATION_LEGACY, mechanism class compute. Mechanism: At ai_support/filter.rs:143–194, CancelCast falls through to clone-and-apply validation. Add a sufficient immutable validator for ordinary casting prompts, sharing the reducer's cancellation refusal predicates. Certified cancellations bypass fallback_simulation in both accept methods; unsupported prompts and parked continuation states retain simulation. Invariant: The complete ordered legal domain must match clone-and-apply validation. Certification must preserve authenticated actor and semantic-owner authorization, committed-cost refusals, and the fallback's post-action pending-spell check. A permanent differential regression compares certified answers with fallback_simulation and verifies that enumeration leaves the input state unchanged.
| 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.02% within +/-1%, same-arm spread 0.0292% |
| ir4k | NO | Ir -0.03% within +/-1%, same-arm spread 0.0271% |
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