Here is the failure that keeps me up, and it is not a bad ranking. It is a company registration number, restated from memory in a page's structured data, that happens to be wrong. It does not throw. No build fails. It sits in the JSON-LD under the company's own name, and a language model reading the page treats it as fact, because structured data is exactly the thing models trust most. Months later it surfaces in an answer, stated with total confidence, and nobody can point to where it came from.
Every SEO tool we tried was a pile of independently-correct files. The page knew its canonical. The sitemap knew its URL list. The llms.txt knew what it advertised. The schema graph knew the company name. Each file was right on the day someone wrote it, and nothing in the build ever compared them again. So drift arrives silently. A route gets added and the sitemap never hears about it. A staging deploy remembers noindex in four surfaces out of five and leaks into the index. A licence number gets retyped and is now subtly false in the one place a machine will read it literally.
Declare once, derive everywhere
Sonar starts from one rule: the identity and the index posture live in a single frozen config, and every surface derives from it rather than restating it. robots, the sitemaps, the RSS feed, the JSON-LD graph, the llms.txt, the index pings - they all read the same object. There is deliberately no way to build a surface that ignores the shared indexable flag, because each emitter consults the gate itself. You cannot ship a page that says index me while the robots policy says do not. The config is validated and deep-frozen at build time, so a malformed route pattern fails the build instead of silently matching nothing on a live page.
Two more rules follow from the first. Absence is absence: a missing optional field drops the key entirely, it never emits an empty string, because an empty value is still a claim and a claim can be wrong. And refuse rather than fabricate: a document assembled from a source that only partially resolved comes back as a degraded, dated envelope that says so, not as a confident assertion of something half-true. A missing figure is served as missing. It is never quietly filled in.
Emit, then audit
Everything an emitter produces is a claim, and we do not trust our own claims. The other half of Sonar is an audit layer that checks the surfaces against the live site: one h1 per page, a canonical on every indexable page, no broken internal links, every reachable indexable page actually present in a sitemap. The auditors return reports and never decide anything themselves - what counts as a build failure is the CLI's call, not the library's - and every report discloses its own scope, so no findings can never be mistaken for everything was checked. There is a separate citability audit that scores a page on whether a model could cite it honestly: claim-sourcing, freshness, answerability, specificity, agreement with its own schema, and fabrication risk.
The hardest part to build was the auto-pilot, and its rule is the whole product in one line. It reads a site that already exists and generates its SEO surfaces, but it is allowed to restate, derive and delete, and it is forbidden to invent. It will never produce a figure, a date, a price or a licence number that is not already on the page. When it needs one that is missing, it returns a gap - the date this price was last confirmed - rather than a plausible guess. We enforced that in the type system, not in a prompt, because a prompt is a request and a type is a wall.
The failure we most want to prevent is not a low score. It is a fabricated registration number sitting in a customer's live schema graph, under their company name.
The name is the mechanism. Send a signal out, measure what comes back. A site should be legible to crawlers and to models at once, and it should be impossible to make it legibly wrong. That second part is the one everyone else skipped.