Skip to content

chore: update OpenAPI to 319dc756af2a - #447

Merged
petebacondarwin merged 2 commits into
mainfrom
automation/update-forge
Nov 1, 2026
Merged

petebacondarwin merged 2 commits into
mainfrom
automation/update-forge

Conversation

@ant-release-bot

@ant-release-bot ant-release-bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Update cf to Forge OpenAPI 319dc756af2a642b3122b4db7e3b79ac1fbec7d8.

The newer schema groups OAuth scopes under IAM, which moves the generated operation module. Update the hand-written auth catalogue import so cf auth scopes continues to call GET /oauth/scopes and the OpenAPI updater passes type checking.

Regenerate the command surface with the existing Forge package pin, and adapt the AI Search compatibility tests to the schema's optional --namespace flag and default namespace. Include the minor changeset for the generated command changes.

Validation:

  • pnpm check
  • node --test scripts/update-openapi.test.ts — 21 passed
  • pnpm --filter cf test — 2,180 passed
  • pnpm --filter @cloudflare/wrangler-tests test

@ant-release-bot
ant-release-bot requested a review from a team as a code owner October 29, 2026 18:32
@ant-release-bot
ant-release-bot requested a review from cjol October 29, 2026 18:32
@pkg-pr-new

pkg-pr-new Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/cf@447

commit: c4737ec

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

cf --help startup

mean stddev min max
PR 222.8 ms 3.7 ms 218.1 ms 231.3 ms
base 219.7 ms 2.7 ms 214.6 ms 223.8 ms

Δ (PR vs base): ↑ +3.0 ms (+1.4%)

Measured with hyperfine on ubuntu-latest (3 warmup runs, 20 timed runs). CI numbers carry ±a few ms of runner jitter; treat small deltas as noise.

@ask-bonk

ask-bonk Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Review: 1 findings.

Posted 1 inline suggestion.

github run

@clanky-the-clanker

clanky-the-clanker Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

This pull request's reviews are posted as pull request reviews: see the review of 5c6523f3.

@ant-release-bot ant-release-bot changed the title chore: update OpenAPI to 5566495da29e chore: update OpenAPI to a547fbdc874b Oct 29, 2026
@ant-release-bot
ant-release-bot force-pushed the automation/update-forge branch from 5db3026 to 774a149 Compare October 29, 2026 19:27
@ask-bonk

ask-bonk Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Review: 1 findings.

🤖 I've done a thorough review of your PR.

Updates the Forge OpenAPI revision and regenerates the CLI surface.

Posted 1 inline suggestion.

github run

@ant-release-bot
ant-release-bot force-pushed the automation/update-forge branch from 774a149 to be04779 Compare October 29, 2026 20:29
@ask-bonk

ask-bonk Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Review: 1 findings.

Posted 1 inline suggestion.

github run

@ant-release-bot ant-release-bot changed the title chore: update OpenAPI to a547fbdc874b chore: update OpenAPI to e17186156cbf Oct 29, 2026
@ant-release-bot
ant-release-bot force-pushed the automation/update-forge branch from be04779 to dc0b6be Compare October 29, 2026 21:28
@ask-bonk

ask-bonk Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Review: 1 findings.

🤖 I've done a thorough review of your PR.

Updates the pinned Forge OpenAPI revision and regenerated CLI surface.

Posted 1 inline suggestion.

github run

@ant-release-bot ant-release-bot changed the title chore: update OpenAPI to e17186156cbf chore: update OpenAPI to 46a48d5eba1d Oct 29, 2026
@ant-release-bot
ant-release-bot force-pushed the automation/update-forge branch from dc0b6be to a53f94c Compare October 29, 2026 23:27
@ask-bonk

ask-bonk Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

🤖 I've done a thorough review of your PR.

Updates the pinned Forge OpenAPI revision and regenerates the CLI command surface.

  1. email-domains changes and spend-policy activity pagination discard required cursors.
  2. Spend-policy notification actions allow a missing required notification email.

Posted 2 inline suggestion comments.

github run

@ant-release-bot ant-release-bot changed the title chore: update OpenAPI to 46a48d5eba1d chore: update OpenAPI to eacfb8c98bc0 Oct 30, 2026
@ant-release-bot
ant-release-bot force-pushed the automation/update-forge branch from a53f94c to 5c6523f Compare October 30, 2026 09:30

@clanky-the-clanker clanky-the-clanker 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.

Superseded by the review of 652ca19c.

This review, of 5c6523f3

⚠️ Minor issues — cf billing spend-policies update still adds if_match to the PUT body as well as the If-Match header. The API rejects unknown body fields, so updates built from flags will likely fail. The other notes don't block.

Findings: 1 warning · 2 info (1 is an inline comment on the diff)

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.

🔧 Fix with your agent

