PHASE_PUBLIC_REVEAL_SCAN_LEGACY · branch loop/it42 · base 4ec0b9ef1 · candidate ceaea7a57 · took 57m 44s| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 21,779,775,497 | 21,783,748,822 | 4,000 | 5,445,441 | 2,640 | 2,576 |
| optimized | 21,780,693,833 | 21,783,877,077 | 4,000 | 5,445,571 | 2,882 | 2,660 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | +6.04% — cycles-neutral (same-arm spread 6.71%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.987 / 1.021 | same |
| backend stall / frontend stall (share of cycles) | 16.8% / 17.2% · 44.4% / 42.7% | same |
| L1D / L2D refills per 1k instructions (cache misses) | 12.90 / 12.84 · 11.23 / 11.04 | same |
| branch mispredicts per 1k instructions | 5.729 / 5.768 | same |
| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 78,429,141,441 | 78,425,793,401 | 11,418 | 6,868,757 | 19,343 | 12,690 |
| optimized | 78,432,194,316 | 78,427,990,095 | 11,418 | 6,868,987 | 17,579 | 11,485 |
perf: indicative only, not a clean timing.| Hardware counters (optimized / legacy) | Value | Reading |
|---|---|---|
| cycles, minimum of the repeats | -4.93% — cycles-neutral (same-arm spread 4.77%) | same within noise |
| IPC (instructions per cycle, higher is better) | 0.912 / 0.876 | same |
| backend stall / frontend stall (share of cycles) | 21.6% / 19.2% · 42.4% / 46.5% | more waiting |
| L1D / L2D refills per 1k instructions (cache misses) | 17.33 / 17.35 · 13.41 / 13.77 | same |
| branch mispredicts per 1k instructions | 4.875 / 5.238 | fewer |
Mechanism. In game/engine.rs::remember_public_reveals, the controller-reveal journal scan and HashSet construction run before checking whether events contains CardsRevealed. Return immediately when that event is absent; retain the existing body unchanged otherwise.
Evidence. docs/profiles/uprof-20261002-1125/w0-owners-all.txt attributes 3.1% directly owned CPU to finish_action_boundary_with_lifecycle, which calls this helper unconditionally. Across the summary's five windows, that owner ranges from 1.6% to 4.6%. This bounds the containing boundary work; reveal bookkeeping has no isolated timer. The profile predates subsequent loop changes.
Counter and kill threshold. Existing profile row: finish_action_boundary_with_lifecycle, 3.1% owned CPU in window 0. Expected instruction reduction: 0.3–0.8% per action at 4,000 actions, an unmeasured hypothesis. The removable fraction is unknown; expect marginal if successful. The loop's existing instruction and fingerprint gates decide.
Invariant. Without CardsRevealed, the existing helper performs no rules-state writes, so skipping its preparatory reads preserves the complete state. With a reveal event, retain controller-only reveal suppression, event order, journal_start handling, information commands and public knowledge updates exactly.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 11m 6s | 0 | 3,335,724 / 13,671 | |
| executor | codex / gpt-6-luna | 31m 24s | 0 | 3,383,561 / 11,423 | |
| reviewer | codex / gpt-6.1-sol | 0m 12s | 0 | 20,380 / 186 |
| 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 it42-build |
| ir1k | pass | 0 | Ir -0.01% within +/-1%, same-arm spread 0.0366% | optimized 21,782,626,414 vs legacy 21,783,754,625 instructions; fingerprints match: True |
| ir4k | FAIL | 0 | Ir -+0.00% within +/-1%, same-arm spread 0.0455% | optimized 78,418,891,487 vs legacy 78,422,534,900 instructions; fingerprints match: True |
Status: rejected (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_PUBLIC_REVEAL_SCAN_LEGACY, mechanism class compute. Mechanism: In game/engine.rs::remember_public_reveals, the controller-reveal journal scan and HashSet construction run before checking whether events contains CardsRevealed. Return immediately when that event is absent; retain the existing body unchanged otherwise. Invariant: Without CardsRevealed, the existing helper performs no rules-state writes, so skipping its preparatory reads preserves the complete state. With a reveal event, retain controller-only reveal suppression, event order, journal_start handling, information commands and public knowledge updates exactly.
| 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.01% within +/-1%, same-arm spread 0.0366% |
| ir4k | NO | Ir -+0.00% within +/-1%, same-arm spread 0.0455% |
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