Repository navigation
feat(games): add phase equilibrium lab and flashcards - #131
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8fa5f798c1
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 49b8672c93
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| except json.JSONDecodeError as exc: | ||
| raise ValueError("Flashcard deck contains invalid JSON.") from exc |
There was a problem hiding this comment.
Catch recursion failures while parsing uploaded JSON
A deeply nested but size-compliant upload (for example, 10,000 nested arrays totaling about 20 kB) makes json.loads raise RecursionError, which this handler does not convert to ValueError. Because the Games page only catches ValueError around deck_from_json, clicking import then produces an uncaught Streamlit page exception instead of the promised validation error; catch decoder recursion failures here as invalid deck JSON.
Useful? React with 👍 / 👎.
Summary
Adds a shared NeqSim Games Studio destination and two new learning capabilities:
Native calibration
A native grid sweep confirmed a constrained feasible region rather than a hard-coded answer.
The winning region was observed around roughly 40–56 °C and 78–90 bara at the tested resolution. Missing or non-finite native evidence cannot pass a check.
Flashcard contract
Validation
git diff --check— passedDocumentation impact
Updated the README and Plant Operator documentation, and added
docs/neqsim_games.mdwith the native fluid, target bands, score weights, evidence model, flashcard schema, limits, and execution boundaries.Dependency
This PR is intentionally stacked on #130 so it includes the stricter Plant Operator limits and the native deserialization fix. Retarget it to
mainafter #130 merges.