Skip to content

test: scope the compatibility exception for session budget removal - #1416

Merged
markstuart-oai merged 1 commit into
mainfrom
test/java-1414-budget-compatibility
Nov 18, 2026
Merged

markstuart-oai merged 1 commit into
mainfrom
test/java-1414-budget-compatibility

Conversation

@markstuart-oai

@markstuart-oai markstuart-oai commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Old callers of the alpha session-budget API will stop compiling after #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 #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 #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 #1414 and require its GitHub check to pass. CI loads its policy from the target branch, so #1414 cannot exempt itself. Keep the rule through #1414. Removing it in that PR would make CI also run the unmodified detector against the old tests and fail again. Once #1414 lands, the new baseline stops matching and a follow-up can delete the rule.

@markstuart-oai
markstuart-oai requested a review from a team as a code owner November 18, 2026 05:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T07:17:43.602937Z 32fa9ef New commits
🔒 Security Review ✅ Completed 2026-11-18T07:18:53.942045Z 32fa9ef New commits
ℹ️ 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" or "@codex security review".

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 jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementation review: approved at 03a01da666c169eecea4d2d24dbd0d54e92f18aa. Independently verified both pinned test trees against #1414 and the exact 16-file beta/agents test migration, and consolidated a second static review. The full test-root pins and archive-attribute guard keep the migration narrow; other tracked test changes fall back to the historical baseline. Baseline support fixtures, compatibility policy, compilation and signature checks remain enforced. CI executes the target-branch detector first, so this policy must land separately before #1414 can use it, and the exception stops matching once the migrated tree becomes the base. No actionable implementation findings.

This code review does not grant the separately requested owner acceptance of the intentional alpha API break, waive failing checks, or authorize merging #1414. That decision remains outstanding; this policy does not restore source compatibility for existing callers.

Hosted checks at publication: {'SUCCESS': 7, 'IN_PROGRESS': 6}; remaining checks are pending. Static review only; no candidate code or local tests executed.

Copy link
Copy Markdown
Contributor Author

Thanks for the implementation review. One decision remains before landing this policy: does the SDK owner accept that existing Java code using the alpha session spendControl, budgetReached event, or status will stop compiling after #1414? The guard narrows the exception; it cannot make those callers source-compatible.

Could the responsible SDK owner please record an explicit accept/decline here, or identify who needs to decide? If declined, both PRs should stay open and unmerged. If accepted, the order is this policy first, then a fresh green CI run on #1414. No check bypass is requested.

@markstuart-oai
markstuart-oai requested a review from a team November 18, 2026 06:10

Copy link
Copy Markdown
Contributor Author

Recording the PR author's compatibility decision separately from the implementation review: @markstuart-oai, a member of this repository's SDK code-owner team, explicitly accepted the source break for the alpha session-budget surface, including spend controls. This covers the exact removal in #1414; callers naming those removed members will need to change. No broader compatibility exception was requested or accepted.

That is the author's decision, not a claim that the implementation reviewer approved the breaking change or that the author has provided an independent second approval. If a designated non-author policy owner must also sign off, please identify that requirement here before merge. Normal CI remains required on #1414 after this policy lands.

@markstuart-oai
markstuart-oai added this pull request to the merge queue Nov 18, 2026
@markstuart-oai
markstuart-oai removed this pull request from the merge queue due to a manual request Nov 18, 2026
@markstuart-oai
markstuart-oai force-pushed the test/java-1414-budget-compatibility branch from 03a01da to 32fa9ef Compare November 18, 2026 07:16

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementation review: approved at 32fa9ef74130b648ac987a4cb37b5573b6ec5da2. Re-reviewed the refreshed test-tree pins and consolidated an independent static review. The detector differs from the previously approved implementation only in the two pinned hashes. Verified the baseline and independently reconstructed the proposed tree from the exact previously reviewed 16-file alpha agent migration; the new CSAM tests remain unchanged and covered. Archive-attribute and tracked-test guards, baseline policy/support fixtures, compilation and signature checks, and automatic expiry remain intact. No actionable implementation findings.

The author has separately recorded their compatibility acceptance; this review assesses implementation and does not grant additional policy consent or waive CI. The policy must land first, then the dependent SDK change must refresh and pass normal checks.

Hosted checks at publication: {'queued': 1, 'success': 12, 'in_progress': 1}. Static review only; no candidate code or local tests executed.

@markstuart-oai
markstuart-oai added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 30b0997 Nov 18, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants