Skip to content

feat(api): expand Live Decision item and question types - #3034

Merged
dpiet-oai merged 1 commit into
mainfrom
castiron/promotions/pr-374
Oct 25, 2026
Merged

dpiet-oai merged 1 commit into
mainfrom
castiron/promotions/pr-374

Conversation

@dpiet-oai

Copy link
Copy Markdown
Contributor

Summary

Support more message, tool call, and question input types in Live Decisions.

Changes

  • Accept user, developer, system, and assistant messages in Live Decision items.
  • Add function and custom tool call and output types.
  • Allow strings or structured instruction parts in Live Decision questions.

@dpiet-oai
dpiet-oai requested a review from a team as a code owner October 25, 2026 15:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T19:41:41.321217Z 8fe7f81 New commits
🔒 Security Review ✅ Completed 2026-10-25T19:41:43.117731Z 8fe7f81 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.

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Castiron custom code

Evaluated main: d8931e7facfd0b453cc1683c31c60be8cc1ae37e.

Trusted main policy: d8931e7facfd0b453cc1683c31c60be8cc1ae37e.

✅ No new custom-code files detected.

0 mixed files remain; 0 existing customizations changed.

Compared d8931e7facfd → 8fe7f8167b44. Generated baselines verified.

A changed generated baseline means this report cannot reliably identify which handwritten lines changed.

Inspect the custom-code diff

Download the exact patch produced by this run (requires repository access):

gh run download 40227145465 --repo openai/openai-node \
  --name castiron-custom-code-40227145465-1 --dir /tmp/castiron-custom-code-40227145465-1
git apply --stat /tmp/castiron-custom-code-40227145465-1/custom-code.patch
cat /tmp/castiron-custom-code-40227145465-1/custom-code.patch

Or reproduce it from an SDK checkout containing the vendored reporter:

git fetch --no-tags origin d8931e7facfd0b453cc1683c31c60be8cc1ae37e 8fe7f8167b445dd098f69e15534928fb35066d8d
python3 scripts/castiron/custom_code_report.py report \
  --base d8931e7facfd0b453cc1683c31c60be8cc1ae37e \
  --head 8fe7f8167b445dd098f69e15534928fb35066d8d --target-branch main --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-8fe7f8167b44
cat /tmp/castiron-custom-code-8fe7f8167b44/custom-code.patch

This is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR.

Full report and patch

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 54942c6bbd

ℹ️ 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".

Comment thread src/resources/admin/organization/usage.ts Outdated
Comment thread src/resources/images.ts Outdated
Comment thread src/resources/skills/skills.ts Outdated
Comment thread src/resources/beta/assistants.ts
Comment thread src/resources/fine-tuning/checkpoints/permissions.ts Outdated
Comment thread src/resources/live/live.ts
@dpiet-oai
dpiet-oai force-pushed the castiron/promotions/pr-374 branch 2 times, most recently from df8e529 to 20c0b1a Compare October 25, 2026 15:45

@markstuart-oai markstuart-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.

Reviewed 20c0b1a632f8 against d8931e7facfd. I cannot approve this revision.

The policy selector should carry each verified PR head and number together; the inline comment explains how to remove the redundant discovery mode.

I also confirmed that two existing compatibility findings still apply at this head:

  • Restore the published Assistants.AssistantStream export: #3034 (comment)
  • Preserve the old Live Item and QuestionParam* type paths alongside the new types: #3034 (comment)

Please preserve these names in generation and add public-import type coverage. The expanded message, tool, and structured-question shapes otherwise match the transformed schema.

Source-only review; I did not run candidate code or tests. Hosted checks: 17 skipped, 25 success.

Comment thread scripts/castiron/custom_code_policy.py
@dpiet-oai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: cc71a4e7d0

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: cc71a4e7d0

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@markstuart-oai markstuart-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.

Re-reviewed cc71a4e7d078 against d8931e7facfd. The Assistants namespace export is restored, and all four checkpoint-permission methods use admin-key auth.

The Live compatibility issue still blocks approval: DecisionItemCreateEvent.Item, the corresponding created-event types, and the old nested question types remain missing. Existing consumers that name them fail to compile. Please preserve those public names in generation and add public-import type coverage: #3034 (comment)

I accept the shared policy-selector redesign as separate generator work, per your scope clarification. It is deferred, not fixed. I found no additional issues in this re-review.

Source-only review; I did not run candidate code or tests. Hosted checks: 25 skipped, 29 success.

Castiron-Internal-PR: openai/openai-node-internal#374
Castiron-Source-SHA: 77fa18fb28191007fb1b173018b972a500ed5036
Castiron-Public-Base-SHA: d8931e7
@dpiet-oai
dpiet-oai force-pushed the castiron/promotions/pr-374 branch from cc71a4e to 8fe7f81 Compare October 25, 2026 19:39

@markstuart-oai markstuart-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.

Reviewed 8fe7f8167b44 against d8931e7facfd. The published Live Item and QuestionParam type paths are restored, including their nested types. The expanded item and question unions remain available. I found no remaining blocking issue across the 17 changed files. The shared selector redesign remains a separate generator follow-up, as agreed.

Source-only review; I did not run candidate code or tests. The exact-head hosted checks passed or were skipped, including successful Node test jobs and the custom-code budget checks. The author reports a separate TypeScript consumer check.

@dpiet-oai
dpiet-oai added this pull request to the merge queue Oct 25, 2026
Merged via the queue into main with commit 7562cd2 Oct 25, 2026
48 checks passed
@dpiet-oai
dpiet-oai deleted the castiron/promotions/pr-374 branch October 25, 2026 20:05
@openai-sdks openai-sdks Bot mentioned this pull request Oct 25, 2026
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.

2 participants