Repository navigation
Add bounded typed-answer repair and private result examples - #6214
markstuart-oai wants to merge 12 commits into
Conversation
Update feat/bounded-tool-output-example against feat/simple-codex.
Update feat/bounded-tool-output-example against feat/simple-codex.
Update feat/bounded-tool-output-example against feat/simple-codex.
…ed-large-results
Codex Review Summary: ✅ CompletedThis 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.
Request changes for default-provider cleanup in the typed repair helper. Reviewed bounded semantic/schema retries, private report authorization and output shaping, failure handling, examples and tests. The new helper has an ownership issue on its supported string/default-model path; see inline finding.
Hosted CI at review: 17 passed, 2 still running. Static review only; no candidate code or tests executed.
Hosted CI update (2026-11-24 07:42 UTC): 19 passed, 2 skipped; no checks remain pending in the current rollup. The provider-cleanup request-changes finding remains. No local tests were run.
There was a problem hiding this comment.
Approved after static re-review and an independent review. The repair helper now supplies a config dictionary for its default provider, preserving Runner cleanup ownership, and copies caller configuration without taking ownership of its provider. Stream draining is shielded and joins producer/provider cleanup before propagating cancellation, including repeated cancellation and eager task startup. Reviewed success, failure and cancellation coverage in both modes, tracing isolation, bounded repair behavior and inherited fixes. The prior provider-cleanup finding is addressed.
Hosted CI at review: {"SUCCESS":16,"IN_PROGRESS":3}. Pending checks remain under follow-up. No candidate code or local tests executed.
Hosted CI follow-up (2026-11-24 08:32 UTC): all checks at this reviewed commit are complete: 19 passed and 2 skipped, with no failures. The pending CI follow-up is resolved. No candidate code or local tests executed.
Why
A review agent can return a correctly typed verdict with zero supporting evidence, making the decision unreliable. Its evidence report may be too large or private to send, and a failed report read can still expose sensitive exception text.
Summary
The repair example uses the existing
final_output_policyto allow one more candidate. A second invalid verdict raisesRepairLimitError. Malformed JSON fails beforefinal_output_policyruns. A separate helper in this example handles that case with at most two fresh, tool-free runs. These are not automatic retries. Rejected values may remain in private history.#6120 already supplies the private store and owner checks. The additional change to this example prevents local source errors from leaking into model history by using a fixed message. Neither change adds an SDK runtime API.
Run both offline.
Look for a corrected verdict after two candidates, then warning counts of 20 and 8 with private retrieval.
Parent #6213. Merge #6120 first and retain only this PR's additions to its recipe.
Test plan
Repair tests passed for candidate limits, schema retries and provider cleanup. Private-result tests passed for authorization, revocation and exclusion of private reports and local source errors from history.
Issue number
None.
Checks
.agents/skills/code-change-verification/scripts/run.sh/reviewbefore submitting this PR