Why British English kept landing in agent commits, and what cleanup took A scan of 1,105 first-parent commits on the Namegarage repository's main branch between the September 21, 2026 shared-rule commit and November 21, 2026 found British English spellings persisted in agent-co-authored commits despite a written American-English rule, the project reported. The repository, built mostly with Claude Code and Codex, had roughly four American spellings for every British one (2,166 to 500) when "enrol" first appeared in a session's output on September 17, 2026; the rule was moved into a shared decision record and pull-request review instructions on September 21 and repeated in a writing skill on October 16. Of the 1,105 commits analyzed by Co-Authored-By trailer, 486 were Claude-co-authored, 429 Codex-co-authored, and 190 other or unattributed, with four cleanup sweeps and one September 22 Codex merge excluded from the counts. Why British English kept landing in agent-co-authored commits, and what cleanup took Namegarage is built and maintained with coding agents, mostly Claude Code and Codex. Almost every identifier in the codebase uses American English: normalizeDomain , authorize , catalog . On September 17, 2026, "enrol" appeared in a session's output. A scan across the repository found roughly four American spellings for every British one 2,166 occurrences to 500 in prose and comments. We added a standing rule: all English in the project — UI copy, emails, docs, comments, tests, and blog posts — uses American English. On September 21, we moved that rule out of one agent's private notes into a shared decision record and shared pull-request review instructions. On October 16, we added a writing skill that repeated the same rule. British English kept coming back anyway. What the commit history shows To measure what landed on main after written instructions existed, we scanned first-parent commits from the September 21 shared-rule commit through November 21, 2026 1,110 commits total . We excluded our four dedicated cleanup sweeps from both numerators and denominators, and we also excluded one September 22 Codex-co-authored merge +163 net raw core-list tokens, +1 adverb, +13 "cancelled" : 153 of its 162 added "catalogue" and "catalogues" matches already appeared on identical lines in its September 20 review tree before the September 21 rule existed. That leaves 1,105 commits , grouped by Co-Authored-By trailer 486 Claude-co-authored, 429 Codex-co-authored, and 190 other or unattributed — 142 unattributed, 26 Antigravity, 9 Gemini, 7 multi-agent, and 6 Muse . Beyond those five excluded commits, our path and content filters removed: - Path exclusions passed to git log --first-parent -p -U0 : the American English decision record, the legal-policy test file asserting against British spellings, lock files, vendored paths, minified JS/MJS bundles, SVG assets, JSON files, and plain-text assets. - Rule-discussion and proper-noun lines matched case-insensitively by META LINE RE across added + and removed - diff lines excluding +++ and --- headers . All three buckets count regex token matches across the remaining repository diffs — covering documentation, UI copy, comments, test names, string literals, CLI arguments, code identifiers, and test fixture values — rather than prose parsed apart from code: - Raw core-list tokens: raw case-insensitive whole-word matches against the complete CORE UK pattern below, combining strictly British forms with secondary US-dictionary variants "catalogue" , "catalogues" , and "whilst" where the repository standardizes on "catalog" , "catalogs" , and "while" and excluding "enrolled" and the verb "forwards" , which our rule allows . Because it scans tokens across diffs uniformly, this bucket mixes discretionary prose and test descriptions with coordinated code and configuration literals — for example, in our September 27 Trusted Types rollout, where the new enforcement configuration, validator code, and test fixtures adopted the existing 'catalogue' reporting vocabulary for /catalog/1 . - British-leaning adverbs "afterwards" and "backwards" : tracked by ADVERB UK across repository files, where American prose prefers "afterward" and "backward" noting that some matches fall inside test variables or fixture IDs rather than prose . - Raw "cancelled" and "cancelling" tokens: tracked separately by CANCELLED RE because database schemas, API payloads, and payment webhooks store status = "cancelled" , so diffs mix required wire literals and state-machine tests with prose. For each non-excluded commit from the September 21 shared-rule commit through November 21, 2026 and each bucket, we counted non-header + and - diff lines skipping lines matching META LINE RE using these exact exclusions and regular expressions, and computed commit delta = added tokens - removed tokens : EXCLUDES = ": exclude docs/decisions/2026-09-17-american-english.md", ": exclude tests/test website legal.py", ": exclude .lock", ": exclude vendor ", ": exclude .min.js", ": exclude .min.mjs", ": exclude .svg", ": exclude .json", ": exclude .txt", META LINE RE = re.compile r' ?:never\s+ "\' ? ?:catalogue|behaviour|colour|enrol ' r'|Media Centre|media-centre|British spelling|two British spellings ', re.I, CORE UK = re.compile r"\b " r"catalogues?|behaviours?|behavioural|colours?|coloured|colouring|" r"honours?|honoured|honouring|favours?|favoured|favourites?|" r"centres?|centred|defences?|licences?|organisations?|programmes?|" r"enrol|enrols|enrolments?|fulfil|fulfils|fulfilments?|whilst|" r"labelled|labelling|travelled|travelling|modelled|modelling|signalled|signalling|" r"normalis ?:e ds ?|ing|ation |serialis ?:e ds ?|ing|ation |" r"recognis ?:e ds ?|ing |authoris ?:e ds ?|ing|ation |" r"finalis ?:e ds ?|ing |optimis ?:e ds ?|ing|ation |" r"sanitis ?:e ds ?|ing|ation |initialis ?:e ds ?|ing|ation |" r"summaris ?:e ds ?|ing |anonymis ?:e ds ?|ing |" r"customis ?:e ds ?|ing|ation |stabilis ?:e ds ?|ing |" r"characteris ?:e ds ?|ing |synchronis ?:e ds ?|ing|ation |" r"prioritis ?:e ds ?|ing |categoris ?:e ds ?|ing |" r"minimis ?:e ds ?|ing |maximis ?:e ds ?|ing |standardis ?:e ds ?|ing |" r"realis ?:e ds ?|ing |organis ?:e ds ?|ing |analys ?:e|ed|ing |" r"utilis ?:e ds ?|ing |judgements?|artefacts?" r" \b", re.I, ADVERB UK = re.compile r"\b afterwards|backwards \b", re.I CANCELLED RE = re.compile r"\bcancell ?:ed|ing \b", re.I A commit enters a cohort's positive commit count only when commit delta 0 , and the +N totals below sum positive-commit additions only discarding non-cleanup commits with net removals, such as retiring an older signing integration . | Positive-commit tracked-spelling token additions across 1,105 first-parent commits landing after the shared rule | | | | |---|---|---|---| | Commit cohort commits | Raw core-list tokens: positive commits share , added tokens | afterwards / backwards : positive commits share , added tokens | Raw cancelled / cancelling : positive commits share , added tokens | |---|---|---|---| | Claude-co-authored 486 | 23 4.7% , +77 | 54 11.1% , +103 | 76 15.6% , +1,165 | | Codex-co-authored 429 | 11 2.6% , +83 | 4 0.9% , +4 | 38 8.9% , +381 | | Other and unattributed 190 | 3 1.6% , +18 | 4 2.1% , +6 | 14 7.4% , +103 | | All included commits 1,105 | 37 3.3% , +178 | 62 5.6% , +113 | 128 11.6% , +1,649 | Including non-cleanup removals, whole-window net deltas across those 1,105 commits are -209 raw core-list tokens, +55 "afterwards" / "backwards" , and +1,547 raw "cancelled" / "cancelling" . Across the first two non-cancellation buckets, net additions landed more often in Claude-co-authored commits than in Codex-co-authored commits for raw core-list tokens 4.7% vs 2.6% and nearly 12 times as often for "afterwards" or "backwards" 11.1% vs 0.9% , while total core-list additions were higher in the Codex cohort +83 vs +77 largely because of the November 10 deployment verifier. These rates measure raw token matches that landed in each co-author cohort rather than isolated agent spelling choices or verified writing-rule violations: for example, in the Codex cohort, the September 27 Trusted Types rollout adds 16 net whole-word "catalogue" matches: 7 are coordinated literals where the new enforcement configuration, validator code, and test fixtures adopted the existing 'catalogue' reporting vocabulary for /catalog/1 such as sales-preview = { enforce routes = "home", "catalogue" } , 1 documents that exact route-family name, and 8 are discretionary wording that could have used "catalog" — including the comment immediately above that config line First rollout candidate: catalogue pages do not load transaction vendors… , a Playwright test title, a CLI error message, and rollout docs. Similarly, the October 10 checkout update carries "does not change afterwards" in version 2 of a purchase agreement that retained the quoted phrase verbatim from version 1 written on August 1 — more than seven weeks before the September 21 rule existed. Comparing agent spelling violations directly would require separating newly drafted discretionary text from shared configuration or contract literals, copied files, and pre-rule text in both cohorts. The third column likewise reports raw token frequency rather than prose drift: branches touching payment cancellation contracts or tests legitimately add status = "cancelled" or cancelled payment review . After a broad codebase cleanup on October 19, positive-commit additions across the remaining 779 non-cleanup commits excluding three later cleanup sweeps looked like this: | Positive-commit tracked-spelling token additions across 779 first-parent commits landing after the October 19 cleanup | | | | |---|---|---|---| | Commit cohort commits | Raw core-list tokens: positive commits share , added tokens | afterwards / backwards : positive commits share , added tokens | Raw cancelled / cancelling : positive commits share , added tokens | |---|---|---|---| | Claude-co-authored 309 | 9 2.9% , +28 | 27 8.7% , +50 | 58 18.8% , +978 | | Codex-co-authored 335 | 6 1.8% , +52 | 2 0.6% , +2 | 23 6.9% , +270 | | Other and unattributed 135 | 0 0.0% , 0 | 3 2.2% , +3 | 10 7.4% , +71 | | All included commits 779 | 15 1.9% , +80 | 32 4.1% , +55 | 91 11.7% , +1,319 | Including non-cleanup removals across those 779 commits, whole-window net deltas are +22 raw core-list tokens, +41 "afterwards" / "backwards" , and +1,262 raw "cancelled" / "cancelling" . After October 19, "afterwards" and "backwards" remained concentrated in Claude-co-authored commits 8.7% vs 0.6% , mixed between prose comments and fixture identifiers, while "catalogue" and "catalogues" — secondary dictionary variants disallowed in prose only by repository convention rather than unambiguously British forms — accounted for 72 of the 80 raw core-list additions 90% . Four patterns we saw in the commit history Reading the diffs showed four recurring patterns where British tokens appeared alongside American code and written rules: - Mixed spellings inside one probe: On September 28, our Trusted Types browser probe checked the American route /catalog/2 right after asserting a failure message with "catalogue" — and its unit test paired let path = '/catalog/1' with /second catalogue/ to match that error text: assert.equal second.status , 200, 'second catalogue document must be served' ; assert.equal new URL page.url .pathname.replace /\/$/, '' , '/catalog/2' ; - American titles, British test bodies: Earlier on October 19, a blog article shipped with "Catalogue refresh notices" in its description and body. Three days after the October 19 cleanup, a Claude-co-authored search feature titled "the catalog's search box finds names by meaning" extended an existing test file using "catalog" in its filename, adding 17 "catalogue" occurrences in new test descriptions and comments alongside three older occurrences already in that file. - Shared vocabulary across follow-up commits: On November 10, a Codex-co-authored deployment verifier added 43 "catalogue" and "catalogues" token matches across 21 of its 39 changed files, spanning documentation, comments, infrastructure resource names, code variables, CLI arguments "catalogue" , and verification modules. Over the next ten days, five follow-up commits across both Claude- and Codex-co-authored branches touched that feature and also included "catalogue" in new docs, test comments, and a Python exception: raise ValueError "Catalogue render verification is disabled" - Wire tokens beside buyer prose: Direct-sale schemas, API payloads, and payment webhooks store status = "cancelled" and cancelled payment review right next to customer-facing error and status strings. Cleanup passes had to keep the wire literals intact while standardizing adjacent buyer copy on "canceled" : // Keep wire and database tokens intact; write "canceled" in buyer copy. if status === "cancelled" return "This invoice is canceled. Do not send a payment."; What cleaning it up took Cleaning up British English safely took four separate sweeps across five weeks: 1. October 19: A first broad pass across nearly 200 files 518 lines changed updated site templates, checkout scripts, workers, the lease portal, CLI copy, docs, and tests. 2. October 23: A 20-file documentation and blog pass paired our plain-English writing rules with American English. 3. November 21 live copy, docs, and comments : A 66-file sweep fixed residual British spellings across buyer messages, emails, Telegram alerts, edge functions, unnarrated blog posts, active docs, and code comments, separating preparatory formatting and type cleanups into their own commit so reviewers could inspect the wording diff alone. 4. November 21 internal Python modules : An 11-module pass cleaned docstrings, comments, and one operator warning after splitting mechanical formatter changes from 12 semantic edits and verifying docstring-stripped AST identity on 10 of the 11 modules so no runtime code changed silently. Running a blind global search-and-replace across the repository would have broken production systems in five places: 1. Database and webhook contracts: Live contracts use both spellings, and each boundary must keep the exact spelling its provider or schema expects. Our Stripe webhook handler matches payment intent.canceled and ignores unrecognized event types and our lease table constrains status to "canceled" , while our direct-sale and Bitcoin invoice paths use status = "cancelled" and cancelled payment review . Standardizing either boundary globally breaks webhook handling or live state writes; preserve each contract's literal spelling and standardize customer-facing prose, emails, warnings, and comments on "canceled" . 2. Byte-fingerprinted verification modules: Three deployment-verification modules hash their own raw source bytes to seal resumable full-catalog render checkpoints. Fixing "catalogue" inside those strings invalidates checkpoints sealed by earlier commits. Pre-merge review caught that hash dependency, so we restored their exact bytes and queued the normalization for either the next planned verifier bump or CLI output presentation. 3. SHA-256-pinned host scripts: One host-side logging containment helper is pinned by SHA-256 hash. Changing its three "Transaction cancelled" strings has to move alongside its integrity pin and per-file Python target version. 4. Release-guarded public packages: Thirteen files sit behind a coordinated public-release guard whose check hashes fingerprinted source files against the active release manifest. On November 21, the active release entry was already published , so editing fingerprinted bytes then would have required opening a new coordinated release record unaffected components such as the API, SDK, or catalog skill can retain their published versions alongside a compatibility explanation inside that new record; by contrast, an upcoming entry can refresh its recorded digest in place . Those strings still wait for the next planned release rather than touching guarded packages for spelling edits alone. 5. Immutable legal snapshots and narrated audio: Dated legal documents keep SHA-256 integrity records until their next legal revision, and eight older blog posts have saved ElevenLabs audio keyed by each Markdown file's SHA-256 hash. Fixing a single "catalogue" in one of those posts hides its audio player until the post is re-narrated. What stopped drift, and what remains Both measurement windows operated under the September 21 shared rule. Excluding the pre-rule September 22 merge, commits with positive net raw core-list token additions fell from 6.7% 22 of 326 non-cleanup commits, +98 added tokens before the October 19 sweep to 1.9% 15 of 779 commits, +80 added tokens afterward. Because that decline overlaps the October 19 sweep stripping existing British spellings out of local context, the October 16 writing skill, and a shifting mix of tasks, commit history alone cannot isolate how much came from written instructions versus the cleanup and workload mix. Either way, written guidelines did not drive drift to zero. Automated build checks stopped drift — only on the words they checked. The test covering current Privacy Policy phrasing checked only two British spellings "behavioural" and "colour" , inherited from an early September revision. Because "catalogue" was missing from that two-word check, archived Privacy Policy snapshots dated September 20 and September 22 v6 still picked up "our catalogue" and stay preserved verbatim as historical legal records. Later named-version tests v11, v12, and v14 expanded the check to five words "catalogue" , "behaviour" , "colour" , "licence" , "organisation" , and every policy snapshot after September 22 stayed clean across all five. Twenty-six deferred items remain tracked in one cleanup backlog across those guarded boundaries: 13 files protected by the coordinated release manifest plus one matching doc line , 3 byte-fingerprinted verification modules, 1 SHA-256-pinned host helper, 1 host traffic script, and 8 narrated blog posts waiting for re-narration. How to lint for dialect drift Enforcing American English mechanically does not require custom regex scripts or rewriting a legacy codebase first. Off-the-shelf tools cover the boundaries above with minimal maintenance: 1. typos for code, tests, comments, and identifiers: crate-ci/typos https://github.com/crate-ci/typos splits camelCase and snake case identifiers and keeps false positives low on technical jargon. Setting locale = "en-us" flags exclusively British forms behaviour , behavioural , colour , honour , labelled , signalled , recognise , initialise , serialise , fulfil , enrol , artefact , and Centre , while leaving secondary US-accepted forms such as "catalogue" , "catalogues" , "whilst" , "afterwards" , "backwards" , "cancelled" , and "cancelling" unflagged by default.Run typos in check-only mode in pre-commit and CI — omitting --write-changes and overriding any upstream hook default that edits staged files, with --force-exclude when passing explicit paths — so a linter never rewrites a CLI subcommand or contract string. Put "whilst" and "afterwards" under default.extend-words . Keep "backwards" out of global code checks — it is a valid CSS keyword in animation-fill-mode: backwards — and check it in the markup-aware prose rule below instead. Keep "catalogue" , "catalogues" , "cancelled" , and "cancelling" out of global or Markdown/HTML typos rules unless every CLI option, subcommand dispatcher, and wire contract using them is explicitly exempted — auto-rewriting a documented --catalogue-size flag in a shell snippet or a script's "catalogue" subcommand breaks the command or release gate when the parser rejects "catalog" .Exclude immutable, generated, and hash-pinned files under files — dated legal snapshots /legal/ , versioned partner agreements /partner-agreements/ , third-party trust snapshots /trust/ , third-party API spec snapshots docs/api-specs/ , vendored assets /vendor/ , including checksum-pinned third-party SDKs whose filenames omit .min. , Wrangler-generated Worker declarations /worker-configuration.d.ts , where regenerating restores any manual spelling edits , release and blog narration manifests /public-release.json , /blog/narration.json , frozen test fixtures tests/fixtures/ , including byte-checked agreement goldens , files that intentionally quote British examples such as spelling-policy records and negative spelling-assertion tests, checksum-pinned build patches .patch , alongside any paths derived from package manifests' repository path entries , PGP key blocks .asc , minified assets .min. , and lock files — and derive dynamic exclusions directly from both manifests rather than maintaining hand-coded file lists: narrated posts from /blog/narration.json , and release-fingerprinted source files from both path arrays in /public-release.json resolving source paths under liquidate/ , such as cli/main.py → liquidate/cli/main.py , and repository source paths from the repository root by passing generated --exclude flags or syncing an exclude block. Verify with typos --files --force-exclude with those generated --exclude flags attached that guarded paths such as liquidate/cli/main.py and generated /worker-configuration.d.ts files stay out of scope while handwritten Worker TypeScript files remain checked, set check-filename = false so content-hashed asset filenames are not flagged as words, keep third-party dependency option names that use British spellings contracts such as a TOML parser's unsafeKeyBehaviour safeguard option, where renaming the key to unsafeKeyBehavior silently reverts to the parser's default behavior under default.extend-identifiers so ordinary behaviour prose stays flagged, and exempt existing DOM ID declarations, lookups, and selectors id="enquire" , getElementById "enquire" , and enquire , keeping all three aligned while ordinary prose enquire remains flagged , existing infrastructure state addresses such as an OpenTofu resource address like widget enquire under default.extend-identifiers and provider resource names "widget-enquire" under extend-ignore-re , where renaming the address would move state while ordinary enquire prose stays flagged , external proper nouns, wire tokens, literal domain names used as fuzzy-match test data colour . com , exact domain names recorded as keys in historical sale and payout scripts — including sold domains no longer present in the live catalog using a synthetic example such as registred . com so exact recorded keys pass while the same misspelling in surrounding prose still fails — and any repository-specific acronyms or vendor names flagged by typos 's general dictionary with extend-ignore-re or default.extend-words : files extend-exclude = " /legal/ ", " /partner-agreements/ ", " /blog/narration.json", " /public-release.json", " /trust/ ", " /vendor/ ", " /worker-configuration.d.ts", "docs/api-specs/ ", "tests/fixtures/ ", "tests/test website legal.py", "docs/decisions/ american-english .md", " .patch", " .asc", " .min. ", " .lock", default locale = "en-us" check-filename = false extend-ignore-re = "Media Centre", "colour . com", "registred . com", " enquire", "id= \"' enquire \"' ", " ?i getElementById\\ \"' enquire \"' \\ ", "widget-enquire", "status\\s ={1,3}\\s \"' cancelled \"' ", "cancelled payment review", default.extend-identifiers unsafeKeyBehaviour = "unsafeKeyBehaviour" widget enquire = "widget enquire" default.extend-words whilst = "while" afterwards = "afterward" Two boundaries matter in that starter file: - Why "catalogue" and "cancelled" stay out of typos on Markdown and HTML: typos does not parse Markdown code spans, fenced shell blocks, HTML