PHASE_JOURNAL_COMMAND_PAYLOAD_LEGACY · branch loop/it5 · base 96ebc3713 · candidate 8fcf20681 · took 2h 22m| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 21,519,912,333 | 21,514,963,932 | 4,000 | 5,379,360 | 2,343 | 2,176 |
| optimized | 21,270,902,940 | 21,272,951,466 | 4,000 | 5,317,982 | 2,307 | 2,220 |
perf: indicative only, not a clean timing.| Arm | Run 1 instructions | Run 2 | Actions | Instr / action | contract ms | apply ms |
|---|---|---|---|---|---|---|
| legacy | 77,265,504,688 | 77,272,943,452 | 11,418 | 6,767,317 | 18,309 | 12,450 |
| optimized | 73,839,703,387 | 73,860,659,201 | 11,418 | 6,467,874 | 15,306 | 10,293 |
perf: indicative only, not a clean timing.Mechanism. At types/resolved_commands.rs:1331, replace the boxed command payloads with a transparent wrapper carrying either Box<T> or Arc<T>. Optimized journal clones share these immutable payloads; legacy clones retain owned boxes and deep-copy them. Keep the existing entry, node and mana vectors.
Evidence. xn5.67, docs/stage0-decision-memo.md:L4904, measured journal cloning at 7.45% inclusive CPU, with 5.7% in the entry vector. bench/reports/uprof-xn565-20260923-owners-alloc.txt attributes 1.9% process CPU to allocations owned by journal cloning. These bound the family, not the boxed-payload subset. xn5.71 subsequently removed trigger-entry deep copies, so its earlier share cannot also be credited here. Already overlaps the open xn5.23 clone sweep.
Counter and kill threshold. Existing journal_clone_ns and journal_clone_entries, plus xn5.67's 7.45% journal / 5.7% entry-vector profile rows. Expected instruction reduction: 0.6–1.5% per action at 4,000 actions, an unmeasured hypothesis; the boxed fraction is unknown and copy savings can be under-reported.
Invariant. Captured commands remain immutable and byte-equivalent across clones, serialization and replay. Preserve every journal reader, ordinal and causal/provenance relationship. Add a differential regression covering all converted variants, shared versus deep-copy ownership, divergent sibling appends, identical wire output, successful restoration and rejection of malformed authority.
| Role | Harness / model | Time | Exit | Tokens in / out | Note |
|---|---|---|---|---|---|
| planner | codex / gpt-6.1-sol | 11m 13s | 0 | 2,111,086 / 10,509 | |
| executor | codex / gpt-6-luna | 1h 20m | 0 | 11,414,573 / 21,611 | |
| reviewer | codex / gpt-6.1-sol | 1m 11s | 0 | 21,710 / 1,140 |
| 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 it5-build |
| ir1k | pass | 0 | Ir -1.14% (threshold -1%), same-arm spread 0.0230% | optimized 21,271,927,203 vs legacy 21,517,438,132 instructions; fingerprints match: True |
| ir4k | pass | 0 | Ir -4.42% (threshold -1%), same-arm spread 0.0284% | optimized 73,850,181,294 vs legacy 77,269,224,070 instructions; fingerprints match: True |
| check | FAIL | 101 |
Status: rejected (loop, instruction-count gate; wall-clock not yet confirmed)
Automated loop result on homelab (aarch64). Switch PHASE_JOURNAL_COMMAND_PAYLOAD_LEGACY, mechanism class copy. Mechanism: At types/resolved_commands.rs:1331, replace the boxed command payloads with a transparent wrapper carrying either Box<T> or Arc<T>. Optimized journal clones share these immutable payloads; legacy clones retain owned boxes and deep-copy them. Keep the existing entry, node and mana vectors. Invariant: Captured commands remain immutable and byte-equivalent across clones, serialization and replay. Preserve every journal reader, ordinal and causal/provenance relationship. Add a differential regression covering all converted variants, shared versus deep-copy ownership, divergent sibling appends, identical wire output, successful restoration and rejection of malformed authority.
| 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 -1.14% (threshold -1%), same-arm spread 0.0230% |
| ir4k | yes | Ir -4.42% (threshold -1%), same-arm spread 0.0284% |
| check | NO |
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:08 · read-only · refreshes every 30 s