[{"data":1,"prerenderedAt":683},["ShallowReactive",2],{"figure-telemetry":3,"menu-audits":6,"menu-decisions":7,"menu-projects":23,"menu-workflows":99,"wiki":116,"doc-\u002Fdocs\u002Fdecisions\u002F0002-docs-drift-detection":429},{"value":4,"alert":5},"18%",false,[],[8,11,14,17,20],{"label":9,"to":10},"0041 The visitor view becomes its own app, and the portal reads only as a developer platform","\u002Fdecisions\u002F0041-personal-site-splits-from-developer-portal",{"label":12,"to":13},"0040 Visitors land on the front page and toggle to the developer view","\u002Fdecisions\u002F0040-developer-portal-visitor-structure",{"label":15,"to":16},"0039 The developer portal is redesigned for visitors, from a twelve-site benchmark","\u002Fdecisions\u002F0039-developer-portal-benchmark",{"label":18,"to":19},"0038 Marina Roustan's discovery","\u002Fdecisions\u002F0038-marina-roustan-discovery",{"label":21,"to":22},"0013 New linters: the robustness gap is tsconfig and enforcement, not plugins","\u002Fdecisions\u002F0013-linter-coverage",[24,29,60,83],{"labelKey":25,"icon":26,"to":27,"badge":28},"app.menu.allProjects","i-lucide-layers","\u002Fprojects","11",{"labelKey":30,"icon":31,"to":32,"badge":33,"children":34},"app.menu.kinds.apps","i-lucide-app-window","\u002Fprojects?kind=apps","5",[35,40,45,50,55],{"label":36,"icon":31,"to":37,"badge":38,"coverage":39},"developer-portal","\u002Fprojects\u002Fdeveloper-portal","94%",94.37,{"label":41,"icon":31,"to":42,"badge":43,"coverage":44},"huella-legal","\u002Fprojects\u002Fhuella-legal","97%",97.48,{"label":46,"icon":31,"to":47,"badge":48,"coverage":49},"marina-roustan","\u002Fprojects\u002Fmarina-roustan","100%",100,{"label":51,"icon":31,"to":52,"badge":53,"coverage":54},"portfolio","\u002Fprojects\u002Fportfolio","91%",91.31,{"label":56,"icon":31,"to":57,"badge":58,"coverage":59},"wp-editor","\u002Fprojects\u002Fwp-editor","50%",49.89,{"labelKey":61,"icon":62,"to":63,"badge":64,"children":65},"app.menu.kinds.packages","i-lucide-package","\u002Fprojects?kind=packages","4",[66,71,75,80],{"label":67,"icon":62,"to":68,"badge":69,"coverage":70},"configs","\u002Fprojects\u002Fconfigs","76%",75.7,{"label":72,"icon":62,"to":73,"badge":48,"coverage":74},"content","\u002Fprojects\u002Fcontent",99.58,{"label":76,"icon":62,"to":77,"badge":78,"coverage":79},"i18n","\u002Fprojects\u002Fi18n","99%",99.08,{"label":81,"icon":62,"to":82,"badge":48,"coverage":49},"observability","\u002Fprojects\u002Fobservability",{"labelKey":84,"icon":85,"to":86,"badge":87,"children":88},"app.menu.kinds.infrastructure","i-lucide-server","\u002Fprojects?kind=infrastructure","2",[89,94],{"label":90,"icon":85,"to":91,"badge":92,"coverage":93},"scripts","\u002Fprojects\u002Fscripts","79%",78.6,{"label":95,"icon":85,"to":96,"badge":97,"coverage":98},"translations","\u002Fprojects\u002Ftranslations","93%",93.33,[100,103,106,109,112],{"label":101,"to":102},"Huella Legal","\u002Fworkflows\u002Fhuella-legal",{"label":104,"to":105},"Marina Roustan","\u002Fworkflows\u002Fmarina-roustan",{"label":107,"to":108},"Developer portal front door","\u002Fworkflows\u002Fdeveloper-portal-front-door",{"label":110,"to":111},"Huella Legal editorial","\u002Fworkflows\u002Fhuella-legal-editorial",{"labelKey":113,"icon":114,"to":115},"app.menu.newProject","i-lucide-plus","\u002Fworkflows\u002Fnew",[117,134,210,255,291,352],{"id":118,"label":119,"icon":120,"blurb":121,"groups":122},"workspace","Workspace","i-lucide-home","The two files at the root, and the generated index of everything the repo can do.",[123],{"key":124,"label":125,"entries":126},"root","The root",[127,131],{"path":128,"label":129,"kind":130},"\u002Freadme","Joinery","readme",{"path":132,"label":133,"kind":130},"\u002Fsecurity","Security policy",{"id":135,"label":136,"icon":137,"blurb":138,"groups":139},"docs","Docs","i-lucide-library","Subjects no single project owns — the models, the procedures, the answered decisions.",[140,150,168,186,192,198,204],{"key":135,"label":141,"entries":142},"Start here",[143,147],{"path":144,"label":145,"kind":146},"\u002Fdocs\u002Freadme","Overview","doc",{"path":148,"label":149,"kind":146},"\u002Fdocs\u002Ffeatures","Features",{"key":151,"label":152,"entries":153},"concepts","Concepts",[154,156,159,162,165],{"path":155,"label":145,"kind":146},"\u002Fdocs\u002Fconcepts\u002Freadme",{"path":157,"label":158,"kind":146},"\u002Fdocs\u002Fconcepts\u002Fversioning","How a version gets derived from a commit",{"path":160,"label":161,"kind":146},"\u002Fdocs\u002Fconcepts\u002Fconventions","Naming and folder conventions",{"path":163,"label":164,"kind":146},"\u002Fdocs\u002Fconcepts\u002Fagent-setup","The agent setup as one inspectable system",{"path":166,"label":167,"kind":146},"\u002Fdocs\u002Fconcepts\u002Fboundaries","Why the boundary system exists",{"key":169,"label":170,"entries":171},"guides","Guides",[172,174,177,180,183],{"path":173,"label":145,"kind":146},"\u002Fdocs\u002Fguides\u002Freadme",{"path":175,"label":176,"kind":146},"\u002Fdocs\u002Fguides\u002Fchange-lifecycle","A change, end to end",{"path":178,"label":179,"kind":146},"\u002Fdocs\u002Fguides\u002Fadding-a-locale","Adding a locale",{"path":181,"label":182,"kind":146},"\u002Fdocs\u002Fguides\u002Ffirst-hour","First hour in this repo",{"path":184,"label":185,"kind":146},"\u002Fdocs\u002Fguides\u002Frepo-secrets","Provisioning the repo secrets",{"key":187,"label":188,"entries":189},"decisions","Decisions",[190],{"path":191,"label":145,"kind":146},"\u002Fdocs\u002Fdecisions\u002Freadme",{"key":193,"label":194,"entries":195},"audits","Audits",[196],{"path":197,"label":145,"kind":146},"\u002Fdocs\u002Faudits\u002Freadme",{"key":199,"label":200,"entries":201},"workflows","Workflows",[202],{"path":203,"label":145,"kind":146},"\u002Fdocs\u002Fworkflows\u002Freadme",{"key":205,"label":206,"entries":207},"benchmarks","Benchmarks",[208],{"path":209,"label":145,"kind":146},"\u002Fdocs\u002Fbenchmarks\u002Freadme",{"id":211,"label":212,"icon":31,"blurb":213,"groups":214},"apps","Apps","Each app's own reference, colocated with its code so it changes in the same diff.",[215,220,233,240,245,250],{"key":36,"label":216,"entries":217},"Developer Portal",[218],{"path":219,"label":145,"kind":130},"\u002Fapps\u002Fdeveloper-portal\u002Freadme",{"key":41,"label":101,"entries":221},[222,224,227,230],{"path":223,"label":145,"kind":130},"\u002Fapps\u002Fhuella-legal\u002Freadme",{"path":225,"label":226,"kind":130},"\u002Fapps\u002Fhuella-legal\u002Fdesign","Huella Legal design",{"path":228,"label":229,"kind":130},"\u002Fapps\u002Fhuella-legal\u002Flayers\u002Finterest\u002Freadme","layers\u002Finterest",{"path":231,"label":232,"kind":130},"\u002Fapps\u002Fhuella-legal\u002Flayers\u002Flegacy\u002Freadme","layers\u002Flegacy",{"key":46,"label":104,"entries":234},[235,237],{"path":236,"label":145,"kind":130},"\u002Fapps\u002Fmarina-roustan\u002Freadme",{"path":238,"label":239,"kind":130},"\u002Fapps\u002Fmarina-roustan\u002Fdesign","Marina Roustan design",{"key":51,"label":241,"entries":242},"Portfolio",[243],{"path":244,"label":145,"kind":130},"\u002Fapps\u002Fportfolio\u002Freadme",{"key":130,"label":246,"entries":247},"Readme",[248],{"path":249,"label":212,"kind":130},"\u002Fapps\u002Freadme",{"key":56,"label":251,"entries":252},"Wp Editor",[253],{"path":254,"label":145,"kind":130},"\u002Fapps\u002Fwp-editor\u002Freadme",{"id":256,"label":257,"icon":62,"blurb":258,"groups":259},"packages","Packages","Each package's own reference, colocated with its code so it changes in the same diff.",[260,268,276,282,287],{"key":67,"label":261,"entries":262},"Configs",[263,265],{"path":264,"label":145,"kind":130},"\u002Fpackages\u002Fconfigs\u002Freadme",{"path":266,"label":267,"kind":130},"\u002Fpackages\u002Fconfigs\u002Fsrc\u002Feslint\u002Flib\u002Freadme","eslint\u002Flib",{"key":72,"label":269,"entries":270},"Content",[271,273],{"path":272,"label":145,"kind":130},"\u002Fpackages\u002Fcontent\u002Freadme",{"path":274,"label":275,"kind":130},"\u002Fpackages\u002Fcontent\u002Fsrc\u002Fnuxt\u002Freadme","nuxt",{"key":76,"label":76,"entries":277},[278,280],{"path":279,"label":145,"kind":130},"\u002Fpackages\u002Fi18n\u002Freadme",{"path":281,"label":275,"kind":130},"\u002Fpackages\u002Fi18n\u002Fsrc\u002Fnuxt\u002Freadme",{"key":81,"label":283,"entries":284},"Observability",[285],{"path":286,"label":145,"kind":130},"\u002Fpackages\u002Fobservability\u002Freadme",{"key":130,"label":246,"entries":288},[289],{"path":290,"label":257,"kind":130},"\u002Fpackages\u002Freadme",{"id":292,"label":293,"icon":85,"blurb":294,"groups":295},"infrastructure","Infrastructure","Each service's own reference, colocated with its code so it changes in the same diff.",[296,300,347],{"key":130,"label":246,"entries":297},[298],{"path":299,"label":293,"kind":130},"\u002Finfrastructure\u002Freadme",{"key":90,"label":301,"entries":302},"Scripts",[303,305,308,311,314,317,320,323,326,329,332,335,338,341,344],{"path":304,"label":145,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Freadme",{"path":306,"label":307,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fbrand\u002Freadme","brand",{"path":309,"label":310,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fci-failures\u002Freadme","ci-failures",{"path":312,"label":313,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fcoverage-report\u002Freadme","coverage-report",{"path":315,"label":316,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fdev\u002Freadme","dev",{"path":318,"label":319,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fdrift\u002Freadme","drift",{"path":321,"label":322,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fenv-sync\u002Freadme","env-sync",{"path":324,"label":325,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Finvariants\u002Freadme","invariants",{"path":327,"label":328,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Freadme","issue",{"path":330,"label":331,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fmap\u002Freadme","map",{"path":333,"label":334,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fshared\u002Freadme","shared",{"path":336,"label":337,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fship\u002Freadme","ship",{"path":339,"label":340,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fusage\u002Freadme","usage",{"path":342,"label":343,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fworkflow\u002Freadme","workflow",{"path":345,"label":346,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fworktree\u002Freadme","worktree",{"key":95,"label":348,"entries":349},"Translations",[350],{"path":351,"label":145,"kind":130},"\u002Finfrastructure\u002Ftranslations\u002Freadme",{"id":353,"label":354,"icon":355,"blurb":356,"groups":357},"agents","Agent setup","i-lucide-bot","The skills and subagents an agent working in this repo loads.",[358,373],{"key":353,"label":359,"entries":360},"Subagents",[361,364,367,370],{"path":362,"label":363,"kind":130},"\u002F.claude\u002Fagents\u002Freview-architecture","Review Architecture",{"path":365,"label":366,"kind":130},"\u002F.claude\u002Fagents\u002Freview-correctness","Review Correctness",{"path":368,"label":369,"kind":130},"\u002F.claude\u002Fagents\u002Freview-tests","Review Tests",{"path":371,"label":372,"kind":130},"\u002F.claude\u002Fagents\u002Fticket-planner","Ticket Planner",{"key":374,"label":375,"entries":376},"skills","Skills",[377,381,384,387,390,393,396,399,402,405,408,411,414,417,420,423,426],{"path":378,"label":379,"kind":380},"\u002F.claude\u002Fskills\u002Fcontent-new-vendor\u002Fskill","Adding a content vendor","skill",{"path":382,"label":383,"kind":380},"\u002F.claude\u002Fskills\u002Fconfigs-new-rule\u002Fskill","Adding a lint rule",{"path":385,"label":386,"kind":380},"\u002F.claude\u002Fskills\u002Fscripts-new-script\u002Fskill","Adding a script",{"path":388,"label":389,"kind":380},"\u002F.claude\u002Fskills\u002Fi18n-new-vendor\u002Fskill","Adding a translations vendor",{"path":391,"label":392,"kind":380},"\u002F.claude\u002Fskills\u002Fnuxt-module-route\u002Fskill","Adding to a package's Nuxt module",{"path":394,"label":395,"kind":380},"\u002F.claude\u002Fskills\u002Fbenchmark\u002Fskill","Benchmarking a design",{"path":397,"label":398,"kind":380},"\u002F.claude\u002Fskills\u002Fwp-bulk-edit\u002Fskill","Bulk-editing WordPress through the editor",{"path":400,"label":401,"kind":380},"\u002F.claude\u002Fskills\u002Fdoc-drift-check\u002Fskill","Checking docs against code",{"path":403,"label":404,"kind":380},"\u002F.claude\u002Fskills\u002Fcomment-cleanup\u002Fskill","Comment cleanup",{"path":406,"label":407,"kind":380},"\u002F.claude\u002Fskills\u002Fgithub-issue\u002Fskill","Creating a GitHub issue",{"path":409,"label":410,"kind":380},"\u002F.claude\u002Fskills\u002Fproject-workflow\u002Fskill","Running a project through a workflow",{"path":412,"label":413,"kind":380},"\u002F.claude\u002Fskills\u002Fnew-package\u002Fskill","Scaffolding a workspace project",{"path":415,"label":416,"kind":380},"\u002F.claude\u002Fskills\u002Fstart-issue\u002Fskill","Starting work on a GitHub issue",{"path":418,"label":419,"kind":380},"\u002F.claude\u002Fskills\u002Fdecision-report\u002Fskill","Writing a decision report",{"path":421,"label":422,"kind":380},"\u002F.claude\u002Fskills\u002Faudit-report\u002Fskill","Writing an audit",{"path":424,"label":425,"kind":380},"\u002F.claude\u002Fskills\u002Fhouse-docs\u002Fskill","Writing docs here",{"path":427,"label":428,"kind":380},"\u002F.claude\u002Fskills\u002Fwriting-tests\u002Fskill","Writing specs here",{"id":430,"title":431,"body":432,"description":664,"extension":672,"kind":673,"meta":674,"navigation":678,"path":679,"seo":680,"stem":681,"url":673,"verdict":673,"__hash__":682},"docs\u002Fdocs\u002Fdecisions\u002F0002-docs-drift-detection.md","🧭 Layered detection for docs drift",{"type":433,"value":434,"toc":663},"minimark",[435,439,444,469,473,476,524,531,535,597,601,604,613,616,620],[436,437,431],"h1",{"id":438},"layered-detection-for-docs-drift",[440,441,443],"h2",{"id":442},"context","Context",[445,446,447,448,452,453,456,457,464,465,468],"p",{},"Duplicated content across the repo already drifts — the ",[449,450,451],"code",{},"boundaries.ts"," ↔ README architecture\ntable pair and the ",[449,454,455],{},"docs\u002Freviews"," history table are both known cases, and CLAUDE.md calls the\nfirst one out by name as \"the standing failure mode in this repo.\" The only mechanism catching it\ntoday is ",[458,459,461],"a",{"href":460},"repo:.claude\u002Fhooks\u002Fcheck-invariants.sh",[449,462,463],{},"check-invariants.sh",", a ",[449,466,467],{},"PostToolUse"," hook\nthat fires only when Claude Code itself edits one of a few hardcoded known-pairs, one file at a\ntime. Nothing runs in CI or the pre-push hook, nothing checks relative links between docs, and\nnothing catches a human PR, a multi-file edit, or a kind of drift the hook doesn't already know\nabout.",[440,470,472],{"id":471},"result","Result",[445,474,475],{},"No single mechanism covers every class of drift, so three layered checks are adopted, each scoped\nto the failure mode only it catches:",[477,478,479,501,518],"ol",{},[480,481,482,486,487,490,491,496,497,500],"li",{},[483,484,485],"strong",{},"Generate, don't duplicate, where the source is code."," The README's ",[449,488,489],{},"Who has it"," column\ncan't come from ",[458,492,494],{"href":493},"repo:packages\u002Fconfigs\u002Fsrc\u002Feslint\u002Flib\u002Fboundaries.ts",[449,495,451],{}," alone —\nit also depends on every package's ",[449,498,499],{},"nx.tags"," — but both together are enough to render the whole\narchitecture table. A script does that and CI fails if the checked-in README differs from the\nrender. This retires the exact case CLAUDE.md names, structurally rather than by reminder.",[480,502,503,510,511,513,514,517],{},[483,504,505,506,509],{},"A repo-wide ",[449,507,508],{},"docs:check"," step in CI and the pre-push hook."," ",[449,512,463],{},"'s\nremaining rules (a new ",[449,515,516],{},"docs\u002Freviews\u002F*.md"," has its history row, a new project has its tag\nentries in all three places) aren't renderable from a single source, so they stay\nassertion-based — but the assertion has to run over the whole tree, not the one file an agent\nhappens to be editing, so it also catches human PRs and GitHub-web edits.",[480,519,520,523],{},[483,521,522],{},"A markdown link checker in CI."," Orthogonal to both of the above: a renamed or deleted file\norphans a relative link without duplicating or contradicting anything, so neither generation nor\nan invariant assertion would ever see it.",[445,525,526,527,530],{},"Scheduled ",[449,528,529],{},"repo-review"," runs are deferred out of this decision (see Consequences) rather than\nadopted as a fourth layer now.",[440,532,534],{"id":533},"options-considered","Options considered",[536,537,538,556],"table",{},[539,540,541],"thead",{},[542,543,544,548],"tr",{},[545,546,547],"th",{},"Option",[545,549,550,551,555],{},"Why not (as the ",[552,553,554],"em",{},"only"," mechanism)",[557,558,559,571,579,587],"tbody",{},[542,560,561,568],{},[562,563,564,565,567],"td",{},"Keep ",[449,566,463],{}," as-is",[562,569,570],{},"Fires only inside a Claude Code session editing one file; a human PR, a GitHub-web edit, or a multi-file agent pass never trips it",[542,572,573,576],{},[562,574,575],{},"Generate everything from source",[562,577,578],{},"Only works where a single source of truth exists in code — prose (the reasoning in a README, this record's own Context) has no source to generate from",[542,580,581,584],{},[562,582,583],{},"Link checker only",[562,585,586],{},"Catches dead links, not two live sections that still resolve but now say different things",[542,588,589,594],{},[562,590,526,591,593],{},[449,592,529],{}," only",[562,595,596],{},"Catches prose-level semantic drift a diff can't see, but a monthly cadence is too coarse to stop structural duplication from landing in the first place — it's a complement to the other layers, not a replacement",[440,598,600],{"id":599},"consequences","Consequences",[445,602,603],{},"Unlocks a CI gate that catches drift regardless of edit path, plus a generation step that removes\nthe specific pair CLAUDE.md flags as the repo's standing failure mode. Forecloses nothing — all\nthree layers are additive to what exists.",[445,605,526,606,608,609,612],{},[449,607,529],{}," stays deferred: it needs a run environment outside GitHub Actions (there is\nno Claude\u002Fagent execution in ",[449,610,611],{},".github\u002Fworkflows\u002F"," today), and the three layers above already cover\nevery drift case found during this decision. Revisit it if a future review's Docs card catches a\ncontradiction none of the three layers would have — that's the signal that structural checks have\nhit their ceiling and a slower, prose-level pass earns its cost.",[445,614,615],{},"Each layer is small enough to be its own follow-up implementation issue rather than one large\nchange; none has been filed yet.",[440,617,619],{"id":618},"confirmation","Confirmation",[445,621,622,625,626,629,630,636,637,640,641,644,645,647,648,654,655,658,659,662],{},[483,623,624],{},"Two of the three layers now run in CI",", not one — this file previously read ",[449,627,628],{},"Status: Implemented","\nwith none of the three built, the exact case\n",[458,631,633],{"href":632},"\u002Fwiki\u002Fdocs\u002Fdecisions\u002F0011-docs-system-enforcement",[449,634,635],{},"0011-docs-system-enforcement.md"," names as a symptom of the\nstatus line tracking the wrong thing. ",[449,638,639],{},"pnpm exec nx check-docs @joinery\u002Fdeveloper-portal"," in ",[449,642,643],{},"ci.yml","\nruns the markdown link checker (layer 3) and the ",[449,646,463],{},"-mirrored assertions (the\nassertion half of layer 2) over the whole tree, not only the file a Claude Code session happens to\nbe editing. ",[483,649,650,651,653],{},"Layer 1 — generating the architecture table from ",[449,652,451],{}," instead of only\nasserting it matches — is still unbuilt",", and the pre-push hook still doesn't run this check, which\nis why ",[449,656,657],{},"status"," stays ",[449,660,661],{},"to-implement"," rather than flipping back.",{"title":664,"searchDepth":665,"depth":665,"links":666},"",2,[667,668,669,670,671],{"id":442,"depth":665,"text":443},{"id":471,"depth":665,"text":472},{"id":533,"depth":665,"text":534},{"id":599,"depth":665,"text":600},{"id":618,"depth":665,"text":619},"md",null,{"issue":675,"status":676,"decision":677},40,"implemented","accepted",true,"\u002Fdocs\u002Fdecisions\u002F0002-docs-drift-detection",{"title":431,"description":664},"docs\u002Fdecisions\u002F0002-docs-drift-detection","1onXToB-8wSYu6ZRdG_H1_Blbh-71AtU2uOnADOw10k",1795478405272]