Skip to content

Reject malformed checkpoint flags without script errors - #7

Open
marius4lui wants to merge 1 commit into
mainfrom
feat/short-game
Open

marius4lui wants to merge 1 commit into
mainfrom
feat/short-game

Conversation

@marius4lui

Copy link
Copy Markdown
Owner

Summary

  • Validate world values before interpreting difficulty-dependent ending rules.
  • Add 71 focused checks covering all four difficulty modes, malformed flags, valid endings, backup recovery and preservation of saved bytes after a rejected write.
  • Keep the save format and every valid-game rule unchanged.

Fixes #6. This is ordinary save-validation robustness, not a demonstrated security vulnerability.

Verification

  • Official Godot 4.7.2: core runner passes 331 assertions plus all three scheduling probes, using isolated synthetic storage and a core-only fixture retaining the actual autoloads/resources/audio layout.
  • Red regression: the added tests against the original validator make the runner fail with 40 script errors. Patched validator has none.
  • Separate 708-case schema/settings mutation probe completed without script/engine errors; these are mutation trials, not 708 semantic assertions.
  • Sequential self-review of the minimal validation-order change and tests. No independent-agent review was requested, following repository instructions.

Details and limits: evidence/core-m2/difficulty-validation/README.md.
No native gameplay, device-performance, listening or release acceptance is claimed. No live save data was accessed. Existing acceptance gaps remain open.

Reject malformed difficulty and emergency flags without script errors.
Add focused malformed-save and backup-preservation regressions.

Fixes #6
@marius4lui
marius4lui marked this pull request as ready for review October 21, 2026 07:09
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T07:12:10.368855Z 7747015 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@marius4lui marius4lui left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Separate code review completed for this exact commit: no blocking findings. Reviewed the full SnapshotSchema validator, the runtime diff, storage regressions and verification report. World map shape and boolean circuit values are now validated before difficulty-dependent ending checks. Existing errors still reject invalid snapshots, and valid ending requirements are unchanged. Regressions cover malformed flags, valid endings, valid backup recovery and preservation of primary/backup bytes on rejected writes. I did not independently rerun the engine: reported isolated Godot validation is 331 core assertions plus three scheduling probes and a 708-case mutation matrix; hosted CI checks website assets only. This review approves the narrow robustness change, not native-game or performance acceptance.

This branch has not been deployed

No deployments
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.

Reject malformed saved difficulty flags without script errors

1 participant