Every push to this repository, on any branch, starts a production server and scores it against our own rubric. If any check fails, the job exits non-zero and the build is red, in exactly the way it would be red for a type error. We sell agent readiness, and a prospect's first move after reading a cold email is to run our free scan against us; a drop in our own score is therefore a broken build rather than an item for a backlog. This post describes the two scripts that enforce that, what each one asserts, why they are deliberately thinner than the scanning engine, and the two points they caught on our own forms.
What the pipeline runs
The workflow has five steps after installing dependencies. pnpm run verify runs lint, typecheck, build and the unit tests. The job then starts next start on port 3100 and polls the homepage until it answers, because everything after this point needs a real server rather than a test harness. pnpm run audit:self scores that server. Chromium is installed, and pnpm run verify:nojs drives the site with JavaScript disabled. Each of the two scripts exits with status 1 on any failure, and the workflow stops at the first non-zero step.
- name: Self-audit against our own rubric
run: pnpm run audit:self http://127.0.0.1:3100
- name: Verify SSR parity and no-JS forms
run: pnpm run verify:nojs http://127.0.0.1:3100
The workflow file calls this the dogfood gate, and states its purpose in one line: it stops the marketing site drifting away from what the rubric demands. Nobody sets out to add a second h1; a page is written in a hurry, a template is copied from the wrong place, and the score moves. The gap between what we tell other sites to do and what our own site does is created by ordinary commits, not by neglect, and it is the only thing that can undo the credibility a published rubric buys.
What the self-audit checks
scripts/self-audit.mjs is a single dependency-free Node script. It uses fetch and regular expressions, nothing else, and it walks four groups of assertions that mirror the four pillars.
Under access it fetches robots.txt and requires an explicit User-Agent group with Allow: / for each of the six crawlers A2 names, plus Googlebot and Bingbot. That is stricter than the rubric, which credits a permissive default. It requires a sitemap that parses to at least one URL and is declared in robots.txt, an llms.txt with at least three described links alongside an llms-full.txt, and then the A5 probe: the homepage fetched as GPTBot, ClaudeBot and PerplexityBot, all three receiving a 200, with a median time to first byte under 1,500 milliseconds. For A6 it searches the homepage for cookie-banner, challenge and CAPTCHA markup. For A7 it strips scripts, styles and tags from the raw homepage response and requires more than 2,000 characters of visible text to remain.
Under understanding it fetches 24 pages and, on every one, requires JSON-LD that parses, exactly one h1, a title of 15 to 70 characters, a meta description of 50 to 160, a canonical link, and Open Graph title and description tags. It then computes the clean text ratio across all 24 with script and style contents excluded from the denominator, as rubric v1.0.1 specifies, and requires an average of at least 0.10.
Under actionability it requires every visible input on the homepage to have a label or an aria-label, more than ten real anchors, an agents.json that parses, and a /search?q= request that returns results. Under trust it wants HSTS and CSP headers, a mailto: and a sameAs on the contact page, the privacy, terms and DPA pages linked from the homepage, a security.txt with a Contact: line and an unexpired Expires:, and every one of the 24 pages returning 200 within four seconds.
Each assertion records a pass or a fail, and the script's last line is process.exit(failed === 0 ? 0 : 1).
Why it is thinner than the engine
The header of the script says it is a deliberately thin version of the checks the rubric package implements properly. The real engine, the one that scores every report on this site, takes a crawl snapshot and returns a result; it lives in one package and is what pnpm afr-audit runs. The self-audit is not that engine, for two reasons.
First, it is a gate, not a report, and a gate should be fast, dependency-free and hard to break. Second, several rubric checks need a headless browser: A7 compares raw HTML against the rendered DOM, A6 in the engine looks at the rendered page when one was captured, and C3 looks for keyboard traps under render. The self-audit approximates A7 with a floor on raw visible text, which catches a page that ships as an empty shell but cannot measure a ratio. That measurement is the second script's job.
Parity and forms with JavaScript off
scripts/verify-nojs.mjs launches Chromium through Playwright and tests the two claims the rubric cares most about on this site.
For A7 it fetches the homepage, /methodology, /pricing and /leaderboard twice: once with a plain fetch, reduced to visible text, and once in the browser, reading the innerText of the body after the network goes idle. It divides the first length by the second and requires 0.95 or better. The rubric's own threshold for full marks is 0.8; the gate holds a tighter line because its job is to notice movement before it costs a point. The ratio is clamped at 1 in the good direction, because raw HTML legitimately carries text that innerText does not report, such as screen-reader-only labels and the bodies of closed details elements.
For C1 it opens a browser context with javaScriptEnabled: false and submits three forms. The audit-request form must land on its thanks page. The contact form is filled with test@localhost, which an input of type="email" accepts because HTML does not require a dotted domain, so the browser submits it and the server must be the one to reject it; landing on a page with a role="alert" proves that server-side validation is real rather than borrowed from the browser. The scan form must navigate somewhere other than back to itself. Finally the mobile navigation, a details disclosure, must open with no script at all.
That last section is where the site's one client component matters. The scan progress page includes a component that renders nothing: it subscribes to a server-sent event stream and asks the router to refresh when the scan advances. The page it sits on is a complete server-rendered document with a plain reload link. Keeping the island invisible is how "server components only" survives contact with a page that needs to update, and the parity ratio is what would tell us if that invariant broke.
What the gate caught
Two findings on our own forms, both invisible in a browser.
The header search form had labelled, correctly typed inputs and no submit button. Pressing Enter submits a form for a person; an agent driving the page has nothing to activate. The engine's form audit looks for a button[type=submit], an input[type=submit] or a button with no type inside each form, and a site with any form lacking one loses the point for a real submit button, one of C1's five. The button went in and the point came back.
The scan form's URL field was an input with type="url". That type rejects a bare domain such as yourcompany.com, which is precisely what the placeholder invited, and the browser blocks submission silently. The type=url trap is the long version; the fix was type="text" with inputMode="url" and normalisation on the server. The engine's type check only compares email, telephone and number fields against their names, so a text-typed URL field costs nothing on the rubric, and the no-JS script now submits example.com to prove the path works.
Both fixes are visible in our live report, which the full engine scores. The gate exists so that the report never has to deliver the news.
Check your own site
Run the free scan and read the C1 and A7 evidence; the form counts, the unlabelled-input count and the raw-to-rendered ratio are recorded in the report. The scoring for C1 is on the methodology page, with A7 under discovery and access.