Repository navigation
fix(sidebar): verify a restarted PC's roster that arrived before a move's receipt, once the moves settle - #4315
Conversation
|
Proof at this change (before the rebase onto current main, which touched none of these files): 20/20 passes of scripts/workspace-touch-reorder-demo-regression.ts in the CI runner image on hosthatch (ci-browser-parallel.ts, BROWSER_RETRY=0, 6 workers), bun run typecheck first; bun run check fast exit 0. |
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
Hold: the gate review reproduced three MEDIUM regressions (a proof landing mid-batch followed by a failed step drops the verified order and skips the settlement reload; a departed PC gets a new check; a compact event reusing the pre-move snapshot spends the verification interval). Written up in #4316 with the likely shape of the fix; the script is quarantined meanwhile. |
…4316 is fixed (#4317) scripts/workspace-touch-reorder-demo-regression.ts:300 (checkProofGating) flakes in browser lane 2/3 (#4309). The cause is an app race in ReorderCoordinator, written up in #4316. The fix in #4315 passed 20/20 in the CI image, but the gate review reproduced three regressions in it, so it does not fit this lane's two-hour limit. Until it is fixed, a pass on the lane's second run counts, as for the other entries. Validation: bun test scripts/ci-browser-parallel.test.ts (30 pass). Not run: check fast (one entry in a data table that this test covers).
… not per receipt The gate review of the first version reproduced three regressions (#4316): a proof landing mid-batch before a failing step dropped the verified order and skipped the settlement reload; a PC that left between its roster and the receipt got a new check; an event repeating the pre-move roster spent the per-PC verification interval. The roster is now re-checked once, when the batch settles, only for a PC still listed and only when its evidence changed since the first move went out. Unquarantines scripts/workspace-touch-reorder-demo-regression.ts.
… move; do not re-ask an answered check Second gate review (#4316) reproduced two regressions of the settle-time re-check: - chained batches compared the last roster with the one read before the first batch's move, so a roster read before a later move spent the PC's verification interval the next real restart needed. The baseline is now the roster read when the newest move that got a receipt was sent. - a failed step re-asked a verification already answered for the same roster: the answered evidence is remembered and not asked again.
…xact read The gate review of the narrowed head reproduced two regressions against main: a delayed older read of the lifetime read before the move, and a later read of a lifetime a verification already answered about, each started a needless check that spent the PC's verification interval a real restart then needed. Both are the same server lifetime, so the re-check now compares epochs only.
20 runs in the CI image passed 19: the one failure is a long press in checkPinned's touch pass that never lifted its row, before any reorder or proof check ran. checkProofGating (#4316) passed in all 19 runs that reached it.
cc44955 to
90cd099
Compare
|
The hold above is resolved at Gate reviewer (GPT-6.2 Astra): four reviews. The last one, of the delta at 20 runs in the CI image on hosthatch at |
|
Merged through CodeRabbit did not review head 90cd099 (rate-limited/skipped; reviewed only the first version). Reviews of record at this code: omo gate reviewer (GPT-6.2 Astra), four rounds, last delta review of 6bd77fa VERDICT CLEAR (90cd099 only adds the quarantine-table entry under #4343); dori review of 90cd099 VERDICT CLEAR. Scope narrowed on the lead's word; deferred pre-existing cases in #4336. Sensitive-area file is only the quarantine table: workspace-touch-reorder stays quarantined, repointed from #4316 to #4343 (19/20 in the CI image; the one failure is checkPinned's touch lift, not the fixed race). On the lead's word (lane reorder-race brief: merge your own PR). |
What
scripts/workspace-touch-reorder-demo-regression.ts(checkProofGating) timed out now and then in CI browser lane 2/3 (#4309). The cause is in the app (#4316):ReorderCoordinatorasked a PC's server for proof of a restart only when a roster of another server lifetime arrived after a move's receipt. Under load the restarted server's roster reached the page while the move was still on its way; with nothing protected yet it was taken as is, and when the receipt landed nothing looked at it again.Now, once a batch of moves settles (pending reaches zero and the hold stays), the last roster is checked as one arriving then would be, except when:
order_epoch,read_seq) is the one read when the newest move that got a receipt was sent: that roster is older than the receipt, also when an event repeats it;Checking once at settlement instead of on every receipt keeps a proof from landing mid-batch, where a later failing step would drop the verified order and skip the settlement reload.
Closes #4316. The script stays quarantined, now under #4343: of 20 runs in the CI image, one failed in
checkPinned's touch pass (a long press that never lifted its row, before any reorder or proof check ran).checkProofGatingpassed in all 19 runs that reached it.Out of scope, filed as #4336: a drag queued behind a partly failed batch can stall or falsely succeed after the PC's server restarts. Those schedules fail on main as well; the gate's probes are the repros there.
Tests
src/lib/workspaceOrder.test.ts, each failing before its fix:Reviews
Gate reviewer (GPT-6.2 Astra). Round 1 on the first version found three regressions, fixed in the second commit. Round 2 found two more (chained baseline, answered check), both fixed, plus a queued-recovery case that already fails on main. Round 3 found that the queued-recovery attempt caused new problems, so the lead narrowed the PR to exclude it (#4336). The review of the narrowed head found two more interval regressions against main (a delayed or repeated read of an already-known server lifetime), fixed by comparing lifetimes. The delta review of
6bd77fa0ereturned VERDICT: CLEAR. Each round's probes were run on this head and on origin/main: every probe that passes on main passes here.Validation
bun test src/lib/workspaceOrder.test.ts scripts/ci-browser-parallel.test.ts: 75 pass, 0 fail;bun run typecheck: exit 0.bun run check faston hosthatch: exit 0 at6bd77fa0e; at90cd0991c(after the quarantine commit) exit 0 on this PC, because both remote hosts had no free slot.scripts/workspace-touch-reorder-demo-regression.tsin the CI runner image on hosthatch at6bd77fa0e(ci-browser-parallel.ts,BROWSER_RETRY=0, 6 workers), typecheck and build first: 19/20. The failure is workspace-touch-reorder checkPinned flakes: a long press on a pinned row sometimes never lifts it #4343 (above).