Working notes ·

A Welsh check nobody has seen fail proves nothing

Async Digital Ltd Cardiff, UK

This note was drafted with AI agents for the director, Rob Nash.

Update, : the site’s Welsh pages and their checks were retired.

Abstract

This site is published in English and Welsh. Every push to it runs a set of checks that hold the two versions together: the same structure on every page pair, the right language alternates in the sitemap, the same legal facts in both languages, and the same disclosure on every note. A check that has never failed tells you nothing, because a check that cannot see a problem prints the same quiet pass as one that has nothing to report. So each of these checks has a companion that plants the defect it exists to catch on a copy of the site and confirms the check refuses it. This note lists the checks and quotes what they printed when I ran them on 14 November 2026.

A Welsh page that has quietly fallen behind its English twin still loads, still looks finished, and still passes every check that was never built to compare the two. The only way I know to trust a check is to break the thing it guards and watch it notice.

§1·Silence

A pass has two meanings

When a check passes, one of two things is true. Either there was nothing wrong, or the check could not see what was wrong. From the outside the two look identical. Both print the same line and both turn the same light green.

This site has met the second reading more than once. For a while the only check that compared the English and Welsh homepages compared one section of them. Over two sessions the English page gained a biography row, four new bands and two whole product entries, and the Welsh page gained none of it. Every check stayed green, and it was right to: it was never looking at those parts. The gap was found by a review at the end of a working session, not by any check.

The next version compared every page in a hand-written list. The list held one entry on the day it went live, while the site had 27 English and Welsh page pairs. Again the check was green and again it was honest about the little it saw. A page that was not on the list was not checked, and nothing said so.

Neither of those was a broken check. Each did exactly what it was built to do. The problem was that nobody had shown it failing on the thing it was meant to stop, so nobody knew how little it covered.

§2·Checks

What runs on every push

These are the checks on this site whose job is to keep the Welsh version working. Each runs on every proposed change and on every push to the live site, and the run goes red when one fails.

  • Structure parity. Every page that exists in both languages must use each style class the same number of times in each, on the same kind of element, and every unclassed element the same number of times per tag. It ignores the words, which are meant to differ, and holds the structure, which is not. The set of pages is read off the disk on every run, so a new page pair is checked without anyone adding it.
  • Sitemap alternates. Every page in either language has its own sitemap entry, and each entry names the English, the Welsh and the default version. A page with no Welsh version must not claim one.
  • Welsh law facts. The pages about the Welsh Language Standards must state the same regulation numbers, links, hedges and dates in English and in Welsh, and every restatement of those facts elsewhere on the site must agree with the main page.
  • Notes disclosure. Every note, in both languages, carries exactly one line in its opening saying it was drafted with AI agents.
  • Homepage titles. The homepage states its title and description three times each, for search results and for link previews, in each language. All three must agree.

Here is what the structure check printed on a clean run, with this note in place:

en/cy structural parity OK: 63 of 66 locale pair(s) found on disk, 4351 class tokens and 2413 unclassed elements compared
§3·Controls

Each check, seen to refuse

Each of those checks has a companion. The companion copies the site to a temporary folder, plants one defect at a time in the copy, runs the check against it, and confirms the check fails when it should and passes when it should. The real site is never touched. If the check ever stops seeing a defect it used to catch, the companion fails, and so does the run.

This is part of what the structure check's companion printed:

ok    the clean tree passes (exit 0)
ok    an unclassed <p> deleted from an English page only (exit 1)
ok    an unclassed <li> deleted from a Welsh page only (exit 1)
ok    a classed element dropped from one locale (exit 1)
ok    a classed <p> swapped for a <span> in one locale only (exit 1)
ok    the same tag swap in both locales passes (exit 0)
ok    an inline <em> in one locale is wording, and passes (exit 0)
control-locale-parity: all 11 cases behaved

The cases that pass matter as much as the ones that fail. A check that refused every edit would also pass its failure cases, and it would be useless. The same tag swap made in both languages, and an emphasised word in one language only, are ordinary edits, and the check lets them through.

The sitemap companion plants the mistakes a language alternate can carry:

ok    an English-only page given a cy alternate fails (exit 1)
ok    an entry without x-default fails (exit 1)
ok    the Welsh homepage missing its own <url> fails (exit 1)
control-sitemap-alternates: all 10 cases behaved

The Welsh law facts companion is the largest. It changes a number, a link, a hedge or a date in one language at a time, and in places where the same fact is restated:

ok    an SI number changed in the Welsh hub only (exit 1)
ok    a hedge removed from the English housing page only (exit 1)
ok    the visible sources-checked date moved on the English hub only (exit 1)
ok    a new English page with no Welsh copy (exit 1)
ok    llms.txt dates the No. 10 regulations to another year (exit 1)
control-welsh-law-facts: all 53 cases behaved

The notes disclosure companion removes the line from the English page, then from the Welsh page, moves it, empties it and doubles it:

ok    the English line removed from an existing note (exit 1)
ok    the Welsh line removed from an existing note (exit 1)
ok    the line moved out of the hero into the body (exit 1)
control-notes-ai-line: all 11 cases behaved

And the homepage titles companion changes one title or description in one language and leaves the others:

ok    the Welsh og:title alone on an older lead (exit 1)
ok    the English twitter:title removed (exit 1)
control-meta-equality: all 4 cases behaved
§4·This page

The same check, on this note

The companions work on copies. To see the structure check fail on a real page, I deleted one paragraph from the Welsh version of this note and ran the check against the site itself. It printed:

1 en/cy structural divergence(s):
  - notes/a-welsh-check-nobody-has-seen-fail: <p> (unclassed): 21x in index.html, 20x in index.cy.html. index.html has 1 more: a paragraph or item added or removed in one locale only.

Bring the two locales back into structural agreement in the same commit. If a divergence is deliberate and permanent, it needs a recorded reason in EXEMPTIONS, not an exemption added quietly.

I put the paragraph back, ran the check again, and it passed. The words of the two versions differ throughout, and the check did not care. The one missing paragraph was enough.

§5·Limits

What these checks cannot tell you

None of these checks reads Welsh. They hold structure, facts and links, and they say nothing about whether a sentence is good Welsh. That needs a person who speaks it.

One more check on this site concerns Welsh and is not in the list above. It sends a visitor whose system prefers Welsh to the Welsh version of a page, and it runs the real script against a table of cases. It has no companion that plants a defect in the script, so by the rule this note argues for I have not seen it fail, and I have left it out.

The rule itself is short. A check earns trust when someone has watched it catch the thing it is for. Until then, its passes are not evidence of anything.

Method how this note was made

Every block of output above was copied from a run on 14 November 2026, against this site as it stood with this note added. Lines were left out of the longer runs to keep them readable; none was changed. The cases left out behaved as well, as each run’s last line says.

The history in §1 is taken from the record kept inside the structure check itself, which explains why it replaced what came before.