Skip to content

refactor: cut over save status to typed model#419

Merged
banteg merged 1 commit intomasterfrom
feat/save-status-model
Mar 13, 2026
Merged

refactor: cut over save status to typed model#419
banteg merged 1 commit intomasterfrom
feat/save-status-model

Conversation

@banteg
Copy link
Copy Markdown
Owner

@banteg banteg commented Mar 13, 2026

Summary

  • replace dict-backed save status with typed GameStatusData / GameStatus
  • delete src/crimson/status_snapshot.py and use the full typed status payload directly in LAN and replay
  • move debug status capture out of per-tick sim_state into TraceMeta.status
  • make game.cfg loading fail fast on invalid existing files
  • clean up remaining snapshot-era naming in replay/status tests

Testing

  • uv run pytest
  • uv run ruff check src tests
  • uv run ty check src tests

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying crimson with  Cloudflare Pages  Cloudflare Pages

Latest commit: 514d75c
Status: ✅  Deploy successful!
Preview URL: https://addc048d.crimson-9jv.pages.dev
Branch Preview URL: https://feat-save-status-model.crimson-9jv.pages.dev

View logs

@banteg banteg merged commit 3fbb569 into master Mar 13, 2026
9 checks passed
@banteg banteg deleted the feat/save-status-model branch March 13, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant