Add agent-readable 404s, markdown Accept, and llms.txt - #17
Merged
Conversation
Serve Markdown for Accept: text/markdown, recover from real 404s, and publish llms.txt plus contact and privacy pages from existing editorial channels. Co-authored-by: ben <0thernet@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Keep caches from mixing HTML and Markdown representations after acceptmarkdown.com negotiation. Co-authored-by: ben <0thernet@users.noreply.github.com>
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.
Official Is Agentic report before this change:
This PR does not claim a new live score. Reports cache, and only a post-deploy rescan can change the published number.
Findings from the completed report
Essential
markdown-negotiation-vary/ Markdown content negotiation (acceptmarkdown.com) — failedagent-friendly-404/ Agent-friendly 404s — partialRecommended, matching existing capabilities
agent-instruction/ Agent instruction / when-to-use — failedtrust-anchors/ Trust anchor pages — partialjson-ld/ JSON-LD structured data — partialRecommended leftovers (no product surface invented)
brand-search-accuracy/ Brand name discoverability — failedpage-token-budget/ Page token budget — failedorg-schema-completeness/ Organization schema completeness — partialChanges
Acceptper acceptmarkdown.com and negotiate in Next.js 16proxy.ts. Markdown-preferring GETs and.mdsiblings receiveContent-Type: text/markdown; charset=utf-8andVary: Accept. BrowserAcceptstill gets HTML. Clients that reject both HTML and markdown get 406. Next.js RSC navigations and YAML/research files are left alone./llms.txtwith an H1, summary, and a "When to use this" section that names the jobs Stripedex is for and the Stripe product/API/MCP jobs it is not./contactand/privacyfrom existing GitHub, security-reporting, Hraness, and about-page analytics copy. No invented inbox, address, or API.OrganizationJSON-LD node withname,description,url, andsameAs. Do not inventaddressorcontactPoint.Verification
bun run checkpassed (typecheck, lint, 149 tests). Production build succeeded, includingProxy (Middleware).Live production curls that confirmed the report, before this branch:
Local
next startcurls against this branch:Browser
Acceptstill returns HTML. YAML downloads staytext/yaml.Local HTML responses still show Next's RSC
Varylist instead ofAccept. Markdown and 406 responses includeAccept. That is enough for the failed essential check, which probedAccept: text/markdownand got HTML.Leftovers that need a product decision
address/contactPoint: there is no public postal address or dedicated inbox in this repository. GitHub issues and private vulnerability reporting remain the real channels.