Skip to content

test(cli): codify local stack config parity - #6079

Open
jgoux wants to merge 11 commits into
developfrom
agent/local-stack-config-parity-ledger
Open

test(cli): codify local stack config parity#6079
jgoux wants to merge 11 commits into
developfrom
agent/local-stack-config-parity-ledger

Conversation

@jgoux

@jgoux jgoux commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a typed local-stack configuration parity ledger that classifies every schema-backed project configuration field by current support and required handling. Nested keyof records make schema additions require an explicit parity decision, including fixed shapes inside dynamic function, bucket, and email-template maps.

Records when raw source presence is required so the upcoming launch Adapter can distinguish omitted defaults from explicit user intent. The ledger deliberately marks only behavior already consumed by the next local-runtime flows as mapped.

@jgoux
jgoux marked this pull request as ready for review August 5, 2026 13:55
@jgoux
jgoux requested a review from a team as a code owner August 5, 2026 13:55
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Supabase CLI preview

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

Preview package for commit de9db54.

@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: fc38a1202e

ℹ️ 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/src/next/config/local-stack-config-parity.ts
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated

@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: 3e70eb6033

ℹ️ 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/src/next/config/local-stack-config-parity.ts
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated

@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: 73392f3c0b

ℹ️ 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/src/next/config/local-stack-config-parity.ts
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated

@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: e6d8e8b202

ℹ️ 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/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated

@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: 1fab5d22bf

ℹ️ 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/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts

@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: 4d3f3884d7

ℹ️ 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/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated

@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: 94698466f7

ℹ️ 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/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated

@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: bf2289a528

ℹ️ 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/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated

@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: 70d97dadd6

ℹ️ 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/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated
Comment thread apps/cli/src/next/config/local-stack-config-parity.ts Outdated

@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: de9db54768

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

} satisfies Record<keyof ProjectConfig["auth"]["hook"]["send_email"], Node>;

const authRateLimitParity = {
email_sent: legacyIgnoredLocalRuntimeField,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Treat SMTP email rate limits as runtime config

When auth.email.smtp.enabled = true, auth.rate_limit.email_sent is not ignored: the legacy start path appends GOTRUE_RATE_LIMIT_EMAIL_SENT from that config value (apps/cli-go/internal/start/start.go:642-645), and the TS legacy port mirrors it in gotrue.service.ts. Classifying this leaf as not-applicable means the parity ledger will teach the launch resolver to drop a real SMTP rate-limit override instead of blocking or mapping it; the fresh evidence is the SMTP-enabled branch that overrides the later hardcoded default.

AGENTS.md reference: apps/cli/AGENTS.md:L483-L485

Useful? React with 👍 / 👎.

Comment on lines +374 to +378
decision: unsupportedRuntimeField,
children: {
enabled: unsupportedRuntimeField,
subject: unsupportedRuntimeField,
content_path: unsupportedRuntimeField,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate disabled email notifications on enablement

When an [auth.email.notification.<name>] table has enabled = false, legacy start skips that notification before mounting templates or emitting GOTRUE_MAILER_NOTIFICATIONS_*/subject/template env (apps/cli-go/internal/start/start.go:689-693, mirrored by the TS port's enabled filter). Marking the wildcard branch and all children as raw-document will make a future parity resolver block an explicit disabled notification stub even though it cannot affect local Auth; this subtree should use enabled-subtree semantics so only enabled notifications block.

AGENTS.md reference: apps/cli/AGENTS.md:L483-L485

Useful? React with 👍 / 👎.

service_role_key: unsupportedGlobalSecretRuntimeField,
rate_limit: authRateLimitParity,
captcha: {
enabled: unsupportedRuntimeField,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate disabled CAPTCHA settings on enablement

For a present [auth.captcha] table with enabled = false, legacy validation does not require provider/secret and local start only emits GOTRUE_SECURITY_CAPTCHA_ENABLED=false (the provider and secret cannot be used while CAPTCHA is disabled). Treating the enabled leaf as raw-document means an explicit disabled CAPTCHA stub is reported as an unsupported runtime override even though it is behaviorally equivalent to no CAPTCHA config; gate this subtree on CAPTCHA actually being enabled.

AGENTS.md reference: apps/cli/AGENTS.md:L483-L485

Useful? React with 👍 / 👎.

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