PHASE_JOURNAL_FIXED_BLOCKS_LEGACY · branch loop/it6 · base 4ec0b9ef1 · candidate e410d1e91 · took 20h 44m| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 21,539,250,403 | 21,537,812,693 | 4,000 | 5,384,633 | 3,423 | 3,598 |
| optimized | 21,459,154,981 | 21,462,610,010 | 4,000 | 5,365,221 | 2,476 | 2,470 |
perf: indicative only, not a clean timing.| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 77,361,801,145 | 77,358,228,634 | 11,418 | 6,775,268 | 16,859 | 11,336 |
| optimized | 74,744,877,619 | 74,750,951,947 | 11,418 | 6,546,498 | 17,202 | 12,072 |
perf: indicative only, not a clean timing.Mechanism. At types/resolved_commands.rs:1901–1930, replace only the journal entry vector with switchable fixed-block storage. Keep journals below 64 entries as a plain Vec; publish each completed 64-entry block by moving it into Arc-backed storage during append. Forks share completed blocks and copy at most 63 tail entries. Leave nodes, produced_mana, spent_mana and command payload types unchanged.
Evidence. xn5.67, docs/stage0-decision-memo.md:4904, attributes 5.7% inclusive process CPU specifically to the journal entry vector, within the 7.45% journal-clone family. xn5.36:2615 places most journal-clone time in the 64–1,000-entry bucket, with no measured >1,000-entry population. xn5.53B:3987 deferred the earlier implementation after neutral seed-91 results and a seed-42 instruction-profile-independent timing signal. These historical shares bound the opportunity; they predate subsequent retained changes.
Counter and kill threshold. Existing journal_clone_ns and journal_clone_ns_entries_64_to_1k counters, plus xn5.67's 5.7% entry-vector profile row. Expected instruction reduction: 0.8–2.0% per action at 4,000 actions, as a prediction rather than a measurement. Copy and allocation savings may land in the loop's marginal band despite a wall-clock benefit.
Invariant. Journal entries, ordinals, iteration order, probe reads and serialized arrays remain identical. Publishing a completed block changes ownership only; appending to a fork cannot modify its parent. Permanent differential tests must cover lengths 63/64/65 and 127/128/129, sibling appends, indexed reads, serialization roundtrips and any mutable indexed access retained for tests.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 11m 57s | 0 | 1,696,685 / 10,169 | |
| executor | codex / gpt-6-luna | 1h 23m | 0 | 17,857,339 / 29,476 | |
| reviewer | codex / gpt-6.1-sol | 1m 1s | 0 | 22,172 / 1,280 |
| Gate | Result | Exit | Detail |
|---|---|---|---|
| fmt | pass | 0 | cargo fmt --all -- --check |
| ir1k | pass | 0 | Ir -0.36% within +/-1%, same-arm spread 0.0161% | optimized 21,460,882,496 vs legacy 21,538,531,548 instructions; fingerprints match: True |
| ir4k | pass | 0 | Ir -3.38% (threshold -1%), same-arm spread 0.0081% | optimized 74,747,914,783 vs legacy 77,360,014,890 instructions; fingerprints match: True |
| check | pass | 0 | |
| focused | pass | 0 | |
| build | pass | 0 | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode build -CargoProfile bench-fast-inc -Label it6-build |
| parity | pass | 0 | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode parity -Seeds 1,2,3,5,7,11,13 -Actions 1000 -SkipBuild -CargoProfile bench-fast-inc -Label it6-parity |
Status: rejected (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_JOURNAL_FIXED_BLOCKS_LEGACY, mechanism class copy. Mechanism: At types/resolved_commands.rs:1901–1930, replace only the journal entry vector with switchable fixed-block storage. Keep journals below 64 entries as a plain Vec; publish each completed 64-entry block by moving it into Arc-backed storage during append. Forks share completed blocks and copy at most 63 tail entries. Leave nodes, produced_mana, spent_mana and command payload types unchanged. Invariant: Journal entries, ordinals, iteration order, probe reads and serialized arrays remain identical. Publishing a completed block changes ownership only; appending to a fork cannot modify its parent. Permanent differential tests must cover lengths 63/64/65 and 127/128/129, sibling appends, indexed reads, serialization roundtrips and any mutable indexed access retained for tests.
| 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.36% within +/-1%, same-arm spread 0.0161% |
| ir4k | yes | Ir -3.38% (threshold -1%), same-arm spread 0.0081% |
| check | yes | |
| focused | yes | |
| parity | NO | 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.
Status: unknown (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_JOURNAL_FIXED_BLOCKS_LEGACY, mechanism class copy. Mechanism: At types/resolved_commands.rs:1901–1930, replace only the journal entry vector with switchable fixed-block storage. Keep journals below 64 entries as a plain Vec; publish each completed 64-entry block by moving it into Arc-backed storage during append. Forks share completed blocks and copy at most 63 tail entries. Leave nodes, produced_mana, spent_mana and command payload types unchanged. Invariant: Journal entries, ordinals, iteration order, probe reads and serialized arrays remain identical. Publishing a completed block changes ownership only; appending to a fork cannot modify its parent. Permanent differential tests must cover lengths 63/64/65 and 127/128/129, sibling appends, indexed reads, serialization roundtrips and any mutable indexed access retained for tests.
| gate | passed | detail |
|---|---|---|
| fmt | yes | cargo fmt --all -- --check |
| ir1k | yes | Ir -0.36% within +/-1%, same-arm spread 0.0161% |
| ir4k | yes | Ir -3.38% (threshold -1%), same-arm spread 0.0081% |
| check | yes | |
| focused | yes | |
| build | yes | pwsh -NoProfile -File scripts/bench_phase.ps1 -Mode build -CargoProfile bench-fa |
| 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:11 · read-only · refreshes every 30 s