[codex] Add screenplay draft governance and format checks#8
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a58495dec7
ℹ️ 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".
| contract_by_output = { | ||
| contract["output"]: contract | ||
| for contract in contracts.get("contracts", []) |
There was a problem hiding this comment.
Skip contract indexing when schema validation fails
If references/output-format-contracts.json is malformed (for example, a contract entry is missing output), this function already records schema errors but then immediately builds contract_by_output with contract["output"], which raises KeyError and aborts the check. In that scenario the script crashes instead of returning the collected validation report, so CI/users lose actionable diagnostics on the actual schema violation.
Useful? React with 👍 / 👎.
Summary
scene_draftand the newscreenplay_draftscreenplay_draftthrough routing, scene-writing protocols, rubrics, fixtures, and runtime expression-lens metadataValidation
python3 -m unittest discover -s tests -v