opengso test <url> runs 22 checks against a live URL and turns them into a single number from
0 to 100. This page lists every check: what it looks at, why it matters to an AI agent, and what to
change when it fails.
There is no letter grade and no tier label anywhere in OpenGSO. A score is a percentage of the points that actually applied to your page, and nothing else.
Every check carries a weight, and every check is one of two kinds.
- Scored. Seven checks make the 0 to 100: AI crawlers allowed in
robots.txt, a validsitemap.xml, real content in the raw HTML, a fast first byte, nonoaitag, HTTPS with HSTS, and the HTML page still answering once the markdown layer is in place. A site that fails one of these is harder for an agent to read, today, whatever conventions it has adopted. - Suggestions. The other fifteen are conventions for AI agents:
llms.txt, JSON-LD, the markdown twin and the headers around it. The best-read sites on the web have mostly not adopted them, so not having one is not a defect and never moves the number. They are counted on their own, as "N of 15 adopted", and adopting them is what sets a site apart.
| Scored | Suggestions | Total | |
|---|---|---|---|
| A. Discoverability | 52 | 5 | 57 |
| B. Implementation | 9 | 56 | 65 |
| Total | 61 | 61 | 122 |
score = round(100 x earned / applicable)
applicable is the sum of the weights of every scored check that returned pass, partial or
fail. A suggestion is never in it. A scored check that returns n/a is dropped from it too,
never scored as a failure. That is the difference between "your site is missing HSTS" and "you are
testing against http://localhost:3000, where HSTS is not a thing". Only the first should cost
you points.
| Verdict | In the denominator | Earns |
|---|---|---|
| pass | yes | the full weight |
| partial | yes | part of the weight, named in the row |
| fail | yes | nothing |
| suggestion | no | nothing; a scored-style fix is still written for it |
| locked | no | nothing, and not because of anything on this page |
| n/a | no | nothing, and there is nothing to fix |
A suggestion is not a separate status: it is a pass, partial or fail on a check that is not scored. It still gets the full treatment, the specific reason, the observed value and the fix, so the report is as useful on the fifteen as on the seven. It just carries no price, because adopting it moves no score.
Thirteen checks are graded rather than binary, because the thing they measure has a middle. Serving
Vary: Accept on the markdown response and not on the HTML is not the same as serving it nowhere,
and a report that scores those two identically is telling you something false. Every graded check
says below what a partial is worth and why.
A partial never fails a build, and neither does a suggestion. opengso test exits 1 only when
a scored check has status fail. --strict widens that to any check that fails, suggestions
included, for a project that has adopted the markdown layer and wants CI to notice the day it stops
being served. Exit 2 is reserved for a command line that could not be run as written: an unknown
option, a missing or malformed value, no URL.
If the markdown twin URL does not answer, the site has no markdown layer, and twelve of the category B checks have nothing to look at. You cannot inspect the Content-Type of a document that does not exist. Those twelve return locked, naming B1 as the check that unlocks them. The whole verdict on the markdown layer is carried by B1, the heaviest check in the table, as one suggestion.
Every check the cascade can lock is a suggestion, so none of this touches the 0 to 100. What it changes is the report: one line about the missing file instead of thirteen findings that all say the same thing. A twin that exists but is served wrong is a different situation, and every one of its checks is still measured in full detail.
Locked is deliberately not spelled n/a. "Not applicable" is what A8 is on localhost: nothing to fix, now or ever. A locked check is the opposite of that, so the report prints all twelve as one block that says what unlocks them, rather than as twelve separate shrugs.
Locked (12)
-----------
12 more suggestions apply once B1 passes
Serve a markdown twin at the .md URL and every one of these becomes measurable.
B2 5 B3 5 B4 3 B5 3 B6 3 B7 4 B8 3 B9 6 B10 6 B11 2 B12 2 B14 4 (check weights)
The ids carry their check weights, which total 46. They are weights and not score points, because a suggestion has no price.
The split is set so that the score means something to someone reading it:
- A well-built site scores 100 without installing anything. A site with
robots.txtopen to AI crawlers, a real sitemap, content server-rendered into the HTML, a fast first byte, no opt-out tag, and HTTPS with HSTS has done everything an agent needs today. The leading AI labs' own sites look like that, and they have not adoptedllms.txt, JSON-LD or a markdown layer either, so those are suggestions rather than points they are missing. - Only a scored failure moves the number below 100. A missing
llms.txtor twin is shown, with its fix, as a suggestion. A blocked crawler or a page that only renders with JavaScript costs points, because that is what actually stops an agent. - B1 is the only double-digit check. Serving the twin is the thing this toolkit exists for, so it is the heaviest suggestion and the first one the report tells you to adopt. Everything else is single digits.
All three properties are pinned by tests, so a weight edit that breaks the calibration fails the suite.
These checks apply to any site, whether or not it uses OpenGSO. You can pass all of category A without installing anything.
Scored, weight 9.
Fetches /robots.txt and reads it the way a crawler would: the bot's own User-agent group, with
the wildcard group as the fallback, then the longest Allow or Disallow rule matching the path
under test (an Allow wins a tie, and * and a trailing $ work as wildcards). Fails when that
rule disallows a known AI bot from the URL under test, so Disallow: /docs/ counts when testing
/docs/page.
An agent that is disallowed here will usually not fetch your page at all, so this check gates everything below it. If you deliberately block a crawler, that is a legitimate choice and this check will report it as a failure anyway, because it cannot tell your intent from a mistake. Read the reason line: it names the exact rule and the exact bot.
Partial: 6. Every assistant and search agent is allowed and only bulk training crawlers are disallowed. That reads as a deliberate opt-out rather than a mistake, so it costs 3 points instead of 9, and the reason line says so.
Fix: opengso generate writes a robots.txt that allows every AI bot except the ones you list
in bots.blocked. Or hand-write one. A missing robots.txt also fails, because agents cannot tell
"no file" from "no answer", and so does an HTML page answering at /robots.txt (a catch-all route),
because a crawler finds no rules in it.
Suggestion, weight 3.
Fetches /llms.txt and checks that it is a real markdown document with an # H1 title and at least
one link, not an HTML 404 page served with a 200.
llms.txt is the table of contents an agent reads first to decide what else to fetch. Without it,
an agent has to guess your site structure from links.
It is a suggestion rather than scored, and weighted lightly, because it is a young convention with
uneven crawler support: an agent that cannot find your llms.txt still has sitemap.xml and the
links on the page. Serving the twins matters more, which is why B1 is worth three times as much.
Partial: 1 when the file is served but is empty or lists no links, 2 when it lists links
but has no # Title heading.
Fix: opengso generate writes one from the same crawl that produces the twins.
Scored, weight 9.
Fetches /sitemap.xml and parses it as a real <urlset> with at least one <loc>. A
<sitemapindex> is followed: the first 10 sitemaps it lists are fetched at their paths on the site
under test, and the page is looked for in those.
Partial: 3 when something answers at that URL but has no <urlset> root or no <loc> entries
(for an index, when none of its sitemaps answers with a <urlset>), 6 when it is a valid
sitemap that does not list the page under test. An index listing more than 10 sitemaps, none of the
first 10 listing the page, passes with that limit stated, because the rest were not read.
Fix: opengso generate writes one. If your framework already generates a sitemap, keep it:
OpenGSO never overwrites a file it did not write.
Suggestion, weight 2.
Looks for <script type="application/ld+json"> in the HTML and parses it. A block that is present
but does not parse earns only half, because it looks like structured data and delivers none: the
point it keeps is for having put the block there at all.
Partial: 1 when a block is present but does not parse, or parses and declares no @type.
Fix: add a JSON-LD block describing the page. OpenGSO does not generate one for you, because the right schema type depends entirely on what the page is.
Scored, weight 9.
Parses the raw HTML response with jsdom, with scripts disabled, and measures how many words of real content survive. This is the single most important check in category A, because most agents do not execute JavaScript. If your content only exists after hydration, those agents see an empty page.
Partial: ramped on how many words survive, from 15 up to the 60 a page needs to read as substantive. A heading and a paragraph in the HTML with the rest behind hydration is real, and worth something, and not the same as an empty mount element.
Fix: server-render the content, or pre-render it at build time. There is no header you can set that makes this one pass. If your site is a client-rendered SPA, OpenGSO's generate step will hit the same wall and warn you about it.
Scored, weight 8.
Measures TTFB on the HTML request. Agents fetch under a timeout, often a short one, and a slow first byte is the most common reason a page is silently skipped.
Partial: ramped. Full marks at or under 400ms, nothing at or over 1500ms, and a straight line between the two.
Fix: the usual server-side latency work. Note that the number is measured from wherever you are running the CLI, so a cold serverless start or a slow network shows up here.
Scored, weight 8.
Looks for noai, noimageai and equivalent directives in <meta name="robots"> and in the
X-Robots-Tag response header.
These are easy to inherit from a template or a CMS default and then forget. A page that carries one is asking agents to ignore it, which makes everything else you do pointless.
Fix: remove the directive, or accept the failure knowingly.
Scored, weight 9.
Checks the scheme the page is finally served over and looks for Strict-Transport-Security. An
http:// URL that redirects to https:// is judged on the HTTPS response it lands on, since that is
what an agent ends up talking to.
Partial: 6. Served over HTTPS with no Strict-Transport-Security header. The connection is
encrypted; a first visit can still be downgraded.
n/a on localhost. Testing against http://localhost:3000 returns n/a and drops the weight from
the denominator, because there is nothing to fix.
These checks probe the runtime contract from the OpenGSO spec. They are what opengso-prod
implements, and both sides import the same header constants, so the audit and the implementation
cannot disagree about a header name.
Every one of them is a suggestion except B13, which checks the HTML page still works for people
once the markdown layer is in place. If you have not installed opengso-prod or an equivalent,
expect the rest to be open. That is the honest answer, not a bug, and it costs no score.
Suggestion, weight 10.
Requests <path>.md (so /resume becomes /resume.md, and / becomes /index.md) and expects a
2xx that is not an HTML page. A single-page app or catch-all route that answers every path with its
HTML shell has no twin, so it fails here and locks the rest. Every other B check depends on this one.
Fix: run opengso generate to write the twins, then install the middleware so they are served
with the right headers.
Suggestion, weight 5.
An exact match, not a prefix match. Agents dispatch on this header, and the strictness is deliberate.
Partial: 3 for text/markdown with no charset, 2 for text/plain. Both are served and both
are readable; neither is what an agent selecting on the media type will find.
Suggestion, weight 5.
A twin that is served correctly and contains nothing is worse than no twin at all, because the agent stops looking.
Partial: ramped on the twin's word count against the live page's, from 8% up to 50%. Non-empty is the letter of the check and complete is the point of it, so a twin holding a title and nothing else earns close to nothing.
Suggestion, weight 3.
Lets an agent budget its context before it downloads the body. OpenGSO computes this at generate time, so serving it costs no work at request time.
Suggestion, weight 3.
Stops a client from re-interpreting the markdown as something else.
Suggestion, weight 3.
The twin is the same content as the HTML page. Without noindex you have published a duplicate of
every page on your site and asked search engines to index both.
Partial: 1 when the header is present but does not include noindex.
Suggestion, weight 4.
Parses Vary as a comma-separated token list and looks for Accept or * as a whole token.
Vary: Accept-Encoding does not count, and neither does any other header that merely contains
the substring.
Without this, a shared cache stores whichever format it saw first and serves it to everyone. A human gets markdown, or an agent gets HTML. It is the most damaging failure in category B and the easiest one to not notice, because it only shows up behind a CDN.
Partial: 2 when Accept is in Vary on one of the two responses and not the other. Half the
cache is keyed correctly; the reason line names which half is not.
Known limitation: the Next.js App Router appends its own values to Vary on HTML responses and
there is no supported way to prevent it. opengso test reports this as a real B7 partial on Next
HTML routes rather than pretending it passes. The markdown responses themselves carry a clean
Vary: Accept, which is the 2 points it earns.
Suggestion, weight 3.
Link: </resume.md>; rel="alternate"; type="text/markdown" on the HTML response. This is how an
agent that fetched the HTML discovers there is a better version available, without guessing at a
URL convention.
Partial: 1 when a Link header is present but carries no rel="alternate" entry of type
text/markdown, or when the twin it advertises is on another origin or is not http or https.
OpenGSO never fetches an advertised twin like that. It reports the URL and tests the twin at the
conventional address on the site's own origin instead.
Suggestion, weight 6.
Requests the original URL with Accept: text/markdown and OpenGSO's own User-Agent, which is on no
bot list, so a markdown response can only have been caused by the Accept header.
This is content negotiation as HTTP defines it, and it is the mechanism that works for agents OpenGSO has never heard of.
Suggestion, weight 6.
Requests the original URL with a GPTBot User-Agent and Accept: */*, the header most crawlers send,
so a markdown response can only have been caused by the User-Agent. When the project's
bots.markdownRouting leaves GPTBot out, the probe is the first crawler on that list instead, so a
crawler you chose not to route is never held against you.
The two probes are deliberately separated. Together they tell you which lever is working; a single combined probe would tell you only that something is.
Both B9 and B10 fail when the markdown arrives by redirect to another URL (the .md file, say)
rather than at the URL that was asked for. The twin has to be rewritten into place, so the agent
keeps citing the page. A redirect the browser request also follows, such as a trailing slash, does
not count against either.
Suggestion, weight 2.
Sends Accept: application/pdf, the same request opengso prod test makes, and expects
406 Not Acceptable rather than a cheerful 200 with the wrong type.
Suggestion, weight 2.
Expects X-AEO-Version: opengso/1.0. This is OpenGSO's own version string, naming OpenGSO's
published behaviour and never a third party's spec. See the spec.
Scored, weight 9.
Requests the page as a browser would and checks that it is still HTML, still 2xx, and still the same page.
This is the check that catches an over-eager middleware. Serving markdown to humans, or redirecting them, is a worse outcome than not installing OpenGSO at all.
Suggestion, weight 4.
Re-extracts the live HTML, hashes the result, and compares it against the X-Markdown-Source-Hash
of the served twin and the last_updated in its frontmatter. When the hashes differ, it falls back
to comparing the concrete facts (numbers, dates, prices) that appear in the live page but not in the
twin, and names them.
This is the check no other tool can run, because it requires owning both halves of the pipeline. A
markdown twin is a cache, and every cache goes stale. OpenGSO does not regenerate on a schedule or
in CI by design, so this check plus last_updated is the safety net.
The hash is taken over the extracted markdown, not the raw HTML. Hashing raw HTML would change on every framework rebuild, every hydration marker, every build id, and the check would cry wolf until people stopped reading it.
Generate writes every link in a twin against publicOrigin, so a page tested somewhere else, a dev
server or a local preview of the build, carries a different address in each link. Before calling that
drift, the check reads the page again at the address the twin names: the url in its frontmatter,
or the same path on the project's publicOrigin.
Partial: 2 when the hash differs but every number, date and price on the live page still appears in the twin. A typo fix and a rewritten page both break the hash, and only one of them is serving agents wrong information.
Fix: re-run opengso generate.
Rows are grouped, worst first:
Failed scored checks that failed: these are what the 0-100 is missing
Partly there scored checks with credit earned, and the rest of the points priced
Suggestions conventions outside the score that this page has not adopted yet
Locked suggestions waiting on one other fix, collapsed into a single block
Passed scored checks that are already right
Adopted suggestions this page already follows
Not applicable nothing to fix here, on this URL
Each row carries the check id, what it verifies, and the specific reason it reached that
verdict, including the header value actually observed. No generic strings. A partial row also shows
a small meter and the split, 2 of 4, so the shape of the shortfall is readable without reading the
sentence. A suggestion row is marked TIP rather than with a cross, because it is not a failure.
The exception is a check that fails on a twin the page already serves, such as a twin gone stale
after the page changed. That is not a convention waiting to be adopted but agents being sent
something wrong, so the row is marked WARN, goes first in its group, and the group says so. It is
still outside the score, and --strict is what fails a build on it.
The report ends with Do this next: every scored fix ranked by the points it recovers, so the
top line is always the most valuable edit you can make to the page. The suggestions follow under
their own heading, heaviest first, so the twin (the one that unlocks twelve more) leads them. When
nothing scored is left to fix, the suggestions are the whole list. A failing check on a served twin
leads instead, marked fix, and the report says the twin agents are served is failing rather than
"Nothing to fix".
Every price the report prints, the (+N) on a fix, the -N pts on a failed row and the Do this
next column, is in score points: how far that one fix would move the 0 to 100 headline. A check's
weight is not that number. The scored weights total 61 and only the ones that apply are in the
denominator, so on a page scoring 85/100 the 9-weight A3 is worth +15. The 2 of 4 on a partial is
the exception, and stays in weight, because it is the check's own arithmetic rather than a price. A
suggestion is never priced.
--prompt turns that same list into a fix prompt you can paste into a coding agent: scored fixes
first, then any check failing on a twin already served, then the suggestions and the twelve waiting
on B1, each marked as outside the score. It names only opengso-prod and OpenGSO's own
documentation. --copy puts it on the clipboard instead, --only A3,B7 scopes it to the checks
named, and the dashboard has a copy button on every group and every failing check.
Everything above is the structural pass: deterministic, free, and the only thing that produces the 0 to 100 number. A test run has a second, optional pass, and the two never mix.
| Command | What runs |
|---|---|
opengso test <url> |
The checks, then an AI review of every Markdown document they found. The review is skipped with a note when no key is configured. |
opengso test <url> --structure |
The checks alone. Also spelled --offline and -nq. |
opengso test <url> --content |
The AI review alone, for the loop where you are editing the Markdown. |
opengso test <url> -q |
The full run, with the review required rather than optional. |
The content review reads the documents your site actually serves and gives them their own score out of 100, weighted across five areas:
| Area | Worth | What it asks |
|---|---|---|
| Answerability | 30 | Could an agent answer a real question from this document alone? |
| Specificity | 25 | Concrete facts, numbers, prices, dates and versions, or adjectives? |
| Definition | 20 | Is it obvious in the first few lines what this is and who it is for? |
| Structure | 15 | Headings that describe their content, sensible order, sensible length? |
| Keywords | 10 | Are the words someone would search for present, and used naturally? |
The weights are an opinion about who the document is for: an agent answering somebody's question that cannot follow a link to find out more. Answerability and specificity carry more than half the score between them. Keywords carry the least, because they are the easiest thing to add and the least useful to a reader already looking at the page.
The score is derived from the five area scores rather than asked for as one number, so it can be
explained line by line: the report prints what each area is costing you out of 100, then a
prioritised list of specific edits, each naming where in the document to make it and what a reader
gains. An area the model did not score leaves the denominator rather than counting as zero, the
same rule n/a checks follow above.
It needs an API key, refuses to run under CI, prints as its own section, and is never folded into the structural 0 to 100. Two numbers, two questions: is the Markdown served correctly, and is it worth reading. The exit code always comes from the structural checks, so a model's opinion cannot fail a build.
Any of a dozen providers can run it, including one on your own machine. See providers.md.