Repository navigation
Conversation
There was a problem hiding this comment.
🤖 AI Review
CLI reference prose guidance: snapshot supabase/supabase@08388ee supplied to reviewers (advisory, not a style pass).
The PR adds the experimental warehouse inspect capacity command. Both independent reviews were available. I confirmed that the response schema advertises 12 workload metrics outside the documented capacity selection, the timestamp help omits required components, and the tests miss terminal output and wire-format preservation. The three help-style findings are advisory. The generated timestamp schemas follow the existing generator policy, which deliberately drops date-time patterns. No warehouse overlay drift was found. The CLI suite was not run because workspace dependencies were absent.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| 🟡 MINOR | packages/api/scripts/openapi-overrides.json:3057 |
api-contract |
codex | The capacity response schema advertises 12 workload metrics that callers cannot select on the capacity endpoint. |
| 🟡 MINOR | apps/cli/src/commands/api/generated.ts:223 |
cli-help |
codex | The --from and --to help omits the seconds and time zone required by the documented API format. |
| 🟡 MINOR | apps/cli/src/commands/api/api-commands.integration.test.ts:548 |
test-coverage |
claude | The capacity command has no terminal text test covering both series, their dimension labels, the unit, availability, and the null sample. |
| 🟡 MINOR | apps/cli/src/commands/api/api-commands.integration.test.ts:587 |
test-coverage |
codex | The piped JSON test can pass after a parse-and-reserialize regression that preserves the response values. |
| ⚪ NIT | apps/cli/src/commands/api/generated.ts:201 |
docs-style |
codex | The capacity help puts time selection, response fields, metric interpretation, and request limits in one paragraph. |
| ⚪ NIT | apps/cli/src/commands/api/generated.ts:201 |
docs-style |
codex | The capacity help leaves flag references, response fields, and accepted values unmarked in the prose. |
| ⚪ NIT | apps/cli/src/commands/api/generated.ts:232 |
docs-style |
codex | The interval help omits the thousands separator in the point limit. |
Refuted findings (kept for transparency, not posted as review comments)
packages/api/src/generated/contracts.ts:14325(schema-validation): The generated Effect input should enforce the OpenAPI timestamp patterns forfromandtobefore sending a request.
Refuted: The schema difference follows the existing compatibility policy. packages/api/scripts/generate.ts:328–333 explicitly removesdate-timepatterns because Management API timestamps can use forms those patterns reject. The same branch exists in the trusted checkout, and packages/api/scripts/generate.unit.test.ts:99–117 verifies that even offset-tolerant patterns are dropped. The siblingquery-statsinput follows the same policy.
Stats
Claude findings: 1 · Codex findings: 7 · Confirmed: 7 · 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.
0815bfa to
1233841
Compare
1233841 to
c4f362e
Compare
Add the experimental
supabase warehouse inspect capacitycommand, stacked on #7640.Generate the command from the public capacity API contract, with
--from/--to,--attributes, and--interval. Keep metric selection defaults and range validation server-owned.Reuse the shared text, JSON, and YAML output contract, preserving units, dimensions, null values, and availability. JSON/YAML retain the complete response.
No new generated-command runtime or generator logic is needed.
Closes PIPE-1463.