Skip to content

docs(skills): fix Vercel-only condition-type categorization in rules.md - #272

Merged
gfargo merged 1 commit into
mainfrom
fix/rules-md-vercel-only-condition-types
Aug 24, 2026
Merged

docs(skills): fix Vercel-only condition-type categorization in rules.md#272
gfargo merged 1 commit into
mainfrom
fix/rules-md-vercel-only-condition-types

Conversation

@gfargo

@gfargo gfargo commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • rules.md's legacy-shape condition-type table listed geo_continent, geo_country_region, and protocol alongside genuinely portable fields, and omitted target_path entirely.
  • Verified against the live translator (mapVercelTypeToUnified/mapUnifiedFieldToCloudflare, not just the old table): none of these 4 have a working mapping out of the legacy shape — same situation as the 5 fields already called out as "Vercel-only." Moved all 9 into that callout and clarified what actually happens when a rule using one of them gets migrated.
  • The doc's underlying premise (comparing it against FieldType in src/lib/types/common.ts) was a category error — rules.md correctly documents the legacy Vercel-only shape's own vocabulary (VercelRuleType), not the unified shape's FieldType. SKILL.md already gets that split right; only rules.md's internal "which of these are portable" claim was wrong.

Related

While verifying this against the live translator, found two real (separately filed, not fixed here — out of scope for a docs PR) Cloudflare translator bugs:

Test plan

The legacy-shape condition-type table listed geo_continent, geo_country_region,
and protocol alongside genuinely portable fields, and omitted target_path
entirely. Verified against the live translator (mapVercelTypeToUnified /
mapUnifiedFieldToCloudflare): none of these 4 have a working mapping out of
the legacy shape, same as the 5 already called out as Vercel-only. Moved all
9 into that callout and clarified what actually happens on migration.
@gfargo
gfargo merged commit 898e266 into main Aug 24, 2026
2 checks passed
@gfargo
gfargo deleted the fix/rules-md-vercel-only-condition-types branch August 24, 2026 17:38
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 3.15.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant