[{"data":1,"prerenderedAt":1782},["ShallowReactive",2],{"figure-telemetry":3,"menu-audits":6,"menu-decisions":7,"menu-projects":23,"menu-workflows":99,"wiki":116,"doc-\u002Fdocs\u002Fdecisions\u002F0037-huella-legal-e2e-and-visual-tooling":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":1762,"extension":1771,"kind":1772,"meta":1773,"navigation":1777,"path":1778,"seo":1779,"stem":1780,"url":1772,"verdict":1772,"__hash__":1781},"docs\u002Fdocs\u002Fdecisions\u002F0037-huella-legal-e2e-and-visual-tooling.md","🧭 Huella Legal's e2e runs in-app in one pinned image, and coverage gates test",{"type":433,"value":434,"toc":1761},"minimark",[435,444,461,466,480,483,487,492,634,637,703,717,720,1188,1192,1324,1328,1334,1345,1367,1409,1414,1521,1524,1544,1594,1597,1601],[436,437,439,440],"h1",{"id":438},"huella-legals-e2e-runs-in-app-in-one-pinned-image-and-coverage-gates-test","🧭 Huella Legal's e2e runs in-app in one pinned image, and coverage gates ",[441,442,443],"code",{},"test",[445,446,447],"blockquote",{},[448,449,450,454,455,460],"p",{},[451,452,453],"strong",{},"Screenshot baselines were removed in #241."," Everything below about baselines describes the\nsetup that was dropped; the rest stands. See ",[456,457,459],"a",{"href":458},"#baselines-removed","Baselines removed",".",[462,463,465],"h2",{"id":464},"context","Context",[448,467,468,469,475,476,479],{},"The ",[456,470,474],{"href":471,"rel":472},"https:\u002F\u002Fgithub.com\u002Fxfontr\u002Fjoinery\u002Fblob\u002F3891f29041e31884c6821e99fd5ecc9c5daab2af\u002Fdocs\u002Fplans\u002Fhuella-legal-implementation.md",[473],"nofollow","implementation plan"," gives each page ticket a\nPlaywright spec against the built app: an axe scan with zero violations and screenshots at 390, 768\nand 1280. It gives the app a coverage threshold, too. None of that exists yet. #189 asks five\nthings before A1 (#192) builds the harness: where Playwright lives, which browsers and OS image the\nbaselines come from, what the CI job looks like, where the fake WordPress's data lives, and what\nthe threshold number is. The lean was an in-app ",[441,477,478],{},"e2e"," target.",[448,481,482],{},"Two of the five were the wrong shape. As things stand, a threshold number is decorative. The\n\"fake WP\" also has to be a fake translations vendor.",[462,484,486],{"id":485},"result","Result",[448,488,489],{},[451,490,491],{},"The lean holds, and three things the issue took as given do not.",[493,494,495,508],"table",{},[496,497,498],"thead",{},[499,500,501,505],"tr",{},[502,503,504],"th",{},"Question",[502,506,507],{},"Answer",[509,510,511,535,562,593,612],"tbody",{},[499,512,513,517],{},[514,515,516],"td",{},"Where Playwright lives",[514,518,519,520,522,523,526,527,530,531,534],{},"An ",[441,521,478],{}," script in ",[441,524,525],{},"apps\u002Fhuella-legal\u002Fpackage.json",", driven by ",[441,528,529],{},"playwright.config.ts"," at the app root with specs in ",[441,532,533],{},"apps\u002Fhuella-legal\u002Fe2e\u002F*.spec.ts",". There's no new project, tag or Nx plugin",[499,536,537,540],{},[514,538,539],{},"Browsers and baselines",[514,541,542,543,546,547,550,551,554,555,561],{},"Chromium only, as three Playwright projects at widths 390, 768 and 1280, which replaces the plan's screenshot helper. Baselines are written only in ",[441,544,545],{},"mcr.microsoft.com\u002Fplaywright:v1.63.0-noble",", and ",[441,548,549],{},"@playwright\u002Ftest"," is pinned to exactly ",[441,552,553],{},"1.63.0",". The image ships its browsers, so ",[451,556,557,558],{},"nothing runs ",[441,559,560],{},"playwright install",". Playwright's docs say a version mismatch between image and package leaves it \"unable to locate browser executables\", so the two move together",[499,563,564,567],{},[514,565,566],{},"CI job",[514,568,569,570,572,573,576,577,580,581,584,585,588,589,592],{},"A second job, ",[441,571,478],{},", in ",[441,574,575],{},"ci.yml",". It runs in that image, ",[441,578,579],{},"needs: checks",", and runs ",[441,582,583],{},"nx affected -t e2e"," with ",[441,586,587],{},"NX_CLOUD_ACCESS_TOKEN",", so the build ",[441,590,591],{},"checks"," just cached is restored rather than redone",[499,594,595,598],{},[514,596,597],{},"Fake upstream data",[514,599,600,603,604,607,608,611],{},[441,601,602],{},"e2e\u002Fupstream.ts"," is one ",[441,605,606],{},"node:http"," server with no dependency. It generates synthetic posts and terms from ",[441,609,610],{},"const"," builders at the top of the file, serves them on the WordPress provider's paths, and answers translations too. No fixture files; the one directory exception is the PNG baselines",[499,613,614,617],{},[514,615,616],{},"Coverage threshold",[514,618,619,620,623,624,627,628,630,631],{},"Lines and statements 90, functions 85, branches 80. ",[441,621,622],{},"app\u002Flab\u002F**"," and ",[441,625,626],{},"app\u002Fpages\u002F**"," are excluded from the denominator. It only bites because the app's ",[441,629,443],{}," script gains ",[441,632,633],{},"--coverage",[448,635,636],{},"What the issue took as given:",[638,639,640,664,678],"ul",{},[641,642,643,646,647,649,650,652,653,656,657,660,661,663],"li",{},[451,644,645],{},"A threshold is never evaluated today."," CI and pre-push run ",[441,648,443],{},", and a threshold only runs\nunder ",[441,651,633],{},". Measured on this app: with ",[441,654,655],{},"--coverage.thresholds.lines=99",", plain\n",[441,658,659],{},"vitest run"," exits 0, and adding ",[441,662,633],{}," fails at 38.96%.",[641,665,666,669,670,673,674,677],{},[451,667,668],{},"In a Vitest projects config, coverage is root-only."," The docs say so, and developer-portal\nshows it: its nuxt project carries the preset's ",[441,671,672],{},"coverage"," block, yet no ",[441,675,676],{},"coverage-summary.json","\nis written. A threshold copied onto a project is silently ignored.",[641,679,680,683,684,687,688,691,692,695,696,699,700,460],{},[451,681,682],{},"Every page needs a translations upstream, not only content."," ",[441,685,686],{},"translations.vendor"," is\n",[441,689,690],{},"tolgee",", and an unset vendor is a ",[441,693,694],{},"500"," on first request. The fake answers\n",[441,697,698],{},"\u002Fv2\u002Fprojects\u002F\u003Cproject>\u002Ftranslations\u002F\u003Clocale>"," as well as ",[441,701,702],{},"\u002Fwp-json\u002Fwp\u002Fv2\u002F*",[448,704,705,706,708,709,712,713,716],{},"The numbers are from developer-portal, the other Nuxt app on the same two-project config: 94.49%\nlines, 93.72% statements, 89.41% functions and 82.28% branches. The packages sit at 92–100%. Today's\n38.96% for huella-legal is 30 of 77 lines. ",[441,707,622],{}," makes up 36 of the 47 uncovered ones, and it\nis dev-only, stripped from every production build by ",[441,710,711],{},"nuxt.config.ts","'s ",[441,714,715],{},"pages:extend"," hook. Pages\nare left out because Playwright covers them, and v8 sees none of that.",[448,718,719],{},"Each row is one change. Line numbers are as of this report.",[493,721,722,735],{},[496,723,724],{},[499,725,726,729,732],{},[502,727,728],{},"#",[502,730,731],{},"Where",[502,733,734],{},"The change",[509,736,737,763,799,829,891,960,1003,1038,1101,1124,1139,1161],{},[499,738,739,742,750],{},[514,740,741],{},"1",[514,743,744,683,747],{},[441,745,746],{},"nx.json:8",[441,748,749],{},"namedInputs.production",[514,751,752,753,623,756,759,760],{},"Add ",[441,754,755],{},"!{projectRoot}\u002Fe2e\u002F**\u002F*",[441,757,758],{},"!{projectRoot}\u002Fplaywright.config.ts",", so a baseline or fake-data edit never invalidates ",[441,761,762],{},"build",[499,764,765,767,776],{},[514,766,87],{},[514,768,769,772,773],{},[441,770,771],{},"nx.json:97",", before ",[441,774,775],{},"collect",[514,777,778,779,584,781,784,785,788,789,792,793,623,796],{},"Add a target default ",[441,780,478],{},[441,782,783],{},"dependsOn: [\"build\"]",", inputs ",[441,786,787],{},"default"," + ",[441,790,791],{},"^production",", outputs ",[441,794,795],{},"{projectRoot}\u002F.playwright",[441,797,798],{},"cache: true",[499,800,801,804,809],{},[514,802,803],{},"3",[514,805,806],{},[441,807,808],{},"apps\u002Fhuella-legal\u002Fvitest.config.ts:3",[514,810,811,812,814,815,683,817,819,820,623,822,824,825,828],{},"Replace it with developer-portal's two-project config. Put ",[441,813,672],{}," at the ",[451,816,124],{},[441,818,443],{},": the preset's block, plus ",[441,821,622],{},[441,823,626],{}," in ",[441,826,827],{},"exclude",", plus the four thresholds",[499,830,831,833,840],{},[514,832,64],{},[514,834,835,683,838],{},[441,836,837],{},"apps\u002Fhuella-legal\u002Fpackage.json:13",[441,839,443],{},[514,841,842,843,846,847,850,851,683,853,855,856,824,859,862,863,866,867,623,870,873,874,877,878,881,882,866,884,886,887,890],{},"Change it to ",[441,844,845],{},"vitest . --watch=false --coverage",". Add ",[441,848,849],{},"e2e: playwright test",", plus ",[441,852,549],{},[441,854,553],{}," (exact) and ",[441,857,858],{},"@axe-core\u002Fplaywright",[441,860,861],{},"devDependencies"," alongside A1's ",[441,864,865],{},"@nuxt\u002Ftest-utils",", ",[441,868,869],{},"@vue\u002Ftest-utils",[441,871,872],{},"happy-dom",". The ",[441,875,876],{},"nx"," block gains ",[441,879,880],{},"targets.e2e.inputs",": ",[441,883,787],{},[441,885,791],{}," and the locale JSON row 6 serves. The app doesn't depend on ",[441,888,889],{},"@joinery\u002Ftranslations",", so without that input a copy change would replay a cached green run",[499,892,893,895,901],{},[514,894,33],{},[514,896,897,900],{},[441,898,899],{},"apps\u002Fhuella-legal\u002Fplaywright.config.ts"," (new)",[514,902,903,623,906,909,910,913,914,917,918,921,922,925,926,929,930,546,933,584,936,939,940,943,944,947,948,951,952,955,956,959],{},[441,904,905],{},"testDir: \"e2e\"",[441,907,908],{},"outputDir: \".playwright\"",". Three Chromium projects by width. ",[441,911,912],{},"snapshotPathTemplate"," is ",[441,915,916],{},"{testDir}\u002F__screenshots__\u002F{testFileName}\u002F{projectName}\u002F{arg}{ext}",", with no ",[441,919,920],{},"{platform}"," because only one platform writes baselines. ",[441,923,924],{},"ignoreSnapshots: !process.env.CI",". Two ",[441,927,928],{},"webServer"," entries: ",[441,931,932],{},"node e2e\u002Fupstream.ts",[441,934,935],{},"node .output\u002Fserver\u002Findex.mjs",[441,937,938],{},"PORT"," and the ",[441,941,942],{},"NUXT_CONTENT_VENDOR_*","\u002F",[441,945,946],{},"NUXT_TRANSLATIONS_VENDOR_*"," vars pointed at the upstream on ",[441,949,950],{},"localhost",". ",[441,953,954],{},"NUXT_TRANSLATIONS_VENDOR_OPTIONS_TOKEN"," gets a dummy value, because ",[441,957,958],{},"TolgeeProvider"," rejects an empty token",[499,961,962,965,970],{},[514,963,964],{},"6",[514,966,967,900],{},[441,968,969],{},"apps\u002Fhuella-legal\u002Fe2e\u002Fupstream.ts",[514,971,972,973,866,976,866,979,623,982,985,986,943,989,939,992,995,996,999,1000,1002],{},"The fake. ",[441,974,975],{},"posts",[441,977,978],{},"pages",[441,980,981],{},"categories",[441,983,984],{},"tags"," return ",[441,987,988],{},"x-wp-total",[441,990,991],{},"x-wp-totalpages",[441,993,994],{},"_embed"," shape ",[441,997,998],{},"WordpressProvider.ts"," asks for. Its hosts are its own ",[441,1001,950],{}," origin. The translations route serves the committed locale JSON",[499,1004,1005,1008,1017],{},[514,1006,1007],{},"7",[514,1009,1010,1013,1014],{},[441,1011,1012],{},"apps\u002Fhuella-legal\u002Ftsconfig.e2e.json"," (new), ",[441,1015,1016],{},"tsconfig.json:8",[514,1018,1019,1020,1023,1024,623,1027,1029,1030,1033,1034,1037],{},"Extend ",[441,1021,1022],{},"@joinery\u002Fconfigs\u002Ftsconfig\u002Fnode.json"," over ",[441,1025,1026],{},"e2e\u002F**\u002F*.ts",[441,1028,529],{},", and add it to ",[441,1031,1032],{},"references",", as developer-portal's ",[441,1035,1036],{},"tsconfig.tools.json"," does. Without it, nothing typechecks these files",[499,1039,1040,1043,1051],{},[514,1041,1042],{},"8",[514,1044,1045,772,1048],{},[441,1046,1047],{},".github\u002Fworkflows\u002Fci.yml:46",[441,1049,1050],{},"dependency-review",[514,1052,1053,1054,1056,1057,1060,1061,1064,1065,1068,1069,1071,1072,866,1075,1077,1078,1081,1082,623,1085,1088,1089,1092,1093,1096,1097,1100],{},"Add the ",[441,1055,478],{}," job: ",[441,1058,1059],{},"container.image"," set to the image above with ",[441,1062,1063],{},"options: --user 1001",", then the same checkout, pnpm, node and ",[441,1066,1067],{},"--ignore-scripts"," install as ",[441,1070,591],{},", then ",[441,1073,1074],{},"nx-set-shas",[441,1076,583],{},", and an SHA-pinned ",[441,1079,1080],{},"actions\u002Fupload-artifact"," of ",[441,1083,1084],{},"apps\u002Fhuella-legal\u002F.playwright",[441,1086,1087],{},"apps\u002Fhuella-legal\u002Fe2e\u002F__screenshots__"," on failure. The image installs ",[441,1090,1091],{},"git",", so ",[441,1094,1095],{},"actions\u002Fcheckout"," does a real clone and ",[441,1098,1099],{},"affected"," has history",[499,1102,1103,1106,1114],{},[514,1104,1105],{},"9",[514,1107,1108,772,1111],{},[441,1109,1110],{},".github\u002Fdependabot.yml:39",[441,1112,1113],{},"dependencies",[514,1115,1116,1117,1120,1121,1123],{},"Add a ",[441,1118,1119],{},"playwright"," group matching ",[441,1122,549],{},", so the bump arrives as its own PR",[499,1125,1126,1129,1134],{},[514,1127,1128],{},"10",[514,1130,1131],{},[441,1132,1133],{},".gitignore:20",[514,1135,752,1136],{},[441,1137,1138],{},".playwright",[499,1140,1141,1143,1151],{},[514,1142,28],{},[514,1144,1145,866,1148],{},[441,1146,1147],{},"apps\u002Fhuella-legal\u002FREADME.md:20",[441,1149,1150],{},":149",[514,1152,1153,1154,1157,1158,1160],{},"Add a Commands row for ",[441,1155,1156],{},"pnpm e2e",", and rewrite Testing for the new split: two Vitest projects, coverage on ",[441,1159,443],{},", e2e against the fake",[499,1162,1163,1166,1174],{},[514,1164,1165],{},"12",[514,1167,1168,866,1171],{},[441,1169,1170],{},".agents\u002Fskills\u002Fwriting-tests\u002FSKILL.md:19",[441,1172,1173],{},":93",[514,1175,1176,1177,623,1180,1183,1184,1187],{},"Name ",[441,1178,1179],{},"e2e\u002F",[441,1181,1182],{},"__screenshots__\u002F"," as the exceptions to \"beside its subject\" and \"no fixtures directory\". Drop the now-false line saying ",[441,1185,1186],{},"app\u002F"," has no vue preset",[462,1189,1191],{"id":1190},"options-considered","Options considered",[493,1193,1194,1204],{},[496,1195,1196],{},[499,1197,1198,1201],{},[502,1199,1200],{},"Option",[502,1202,1203],{},"Why not",[509,1205,1206,1226,1255,1269,1277,1289,1310],{},[499,1207,1208,1215],{},[514,1209,1210,1211,1214],{},"A separate ",[441,1212,1213],{},"apps\u002Fhuella-legal-e2e"," project",[514,1216,1217,1218,1221,1222,1225],{},"It needs a new ",[441,1219,1220],{},"type:"," tag in ",[441,1223,1224],{},"boundaries.ts"," and the root README table, plus a workspace-layout entry, all to hold one config and a folder of specs that only ever test this app",[499,1227,1228,1234],{},[514,1229,1230,1233],{},[441,1231,1232],{},"@nx\u002Fplaywright"," inferred targets",[514,1235,1236,1237,1239,1240,1243,1244,1250,1251,1254],{},"It adds a root plugin pinned to the ",[441,1238,876],{}," group. Its gain is atomized ",[441,1241,1242],{},"e2e-ci--*"," targets for distribution, which ",[456,1245,1247],{"href":1246},"\u002Fwiki\u002Fdocs\u002Fdecisions\u002F0026-nx-cloud-remote-cache",[441,1248,1249],{},"0026"," doesn't use. Every other target here is a ",[441,1252,1253],{},"package.json"," script",[499,1256,1257,1266],{},[514,1258,1259,1262,1263],{},[441,1260,1261],{},"runs-on: ubuntu-24.04"," plus ",[441,1264,1265],{},"playwright install --with-deps chromium",[514,1267,1268],{},"The browser version would always match, but GitHub's runner image updates weekly under the baselines. It also installs browsers on every run, which the image does once",[499,1270,1271,1274],{},[514,1272,1273],{},"Chromium, Firefox and WebKit",[514,1275,1276],{},"Triples baselines and runtime. Linux WebKit is not Safari, so it would not stand in for the iOS readers it seems to cover",[499,1278,1279,1282],{},[514,1280,1281],{},"Baselines written on developers' machines",[514,1283,1284,1285,1288],{},"Linux baselines can't come from a Mac. The image's arm64 variant can render differently from CI's amd64. Under amd64 emulation, the host's darwin ",[441,1286,1287],{},"node_modules"," won't run",[499,1290,1291,1294],{},[514,1292,1293],{},"Fake data as committed JSON recordings",[514,1295,1296,1299,1300,866,1303,623,1306,1309],{},[441,1297,1298],{},"writing-tests"," bans fixture directories. S1's recordings carry the live hostname in every ",[441,1301,1302],{},"link",[441,1304,1305],{},"guid",[441,1307,1308],{},"source_url",", so the plan already forbids committing them",[499,1311,1312,1315],{},[514,1313,1314],{},"A per-glob threshold on view models now",[514,1316,1317,623,1320,1323],{},[441,1318,1319],{},"shared\u002F**",[441,1321,1322],{},"app\u002Futils\u002F**"," hold nothing yet; A3 creates the mappers and adds that glob at 95 with them",[462,1325,1327],{"id":1326},"consequences","Consequences",[448,1329,1330,1331,1333],{},"Every page ticket from B onward gets an e2e spec, with axe and three baselines, at a known cost:\none job after ",[441,1332,591],{},", and a restored build. Pre-push does not run e2e, so a green push is not yet\na green e2e.",[448,1335,1336,1337,1340,1341,1344],{},"Baselines prove the app didn't change. They don't prove it matches the lab. ",[441,1338,1339],{},"--font-serif"," is\nGeorgia, a Microsoft font Ubuntu doesn't ship, so Linux screenshots use a substitute serif.\nMontserrat is self-hosted, because the built ",[441,1342,1343],{},".output\u002Fpublic\u002F_fonts"," bundles it. The lab is stripped\nfrom production builds, so e2e cannot screenshot it either. The plan's \"parity with its lab page\"\nacceptance stays a human check on the reviewed machine. Revisit this if the serif is ever\nself-hosted.",[448,1346,1347,1348,1351,1352,1358,1359,1362,1363,1366],{},"The image ref names a registry host. It is an identifier of the same kind as ",[441,1349,1350],{},"NODE_IMAGE"," in\n",[456,1353,1355],{"href":1354},"repo:infrastructure\u002Ftranslations\u002Fdocker\u002FDockerfile",[441,1356,1357],{},"infrastructure\u002Ftranslations\u002Fdocker\u002FDockerfile",",\nand it carries no credential. It is still not one of the two exceptions ",[441,1360,1361],{},"AGENTS.md"," lists. If that\nrule is read to cover it, the fallback is the ",[441,1364,1365],{},"ubuntu-24.04"," row in Options considered, at the\ndrift cost that row names.",[448,1368,1369,1372,1373,1376,1377,866,1380,1383,1384,623,1386,1389,1390,1393,1394,1397,1398,1400,1401,1404,1405,1408],{},[451,1370,1371],{},"Order."," Rows 3–4 go first. Two-project config narrows Vitest's ",[441,1374,1375],{},"include"," to ",[441,1378,1379],{},"app",[441,1381,1382],{},"server",",\n",[441,1385,334],{},[441,1387,1388],{},"tools",". Until it lands, ",[441,1391,1392],{},"vitest ."," collects ",[441,1395,1396],{},"e2e\u002F*.spec.ts"," and crashes importing\n",[441,1399,549],{},". Row 1 goes before rows 5–6, so adding those files never busts the build cache.\nRows 8–9 go last, once ",[441,1402,1403],{},"pnpm exec nx test:e2e @joinery\u002Fhuella-legal"," passes locally with snapshots\nignored. A1 does not wait for A2. A2 changes the translations route in ",[441,1406,1407],{},"upstream.ts"," if it switches\nvendor, and that is its only e2e cost.",[448,1410,1411],{},[451,1412,1413],{},"Tripwires an implementer will hit.",[638,1415,1416,1427,1433,1455,1467,1477,1499,1512],{},[641,1417,1418,1419,1422,1423,1426],{},"The threshold fails the moment row 4 lands. With lab and pages excluded, the app sits at 30 of\n41 lines (73%), and the gap is exactly ",[441,1420,1421],{},"app\u002Fplugins\u002Fobservability.client.ts"," and\n",[441,1424,1425],{},"devWarnings.client.ts",". A1's smoke specs have to cover both.",[641,1428,1429,1432],{},[441,1430,1431],{},".vue"," files don't appear in coverage at all under the node preset. They join the denominator\nonly once the nuxt project exists. Expect the number to move when row 3 lands, not only as specs\nare added.",[641,1434,1435,1436,1439,1440,1443,1444,1447,1448,1451,1452,1454],{},"The first run of a new spec has no baseline, and CI fails on it. Under the default\n",[441,1437,1438],{},"updateSnapshots: \"missing\"",", Playwright writes the new PNG to its snapshot path, not to\n",[441,1441,1442],{},"outputDir",", which is why row 8 uploads both directories. To accept a baseline, commit the\nartifact's PNG under ",[441,1445,1446],{},"e2e\u002F__screenshots__\u002F",". For a changed one, commit its ",[441,1449,1450],{},"-actual.png"," from\n",[441,1453,1138],{}," in place of the old baseline.",[641,1456,1457,1458,1460,1461,1463,1464,1466],{},"A ",[441,1459,549],{}," bump fails e2e until ",[441,1462,575],{},"'s image tag moves in the same PR. Row 9 keeps\nthat bump out of the batched ",[441,1465,1113],{}," PR.",[641,1468,1469,1470,1472,1473,1476],{},"Without ",[441,1471,587],{}," on the ",[441,1474,1475],{},"nx affected"," step, e2e rebuilds the app, and the build\ntypechecks, so it is slow.",[641,1478,1479,1480,1482,1483,1486,1487,1490,1491,1494,1495,1498],{},"Adding the ",[441,1481,478],{}," script adds a row to ",[441,1484,1485],{},"docs\u002FFEATURES.md",". Run ",[441,1488,1489],{},"pnpm docs:map",", or CI's\n",[441,1492,1493],{},"--check"," fails. The row shows ",[441,1496,1497],{},"—"," until row 11 documents the command.",[641,1500,1501,1504,1505,1508,1509,1511],{},[441,1502,1503],{},".claude\u002Fhooks\u002Fcheck-invariants.sh"," blocks ",[441,1506,1507],{},"https?:\u002F\u002F"," literals outside ",[441,1510,950],{},", which is one\nmore reason the fake's hosts are its own origin.",[641,1513,1514,1515,1517,1518,1520],{},"Every action in ",[441,1516,575],{}," is pinned by SHA with a version comment. ",[441,1519,1080],{}," is\nthe first new one, and it follows suit.",[462,1522,459],{"id":1523},"baselines-removed",[448,1525,1526,1527,1530,1531,1533,1534,623,1536,1539,1540,1543],{},"#241 dropped every ",[441,1528,1529],{},"toHaveScreenshot",", the PNGs under ",[441,1532,1446],{},", and the preset's\n",[441,1535,912],{},[441,1537,1538],{},"ignoreSnapshots",". The specs' behaviour and axe assertions, the pinned\nimage and the ",[441,1541,1542],{},".playwright\u002F"," artifact stay.",[493,1545,1546,1556],{},[496,1547,1548],{},[499,1549,1550,1553],{},[502,1551,1552],{},"What happened",[502,1554,1555],{},"Why it outweighed the value",[509,1557,1558,1566,1578,1586],{},[499,1559,1560,1563],{},[514,1561,1562],{},"#192 and #240 each ended in baseline commits, and #241 failed CI on 12 missing and 3 changed ones",[514,1564,1565],{},"A new spec has no baseline by construction, so this was the normal path, not an accident",[499,1567,1568,1575],{},[514,1569,1570,1571,1574],{},"The 3 changed ones came from ",[441,1572,1573],{},"e2e\u002Ffakes.ts"," growing for the listings",[514,1576,1577],{},"The seeded factories shift every value after a new call, so one page's data moved another page's screenshot",[499,1579,1580,1583],{},[514,1581,1582],{},"Each fix needed a CI round trip to fetch the artifact",[514,1584,1585],{},"Baselines can't be made on a Mac",[499,1587,1588,1591],{},[514,1589,1590],{},"The 390 px article measured three heights in one assertion",[514,1592,1593],{},"Full-page captures of a long page weren't stable",[448,1595,1596],{},"The consequence above already conceded they don't prove parity with the lab. While the design still\nmoves, nearly every diff is intended, so a failure got the new PNG committed unread. Bringing them\nback is a row in the app README's Deliberately deferred table.",[462,1598,1600],{"id":1599},"confirmation","Confirmation",[493,1602,1603,1613],{},[496,1604,1605],{},[499,1606,1607,1610],{},[502,1608,1609],{},"Claim",[502,1611,1612],{},"Check",[509,1614,1615,1633,1647,1665,1679,1690,1706,1716,1730,1747],{},[499,1616,1617,1622],{},[514,1618,1619,1620],{},"The threshold gates ",[441,1621,443],{},[514,1623,1624,1625,1628,1629,1632],{},"Set ",[441,1626,1627],{},"lines: 99"," locally, and ",[441,1630,1631],{},"pnpm exec nx test @joinery\u002Fhuella-legal --skip-nx-cache"," fails naming the threshold",[499,1634,1635,1638],{},[514,1636,1637],{},"Coverage config is at the root",[514,1639,1640,1643,1644],{},[441,1641,1642],{},"grep -n \"thresholds\" apps\u002Fhuella-legal\u002Fvitest.config.ts"," shows one hit, outside ",[441,1645,1646],{},"projects",[499,1648,1649,1652],{},[514,1650,1651],{},"Lab and pages are out of the denominator",[514,1653,1654,1655,1657,1658,1661,1662],{},"After a ",[441,1656,443],{}," run, ",[441,1659,1660],{},"grep -c \"app\u002Flab\u002F|app\u002Fpages\u002F\" apps\u002Fhuella-legal\u002Fcoverage\u002Fcoverage-final.json"," prints ",[441,1663,1664],{},"0",[499,1666,1667,1670],{},[514,1668,1669],{},"E2E files don't feed the build",[514,1671,1672,1673,1071,1675,1678],{},"Touch ",[441,1674,969],{},[441,1676,1677],{},"pnpm exec nx build @joinery\u002Fhuella-legal"," reads from cache",[499,1680,1681,1684],{},[514,1682,1683],{},"No browser install anywhere",[514,1685,1686,1689],{},[441,1687,1688],{},"git grep -n \"playwright install\" -- .github apps"," returns nothing",[499,1691,1692,1695],{},[514,1693,1694],{},"Image and package agree",[514,1696,1697,1698,1701,1702,824,1704],{},"The tag in ",[441,1699,1700],{},"grep -n \"playwright:v\" .github\u002Fworkflows\u002Fci.yml"," equals ",[441,1703,549],{},[441,1705,525],{},[499,1707,1708,1711],{},[514,1709,1710],{},"No fixture files",[514,1712,1713,1689],{},[441,1714,1715],{},"git ls-files apps\u002Fhuella-legal\u002Fe2e | grep -v \"\\.ts$\"",[499,1717,1718,1721],{},[514,1719,1720],{},"E2E files typecheck",[514,1722,1723,1724,1726,1727],{},"A type error in ",[441,1725,602],{}," fails ",[441,1728,1729],{},"pnpm exec nx typecheck @joinery\u002Fhuella-legal",[499,1731,1732,1735],{},[514,1733,1734],{},"CI reuses the build",[514,1736,468,1737,1739,1740,1743,1744],{},[441,1738,478],{}," job's log shows ",[441,1741,1742],{},"@joinery\u002Fhuella-legal:build"," as ",[441,1745,1746],{},"[remote cache]",[499,1748,1749,1752],{},[514,1750,1751],{},"Docs agree",[514,1753,1754,1757,1758,1760],{},[441,1755,1756],{},"pnpm docs:map --check"," passes, and the FEATURES row for ",[441,1759,1156],{}," has a doc link",{"title":1762,"searchDepth":1763,"depth":1763,"links":1764},"",2,[1765,1766,1767,1768,1769,1770],{"id":464,"depth":1763,"text":465},{"id":485,"depth":1763,"text":486},{"id":1190,"depth":1763,"text":1191},{"id":1326,"depth":1763,"text":1327},{"id":1523,"depth":1763,"text":459},{"id":1599,"depth":1763,"text":1600},"md",null,{"issue":1774,"status":1775,"decision":1776},189,"implemented","accepted",true,"\u002Fdocs\u002Fdecisions\u002F0037-huella-legal-e2e-and-visual-tooling",{"title":431,"description":1762},"docs\u002Fdecisions\u002F0037-huella-legal-e2e-and-visual-tooling","FPcSnSI1xGUWH2jpxGDIL3iaSgQ8MkcWF58U0YyFUeM",1795478402797]