Commit c93fe46
review pass 64 (Codex): reset recheck validation provenance on a stale re-latch (crash-loop follow-up)
P1 (real bug in the pass-63 A1 fix): the STALE re-latch preserved the
`validated` bit. When a peer/remote import latches with validated=true and a
later import then advances the mirror via optimistic_sync (SYNCING commit, no
new_payload) WITHOUT replacing the latch, the recheck's staleness guard
re-latches onto that optimistic mirror — and carried validated=true onto it.
A subsequent INVALID then hit `validated && target == mirror` and fail-stopped
the node: the very crash loop A1 removed, re-openable by repeated remote
input. Fix: the stale re-latch resets `validated` to false (the mirror moved
via another path, so the old target's provenance does not transfer). The
INVALID re-latch still preserves it (it re-latches onto the same just-probed
mirror). The stale-latch test now pins the reset.
P3 (operator-message defects, self-inflicted in pass 63): the plaintext-http
warning and the signed-block canonicality-fallback log had `\`-continuations
that the pass-63 edit tooling collapsed into 18-34-space gaps — the exact
B13 class. Both collapsed to normal spacing.
Verification: build clean; chain-orchestrator + rollup-node unit tests 51/51
(the 6 recheck tests included); clippy -D warnings clean; sync +
remote_block_source + e2e suites 20/22 — the two failures are
test_chain_orchestrator_l1_reorg and test_chain_orchestrator_reorg_with_gap_above_head,
both the tracked issue #44 nippy-jar storage flake (reorg tests under battery
memory pressure), each passing standalone (18s/22s); neither path is touched
by this change.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent f8189b5 commit c93fe46
2 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
| 551 | + | |
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| |||
2274 | 2274 | | |
2275 | 2275 | | |
2276 | 2276 | | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
2277 | 2282 | | |
2278 | | - | |
| 2283 | + | |
2279 | 2284 | | |
2280 | 2285 | | |
2281 | 2286 | | |
| |||
3560 | 3565 | | |
3561 | 3566 | | |
3562 | 3567 | | |
3563 | | - | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
3564 | 3571 | | |
3565 | 3572 | | |
3566 | 3573 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
0 commit comments