Skip to content

docs(cli): scope Go CLI authority to parity-relevant legacy work - #6153

Merged
Coly010 merged 2 commits into
developfrom
chore/legacy-drop-go-authority
Aug 11, 2026
Merged

docs(cli): scope Go CLI authority to parity-relevant legacy work#6153
Coly010 merged 2 commits into
developfrom
chore/legacy-drop-go-authority

Conversation

@Coly010

@Coly010 Coly010 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Docs update (ADR + agent guide).

What is the current behavior?

apps/cli/AGENTS.md reads, top to bottom, as porting-era guidance: it opens with the Phase 0/1 wrapping workflow and states unconditionally that apps/cli-go/ is "the authoritative source" for anything touching src/legacy/. That was correct while the legacy shell was being built from scratch, but the port is now largely done — 95 of 103 legacy leaf commands (~92%, per apps/cli/docs/go-cli-porting-status.md) are natively ported, with only 8 remaining Phase 0 proxies. Agents (and humans) doing net-new work in src/legacy/ — bug fixes, refactors, TS-only additions, tests — keep following the unconditional framing literally and audit Go source, or judge review feedback against Go parity, for changes that have nothing to do with it.

What is the new behavior?

  • Adds ADR 0016 recording the decision and its rationale, and indexes it in docs/adr/README.md.
  • Adds a "Legacy Port Status and Go CLI Authority" section near the top of apps/cli/AGENTS.md stating current completion and exactly when apps/cli-go/ is required reading: finishing one of the remaining wrapped ports, or changing an already-ported command's established parity surface (command/flag names, stdout/stderr text, exit codes, filesystem/API side effects, telemetry payload shape). Everything else in src/legacy/ is treated like any other TypeScript workspace.
  • Reframes the "Phase 0: Go Binary Wrapper" section as the exception path for the residual wrapped commands, not the default onboarding workflow.
  • Adds the same scoping caveat to the "Legacy Port: Go CLI Output Parity" section and the apps/cli-go/ reference blurb.
  • Adds a pointer from go-cli-porting-status.md's header to the ADR/AGENTS.md scoping.

Companion change (not in this diff, personal Claude Code config): updated the go-parity-auditor and review-adjudicator subagent definitions to apply the same scoping — parity is the deciding standard only for the two cases above, not for every legacy-shell change.

The legacy shell's port is now ~92% complete (95/103 leaf commands
natively ported), but AGENTS.md still reads as porting-era guidance
that treats apps/cli-go/ as the unconditional authority for anything
touching src/legacy/. That trips up net-new work (bug fixes, refactors,
TS-only additions) with an irrelevant parity check.

Add ADR 0016 recording the decision and scope AGENTS.md, the porting
status tracker, and the ADR index to match: Go CLI is authoritative
only for finishing the remaining wrapped ports and for changes that
touch an already-ported command's established output/flags/behavior.
@Coly010
Coly010 requested a review from a team as a code owner August 11, 2026 13:08
@Coly010 Coly010 self-assigned this Aug 11, 2026
@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase/cli/supabase@8d2d3ac3e77e175e40caaa3f87a77013e76229df

Preview package for commit 8d2d3ac.

@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: 58b507ac60

ℹ️ 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 apps/cli/AGENTS.md Outdated
Comment thread apps/cli/AGENTS.md Outdated
Comment thread docs/adr/0016-legacy-port-completion-and-go-cli-authority-scope.md Outdated
Comment thread docs/adr/0016-legacy-port-completion-and-go-cli-authority-scope.md Outdated
Fixes from PR #6153 review (pullrequestreview-4906607511):
- Maintaining a still-wrapped command's own command/flag definition
  is in scope for Go authority too, not just replacing the wrapper —
  those definitions gate which invocations reach the Go binary.
- Phase 0 wrapping only works for commands the Go CLI already
  implements; a genuinely TS-only addition has nothing to proxy to
  and skips Phase 0 entirely.
- The parity surface now explicitly includes database and
  Docker/subprocess side effects and full telemetry semantics (event
  firing, not just payload shape), matching what SIDE_EFFECTS.md and
  the Telemetry Parity section already establish.
- Stopped overstating CI's testParity/e2e coverage as a blanket
  safety net for misclassified changes — it's real but deliberately
  partial (e.g. db pull/lint --local skip testParity today).

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

ℹ️ 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 apps/cli/AGENTS.md
Comment thread apps/cli/AGENTS.md
@Coly010
Coly010 added this pull request to the merge queue Aug 11, 2026
Merged via the queue into develop with commit 6dc628a Aug 11, 2026
56 checks passed
@Coly010
Coly010 deleted the chore/legacy-drop-go-authority branch August 11, 2026 15:03
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.

2 participants