Paste the following into your coding agent to investigate and fix these issues.

Fix the following code review issues found in pull request #447.

Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
  for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

## WARNING (1)

### [Code Quality] `billing spend-policies update` writes `if_match` into the PUT body (and the dry-run preview at `:134`) as well as the `If-Match` header at `:107`. The API rejects unknown body fields, so normal updates built from flags will likely fail with a 400. Fix the generator's `bodyFieldArgs` so it skips header args, then regenerate.
- **File:** packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221

## INFO (2)

### [Release] The changeset doesn't list the breaking changes: the removed `magic-cloud-networking` and `rulesets versions` / `rulesets entrypoint versions` commands, the `--tenant-tag` → `--tenant-id` rename, the analytics `zone_identifier` → `zone_id` rename, and the newly required `--protection-mode` / `--filter-mode` flags on the magic-transit protection `create` commands.
- **File:** .changeset/update-openapi-eacfb8c98bc0.md:5

### [Code Quality] Hand-maintained e2e fixtures `packages/cli/e2e/magic-cloud-networking.json` and `packages/cli/e2e/rulesets.json` still list commands this pull request removes. Remove those entries so the smoke runner doesn't fail on them.
- **File:** packages/cli/e2e/rulesets.json:33

📋 Code Quality: ⚠️ 1 warning · 1 info

The spend-policies if_match body leak is still present. The e2e fixtures still list removed commands.

Recommendation: 📝 Minor Comments

  • [WARNING] billing spend-policies update writes if_match into the PUT body (and the dry-run preview at :134) as well as the If-Match header at :107. The API rejects unknown body fields, so normal updates built from flags will likely fail with a 400. Fix the generator's bodyFieldArgs so it skips header args, then regenerate. (packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221)
  • [INFO] Hand-maintained e2e fixtures packages/cli/e2e/magic-cloud-networking.json and packages/cli/e2e/rulesets.json still list commands this pull request removes. Remove those entries so the smoke runner doesn't fail on them. (packages/cli/e2e/rulesets.json:33)
View full review

billing spend-policies update sends if_match in the JSON body (packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221, dry-run preview at :134)

  • The value is already sent as a header at :107. The operation lists If-Match as a header parameter (_operations/billing/spend-policies/update.ts:8).
  • --if-match is required, so every update built from flags also runs bodyData["if_match"] = argv["if-match"]. The --body help at :85 says "Unknown fields and trailing JSON are rejected", so these updates will likely get a 400.
  • The --body path doesn't add the field, so the two input paths send different payloads. The dry-run preview doesn't match the intended request either.
  • The cause is in the generator: bodyFieldArgs in packages/cli/generator/plugin/emit/handler.ts loops over the required option args and skips only body args, so a required header option gets written into the body. Make it skip header (and query) args, add a generator test for a required header param combined with a JSON body, then regenerate. Don't hand-edit _generated/.

Stale e2e fixtures: packages/cli/e2e/magic-cloud-networking.json and packages/cli/e2e/rulesets.json still list commands this pull request removes (magic-cloud-networking ..., rulesets versions list/get/delete). CI doesn't use them, but the out-of-band smoke runner will fail on those entries.

The other generated changes are consistent: the new spend-policies, email-domains, realtime kit and magic-transit commands and flags, the workers-vpc TLS flags, and the removed command groups.


🚀 Release: 💬 1 info

The changeset still doesn't list the breaking changes.

Recommendation: 💬 Optional Nits

  • [INFO] The changeset doesn't list the breaking changes: the removed magic-cloud-networking and rulesets versions / rulesets entrypoint versions commands, the --tenant-tag → --tenant-id rename, the analytics zone_identifier → zone_id rename, and the newly required --protection-mode / --filter-mode flags on the magic-transit protection create commands. (.changeset/update-openapi-eacfb8c98bc0.md:5)
View full review

.changeset/update-openapi-eacfb8c98bc0.md correctly uses a minor bump, but its body only says the generated command surface was updated. This release:

  • removes the whole cf magic-cloud-networking group;
  • removes cf rulesets versions and cf rulesets entrypoint versions;
  • renames the tenant-custom-nameservers argument <tenant-tag>/--tenant-tag to <tenant-id>/--tenant-id;
  • renames the analytics zone_identifier parameter to zone_id;
  • makes the new --protection-mode / --filter-mode flags required on the Advanced DNS and TCP protection create commands.

List these in the changeset body so they appear in the release notes.


✅ All other checks passed

🔒 Security: ✅ LGTM

This is regenerated command code. Path parameters, including the renamed tenant-id, still go through URL encoding. The new workers-vpc TLS flags take certificate UUIDs, not key material. The removed commands only reduce the command surface.


📖 AGENTS.md: ✅ LGTM

No AGENTS.md concerns.


