feat(api): add safety case retrieval - #3911
Conversation
Adds support for retrieving safety case details by ID. - Add client.safety.cases.retrieve for retrieving a safety case by ID - Expose the case identifier, creation time, entity identifier, nullable reason, and warning or deactivation notice
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. |
Castiron custom code✅ No new custom-code files detected. 47 mixed files remain; 0 existing customizations changed; 1 generated baselines changed. Compared
46 existing customizations unchanged
6 more in the full report. A changed generated baseline means this report cannot reliably identify which handwritten lines changed. Inspect the custom-code diffDownload the exact patch produced by this run (requires repository access): gh run download 35454130155 --repo openai/openai-python \
--name castiron-custom-code-35454130155-1 --dir /tmp/castiron-custom-code-35454130155-1
git apply --stat /tmp/castiron-custom-code-35454130155-1/custom-code.patch
cat /tmp/castiron-custom-code-35454130155-1/custom-code.patchOr reproduce it from an SDK checkout containing the vendored reporter: git fetch --no-tags origin 6332577d3fb5f83f7f381a431460262f7192402d 59f5755a8bdbc0cbbab63be716620dfef1ced92c
python3 scripts/castiron/custom_code_report.py report \
--base 6332577d3fb5f83f7f381a431460262f7192402d \
--head 59f5755a8bdbc0cbbab63be716620dfef1ced92c --fetch --require-head-hash --public \
--out /tmp/castiron-custom-code-59f5755a8bdb
cat /tmp/castiron-custom-code-59f5755a8bdb/custom-code.patchThis is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR. |
markstuart-oai
left a comment
There was a problem hiding this comment.
Reviewed exact head 59f5755a8bdbc0cbbab63be716620dfef1ced92c. Reviewed the pinned change and shared SDK path, authentication, response and export handling. The new sync/async endpoint follows the existing safety resource patterns, with focused coverage for encoded IDs, ordinary-key auth, nullable responses and forward compatibility. No actionable findings.
Static review only; I did not run tests locally.
Hosted check runs at this head have passed or been skipped, and both commit-status checks pass. Some integrations have queued check suites without runs; I am not treating those as completed checks.
Summary
Adds support for retrieving safety case details by ID.
Changes