sprint 021: save schema v1 + world reproducibility + autosave hardening#32
Merged
Conversation
…ndom, determinism pinned (unit 2398, integration 160)
…ource of truth, combat sides gap)
…tive, e2e 6/7 (unit 2418, integration 160); findings to backlog
…ves hygiene (unit 2429, integration 160)
…rency + minor gaps
vladmesh
enabled auto-merge
July 10, 2026 16:54
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.
Первый эпик цепочки simulation-core (docs/brainstorms/simulation-core.md): lossless-сейв и воспроизводимый мир.
Phase 1 — RNG threading & determinism
DND_WORLD_SEED: слоевые сиды выводятся детерминированно в game_service; слои владеют своимиrandom.Random(погода, политика, roam/retreat/деплит логова, encounter rolls)layers/не осталось процесс-глобальногоrandom; пин: один сид → идентичныйWorld.save()(test_world_seed.py)Phase 2 — Unified Pydantic save schema
SaveGame(schema_version=1)вstorage/save_schema.py; типизированные state-модели слоёв и entity-сейвов (extra="forbid", discriminated union, построение напрямую из объектов)Phase 3 — Autosave hardening
DND_AUTOSAVE_SECONDS, cancel до финального сейва), ошибки автосейва логируются вместо suppresssaves/Gates
save-round-concurrency— top-кандидат следующего спринта)Закрыты backlog:
save-schema(must),layer-rng-threading,test-gap-world-rng-determinism,periodic-autosave-scheduler,silent-failure-autosave.Produced autonomously (координатор + Codex-воркеры по фазам).