⚡ Performance: ✅ LGTM

No performance concerns.


📝 Documentation: ✅ LGTM

No documentation issues. The missing details in the changeset are covered under Release.


Reviewed commit: 5c6523f3

@ask-bonk

ask-bonk Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Review: 1 findings.

Posted 1 inline finding.

github run

@ant-release-bot ant-release-bot changed the title chore: update OpenAPI to eacfb8c98bc0 chore: update OpenAPI to 13349ef246b2 Oct 30, 2026
@ant-release-bot
ant-release-bot force-pushed the automation/update-forge branch from 5c6523f to 652ca19 Compare October 30, 2026 11:27

@clanky-the-clanker clanky-the-clanker 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.

Superseded by the review of da44a519.

This review, of 652ca19c

⚠️ Minor issues — cf billing spend-policies update still puts if_match in the PUT body as well as the header, so updates built from flags will likely be rejected. Separately, the new forward gateway rule action can't be used from flags: the rule-settings check now requires three flags that belong to different actions.

Findings: 2 warnings · 2 info (2 are inline comments on the diff)

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.

🔧 Fix with your agent

Paste the following into your coding agent to investigate and fix these issues.

Fix the following code review issues found in pull request #447.

Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
  for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

## WARNING (2)

### [Code Quality] `billing spend-policies update` writes `if_match` into the PUT body (and the dry-run preview at `:134`) as well as the `If-Match` header at `:107`. The API rejects unknown body fields, so updates built from flags will likely fail with a 400. Fix `bodyFieldArgs` in the generator so it skips header and query args, then regenerate.
- **File:** packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221

### [Code Quality] `zero-trust gateway rules create/update`: the new `--rule-settings-forward-worker-id` is added to the list of flags required whenever any `--rule-settings-*` flag is set. Every flag-built rule with settings, including the new `forward` action, now also needs the block-page and redirect target URIs, so only `--body` works.
- **File:** packages/cli/src/commands/_generated/zero-trust/gateway/rules/create.ts:542

## INFO (2)

### [Release] The changeset doesn't list the breaking changes: the removed `magic-cloud-networking` and `rulesets versions` commands, the `--tenant-tag` → `--tenant-id` and `zone_identifier` → `zone_id` renames, and the newly required protection-mode / filter-mode flags.
- **File:** .changeset/update-openapi-13349ef246b2.md:5

### [Code Quality] The hand-maintained e2e fixtures `packages/cli/e2e/magic-cloud-networking.json` and `packages/cli/e2e/rulesets.json` still list commands this pull request removes. Remove those entries so the smoke runner doesn't fail on them.
- **File:** packages/cli/e2e/magic-cloud-networking.json:5

📋 Code Quality: ⚠️ 2 warnings · 1 info

The earlier if_match body problem is still there. New: the rule-settings group check on zero-trust gateway rules create/update now also requires --rule-settings-forward-worker-id. The stale e2e fixture note also still applies.

Recommendation: ⚠️ Major Comments

  • [WARNING] billing spend-policies update writes if_match into the PUT body (and the dry-run preview at :134) as well as the If-Match header at :107. The API rejects unknown body fields, so updates built from flags will likely fail with a 400. Fix bodyFieldArgs in the generator so it skips header and query args, then regenerate. (packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221)
  • [WARNING] zero-trust gateway rules create/update: the new --rule-settings-forward-worker-id is added to the list of flags required whenever any --rule-settings-* flag is set. Every flag-built rule with settings, including the new forward action, now also needs the block-page and redirect target URIs, so only --body works. (packages/cli/src/commands/_generated/zero-trust/gateway/rules/create.ts:542)
  • [INFO] The hand-maintained e2e fixtures packages/cli/e2e/magic-cloud-networking.json and packages/cli/e2e/rulesets.json still list commands this pull request removes. Remove those entries so the smoke runner doesn't fail on them. (packages/cli/e2e/magic-cloud-networking.json:5)
View full review

billing spend-policies update sends if_match in the JSON body. This was raised in the earlier review and is still present at this commit (packages/cli/src/commands/_generated/billing/spend-policies/update.ts):

  • The value is sent as the If-Match header at :107.
  • It is also written into the body at :221, and into the dry-run preview at :134.
  • The operation declares If-Match as a header parameter. The --body help says unknown fields are rejected, so updates built from flags will likely fail with a 400.
  • The --body path doesn't add the field, so the two input paths send different payloads.
  • The fix belongs in the generator: bodyFieldArgs in packages/cli/generator/plugin/emit/handler.ts should skip header and query args. Then regenerate.

