Repository navigation
feat: add opt-in bounded no-output rate-limit retry - #54
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: ee5b4334f5
ℹ️ 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".
| if (!artifactBytes && !noOutput && job.production.value.classification !== 'public') { | ||
| return blockComicMapping('no-output-result-not-representable-under-current-validator'); |
There was a problem hiding this comment.
Close the job after an unmappable retry
When the second attempt returns an output-validation failure, cancellation, or mismatched successful output, noOutput is false and this branch returns contract-mapping-blocked. Because blockComicMapping leaves the job unresolved rather than closed, closeJob() and further submissions are permanently rejected for this runner/store, despite the documented guarantee that the second attempt always closes the job. Handle this differently when retryOfAttemptId is set so every consumed retry reaches a closed state.
Useful? React with 👍 / 👎.
| if (noOutput && !same(value.execution.transformations[0].input_digests, | ||
| [p.inputs.canon.artifact.sha256, p.inputs.prompts[0].identity.sha256])) return failure('ACTUAL_INPUTS'); |
There was a problem hiding this comment.
Handle productions without prompt bindings
The Comic Manifest schema permits inputs.prompts to be empty, so a schema-valid production with no prompt bindings and a no-output transformation containing only the canon digest reaches this expression and throws while reading prompts[0].identity. A validation API should return an ACTUAL_INPUTS/production diagnostic for this supported shape rather than crashing; derive the expected inputs without assuming a first prompt.
Useful? React with 👍 / 👎.
Summary
Selecting
noOutputResultVersion: '1.1.0'lets the synthetic in-memory prototype persist and validate a confirmed no-output rate-limit failure, then accept one explicitly caller-authorized retry after the delay within the original deadline and material budgets. Reverify prior input, prompt, protected outcome, result bytes and terminal links before retry allocation and immediately before dispatch. Fresh identities linkretry_of_attempt_id; the second attempt closes the job.Depends on the candidate contract in Codex #26; review that first. Related: DefinitelySecureStudio/studio#103 and DefinitelySecureStudio/studio#104.
Validation
signalundefined; its standalone rerun and full suite passed. The test predates this change, but the failure was not reproduced on the base, so a pre-existing race or concurrency cause is not established.Constitutional and release impact
constitution/v1.0.0, commita9cc8a503aa30e17820edc62ac95f7cbe10e0564.780de1c7e3b76e02f43f0a594991e3cf7fe874f8; schema 32330 bytes, SHA-256aee6887e056ca709717f579c46e98c9da4c5d9214735af7137ec457767ed231d.Boundaries and dependencies