Skip to content

chore: enforce generated-file ownership - #3061

Merged
jbeckwith-oai merged 10 commits into
mainfrom
jbeckwith/retire-generated-file-budgets-20261027
Oct 27, 2026
Merged

jbeckwith-oai merged 10 commits into
mainfrom
jbeckwith/retire-generated-file-budgets-20261027

Conversation

@jbeckwith-oai

@jbeckwith-oai jbeckwith-oai commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Retire generated-file customization budgets and rely on AGENTS.md, contributor guidance, and ordinary code review for ownership. Generated files must not carry handwritten edits: fix the inputs/compiler and regenerate; put custom behavior in separately owned handwritten extensions.

This combines normal Castiron-regenerated cleanup with SDK-owned documentation. It removes the budget reporters, workflows, zero-only policy, and the proposed dedicated file checker. There is no dedicated generated-file edit gate for now. The compiler replaces generated output and deletes retired paths without three-way replay.

The retired budget status requirements are removed and their producers disabled across public/private SDKs. Normal SDK checks, CODEOWNER review, generation/promotion provenance, and release pins remain. Generated output and inventory changes should be reviewed together.

Validation: documentation and workflow diffs checked; the unchanged generated output still matches normal generation. Relevant formatting and focused entrypoint/layout tests pass. Two consecutive independent review rounds and current-head CI are tracked for this revision.

@jbeckwith-oai
jbeckwith-oai requested a review from a team as a code owner October 27, 2026 16:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-27T18:27:20.821960Z fbc59a2 Manual request
🔒 Security Review ✅ Completed 2026-10-27T18:28:10.882976Z fbc59a2 Manual request
ℹ️ 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.

@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: a34375ea25

ℹ️ 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 .github/CONTRIBUTING.md Outdated
@jbeckwith-oai jbeckwith-oai changed the title ci: retire customization budgets and forbid generated-file edits chore: enforce generated-file ownership Oct 27, 2026

@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: dd4d4a301a

ℹ️ 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 scripts/check_generated_files.py Outdated
Comment thread .github/workflows/ci.yml Outdated

Copy link
Copy Markdown
Contributor Author

Fixed the current-head Node 22/24/26 test failure in dd05581. The existing public-command fixture copied scripts/lint but omitted the newly invoked ownership checker and inventory. It now copies the real checker, records a minimal synthetic generated snapshot, and verifies lint rejects the stale snapshot after formatting and accepts it after the fixture's generation step records the formatted bytes. Existing import and handwritten-formatting assertions remain. All 14 tests in tests/oxlint-config.test.ts and pnpm lint pass locally; two independent clean review rounds completed before pushing. Monitoring the new CI run.

@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: 982dbad88d

ℹ️ 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 tasks/plan.md

Copy link
Copy Markdown
Contributor Author

Policy update in 982dbad, following the repository owner's explicit direction: generated-file ownership relies on AGENTS.md and ordinary code review for now. Removed the proposed checksum/mode checker and its CI invocation, and updated contributor/security guidance accordingly. There is no dedicated generated-file edit gate in this rollout. The retired budget requirements are absent from the live rulesets and the old reporting workflows are disabled; normal SDK tests, security checks, CODEOWNER review and generation provenance remain. Requests to add a replacement generated-edit enforcement path are superseded by this policy decision. Monitoring the new CI head.

@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 fbc59a2070fad754ce512d4447a1cf2262fff2d3 against 4e95fe2bd074edf5337406b28b111141fb3c245a, including the final removal of the proposed generated-file checker. No actionable findings after source review and an independent incremental pass.

The retired budget tooling and its consumers are removed together. The final guidance explicitly relies on contributor instructions and ordinary code review, with no dedicated generated-edit gate. Existing lint/test entry points are preserved.

Validation: current-head lint, build, ecosystem checks and Node 26 tests passed; Node 22 and 24 tests were still running. No candidate code, tests or generation ran locally. I did not independently verify the author-reported live ruleset changes.

Copy link
Copy Markdown
Contributor Author

@codex review

Please refresh the code review for current head fbc59a2; the existing summary covers the previous revision. Review the current implementation and resolved feedback. The generated-file ownership rollout explicitly relies on AGENTS.md and normal code review for now, without replacement generated-file edit enforcement.

Copy link
Copy Markdown
Contributor Author

@codex security review

Please refresh the security review receipt for current head fbc59a2; the previous receipt is stale. Existing security, release, provenance and protected-merge controls remain in scope; the retired custom-code budget and generated-file edit gates are intentionally absent.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: fbc59a2070

ℹ️ 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: fbc59a2070

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.

@jbeckwith-oai
jbeckwith-oai added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit e7afc14 Oct 27, 2026
37 checks passed
@jbeckwith-oai
jbeckwith-oai deleted the jbeckwith/retire-generated-file-budgets-20261027 branch October 27, 2026 18:38
@openai-sdks openai-sdks Bot mentioned this pull request Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

Post-merge Dependabot diagnosis: runs40561906182 and40561905614 report security_update_not_possible while trying to update the existing dependency graphs in the repository root and ecosystem-tests/ts-browser-webpack. Compared the parent of merge e7afc14 with the merge itself: root package.json, pnpm-lock.yaml, .github/dependabot.yml, and the webpack fixture's package.json/package-lock.json are all unchanged. These are dependency-maintenance failures requiring a separate compatible upgrade. No dependency versions or security controls were changed by this rollout.

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