The zero-trust gateway rules create/update rule-settings check now requires three flags from different actions. See create.ts:539-545 and update.ts:540-546:

  • If any --rule-settings-* flag is set, the check now requires all three of --rule-settings-block-page-target-uri, --rule-settings-redirect-target-uri and the new --rule-settings-forward-worker-id.
  • Those flags belong to the block, redirect and forward actions, and one rule can't use all three.
  • The new --action forward, and every other action that takes settings, can't be built from flags. Only --body works around it.
  • The check was already too strict before this pull request; this regeneration adds a third entry.
  • The likely cause is the generator treating required children of an optional or variant sub-object as required for the whole group. Fix the generator's group-required logic (or the upstream schema), add a test, and regenerate.

Stale e2e fixtures. packages/cli/e2e/magic-cloud-networking.json still lists the removed cf magic-cloud-networking ... commands, and packages/cli/e2e/rulesets.json still lists the removed rulesets versions commands. The out-of-band smoke runner will fail on those entries.

The rest of the regenerated output is consistent:

  • the removals of magic-cloud-networking and rulesets versions
  • the tenant-id rename
  • the new --protection-mode / --filter-mode flags
  • the workers-vpc TLS flags
  • email-domains changes
  • realtime kit apps update

🚀 Release: 💬 1 info

The changeset still leaves out the user-facing breaking changes.

Recommendation: 💬 Optional Nits

  • [INFO] The changeset doesn't list the breaking changes: the removed magic-cloud-networking and rulesets versions commands, the --tenant-tag → --tenant-id and zone_identifier → zone_id renames, and the newly required protection-mode / filter-mode flags. (.changeset/update-openapi-13349ef246b2.md:5)
View full review

.changeset/update-openapi-13349ef246b2.md correctly uses minor, but its body only says the generated command surface was updated. This release also:

  • removes the cf magic-cloud-networking group;
  • removes cf rulesets versions and cf rulesets entrypoint versions;
  • renames --tenant-tag to --tenant-id;
  • renames the analytics zone_identifier parameter to zone_id;
  • makes --protection-mode / --filter-mode required on the Advanced DNS and TCP protection create commands.

List these in the changeset body so they appear in the release notes.


✅ All other checks passed

🔒 Security: ✅ LGTM

This is regenerated command code and a pinned OpenAPI revision bump. It adds no secrets and no new injection or authorization paths.


📖 AGENTS.md: ✅ LGTM

No AGENTS.md concerns.


⚡ Performance: ✅ LGTM

No performance concerns. The diff removes more commands than it adds, and lazy loading is unchanged.


📝 Documentation: ✅ LGTM

No documentation issues. The missing details in the changeset are covered under Release.


Reviewed commit: 652ca19c

@ask-bonk ask-bonk Bot 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.

Updates the pinned Forge OpenAPI revision and regenerated CLI commands.

@ask-bonk

ask-bonk Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Review: 1 findings.

🤖 I've done a thorough review of your PR.

Updates the Forge OpenAPI revision and regenerates the CLI surface.

Posted 1 new inline suggestion and updated 1 existing ask-bonk thread.

github run

@ant-release-bot
ant-release-bot force-pushed the automation/update-forge branch from da44a51 to f9ff819 Compare October 30, 2026 14:31

@clanky-the-clanker clanky-the-clanker 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.

Superseded by the review of 8a7cee31.

This review, of f9ff8198

⚠️ Minor issues — Two WARNINGs with user-facing impact are still open: flag-built billing spend-policies update requests put if_match in the PUT body, and gateway rules that set any --rule-settings-* flag (including the new forward action) can't be built from flags.

Findings: 2 warnings · 2 info (2 are inline comments on the diff)

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.

🔧 Fix with your agent

Paste the following into your coding agent to investigate and fix these issues.

Fix the following code review issues found in pull request #447.

Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
  for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

## WARNING (2)

### [Code Quality] `billing spend-policies update` writes `if_match` into the PUT body (`:221`) and the dry-run preview (`:134`), as well as the `If-Match` header (`:107`). The API rejects unknown body fields, so updates built from flags will likely fail with a 400. Fix `bodyFieldArgs` in the generator and regenerate.
- **File:** packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221

### [Code Quality] `zero-trust gateway rules create/update`: when any `--rule-settings-*` flag is set, the check requires `--rule-settings-block-page-target-uri`, `--rule-settings-redirect-target-uri` and the new `--rule-settings-forward-worker-id` together. These belong to different actions, so the new `forward` action, and any flag-built rule with settings, can't be created from flags (also `update.ts:543`).
- **File:** packages/cli/src/commands/_generated/zero-trust/gateway/rules/create.ts:542

## INFO (2)

### [Release] The changeset doesn't list the breaking changes: the removed `magic-cloud-networking` and `rulesets versions` commands, the `--tenant-tag` → `--tenant-id`, `zone_identifier` → `zone_id` and `--page` → `--cursor` changes, and the newly required protection-mode / filter-mode flags.
- **File:** .changeset/update-openapi-ef1d30e8d1f7.md:5

