Skip to content

chore: update lint tooling and tailor anti-slop for the SDK - #2753

Merged
HAYDEN-OAI merged 27 commits into
mainfrom
codex/update-ultracite-anti-slop-20260916
Sep 16, 2026
Merged

HAYDEN-OAI merged 27 commits into
mainfrom
codex/update-ultracite-anti-slop-20260916

Conversation

@HAYDEN-OAI

@HAYDEN-OAI HAYDEN-OAI commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor
  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Update oxlint to 1.82.0, oxfmt to 0.67.0, and Ultracite to 7.11.0, the newest stable versions eligible under the existing eight-day minimum-release-age policy on September 16. Enable ultracite/oxlint/anti-slop with enforcement tailored to SDK boundaries and fixtures. Dependency safeguards are unchanged, and lockfile changes stay within the requested tools and their dependency closure.

Configure runtime typeof checks and unknown parameters centrally for modules that validate external values, adapt transports, or receive application callbacks. Allow open dictionaries in the narrower schema and wire-payload scopes. These rules remain enforced in ordinary internal modules; fixture, example, and vendor scopes have documented overrides. Only 37 isolated exceptions remain across these three rules. Configuration tests exercise both allowed boundary patterns and rejected internal patterns.

Allow conditional object spreads so optional request fields and wire fixtures remain visible in direct object literals. Preserve own-property construction for credentials, headers, and SDK options, with 29 regression cases covering inherited setters and property descriptors.

Keep the useful internal and fixture typing improvements, redundant-cast and mock cleanup, runtime guard reuse, and assertion comments that explain checked invariants. Preserve published callback contracts, Proxy receiver semantics, AssistantStream's rejection of primitive wire frames, and the WebRTC data-channel compatibility assertion. Captured Date/Symbol intrinsics retain reflective invocation, with six regression cases covering mutable own call properties.

Generated Stainless/Castiron files, generation metadata, and exclusions are unchanged. The generated-ownership audit has zero overlap with the PR diff, and the custom-code budget remains 3,444 / 4,000 lines. All 777 emitted public declaration files remain byte-identical to current main.

Validation

  • Formatting, lint, and configuration enforcement tests pass.
  • The complete test harness passes: 8,832 handwritten tests across 232 files, plus 638 generated tests and 12 snapshots (two generated tests skipped).
  • Build, TypeScript, and TypeScript 4.9 compatibility checks pass; CJS/ESM import smoke checks pass.
  • Canonical breaking-change detection passes against current main at 1cbea9ce, including 97 historical generated API/index test files.
  • Packed-package checks pass on Node 24.19.0, including CJS, ESM, ES2020 browser bundling, and 1,554 source maps.
  • Dependency installation and supply-chain policy checks pass with the frozen lockfile.

Ultracite 7.11.1 remains in the release-age cooldown. The preset's upstream overrides for three conflicting core rules remain unchanged.

@github-actions

github-actions Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

45 mixed files remain; 0 existing customizations changed.

Compared 1cbea9ce4c64 → f808c2097d51. Generated baselines verified.

45 existing customizations unchanged
  • api.md
  • scripts/castiron/README.md
  • scripts/castiron/custom_code_report.py
  • scripts/castiron/test_custom_code_report.py
  • src/client.ts
  • src/resources/audio/transcriptions.ts
  • src/resources/audio/translations.ts
  • src/resources/beta/agents/environments/files.ts
  • src/resources/beta/agents/sessions/sessions.ts
  • src/resources/beta/assistants.ts
  • src/resources/beta/beta.ts
  • src/resources/beta/index.ts
  • src/resources/beta/responses/internal-base.ts
  • src/resources/beta/responses/responses.ts
  • src/resources/beta/responses/ws-base.ts
  • src/resources/beta/responses/ws.ts
  • src/resources/beta/threads/index.ts
  • src/resources/beta/threads/runs/index.ts
  • src/resources/beta/threads/runs/runs.ts
  • src/resources/beta/threads/threads.ts
  • src/resources/chat/completions/completions.ts
  • src/resources/chat/completions/index.ts
  • src/resources/conversations/index.ts
  • src/resources/embeddings.ts
  • src/resources/files.ts
  • src/resources/fine-tuning/checkpoints/permissions.ts
  • src/resources/images.ts
  • src/resources/live/forks/ws-base.ts
  • src/resources/live/forks/ws.ts
  • src/resources/live/sideband/ws-base.ts
  • src/resources/live/sideband/ws.ts
  • src/resources/live/ws-base.ts
  • src/resources/live/ws.ts
  • src/resources/responses/internal-base.ts
  • src/resources/responses/responses.ts
  • src/resources/responses/ws-base.ts
  • src/resources/responses/ws.ts
  • src/resources/skills/skills.ts
  • src/resources/skills/versions/versions.ts
  • src/resources/vector-stores/file-batches.ts

