Repository navigation
feat(api): hide Managed Agents session budget controls and events - #1414
Conversation
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. |
jbeckwith-oai
left a comment
There was a problem hiding this comment.
No actionable code findings at this commit. Reviewed the intentional removal of the alpha spending controls, budget event/status types, and turn-error member across generated models, request surfaces, schema, and exports. Unknown union values preserve their raw JSON. The stream support and collector recognize opaque budget frames using nonempty matching session IDs, retain selected-turn ordering, and preserve incomplete-stream handling across sync, async, and handler surfaces. Reviewed the relevant regression coverage and verified generated hashes and public/internal changed-file parity.
Hosted CI at publication: 4 success, 2 in_progress. Static review with independent review; no candidate code or local tests executed.
|
SDK-owner compatibility review: the API compatibility job has been compiling historical callers. Its errors all trace to the intentionally removed session This is an intentional alpha break, not a claim of binary/source compatibility. I haven't been altering the trusted baseline policy or skipping the check. Please advise whether this should wait on a separately reviewed exception. |
|
@jbeckwith-oai @yoni-oai — now that OkTest has passed, could an SDK owner please explicitly approve or decline a one-time compatibility exception for Please record the decision here without merging yet. If this change needs a separate policy PR, please say so; we can preserve coverage for the rest of the SDK. This request does not extend to any new failure or changed head. |
|
There is now a path to a normal green compatibility check, without force-merging: #1416. That PR asks the SDK owners to accept this exact alpha API migration. It leaves compilation enabled, and falls back to the original historical callers for any other test-tree pair. I ran the compatibility check locally against Please review the exception on #1416. Once it lands, #1414 needs to pick up the policy and pass CI before merging. The green local run doesn't change this PR's current red GitHub check. |
Castiron-Internal-PR: openai/openai-java-internal#488 Castiron-Source-SHA: ffed27f4cdbfaeb810580ad2acbddb3ca53b25bb Castiron-Public-Base-SHA: 30b0997
fe81e24 to
3a88df0
Compare
jbeckwith-oai
left a comment
There was a problem hiding this comment.
Re-review: approved at 3a88df08039b4916ae367766875fa7a3310c402c. The budget-removal runtime and test blobs are unchanged from the prior reviewed revision. The refresh incorporates the landed CSAM models and compatibility policy; verified the actual before/after test-tree IDs match that policy exactly. Public and internal changes have identical file blobs. Schema and generated-manifest additions preserve the reviewed rollback. Consolidated an independent static review; no new actionable findings.
This remains the documented intentional alpha source break. The separately landed policy supplies the narrowly scoped historical-test migration; this review does not waive normal checks.
Hosted checks at publication: {'in_progress': 7, 'queued': 1, 'success': 5}. Unfinished checks remain pending. Static review only; no candidate code or local tests executed.
…penai#1416) Old callers of the alpha session-budget API will stop compiling after openai#1414. That break is intentional; this PR asks the SDK owners to accept **only that migration**. It does not make the removed methods backward compatible. The detector normally compiles test sources from the target branch against the proposed SDK. For openai#1414 it uses the reviewed replacements only when **both** the old and new test directories match their recorded Git tree IDs. Exactly 16 test files differ, all under `beta/agents`. If another test changes, Git's archive rules change, or the rollback is already on the base branch, the exception does not apply. The detector still compiles the tests and runs the signature checks. No SDK code or CI workflow changes. I ran the full compatibility check locally against openai#1414: it passed. The compiler still rejected a deliberately broken call in the unrelated `FunctionDefinition` test. I also verified that changing another test or adding an `export-ignore` rule kept the original baseline, and that the exception stopped applying after the rollback. **Merge order:** review and land this policy first, then refresh openai#1414 and require its GitHub check to pass. CI loads its policy from the target branch, so openai#1414 cannot exempt itself. Keep the rule through openai#1414. Removing it in that PR would make CI also run the unmodified detector against the old tests and fail again. Once openai#1414 lands, the new baseline stops matching and a follow-up can delete the rule. Co-authored-by: markstuart-oai <[email protected]>
Summary
The SDK has been exposing Managed Agents session budget controls as public types. This update removes the alpha budget API from those types.
This is an alpha breaking change for a minor release. If your application depends on these members, stay on the previous SDK until you can remove those references. There is no replacement typed budget API in this release.
Changes
spend_control.agent.session.budget_reachedorbudget_reached. Code that names these members needs to change before upgrading.This also includes the turn-error code removal from #1413. This PR supersedes that narrower change; the old PR does not need to land first.
Verification
All 139 focused Java tests and Kotlin lint have been passing. The ten open-stream probes have been covering closure after an opaque budget event for sync, async and handler callers; unrelated or malformed events have not been ending the wait. Reflection has been confirming that the former public budget event, status member and spend-control accessors are absent.