### [Code Quality] The hand-maintained e2e fixtures `packages/cli/e2e/magic-cloud-networking.json` and `packages/cli/e2e/rulesets.json` still list commands this pull request removes. Remove those entries so the smoke runner doesn't fail on them.
- **File:** packages/cli/e2e/magic-cloud-networking.json:5

📋 Code Quality: ⚠️ 2 warnings · 1 info

Both earlier correctness warnings and the stale e2e fixture note are still present at this commit.

Recommendation: 📝 Minor Comments

  • [WARNING] billing spend-policies update writes if_match into the PUT body (:221) and the dry-run preview (:134), as well as the If-Match header (:107). The API rejects unknown body fields, so updates built from flags will likely fail with a 400. Fix bodyFieldArgs in the generator and regenerate. (packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221)
  • [WARNING] zero-trust gateway rules create/update: when any --rule-settings-* flag is set, the check requires --rule-settings-block-page-target-uri, --rule-settings-redirect-target-uri and the new --rule-settings-forward-worker-id together. These belong to different actions, so the new forward action, and any flag-built rule with settings, can't be created from flags (also update.ts:543). (packages/cli/src/commands/_generated/zero-trust/gateway/rules/create.ts:542)
  • [INFO] The hand-maintained e2e fixtures packages/cli/e2e/magic-cloud-networking.json and packages/cli/e2e/rulesets.json still list commands this pull request removes. Remove those entries so the smoke runner doesn't fail on them. (packages/cli/e2e/magic-cloud-networking.json:5)
View full review

billing spend-policies update sends if_match in the JSON body (packages/cli/src/commands/_generated/billing/spend-policies/update.ts)

  • The value is correctly sent as the If-Match header at :107.
  • It is also written into the dry-run preview body at :134 and into the real body at :221.
  • The operation declares If-Match as a header parameter. The --body help says unknown fields are rejected, so every flag-built update (--if-match is required) will likely fail with a 400.
  • The --body path doesn't add the field, so the two input paths send different payloads.
  • Other header-param commands, such as tags/account-resources/update.ts, don't do this, which points to the generator. Fix bodyFieldArgs in packages/cli/generator/plugin/emit/handler.ts so it skips header and query args, then regenerate.

The gateway rule-settings check requires flags from different actions (zero-trust/gateway/rules/create.ts:539-545, update.ts:540-546)

  • Setting any --rule-settings-* flag now requires all three of --rule-settings-block-page-target-uri, --rule-settings-redirect-target-uri and the new --rule-settings-forward-worker-id.
  • Those flags belong to the block, redirect and forward actions, so one rule can't use all three.
  • As a result, --action forward --rule-settings-forward-worker-id X is rejected, and so is every other flag-built rule with settings. Only --body works.
  • The generator's required-in-group computation appears to treat the required fields of each union variant as required for the whole group. Only fields that every variant requires should be required.

Stale e2e fixtures

  • packages/cli/e2e/magic-cloud-networking.json and packages/cli/e2e/rulesets.json still list commands this pull request removes. The out-of-band smoke runner will hit commands that no longer exist.

🚀 Release: 💬 1 info

The changeset still omits the breaking command changes.

Recommendation: 💬 Optional Nits

  • [INFO] The changeset doesn't list the breaking changes: the removed magic-cloud-networking and rulesets versions commands, the --tenant-tag → --tenant-id, zone_identifier → zone_id and --page → --cursor changes, and the newly required protection-mode / filter-mode flags. (.changeset/update-openapi-ef1d30e8d1f7.md:5)
View full review

.changeset/update-openapi-ef1d30e8d1f7.md correctly uses minor, but its body only says the generated command surface was updated. This release also:

  • removes the cf magic-cloud-networking group;
  • removes cf rulesets versions and cf rulesets entrypoint versions;
  • renames --tenant-tag to --tenant-id on tenant-custom-nameservers;
  • renames the analytics zone_identifier parameter to zone_id;
  • replaces --page with --cursor on the security-insights partners shadow-* list commands;
  • makes --protection-mode / --filter-mode required on the Advanced DNS and TCP protection create commands.

List these in the changeset body so they appear in the release notes.


✅ All other checks passed

🔒 Security: ✅ LGTM

This is regenerated command code and a pinned OpenAPI revision bump. It adds no secrets, path parameters stay URL-encoded, and there are no new injection or authorization paths.


📖 AGENTS.md: ✅ LGTM

No AGENTS.md concerns.


⚡ Performance: ✅ LGTM

No performance concerns. The diff removes more commands than it adds, and lazy loading is unchanged.


📝 Documentation: ✅ LGTM

No documentation issues. The missing details in the changeset are covered under Release.