5 more in the full report.

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 35138905951 --repo openai/openai-node \
  --name castiron-custom-code-35138905951-1 --dir /tmp/castiron-custom-code-35138905951-1
git apply --stat /tmp/castiron-custom-code-35138905951-1/custom-code.patch
cat /tmp/castiron-custom-code-35138905951-1/custom-code.patch

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

git fetch --no-tags origin 1cbea9ce4c64d595e0641445f5a00aa5ebb7d1a4 f808c2097d516d4d688dcbd265e0e4894f6a0bc9
python3 scripts/castiron/custom_code_report.py report \
  --base 1cbea9ce4c64d595e0641445f5a00aa5ebb7d1a4 \
  --head f808c2097d516d4d688dcbd265e0e4894f6a0bc9 --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-f808c2097d51
cat /tmp/castiron-custom-code-f808c2097d51/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

@HAYDEN-OAI
HAYDEN-OAI marked this pull request as ready for review September 16, 2026 18:14
@HAYDEN-OAI
HAYDEN-OAI requested a review from a team as a code owner September 16, 2026 18:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 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-09-16T19:04:30.809571Z f808c20 New commits
🔒 Security Review ✅ Completed 2026-09-16T19:06:09.466594Z f808c20 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.

@openai-sdks

openai-sdks Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

OkTest Summary

✅ 236/236 SDK tests passed in 9.54s for Node SDK PR #2753.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 113ms
tests/chat-completions-create.test.ts ✅ Passed 131ms
tests/chat-completions-stream.test.ts ✅ Passed 93ms
tests/files-content-binary.test.ts ✅ Passed 175ms
tests/files-create-multipart.test.ts ✅ Passed 122ms
tests/files-list-pagination.test.ts ✅ Passed 201ms
tests/initialize-config.test.ts ✅ Passed 118ms
tests/instance-isolation.test.ts ✅ Passed 95ms
tests/models-list.test.ts ✅ Passed 237ms
tests/responses-background-lifecycle.test.ts ✅ Passed 156ms
tests/responses-body-method-errors.test.ts ✅ Passed 227ms
tests/responses-cancel-timeout.test.ts ✅ Passed 193ms
tests/responses-cancel.test.ts ✅ Passed 161ms
tests/responses-compact-retries.test.ts ✅ Passed 366ms
tests/responses-compact.test.ts ✅ Passed 115ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 98ms
tests/responses-create-advanced.test.ts ✅ Passed 142ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.023s
tests/responses-create-errors.test.ts ✅ Passed 208ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 87ms
tests/responses-create-retries.test.ts ✅ Passed 143ms
tests/responses-create-stream-failures.test.ts ✅ Passed 88ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 2.128s
tests/responses-create-stream-wire.test.ts ✅ Passed 2.267s
tests/responses-create-stream.test.ts ✅ Passed 53ms
tests/responses-create-terminal-states.test.ts ✅ Passed 116ms
tests/responses-create-timeout.test.ts ✅ Passed 158ms
tests/responses-create.test.ts ✅ Passed 186ms
tests/responses-delete.test.ts ✅ Passed 303ms
tests/responses-input-items-errors.test.ts ✅ Passed 126ms
tests/responses-input-items-list.test.ts ✅ Passed 116ms
tests/responses-input-items-options.test.ts ✅ Passed 123ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 163ms
tests/responses-input-tokens-count.test.ts ✅ Passed 211ms
tests/responses-malformed-inputs.test.ts ✅ Passed 1.796s
tests/responses-not-found-errors.test.ts ✅ Passed 131ms
tests/responses-parse.test.ts ✅ Passed 68ms
tests/responses-retrieve-retries.test.ts ✅ Passed 299ms
tests/responses-retrieve.test.ts ✅ Passed 166ms
tests/responses-stored-method-errors.test.ts ✅ Passed 652ms
tests/retry-behavior.test.ts ✅ Passed 2.984s
tests/sdk-error-shape.test.ts ✅ Passed 687ms

