feat: add deterministic input replay - #9478
Draft
scarf005 wants to merge 3 commits into
Draft
Conversation
scarf005
force-pushed
the
feat/deterministic-rng-replay
branch
from
June 14, 2026 16:50
d215b1d to
4117310
Compare
scarf005
force-pushed
the
feat/deterministic-rng-replay
branch
from
June 26, 2026 11:29
4117310 to
fbe0658
Compare
Assisted-by: pi:gpt-5.5 Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
Assisted-by: pi:gpt-5.5 Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
scarf005
force-pushed
the
feat/deterministic-rng-replay
branch
from
July 2, 2026 11:27
fbe0658 to
910dad8
Compare
Contributor
|
Autofix has formatted code style violation in this PR. I edit commits locally (e.g: git, github desktop) and want to keep autofix
I do not want the automated commit
If you don't do this, your following commits will be based on the old commit, and cause MERGE CONFLICT. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of change (The Why)
Add deterministic JSONL input replay for debugging and regression reproduction while keeping concurrent game work enabled.
Describe the solution (The How)
--replay-record <jsonl path>and--replay-play <jsonl path>for user input events only.src/replay/andsrc/random/.parallel_forRNG scopes, without changing chunking to one task per item.Testing
cmake --build --preset linux-full --target formatcmake --build --preset linux-full --target cataclysm-bn-tiles cata_test-tiles -j 8timeout 120 ./out/build/linux-full/tests/cata_test-tiles "[rng][thread_pool],[replay][input],[replay][rng][thread_pool]"./out/build/linux-full/src/cataclysm-bn-tiles --help | rg -n "replay"Checklist
Mandatory
closes #1234in Summary of the PR so it can be closed automatically.Optional
Assisted-by:trailer to every AI-assisted commit in the Linux kernel format.PR opened by gpt-5.5 high on pi
Build Artifacts
PR build for commit 5dbc35a (style(autofix.ci): automated formatting) on 2026-07-02 14:46:17