You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id: world_bench fails at restore — journal event at sequence 1 uses participant 1 without INPUT scope #8316
Found by repo queue task 12126 (lane code-w, 2026-11-10) while re-running the world bench at current main for issue #7064.
Symptom
cargo bench -p id --bench world_bench (laptop, worktree at main merge 43b8df9, branch queue/12126-7064-many-worlds) fails partway:
bench journal_append_fsync unit=us_per_append median=18485.871 min=17578.015 reps=5
bench checkpoint_compaction unit=us_per_compact median=36294.215 min=31043.202 reps=5
Error: restore
Caused by:
journal event at sequence 1 uses participant 1 without INPUT scope
error: bench failed, to rerun pass `-p id --bench world_bench`
Full log: laptop /tmp/bench-12126.log (2026-11-10 run). The two unit benches complete; the failure hits at the restore stage, before bench_many_worlds can produce a line — so there is currently no way to re-measure the many_worlds p99 for issue #7064 / issue #557 at current main.
If the restore validation is correct, a journal the bench itself writes is being rejected on read-back — that shape (writer/reader scope disagreement at sequence 1) could bite real checkpoint/reopen paths, not just the bench. If the bench harness is at fault, it should say so in its setup.
Suggested first step
Reproduce on a quiet machine with cargo bench -p id --bench world_bench -- --only <the restore bench> (identify which bench function owns the restore stage), then bisect writer vs reader: dump the sequence-1 journal event's scopes as written and as the restore validator expects them.
Related: issue #7064 (measurement this blocks), issue #8239 (fix whose verification this blocks), issue #557 (parent remainder).
Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 15288 moved from blocked/parked to queued in the fleet unblock-all pass (worker main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet.
Diagnosis (writer vs reader): the bench harness was wrong; the restore validator is right. Reproduced at main e9cf612 with the exact error from this issue. bench_guest_replay issued its synthetic participant with scopes JOIN|CHAT only, hand-built the journal's Issued entry with the same scopes, then appended Committed Input events from participant 1. WorldCore::restore validates each event kind against the participant's Issued scopes — behavior pinned by restore_refuses_input_and_chat_without_the_matching_scope — so it refused the first committed event at sequence 1. No real writer can produce that journal (input submission requires INPUT scope at write time), so real checkpoint/reopen paths were never at risk.
Fix (bench only, no product code):pkgs/id/benches/world_bench.rs — the participant is now issued WorldScopes::GUEST (JOIN|CHAT|INPUT) and the constructed Issued entry records the same set.
Verification (laptop): before the fix, the bench died at guest_replay as reported. After: --only guest_replay at full size passes (bench guest_replay unit=us_per_event median=0.821, 10,000 events × 5 reps), and the full bench in --quick mode completes all six stages — including bench many_worlds … p99_ms=9.130 target_p99_ms=50 target_met=true. The #7064 measurement and #8239 verification paths are unblocked; the recorded full-size many_worlds run itself belongs to task 12126 / issue #7064.
State found (2026-11-14): this issue was closed today (13:07:07Z) with status:done applied, one minute into this task's claim. The triage therefore verified the closure rather than re-doing the work:
The fix shape the issue pointed at is on main.pkgs/id/benches/world_bench.rs (lines ~824–847) now documents the exact pitfall — "an INPUT-less Issued entry makes restore refuse the first committed [event]" — and rebuilds the Issued entry from the minted participant via restore's own path, so the journal the bench writes is one restore accepts. This matches the issue's bisect question: the bench harness was at fault, not the restore validator (the validator's INPUT-scope requirement is the correct behaviour for real journals).
Independent bench re-run: inconclusive in this window.cargo bench --bench world_bench -- --only guest_replay from pkgs/id did not reach a verdict within the execution window (the id bench suite's build exceeded the ~285s tool timeout; no pass/fail line was produced). I am not claiming a green bench from this run.
Task 15288 completes as triaged, follow_up_task_ids [] — no new packet: the closure + on-main harness fix cover the defect, and the open measurement work already lives in #7064/#8239.
Activity
developing-today commentedon Nov 10, 2026
CODE-2482
dezren39 commentedon Nov 14, 2026
Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 15288 moved from blocked/parked to queued in the fleet unblock-all pass (worker
main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet.Merge pull request #9995 from developing-today/queue/15288-8316-guest…
dezren39 commentedon Nov 14, 2026
🤖 Agent note · done (fixed and merged)
Diagnosis (writer vs reader): the bench harness was wrong; the restore validator is right. Reproduced at main e9cf612 with the exact error from this issue.
bench_guest_replayissued its synthetic participant with scopes JOIN|CHAT only, hand-built the journal's Issued entry with the same scopes, then appended Committed Input events from participant 1.WorldCore::restorevalidates each event kind against the participant's Issued scopes — behavior pinned byrestore_refuses_input_and_chat_without_the_matching_scope— so it refused the first committed event at sequence 1. No real writer can produce that journal (input submission requires INPUT scope at write time), so real checkpoint/reopen paths were never at risk.Fix (bench only, no product code):
pkgs/id/benches/world_bench.rs— the participant is now issuedWorldScopes::GUEST(JOIN|CHAT|INPUT) and the constructed Issued entry records the same set.Verification (laptop): before the fix, the bench died at guest_replay as reported. After:
--only guest_replayat full size passes (bench guest_replay unit=us_per_event median=0.821, 10,000 events × 5 reps), and the full bench in--quickmode completes all six stages — includingbench many_worlds … p99_ms=9.130 target_p99_ms=50 target_met=true. The #7064 measurement and #8239 verification paths are unblocked; the recorded full-size many_worlds run itself belongs to task 12126 / issue #7064.Closing as done.
dezren39 commentedon Nov 14, 2026
🤖 Agent note · triaged — closure stands; harness fix is on main; bench re-run inconclusive in this window
triaged.State found (2026-11-14): this issue was closed today (13:07:07Z) with status:done applied, one minute into this task's claim. The triage therefore verified the closure rather than re-doing the work:
pkgs/id/benches/world_bench.rs(lines ~824–847) now documents the exact pitfall — "an INPUT-less Issued entry makes restore refuse the first committed [event]" — and rebuilds the Issued entry from the minted participant via restore's own path, so the journal the bench writes is one restore accepts. This matches the issue's bisect question: the bench harness was at fault, not the restore validator (the validator's INPUT-scope requirement is the correct behaviour for real journals).cargo bench --bench world_bench -- --only guest_replayfrompkgs/iddid not reach a verdict within the execution window (the id bench suite's build exceeded the ~285s tool timeout; no pass/fail line was produced). I am not claiming a green bench from this run.guest_replayor the many-worlds restore stage fails there, this issue's evidence (sequence-1 event scopes as written vs as validated) is the starting point and the closure should be revisited.Task 15288 completes as
triaged, follow_up_task_ids [] — no new packet: the closure + on-main harness fix cover the defect, and the open measurement work already lives in #7064/#8239.dezren39 commentedon Nov 14, 2026
🤖 Agent note · already done — follow-on revival duplicate
status:done. Task 15288 (lane code-a, today) fixed it: PR fix(id): grant INPUT scope in world_bench guest_replay journal (#8316) #9995 MERGED (422494f) — the bench harness issued its synthetic participant without INPUT scope; the restore validator was right. A second lane (any-c) independently verified the closure today.bench(id): many_worlds re-measurement after #8316 (#7064) (#10002)