Skip to content

chore(cli): remove per-command SIDE_EFFECTS.md files - #7727

Merged
jgoux merged 3 commits into
developfrom
chore/remove-side-effects-docs
Nov 19, 2026
Merged

jgoux merged 3 commits into
developfrom
chore/remove-side-effects-docs

Conversation

@jgoux

@jgoux jgoux commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Removes the per-command SIDE_EFFECTS.md files and apps/cli/src/SIDE_EFFECTS_TEMPLATE.md. They duplicated what the handlers, tests and user docs already state, and they drifted out of date.

  • Rationale that existed only in those files now lives next to the code as short comments, or in the existing guides (apps/cli/docs/compute-commands.md, stack-commands.md, command-target.md).
  • apps/cli/AGENTS.md names tests, the error-tag fixture, the telemetry event catalog and shipped behavior as the source of truth.
  • The automated review prompts judge breaking changes against what the stable release ships and what the tests at the merge base assert, instead of the old SIDE_EFFECTS.md.
  • ADRs are left unchanged as historical records.

The files were the parity checklist for the dual Go/TypeScript build. The
port is finished and nothing reads them; tests, shipped behavior and the
generated references now carry the contract. Rationale that existed only
there moves into code comments, compute-commands.md and stack-commands.md.
@jgoux
jgoux requested a review from a team as a code owner November 19, 2026 20:30
@jgoux
jgoux requested a review from avallete November 19, 2026 20:30
@jgoux jgoux self-assigned this Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

CLI benchmark (Lightweight Commands): no changes found

Commit 25fbf30 against develop at 04881c9 · 10 runs each · report only, never blocks merging

Command Workload Before After Change
supabase --version version 232 ms 233 ms no real change
supabase --help help 319 ms 316 ms no real change
supabase init init 287 ms 277 ms no real change
supabase migration new bench migration-new 309 ms 286 ms no real change (-7%, within normal variation)
supabase config convert config-convert 295 ms 298 ms no real change
supabase config validate config-validate 268 ms 278 ms no real change
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 300 ms 259 ms no real change (-14%, within normal variation)
supabase projects list projects-list 256 ms 269 ms no real change (+5%, within normal variation)
supabase functions list --project-ref replayfixtureprojref functions-list 296 ms 295 ms no real change

API calls: unchanged for all 9 commands.

Binary size: 135.3 MB, unchanged.

Details: timing ranges, API calls per command, slowest phases

Timing ranges

Command Workload Before range After range Change Verdict
supabase --version version 193-587 ms 211-330 ms +1 ms (+0%) within noise
supabase --help help 279-450 ms 267-455 ms -2 ms (-1%) within noise
supabase init init 261-323 ms 245-325 ms -10 ms (-3%) within noise
supabase migration new bench migration-new 213-471 ms 229-337 ms -23 ms (-7%) within noise
supabase config convert config-convert 261-317 ms 248-354 ms +3 ms (+1%) within noise
supabase config validate config-validate 241-303 ms 234-318 ms +10 ms (+4%) within noise
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 225-492 ms 239-337 ms -41 ms (-14%) within noise
supabase projects list projects-list 244-312 ms 233-370 ms +13 ms (+5%) within noise
supabase functions list --project-ref replayfixtureprojref functions-list 238-418 ms 257-329 ms -1 ms (0%) within noise

API calls per command

Command Workload Before After Endpoint changes
supabase --version version 0 0
supabase --help help 0 0
supabase init init 0 0
supabase migration new bench migration-new 0 0
supabase config convert config-convert 0 0
supabase config validate config-validate 0 0
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 2 2
supabase projects list projects-list 1 1
supabase functions list --project-ref replayfixtureprojref functions-list 2 2

Slowest phases

No command moved beyond noise, so there are no phase deltas.

Workflow run

Comment /bench to run the lightweight benchmark (this comment) again on the latest commit, or /bench full to also run the integration-heavy benchmark, which posts in its own comment.

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

🤖 AI Review

CLI reference prose guidance: snapshot supabase/supabase@90a7bb0 supplied to reviewers (advisory, not a style pass).

The revised review prompts can suppress a real compatibility regression when merge-base tests disagree with stable behavior. The contributor guide makes telemetry artifact updates unconditional, and the Compute and Stack guides misstate two details. The duplicate Stack outage finding was refuted because start reuses fresh pins without fetching their releases. Both independent reviews were available. The diff changes no runtime behavior and contains no CLI reference prose in scope for the supplied style guidance.

Findings

Severity Location Category Sources Claim
🟠 MAJOR .github/ai-review/adjudicate-prompt.md:99 review-correctness codex The revised prompts can suppress a real break in released CLI behavior when a merge-base test asserts a different behavior.
🟡 MINOR apps/cli/AGENTS.md:61 contributor-guidance codex The compatibility instructions require updating the error-tag fixture and telemetry event catalog for every intentional CLI behavior change.
⚪ NIT apps/cli/docs/compute-commands.md:90 documentation claude The Compute guide says the error for a fully excluded source names the patterns. The error identifies the exclude setting and its suggestion gives the config path.
⚪ NIT apps/cli/docs/stack-commands.md:439 documentation codex The Stack guide says missing ignore entries are added but omits that a frozen start skips the .gitignore update.
Refuted findings (kept for transparency, not posted as review comments)
  • apps/cli/docs/stack-commands.md:442 (documentation): The Stack guide omits a start outage path that retains a reusable lock entry and warns with kept <version>. The same path is claimed to handle a failed hosted-version read during start.
    Refuted: A fresh entry bypasses release resolution, so an outage cannot trigger a kept <version> warning for it during start. A stale or missing entry fails the retention guard and falls back to the bundled pin on a transient fetch failure. The stored observation used by start cannot produce a failed hosted probe.

Stats

Claude findings: 2 · Codex findings: 4 · Confirmed: 4 · Refuted: 1 · Uncertain: 0


Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: auto · Workflow run

This review runs once per PR. A maintainer can request another with a /ai-review comment.

Comment thread .github/ai-review/adjudicate-prompt.md Resolved
Comment thread apps/cli/docs/compute-commands.md Resolved
Comment thread apps/cli/AGENTS.md Resolved
Comment thread apps/cli/docs/stack-commands.md Resolved
@jgoux
jgoux added this pull request to the merge queue Nov 19, 2026
Merged via the queue into develop with commit 1c49238 Nov 19, 2026
69 checks passed
@jgoux
jgoux deleted the chore/remove-side-effects-docs branch November 19, 2026 21:22
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