Every score we have ever issued was produced by one function. It takes a SiteSnapshot, a plain data structure describing what the crawler captured, and returns a ScanResult. It does not open a socket. Our internal rules put it bluntly: a check that reaches for the network is a bug, and if a check needs something it does not have, the fix is to add it to the snapshot. This post is about what that constraint buys anyone reading a report.
The contract
The crawler's only job is to fill in a snapshot. The engine's only job is to reason about one. The type that sits between them is the whole interface, and a trimmed version of it looks like this:
type FetchRecord = {
url: string;
status: number;
headers: Record<string, string>;
body: string;
ttfbMs: number;
error?: string; // set when the request failed outright
finalUrl?: string; // set when redirected
};
type SiteSnapshot = {
domain: string;
origin: string;
fetchedAt: string;
robotsTxt: FetchRecord | null;
sitemap: FetchRecord | null;
sitemapUrls: { loc: string; lastmod?: string }[];
llmsTxt: FetchRecord | null;
llmsFullTxt: FetchRecord | null;
securityTxt: FetchRecord | null;
agentsJson: FetchRecord | null;
pages: { url: string; raw: FetchRecord; renderedText?: string; renderedHtml?: string }[];
botProbes: { name: string; userAgent: string; status: number; ttfbMs: number }[];
tls: { valid: boolean; hsts: boolean };
hostVariants: { url: string; status: number; location?: string }[];
siteType: "ecommerce" | "saas" | "content" | "other";
incomplete?: boolean;
};
Everything a check can know about a site is in there. There is no field for "fetch this later". Each check is a function of the shape (snapshot) => CheckResult, and the engine is a map over 27 of them followed by some arithmetic. How our crawler works covers the other side of the boundary, the part that does touch the network.
What the split buys
Fetching and judging are hard for different reasons. Fetching is I/O: timeouts, redirects, CDNs that answer differently by user agent, a headless browser that may or may not be installed. Judging is logic: does this robots.txt permit this token, is this JSON parseable, is this ratio above 0.10. Mixing the two produces checks whose answers depend on the moment they ran. Keeping them apart gives four things.
Reproducibility
The same snapshot produces the same result, every time, on any machine. A score is a function of the captured data and the rubric version, and nothing else. When a check's outcome looks wrong, there is no network blip to blame; the input is a value, and the value can be inspected. That is also what makes the changelog meaningful. Re-running an old snapshot under a new rubric version separates a change in the site from a change in the rules, which why we publish the rubric depends on being able to do.
Tests that run offline
The rubric package ships five hand-authored fixtures: a good SaaS site, a JavaScript-only single-page app, a Shopify-style store, a site whose robots.txt blocks our crawler, and a broken site with invalid JSON-LD, clickable divs, an expired security.txt and a CDN returning 403 while robots.txt says everyone is welcome. They are written by hand rather than scraped because scraped pages go stale and start failing for reasons unrelated to our code, and because a hand-written fixture can exercise one branch of one check precisely.
The test suite asserts the invariants over all five: four pillars summing to exactly 25 points each, every one of the 27 checks present in every result, every pointsEarned between zero and pointsPossible, the total equal to the rounded pillar sum, a rubric version recorded on every scan. Then it asserts the bands: the good site lands at A or above, the SPA fails A7 with a ratio under 0.5 and finishes below 55, the store is detected as commerce and flagged for blocking GPTBot, the blocked site returns a scored result rather than throwing, the broken site lands in the F band. None of that needs a network, which means all of it runs on every commit. A check that fetched for itself could not be tested this way at all.
Honest not-applicable results
Because a check cannot go and get what it lacks, it has to say so. A7 compares raw text against rendered text; if no render was captured, renderedText is undefined, and the check returns not-applicable with rendered: false in its evidence rather than guessing. C5 applies to commerce sites only and returns not-applicable otherwise. The alternative, a check that quietly fetches something extra when the snapshot is thin, would produce results nobody could reproduce from the report.
One place for scoring decisions
The worker that runs scans in production is deliberately plumbing: crawl, score, persist. Its source carries a comment to the effect that any temptation to make a scoring decision there is a sign the decision belongs in the rubric package. The CLI, the worker and the test suite all call the same scoreSnapshot, so there is one implementation of the rules, and it is the one the methodology page is generated from.
What the engine does, in order
The sequence is short enough to state completely.
Each check builds its result through a helper that looks its id up in the published rubric definition. The helper takes the point total from there, clamps whatever the check earned to that range, rounds to two decimal places, and derives status: pass at full points, fail at zero, partial between. Impact is derived from weight rather than set by hand, High for five points or more, Medium for three or four, Low below, so the two cannot disagree. A check cannot claim a total the methodology page does not show.
C5 is then redistributed. For a non-commerce site its four points go proportionally to C1, C2, C3 and C4, whose base of 18 points becomes 22, so pillar C can still reach 25. Dropping the points instead would cap every non-commerce site at 96 and make scores incomparable across site types, which the leaderboard could not tolerate.
Pillar scores are summed and rounded to two decimal places; the total is the rounded sum of the four; the grade is read from the same minimums the methodology page prints. Finally the failures are ranked, impact descending then effort ascending, ties broken by points left on the table, and the first five become the top fixes. That ranking function is exported so the report page re-ranks stored check rows the same way, because the ordering is part of the product rather than a presentation choice. Reading your scan report describes what all of that looks like on the page.
The rubric is defined once
The RUBRIC array in the package is the definition: pillar, check id, name, points, the plain-English detail of how it is evaluated, and the effort rating. The engine reads point totals from it. The methodology page renders its sections, its grade table and its changelog from it. A test asserts that its pillars sum to 25 and its ids are unique. There is no second copy to drift, and the detail text you read on /methodology is the same string the check helper indexes when it builds a result.
What purity costs
The constraint is not free. The snapshot has to anticipate every question, so adding a check that needs new information means changing the crawler, the type and every fixture before the check can be written. That friction is the point, since it forces a new data need to be visible in the contract rather than buried in a check, but it is friction.
A snapshot is one moment. fetchedAt is recorded, and nothing in the engine can re-verify a fact that has changed since. A report is a statement about a domain on a date, and the purity rule is what makes that sentence literally true.
And the crawler is not pure, nor could it be. It is the one place I/O is allowed, it is tested by injecting a fake fetch, and its limits are published on /bot. Purity is a property of the part that decides your score, which is the part that has to be defensible.
Check your own site
Run the free scan. Every number on the report came out of the function described above, from evidence you can read in the same report, and the definitions it was scored against are on the methodology page from pillar A onwards.