Reviewed commit: f9ff8198 — same changes as da44a519, so this is that commit's review (no new review was run; line numbers are as of da44a519)

@ask-bonk

ask-bonk Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

No new concerns since the last review

github run

@ant-release-bot ant-release-bot changed the title chore: update OpenAPI to ef1d30e8d1f7 chore: update OpenAPI to a622452fbd64 Oct 30, 2026
@ant-release-bot
ant-release-bot force-pushed the automation/update-forge branch from f9ff819 to 8a7cee3 Compare October 30, 2026 15:27
@ask-bonk

ask-bonk Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

No new concerns since the last review

github run

@clanky-the-clanker clanky-the-clanker 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.

Superseded by the review of c4737ec5.

This review, of 8a7cee31

⚠️ Minor issues — Two WARNINGs with user-facing impact are still open: flag-built billing spend-policies update requests put if_match in the PUT body, and gateway rules that set any --rule-settings-* flag (including the new forward action) can't be built from flags.

Findings: 2 warnings · 1 info (2 are inline comments on the diff)

Not opened by the correctness review: 1 changed file it was meant to read
  • packages/cli/generate.ts

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.

🔧 Fix with your agent

Paste the following into your coding agent to investigate and fix these issues.

Fix the following code review issues found in pull request #447.

Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
  for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

## WARNING (2)

### [Code Quality] `billing spend-policies update` writes `if_match` into the PUT body (`:221`) and the dry-run preview (`:134`), as well as the `If-Match` header (`:107`). The API rejects unknown body fields, so updates built from flags will likely fail with a 400. Fix `bodyFieldArgs` in the generator and regenerate.
- **File:** packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221

### [Code Quality] `zero-trust gateway rules create/update`: setting any `--rule-settings-*` flag requires `--rule-settings-block-page-target-uri`, `--rule-settings-forward-worker-id` and `--rule-settings-redirect-target-uri` together. These flags belong to different actions, so the new `forward` action, and every other flag-built rule with settings, is rejected.
- **File:** packages/cli/src/commands/_generated/zero-trust/gateway/rules/create.ts:542

## INFO (1)

### [Release] The changeset doesn't list the breaking changes: the removed `magic-cloud-networking` and `rulesets versions` commands, the `--tenant-tag` → `--tenant-id`, `zone_identifier` → `zone_id` and `--page` → `--cursor` changes, and the newly required protection-mode / filter-mode flags.
- **File:** .changeset/update-openapi-a622452fbd64.md:5

📋 Code Quality: ⚠️ 2 warnings

Both earlier warnings still reproduce at this commit: if_match in the spend-policies PUT body, and the gateway rule-settings required-together check.

Recommendation: 📝 Minor Comments

  • [WARNING] billing spend-policies update writes if_match into the PUT body (:221) and the dry-run preview (:134), as well as the If-Match header (:107). The API rejects unknown body fields, so updates built from flags will likely fail with a 400. Fix bodyFieldArgs in the generator and regenerate. (packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221)
  • [WARNING] zero-trust gateway rules create/update: setting any --rule-settings-* flag requires --rule-settings-block-page-target-uri, --rule-settings-forward-worker-id and --rule-settings-redirect-target-uri together. These flags belong to different actions, so the new forward action, and every other flag-built rule with settings, is rejected. (packages/cli/src/commands/_generated/zero-trust/gateway/rules/create.ts:542)
View full review

billing spend-policies update sends if_match in the JSON body (packages/cli/src/commands/_generated/billing/spend-policies/update.ts)

  • The value is correctly sent as the If-Match header at :107.
  • It is also written into the dry-run preview body at :134 and into the real body at :221.
  • The operation descriptor declares If-Match as a header parameter, and the --body help says unknown fields are rejected. Since --if-match is required, every flag-built update will likely fail with a 400.
  • The --body path doesn't add the field, so the two input paths send different payloads.
  • Fix bodyFieldArgs in the generator so it skips header and query args, then regenerate.

The gateway rule-settings check requires flags from different actions (zero-trust/gateway/rules/create.ts:539-550, update.ts:540-551)

  • Setting any --rule-settings-* flag requires all three of --rule-settings-block-page-target-uri, --rule-settings-forward-worker-id and --rule-settings-redirect-target-uri.
  • Those flags belong to the block, forward and redirect actions, so one rule can't use all three.
  • As a result, --action forward --rule-settings-forward-worker-id X is rejected, and so is every other flag-built rule that sets any rule-settings flag. Only --body works.
  • The generator's required-in-group computation appears to take the union of fields that are required in each oneOf/branch variant. It should only require fields that every variant requires. Fix it there and regenerate.

🚀 Release: 💬 1 info

The changeset doesn't list user-visible breaking changes.

