## Problem
The `ask-the-docs` feature-flags reference describes the docs
experiments as they worked before the IA nav (`docs-ia-mvp-v1`) changes,
so agents give wrong answers about how to preview the new nav and why a
reader sees a variant:
- It says a `?<flag>=<variant>` URL override applies only to the page in
the URL. Since #53381, the IA nav hook saves the override in
`sessionStorage`, so it lasts until the tab closes.
- It doesn't mention the layout switch from #53688. The switch saves the
reader's pick in `localStorage`, the pick wins over the flag unless the
flag is off, and picking a layout clears the saved override.
- It says the server always renders `control`. Since #52735, `proxy.ts`
server-renders a variant that the URL forces on the docs home and guide
pages.
- Its hook rules say every variant hook caches in `localStorage`, but
the getting-started hook hides its content until the flags load instead.
The A/B test for the new nav launched on 2026-12-01, so these questions
come up now.
Resolves [DOCS-1832](https://linear.app/supabase/issue/DOCS-1832).
## Solution
In `.agents/skills/ask-the-docs/reference/feature-flags.md`:
- Says the override lasts one page by default, that the IA nav keeps it
until the tab closes, and that `?docs-ia-mvp-v1=control` goes back
- Describes both pre-flag approaches in the hook rules: cache like the
IA nav, or hide until the flags load like getting-started
- Updates the exposure rule and gotcha for saved overrides and layout
choices
- Lists the order the IA nav head script checks, and adds gotchas for
the proxy rewrite and the layout switch
- Adds a `Verified at` line, after checking every line against
`c1330ca99f`
In `.agents/skills/ask-the-docs/reference/app-map.md`, the "Layout v2"
paragraph now mentions how long the override lasts and the layout
switch. Its `Verified at` line stays as is, because only that paragraph
was checked.
These were checked on supabase.com: the override survives links and
reloads and ends with the tab, `?docs-ia-mvp-v1=control` goes back, the
layout switch clears the override and saves its pick, the
getting-started override reads only the URL, and a forced guide page has
the new nav in its server HTML.
## Review category (docs PRs only)
- [ ] Critical: needs a review as soon as possible
- [ ] Urgent: the feature ships soon, or it's blocking something else
- [ ] Moderate: good to have soon, not urgent
- [x] Low: get to it when you can
## Review instructions
1. Read the diff of `feature-flags.md` and the "Layout v2" paragraph in
`app-map.md`
2. Compare the override and layout claims with
`apps/docs/features/IaNav/useIaNavVariant.ts`, `layoutChoice.ts`, and
`IA_NAV_CACHE_SCRIPT` in `constants.ts`
3. Compare the server-render gotcha with `forcedVariantRewrite` in
`apps/docs/proxy.ts`
4. Compare the hook rules with
`apps/docs/features/getting-started/useGettingStartedVariant.ts`
## Checklist
Check all before review:
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
## Problem
PMs want to ship docs changes behind feature flags and A/B test them.
Only code comments and old PR descriptions (#52049, #52191) document
how.
## Solution
- `apps/docs/CONTRIBUTING.md` (with a pointer from the root file): says
that docs supports flags and A/B tests, and whom to contact. The
internal how-to is in Notion.
- `ask-the-docs`: new `reference/feature-flags.md` covers the static and
PostHog flag systems, the variant hook pattern, and gotchas.
- `pm-the-docs`: sends flag requests to Docs Engineering.
People outside Supabase also use these skills, so the flag content fails
gracefully for them.
## Test plan
- [x] Prettier passes on the changed files.
- [x] Every cited code path exists on master.
- [ ] The root `CONTRIBUTING.md` anchor link resolves after the merge.
---------
Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>