Skip to content

docs(cli): disclose --high-availability as TS-only on projects create#5800

Draft
Coly010 wants to merge 3 commits into
developfrom
columferry/cli-1870-projects-create-remove-or-disclose-ts-only-high-availability
Draft

docs(cli): disclose --high-availability as TS-only on projects create#5800
Coly010 wants to merge 3 commits into
developfrom
columferry/cli-1870-projects-create-remove-or-disclose-ts-only-high-availability

Conversation

@Coly010

@Coly010 Coly010 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Docs update (Go parity disclosure) + telemetry-list correctness fix.

What is the current behavior?

--high-availability on projects create has no Go CLI equivalent — Go's cmd/projects.go never registers such a flag, and its RunE closure never sets HighAvailability on the create request body even though the underlying Management API field exists. Unlike --reveal on projects api-keys (which explicitly documents itself as a TS-only addition, in a code comment, SIDE_EFFECTS.md, and docs/go-cli-porting-status.md's "Flag divergences" list), --high-availability was undisclosed everywhere.

It was also listed in safeFlags: ["org-id", "high-availability"], implying Go-parity telemetry-safety that doesn't exist (Go's markFlagTelemetrySafe only covers org-id). Since it's a boolean flag, this had no actual runtime effect — boolean flag values are always logged verbatim by the instrumentation regardless of safeFlags membership — but the array wrongly implied otherwise.

The linked ticket (CLI-1870) offered two valid resolutions: remove the flag for strict parity, or disclose it as TS-only. This PR disclosure, since --high-availability is a real, working, user-facing capability that Go's CLI simply never got around to exposing (not a Go bug being ported forward) — removing it would regress anyone currently relying on it.

What is the new behavior?

--high-availability is now disclosed as TS-only in a code comment, SIDE_EFFECTS.md, and docs/go-cli-porting-status.md's "Flag divergences" list, matching the --reveal precedent exactly. Removed from safeFlags (now just ["org-id"]) to match Go's actual telemetry-safe set.

Fixes CLI-1870.

Coly010 added 3 commits July 6, 2026 21:24
… safe-list

--high-availability has no Go CLI equivalent (Go's create.Run never sets
HighAvailability even though the API field exists), but was undisclosed —
unlike --reveal on projects api-keys, which explicitly documents itself as
TS-only. It was also listed in safeFlags alongside org-id, implying Go
parity that doesn't exist (Go marks only org-id telemetry-safe). Since it's
a boolean flag, this has no runtime telemetry effect (boolean values are
always logged verbatim regardless of safeFlags), but the array wrongly
implied otherwise.

Disclosed in SIDE_EFFECTS.md and a code comment, matching the --reveal
precedent, and removed high-availability from safeFlags.

Fixes CLI-1870.
Missed from the initial disclosure commit — the "Flag divergences from
the Go reference" section already tracks --reveal for exactly this
purpose (apps/cli/CLAUDE.md requires updating this doc when a command's
flag surface changes).
The architect reviewer noted the previous citation (cmd/projects.go:133-143)
pointed at the flag-registration block, which proves the flag doesn't exist,
but the comment's claim about the request body was better evidenced by the
RunE closure's body construction a few lines earlier. Cite both.
@Coly010

Coly010 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 6ebdeab200

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

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.

1 participant