Recommendation: 💬 Optional Nits

  • [INFO] The changeset doesn't list the breaking changes: the removed magic-cloud-networking and rulesets versions commands, the --tenant-tag → --tenant-id, zone_identifier → zone_id and --page → --cursor changes, and the newly required protection-mode / filter-mode flags. (.changeset/update-openapi-a622452fbd64.md:5)
View full review

.changeset/update-openapi-a622452fbd64.md correctly uses minor, but its body only says the generated command surface was updated. This release also:

  • removes the cf magic-cloud-networking group;
  • removes cf rulesets versions and cf rulesets entrypoint versions;
  • renames --tenant-tag to --tenant-id on tenant-custom-nameservers;
  • renames the analytics zone_identifier parameter to zone_id;
  • replaces --page with --cursor on the security-insights partners shadow-* list commands;
  • makes --protection-mode / --filter-mode required on the Advanced DNS and TCP protection create commands.

List these in the changeset body so they appear in the release notes.


✅ All other checks passed

🔒 Security: ✅ LGTM

This is regenerated command code plus a pinned OpenAPI revision bump. It adds no secrets, path parameters stay URL-encoded, and there are no new injection or authorization paths. The new TLS settings flags on workers-vpc services only carry certificate IDs.


📖 AGENTS.md: ✅ LGTM

No AGENTS.md concerns.


⚡ Performance: ✅ LGTM

No performance concerns. Lazy loading is unchanged.


📝 Documentation: ✅ LGTM

No documentation issues. The missing details in the changeset are covered under Release.


Reviewed commit: 8a7cee31

@petebacondarwin

Copy link
Copy Markdown
Collaborator

Looks like the latest API schema changes have uncovered some bugs in the cf generation that we need to address.

@petebacondarwin
petebacondarwin force-pushed the automation/update-forge branch from 8a7cee3 to c4737ec Compare October 31, 2026 23:27
@petebacondarwin petebacondarwin changed the title chore: update OpenAPI to a622452fbd64 chore: update OpenAPI to 319dc756af2a Oct 31, 2026

@clanky-the-clanker clanky-the-clanker 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.

💬 Approved with comments — One WARNING: a generator name collision removed the only body flag from resource-sharing excluded-recipients create. Both earlier WARNINGs are fixed, and the remaining notes are INFO (changeset breaking-change list, stale e2e fixtures, a dropped local required-field check).

Findings: 1 warning · 3 info (1 is an inline comment on the diff)

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.

🔧 Fix with your agent

Paste the following into your coding agent to investigate and fix these issues.

Fix the following code review issues found in pull request #447.

Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
  for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

## WARNING (1)

### [Code Quality] `resource-sharing excluded-recipients create` lost its only body flag (`--account-id`) after the path parameter was renamed to `account_id`. The command now works only with `--body`, and `--dry-run` without `--body` previews an empty body.
- **File:** packages/cli/src/commands/_generated/resource-sharing/excluded-recipients/create.ts:87

## INFO (3)

### [Release] The changeset doesn't list the breaking command changes: removed groups (`magic-cloud-networking`, `rulesets versions`, `tenant`, `user tenant`), moves and renames (`iam oauth-*`, `accounts organizations`), renamed flags (`--tenant-id`, `--cursor`, `--preset-config-*`, `--namespace`) and newly required protection-mode / filter-mode flags.
- **File:** .changeset/update-openapi-319dc756af2a.md:5

### [Code Quality] `dns-firewall create` no longer prompts for `--name` or checks `--upstream-ips` locally. If the schema still requires these fields, flag-built requests now fail at the API instead of failing fast.
- **File:** packages/cli/src/commands/_generated/dns-firewall/create.ts:166

### [Code Quality] Out-of-band e2e fixtures still reference removed commands: `packages/cli/e2e/magic-cloud-networking.json`, `e2e/rulesets.json`, `e2e/abuse-reports.json` and the `user tenant` entries in `e2e/user.json`.

📋 Code Quality: ⚠️ 1 warning · 2 info

Both earlier WARNINGs are fixed. One new WARNING: excluded-recipients create lost its body flag. Two INFO notes.

Recommendation: 📝 Minor Comments

  • [WARNING] resource-sharing excluded-recipients create lost its only body flag (--account-id) after the path parameter was renamed to account_id. The command now works only with --body, and --dry-run without --body previews an empty body. (packages/cli/src/commands/_generated/resource-sharing/excluded-recipients/create.ts:87)
  • [INFO] dns-firewall create no longer prompts for --name or checks --upstream-ips locally. If the schema still requires these fields, flag-built requests now fail at the API instead of failing fast. (packages/cli/src/commands/_generated/dns-firewall/create.ts:166)
  • [INFO] Out-of-band e2e fixtures still reference removed commands: packages/cli/e2e/magic-cloud-networking.json, e2e/rulesets.json, e2e/abuse-reports.json and the user tenant entries in e2e/user.json.
View full review

Earlier findings re-checked at c4737ec

  • billing spend-policies update: if_match is now sent only as the If-Match header (billing/spend-policies/update.ts:106-107). Fixed.
  • zero-trust gateway rules create/update: the --rule-settings-* required checks are now per group. block-page-* requires only block-page-target-uri and redirect-* requires only redirect-target-uri. The forward action can be built from flags. Fixed.

resource-sharing excluded-recipients create can only be run with --body (resource-sharing/excluded-recipients/create.ts)

  • The schema renamed the path parameter account_id_path to account_id. That name now collides with the body field account_id, which is the account to exclude and the only body field.
  • The regenerated command resolves the path account from context, but it also dropped the body field. The --account-id flag, its prompt and the compactBody assembly are all gone.
  • Help shows only <share-id>, --dry-run and --body. Running without --body throws "--body is required" (:87-91).
  • --dry-run without --body previews body: undefined (:66) and reports success, so the preview hides a request that would fail.
  • --body "" skips both branches and exits without sending a request or printing an error.
  • Fix the path/body name collision in the generator, for example by renaming the body flag to --excluded-account-id or by keeping the body field. Then regenerate.

dns-firewall create dropped its local required-field checks (dns-firewall/create.ts, around :164)

  • The prompt for --name and the --upstream-ips is required throw were removed, while the operation file is unchanged.
  • If the upstream schema still requires these fields, flag-built requests now fail at the API instead of prompting or failing fast.
  • commands.json and schemas.json could not be inspected to confirm whether this follows a real schema change.

Stale e2e fixtures

  • packages/cli/e2e/magic-cloud-networking.json, e2e/rulesets.json, e2e/abuse-reports.json and e2e/user.json still call commands this pull request removes: magic-cloud-networking, rulesets versions, rulesets entrypoint versions, abuse-reports create and user tenant.
  • These real-account smoke runs are out-of-band, so pnpm check won't catch them, but the next smoke run will fail on those entries.

🚀 Release: 💬 1 info

The changeset still omits the user-visible breaking CLI changes.

Recommendation: 💬 Optional Nits

  • [INFO] The changeset doesn't list the breaking command changes: removed groups (magic-cloud-networking, rulesets versions, tenant, user tenant), moves and renames (iam oauth-*, accounts organizations), renamed flags (--tenant-id, --cursor, --preset-config-*, --namespace) and newly required protection-mode / filter-mode flags. (.changeset/update-openapi-319dc756af2a.md:5)
View full review

.changeset/update-openapi-319dc756af2a.md correctly uses minor, but its body only says the generated command surface was updated and mentions the auth scope change. This release also changes the following, and several of these break existing scripts.

Removed commands

  • cf magic-cloud-networking (the whole group)
  • cf rulesets versions and cf rulesets entrypoint versions
  • top-level cf tenant ... and cf user tenant ...
  • cf abuse-reports create

Moved or renamed commands

  • oauth-clients and oauth-scopes move under cf iam
  • cf accounts organization becomes cf accounts organizations

Renamed or changed flags

  • --tenant-tag becomes --tenant-id on tenant-custom-nameservers
  • --page becomes --cursor on security-insights partners shadow-*
  • --config-* becomes --preset-config-* on realtime kit presets create/replace/update
  • organization update drops the --profile-* flags, and organization member create drops --member-status
  • ai-search namespace positionals become an optional --namespace flag that defaults to default
  • --protection-mode / --filter-mode are now required on the Advanced DNS and TCP protection create commands

Help output

  • alerting, audit-logs, managed-transforms, page-rules, tenant-custom-nameservers, url-normalization and workers-builds are no longer hidden in help.

List these in the changeset body so they reach the release notes.


✅ All other checks passed

🔒 Security: ✅ LGTM

No security concerns. This is regenerated command code plus a repointed import in auth/scope-catalogue.ts, which still calls GET /oauth/scopes. Path parameters remain URL-encoded, and no secrets or new injection paths were added.


📖 AGENTS.md: ✅ LGTM

No AGENTS.md concerns.


⚡ Performance: ✅ LGTM

No performance concerns.


📝 Documentation: ✅ LGTM

No documentation issues. The missing breaking-change list in the changeset is covered under Release.


Reviewed commit: c4737ec5

@ask-bonk

ask-bonk Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Review: 1 findings.

Updated one existing ask-bonk TLS-validation thread and posted one new inline suggestion for Realtime Kit flag compatibility.

github run

@petebacondarwin
petebacondarwin added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit 8129166 Nov 1, 2026
17 checks passed
@petebacondarwin
petebacondarwin deleted the automation/update-forge branch November 1, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants