Skip to content

fix: single-origin bench payload guard + sitemap lists only servable product URLs - #2274

Merged
Flotapponnier merged 1 commit into
mainfrom
hotfix/single-origin-payload-and-sitemap
Sep 8, 2026
Merged

fix: single-origin bench payload guard + sitemap lists only servable product URLs#2274
Flotapponnier merged 1 commit into
mainfrom
hotfix/single-origin-payload-and-sitemap

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Hotfix against main. Two leaks between the worker's checkout (dev) and this build.

1. Region data in the page payload

/benchmarks/keyed-rpc-robinhood on prod declares no region dimension and pins aggregate_filters.region: sgp, yet its RSC payload carried the full us-east series, per-region p50s and cellRanks["all|us-east"], because the blob is computed from dev's two-region spec and the whole object was passed to client components. Nothing rendered it; view-source showed it.

New guard in page.tsx: when a build pins one region and declares no region tabs, extras.regions, extras.seriesByRegion24h and cellRanks are reduced to the pinned region (cells keyed all/empty are kept). Benches that declare region tabs are untouched.

2. Sitemap smoke blocking prod deploys

The prod sitemap listed /products/serialized (declared on dev only), the page 404s on main, the smoke failed, and the auto-rollback step did not roll anything back (vercel rollback --yes without a target only reports status; the new build stayed live while the job went red). This will recur for any provider added on dev before promotion.

sitemap-builder.ts now filters provider URLs to slugs declared in this build's specs plus registry parent slugs.

Note on CI: the rollback step needs a target (capture the previous prod deployment before vercel --prod and vercel rollback <that>), otherwise the smoke gate is a red X with no effect. Not changed here; flagged.

tsc and eslint clean on both files.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CpArutAtXuBb1BVNUDXoYA

…st only servable product URLs in the sitemap

Two leaks between the worker's checkout (dev) and this build (main).

1. A bench pinned to one region with no region dimension declared
   still shipped every region the worker computed inside the page
   payload (extras.regions, seriesByRegion24h, cellRanks), readable in
   view-source though nothing rendered it. The guard keeps the pinned
   region's cells only. Benches that declare region tabs are untouched.

2. The sitemap listed /products/<slug> for every provider in the blob,
   including providers only declared on the worker's branch; the page
   404s on this build and the deploy's sitemap smoke blocks the release
   (2026-09-08: /products/serialized). Provider URLs are now filtered to
   slugs declared in this build's specs, plus registry parents.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CpArutAtXuBb1BVNUDXoYA
@Flotapponnier
Flotapponnier merged commit d765ee8 into main Sep 8, 2026
@Flotapponnier
Flotapponnier deleted the hotfix/single-origin-payload-and-sitemap branch September 8, 2026 09:52
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