View OkTest run #35138077227

SDK merge (82b56eba95be) · head (f808c2097d51) · base (1cbea9ce4c64) · OkTest (c6ef21c7db64)

@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: 2b413e2e6a

ℹ️ 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/auth/x509-transport.ts Resolved

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

Reviewed the dependency closure, anti-slop configuration, lint-driven runtime changes, credential/property semantics, and focused security-sensitive regressions. Exact-head CI, lint, typecheck, build, and targeted tests are green.

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

The credential-property regression is fixed, and I found no remaining supported-input behavior regression in the reviewed changes. The independent auth, schema/stream, and tooling reviews agree on that. The remaining issue is structural: the preset should be tailored before applying it throughout this SDK. It currently makes required boundary contracts recurring exceptions and rewrites direct fixtures into separately mutated objects. See the inline feedback.

Validation: frozen install and supply-chain checks, lint, TypeScript, and fresh base/head builds passed. All 777 public declaration files are byte-identical (778 including the copied build-config declaration). The handwritten run passed 8,822 tests and hit one local pnpm store-permission failure; all 11 tests in that file then passed with a writable store, covering the remaining case. Generated tests passed: 638 tests and 12 snapshots, with 2 tests skipped. Built CJS/ESM helper probes passed on exact Node 22.0.0 and Node 24.20.0; source schema/transform parity and the 29 property-regression cases also passed. Hosted Node 22/24/26, build, lint, and ecosystem jobs are green at the reviewed commit.

Live provider/API integration was not exercised. The maintainability issue is the reason for feedback without approval.

Comment thread oxlint.config.ts Resolved

@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: 8b0e5e2eb3

ℹ️ 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/lib/EventStream.ts Resolved
@HAYDEN-OAI HAYDEN-OAI changed the title chore: update lint tooling and enable anti-slop chore: update lint tooling and tailor anti-slop for the SDK Sep 16, 2026
@HAYDEN-OAI
HAYDEN-OAI added this pull request to the merge queue Sep 16, 2026
Merged via the queue into main with commit 21a03c2 Sep 16, 2026
49 checks passed
@HAYDEN-OAI
HAYDEN-OAI deleted the codex/update-ultracite-anti-slop-20260916 branch September 16, 2026 19:16
@openai-sdks openai-sdks Bot mentioned this pull request Sep 16, 2026
HAYDEN-OAI pushed a commit that referenced this pull request Sep 16, 2026
Automated Release PR
---


##
[7.17.0](v7.16.0...v7.17.0)
(2026-09-16)


### Features

* **api:** add compaction progress events
([#2749](#2749))
([425502d](425502d))


### Bug Fixes

* **ci:** retry transient Deno download failures
([#2752](#2752))
([e39037b](e39037b))
* preserve chat runner abort reasons
([#2607](#2607))
([eda4d0c](eda4d0c))
* **realtime:** preserve native WebSocket error causes
([#2715](#2715))
([58fa72a](58fa72a))
* **responses:** reject function-based API keys in WebSocket
constructors
([#2586](#2586))
([eea7618](eea7618))
* **runners:** reject unfinished turns in streaming runTools
([#2716](#2716))
([937ed67](937ed67))
* **streaming:** emit terminal SSE events missing a trailing blank line
([#2726](#2726))
([94d6418](94d6418))
* **zod:** omit impossible optional branch in strict schemas
([#2751](#2751))
([2b4c2c7](2b4c2c7))


### Chores

* update lint tooling and tailor anti-slop for the SDK
([#2753](#2753))
([21a03c2](21a03c2))


### Documentation

* **examples:** preserve split UTF-8 in raw stream consumer
([#2714](#2714))
([f44152a](f44152a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>
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.

4 participants