Fix RolePatch SEO and agent-readable GEO coverage - #31
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
/api/ai.mdroutes before OpenNextWhy
The live GEO audit could read only 3 of 20 sitemap routes, and only 1 of 3 catalog surfaces had a valid Markdown target. The live SEO audit also found missing canonicals on
/jobsand/evidence, no H1 on/evidence, and a skipped FAQ heading level.Impact
Every cataloged public page now has a same-origin Markdown target, every catalog URL comes from the same list as the sitemap, and private/user-specific application routes remain outside the public corpus. The rendered SEO corrections do not redesign any page.
Root cause
RolePatch's generated edge payload only defined homepage Markdown and left two catalog
mdfields empty. The sitemap and catalog were maintained separately, so the public jobs, FAQ, and changelog routes could drift out of discovery.Checks
pnpm exec vitest run src/__tests__/agent-edge.test.ts src/__tests__/achievement-evidence-bank.test.tsx— 8 passedpnpm typecheckpnpm cf:build— Next, deploy-route verification, OpenNext, Astro, and overlay passedwrangler deploy --dry-run— final outer Worker bundle contains the curated handlergit diff --cached --checkCloses #30
No production deployment was performed.