Repository navigation
docs agent readiness: Vary on Markdown negotiation, /developers and company redirects, JSON-LD descriptions, allow /retrieve - #1058
Conversation
…nks, /pricing /about /contact redirects, Markdown negotiation) Re-applied on current main from the 2026-11-11 patch; not yet re-verified. Co-Authored-By: Warp <agent@warp.dev>
|
This PR was generated with Warp. Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The built-config test in scripts/markdown-negotiation.test.mjs only runs when .vercel/output/config.json exists, so the step runs after npm run build. Co-Authored-By: Warp <agent@warp.dev>
Both PRs used to replace the same postbuild value, so merging the second one would conflict and could silently drop a route writer. Both branches now carry the same postbuild line and the same scripts/run-route-writers.mjs, which runs each writer present in the checkout. Co-Authored-By: Warp <agent@warp.dev>
Both PRs used to replace the same postbuild value, so merging the second one would conflict and could silently drop a route writer. Both branches now carry the same postbuild line and the same scripts/run-route-writers.mjs, which runs each writer present in the checkout. Co-Authored-By: Warp <agent@warp.dev>
|
Review follow-up (route-writer composition): this PR and #1058 both used to replace the same Verified locally by merging main + #989 + #1058 (no conflicts) and running Posted by a Warp agent |
|
Verification completed for 7de4396 (3 ahead / 0 behind main). This remains a draft; no human reviewer was requested.
Posted by a Warp agent |
… workflow infrastructure - The Accept condition (routes and vercel.json rewrites) now matches text/markdown only with no q or q > 0, so `text/markdown;q=0` and `*/*` get HTML. Tests cover q=0, wildcard-only, and positive-q headers, and pin vercel.json to the same value. - llms.txt: "setting up a software factory that routes work through triage, planning, implementation, and review" instead of "a team of agents". Co-Authored-By: Warp <agent@warp.dev>
|
Review-fix verification passed at 82ef712 (4 ahead / 0 behind main). Vercel router acceptance matrix: on both Exact probe: The preview llms.txt now says: “Warp Factories: setting up a software factory that routes work through triage, planning, implementation, and review.” CI: 10 successful / 2 skipped / 0 failing / 0 pending, including the run retriggered by the ready-for-review transition. Build/link/audit, editorial, technical references, all CodeQL analyses/aggregate, Vercel/Preview Comments, and CLA pass. Agent docs review and Request engineering review skip. Repeated The PR body is refreshed. I did not change readiness state or request reviewers. Posted by a Warp agent |
Main now negotiates Markdown in routing middleware, so this branch drops its own vercel.json rewrites and route writer and instead adds Vary: Accept to main's middleware for eligible doc paths. Folds in the /developers redirect (from #1057, without /auth.md: ora now treats docs oauth-support as not applicable) and the Organization/WebSite descriptions (from #883). Keeps the /pricing, /about, /contact 308s to www and the footer company links.
llms.txt tells agents to prefer GET /retrieve?q=..., but robots.txt's Disallow: /*?*q=* matched it for every user agent, including robots-honouring user fetchers such as Claude-User. Allow: /retrieve is the longer rule, so it wins under RFC 9309; page query strings stay disallowed. /retrieve also sends X-Robots-Tag: noindex so search engines don't index its JSON.
Review follow-up: Allow: /retrieve was a prefix rule that would also exempt any future /retrieve... path with a q parameter. '?' is literal in robots.txt, so Allow: /retrieve? exempts only queries to the endpoint itself.
|
Gate summary (2026-11-25, 2599a95): all checks are green, including CodeQL. The earlier CodeQL failures were GitHub results-upload errors. An independent review raised one non-blocking nit (the robots exception should cover the endpoint only), fixed in 2599a95. The preview ora audit shows all five targeted checks passing with no regressions; see the table in the description. Ready for an owner's review: @dannyneira for the middleware and /retrieve change, @rachaelrenk for robots.txt. Posted by a Warp agent |

Summary
Re-cut on current
main(Nov 25). Main now negotiates Markdown in routing middleware, so this PR no longer adds its own rewrites. It bundles five small, independently verified changes that let agents find what they look for on docs.warp.dev:Vary: Accepton Markdown negotiation.src/lib/markdown-negotiation.jsaddsVary: Acceptto both the rewrite-to-.mdresponse and the pass-through HTML response on eligible doc paths (not assets,.md,llms*.txtor/retrieve). Production today serves either variant at the same URL with noVary, so a shared cache can hand one client the other's variant./developersand/developer→/factories/api-and-sdk/(308). They 404 today./developers/cliis unchanged. This replaces AR-20261118-1/-2: /developers redirect and /auth.md for agents #1057, minus its/auth.md: ora now treats docsoauth-supportas not applicable, and that file would make it count again (modelled −0.67)./pricing,/about,/contact→ the www.warp.dev pages (308), plus About / Pricing / Contact / Privacy links in the docs footer. All three paths 404 on docs today.go.warp.dev/join-previewsignup link is removed fromsameAs. This replaces EXP-4: complete docs Organization and WebSite JSON-LD #883.Allow: /retrieve?llms.txt tells agents to preferGET /retrieve?q=…, butDisallow: /*?*q=*blocks it for every user agent, including robots-honouring fetchers such as Claude-User. The longer Allow rule wins under RFC 9309, and page query strings stay disallowed./retrievealso sendsX-Robots-Tag: noindex, so its JSON stays out of search indexes.Prediction (what this should move)
Verification
Preview ora vs production, check by check (
npx @ora-ai/ax@0.5 audit, scans 649379 vs 647963):No check regressed. The preview's canonical score is lower for host-only reasons: noindex and brand/registry checks.
Preview curl results:
Accept: text/markdownandAccept: text/htmlon/,/quickstart/and/agents/both returnvary: Accept, so Vercel forwards the middleware header./developers/clistill goes to the Oz CLI page./retrieve?q=helloreturns 200 JSON withX-Robots-Tag: noindex.Tests:
scripts/agent-discovery.test.mjs(redirects, plus a robots evaluator that fails on main's robots.txt),scripts/markdown-negotiation.test.mjs(Vary on eligible paths only) andscripts/validate-homepage-json-ld.mjs. Node tests pass 14/14 locally, and build, link-check and editorial CI pass.Review: an independent review checked the final tree; its one non-blocking robots nit (prefix vs endpoint) is fixed in 2599a95.
Experiment ids: AR-20261125-1 (bundle), AR-20261125-2 (robots). Supersedes AR-20261111-2, AR-20261118-1 and EXP-4.