[{"data":1,"prerenderedAt":1561},["ShallowReactive",2],{"figure-telemetry":3,"menu-audits":6,"menu-decisions":7,"menu-projects":23,"menu-workflows":99,"audit-2026-09-25-scripts":116},{"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",{"id":117,"title":118,"body":119,"description":1543,"extension":1551,"kind":1552,"meta":1553,"navigation":1556,"path":1557,"seo":1558,"stem":1559,"url":1552,"verdict":1552,"__hash__":1560},"docs\u002Fdocs\u002Faudits\u002F2026-09-25-scripts.md","🔎 Scripts: bugs, duplication and weak code",{"type":120,"value":121,"toc":1542},"minimark",[122,126,131,157,175,179,628,632,935,939,1490,1494],[123,124,118],"h1",{"id":125},"scripts-bugs-duplication-and-weak-code",[127,128,130],"h2",{"id":129},"context","Context",[132,133,134,135,139,140,143,144,148,149,152,153,156],"p",{},"A static read of ",[136,137,138],"code",{},"infrastructure\u002Fscripts",", covering every non-spec file under ",[136,141,142],{},"src\u002F",". A finding\nmarked ",[145,146,147],"strong",{},"Confirmed"," was reproduced by calling the module itself from a scratch script (B4, B5, B6),\nor by grepping the committed file it describes (Q1). ",[145,150,151],{},"Likely"," means reasoned from the code and not\nreproduced. The rest were read only. Line numbers are as of ",[136,154,155],{},"commit",".",[132,158,159,166,167,170,171,174],{},[160,161,163],"a",{"href":162},"\u002Fwiki\u002Fdocs\u002Fdecisions\u002F0019-scripts-quality-audit",[136,164,165],{},"0019"," was the previous pass over this package, and\nanything it settled is left out here. Two examples: the ",[136,168,169],{},"titleCase"," merge has landed, and the two\n",[136,172,173],{},"currentBranch"," adapters stay separate by that report's decision.",[127,176,178],{"id":177},"bugs","Bugs",[180,181,182,204],"table",{},[183,184,185],"thead",{},[186,187,188,192,195,198,201],"tr",{},[189,190,191],"th",{},"ID",[189,193,194],{},"Where",[189,196,197],{},"What goes wrong",[189,199,200],{},"Fix",[189,202,203],{},"Status",[205,206,207,277,309,370,431,478,519,544,587],"tbody",{},[186,208,209,213,231,268,274],{},[210,211,212],"td",{},"B1",[210,214,215,219,220,223,224,219,228],{},[160,216,218],{"href":217},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Fadapters\u002Fgh.ts","issue\u002Fadapters\u002Fgh.ts:39"," ",[136,221,222],{},"listProjects",", ",[160,225,227],{"href":226},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fshared\u002Fadapters\u002Fcache.ts","shared\u002Fadapters\u002Fcache.ts:31",[136,229,230],{},"cached",[210,232,233,219,236,238,239,242,243,245,246,249,250,252,253,256,257,260,261,263,264,267],{},[145,234,235],{},"Likely.",[136,237,222],{}," turns a gh failure into ",[136,240,241],{},"[]",", and ",[136,244,230],{}," writes whatever ",[136,247,248],{},"fetch"," returns. Scenario: offline, with the project cache more than 24h old. The fetch fails and ",[136,251,241],{}," overwrites the cached projects. ",[136,254,255],{},"isOnline()"," is false, so ",[136,258,259],{},"listProjects(true)"," reads ",[136,262,241],{}," and ",[136,265,266],{},"issue:pick"," says \"No cached projects to fall back to\". The offline fallback erases itself the first time it's needed",[210,269,270,271,273],{},"In ",[136,272,230],{},", skip the write when the fetched value is an empty array, the same guard it already applies on read",[210,275,276],{},"fixed",[186,278,279,282,291,300,307],{},[210,280,281],{},"B2",[210,283,284,219,288],{},[160,285,287],{"href":286},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fdrift\u002Fmain.ts","drift\u002Fmain.ts:52-64",[136,289,290],{},"main",[210,292,293,295,296,299],{},[145,294,235],{}," The fingerprint is written to the cache before the warning is shown or answered. After Ctrl+C at \"File a GitHub issue?\", drift never asks again about that diff. A non-interactive run prints \"Run ",[136,297,298],{},"pnpm docs:drift"," to review\", but rerunning it is a no-op because the fingerprint is already stored",[210,301,302,303,306],{},"Record the fingerprint only once the warning was answered, or when ",[136,304,305],{},"shouldWarn"," is false. Never record it on the non-interactive branch",[210,308,276],{},[186,310,311,314,323,346,368],{},[210,312,313],{},"B3",[210,315,316,219,320],{},[160,317,319],{"href":318},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fshared\u002Fadapters\u002Fgh.ts","shared\u002Fadapters\u002Fgh.ts:17-20",[136,321,322],{},"createIssue",[210,324,325,219,327,330,331,263,334,337,338,341,342,345],{},[145,326,235],{},[136,328,329],{},"assertNotFlagLike"," is applied to the values of ",[136,332,333],{},"--title",[136,335,336],{},"--body",". A description starting ",[136,339,340],{},"- [ ] …"," (a markdown checklist) throws at the very end of ",[136,343,344],{},"issue:add",", after the user has typed every field, and their input is lost",[210,347,348,349,352,353,356,357,360,361,223,364,367],{},"Pass ",[136,350,351],{},"--title=${title}"," \u002F ",[136,354,355],{},"--body=${body}"," so a leading ",[136,358,359],{},"-"," can't be read as a flag, and drop the assertion on those values. Keep it for positionals (",[136,362,363],{},"pr view \u003Cbranch>",[136,365,366],{},"git push origin \u003Cbranch>",")",[210,369,276],{},[186,371,372,375,384,417,429],{},[210,373,374],{},"B4",[210,376,377,219,381],{},[160,378,380],{"href":379},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fshared\u002Fadapters\u002Fexec.ts","shared\u002Fadapters\u002Fexec.ts:5",[136,382,383],{},"run",[210,385,386,219,389,392,393,396,397,400,401,404,405,408,409,219,413,416],{},[145,387,388],{},"Confirmed.",[136,390,391],{},"execFileSync"," defaults to a 1 MiB ",[136,394,395],{},"maxBuffer",". A 2 MiB stdout throws ",[136,398,399],{},"ENOBUFS",". ",[136,402,403],{},"drift"," fingerprints the full ",[136,406,407],{},"git diff"," of a project (",[160,410,412],{"href":411},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fdrift\u002Fadapters\u002Fgit.ts","drift\u002Fadapters\u002Fgit.ts:19",[136,414,415],{},"diffText","), so the large changes drift exists to catch are the ones that crash it",[210,418,419,420,423,424,426,427],{},"Fingerprint ",[136,421,422],{},"git diff --raw --no-abbrev",", whose blob ids stay stable as the repo grows, instead of the full text. Raise ",[136,425,395],{}," in ",[136,428,383],{},[210,430,276],{},[186,432,433,436,445,465,476],{},[210,434,435],{},"B5",[210,437,438,219,442],{},[160,439,441],{"href":440},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fmap\u002Fdomain\u002Fcapabilities.ts","map\u002Fdomain\u002Fcapabilities.ts:64",[136,443,444],{},"mentions",[210,446,447,449,450,263,453,456,457,460,461,464],{},[145,448,388],{}," Only the right edge of the token is guarded. ",[136,451,452],{},"mentions(\"pnpm test:coverage\", \"coverage\")",[136,454,455],{},"mentions(\"the latest release\", \"test\")"," both return ",[136,458,459],{},"true",", so ",[136,462,463],{},"FEATURES.md"," can link a doc that never describes the command",[210,466,467,468,471,472,475],{},"Add a ",[136,469,470],{},"(?\u003C![\\w:-])"," lookbehind, re-render, and treat any new ",[136,473,474],{},"—"," rows as real doc gaps",[210,477,276],{},[186,479,480,483,492,511,517],{},[210,481,482],{},"B6",[210,484,485,219,489],{},[160,486,488],{"href":487},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fshared\u002Fdomain\u002Fcli.ts","shared\u002Fdomain\u002Fcli.ts:56-66",[136,490,491],{},"report",[210,493,494,496,497,499,500,400,503,506,507,510],{},[145,495,388],{}," Node already appends stderr to an ",[136,498,391],{}," error's message, and so to its ",[136,501,502],{},"stack",[136,504,505],{},"detailOf"," appends it again, so a failing ",[136,508,509],{},"git rev-parse"," prints its stderr twice",[210,512,513,514,516],{},"Skip ",[136,515,505],{}," when the stack already contains that text",[210,518,276],{},[186,520,521,524,533,536,542],{},[210,522,523],{},"B7",[210,525,526,219,530],{},[160,527,529],{"href":528},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fship\u002Fadapters\u002Fgit.ts","ship\u002Fadapters\u002Fgit.ts:12-14",[136,531,532],{},"push",[210,534,535],{},"Every push failure becomes \"Push rejected — ensure the code passes the push requirements…\", and git's stderr is dropped. A missing remote, expired auth and a non-fast-forward all get the wrong reason",[210,537,538,539],{},"Append the caught error's stderr to the ",[136,540,541],{},"ExpectedError",[210,543,276],{},[186,545,546,549,558,573,580],{},[210,547,548],{},"B8",[210,550,551,219,555],{},[160,552,554],{"href":553},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fcoverage-report\u002Fadapters\u002Fnx.ts","coverage-report\u002Fadapters\u002Fnx.ts:34-45",[136,556,557],{},"nx",[210,559,560,561,564,565,568,569,572],{},"The ",[136,562,563],{},"error"," handler rejects without closing the fd or removing the temp dir. A throw from ",[136,566,567],{},"readFileSync"," inside the ",[136,570,571],{},"close"," handler escapes the promise as an uncaught exception",[210,574,575,576,579],{},"Clean up in one ",[136,577,578],{},"finally"," path, and reject on a failed read",[210,581,582,583,586],{},"wont-fix — spawning ",[136,584,585],{},"process.execPath"," and reading a file the same function just created do not fail in practice",[186,588,589,592,599,613,621],{},[210,590,591],{},"B9",[210,593,594,219,597],{},[160,595,596],{"href":286},"drift\u002Fmain.ts:44-45",[136,598,290],{},[210,600,601,604,605,608,609,612],{},[136,602,603],{},"??"," lets an empty env var through. ",[136,606,607],{},"DOCS_DRIFT_BASE=\"\""," makes the range ",[136,610,611],{},"..HEAD",", an empty diff, and drift silently does nothing. Latent while nothing sets the variable (Q1)",[210,614,615,618,619],{},[136,616,617],{},"||"," instead of ",[136,620,603],{},[210,622,623,624,627],{},"wont-fix — nothing sets ",[136,625,626],{},"DOCS_DRIFT_BASE",", let alone to an empty string",[127,629,631],{"id":630},"duplication","Duplication",[180,633,634,648],{},[183,635,636],{},[186,637,638,640,643,646],{},[189,639,191],{},[189,641,642],{},"Copies",[189,644,645],{},"Consolidate into",[189,647,203],{},[205,649,650,682,720,794,826,853,900],{},[186,651,652,655,673,680],{},[210,653,654],{},"D1",[210,656,657,658,219,662,665,666,219,670],{},"The lines-changed reducer, in ",[160,659,661],{"href":660},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fdrift\u002Fdomain\u002Fdetect.ts","drift\u002Fdomain\u002Fdetect.ts:13",[136,663,664],{},"parseLinesChanged"," (only its spec calls it) and ",[160,667,669],{"href":668},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fdrift\u002Fdomain\u002Fsize.ts","drift\u002Fdomain\u002Fsize.ts:7-10",[136,671,672],{},"changeSize",[210,674,675,677,678],{},[136,676,672],{}," calls ",[136,679,664],{},[210,681,276],{},[186,683,684,687,705,717],{},[210,685,686],{},"D2",[210,688,689,426,692,219,695,263,698,219,702],{},[136,690,691],{},"split(\"-\").map(titleCase).join(\" \")",[160,693,694],{"href":660},"drift\u002Fdomain\u002Fdetect.ts:63",[136,696,697],{},"displayName",[160,699,701],{"href":700},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fdev\u002Fdomain\u002Fprojects.ts","dev\u002Fdomain\u002Fprojects.ts:18",[136,703,704],{},"labelFor",[210,706,707,708,711,712,426,714],{},"A ",[136,709,710],{},"titleCaseSlug"," beside ",[136,713,169],{},[136,715,716],{},"shared\u002Fdomain\u002Flayout.ts",[210,718,719],{},"wont-fix — two call sites of a one-line expression; a shared helper costs more than it saves",[186,721,722,725,772,791],{},[210,723,724],{},"D3",[210,726,727,728,219,731,223,734,219,738,223,741,219,747,750,751,754,755,758,759,754,762,263,765,242,768,771],{},"Three recursive walkers, each with its own ignore list: ",[136,729,730],{},"agents-sync\u002Fadapters\u002Ffiles.ts:28",[136,732,733],{},"walk",[160,735,737],{"href":736},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fmap\u002Fadapters\u002Ffiles.ts","map\u002Fadapters\u002Ffiles.ts:85",[136,739,740],{},"walkMarkdown",[160,742,746],{"href":743,"rel":744},"https:\u002F\u002Fgithub.com\u002Fxfontr\u002Fjoinery\u002Fblob\u002F33d1140\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fpackage-contracts\u002Fadapters\u002Ffiles.ts#L6",[745],"nofollow","package-contracts\u002Fadapters\u002Ffiles.ts:6",[136,748,749],{},"filesUnder",". Only ",[136,752,753],{},"map"," skips ",[136,756,757],{},"worktrees",", only ",[136,760,761],{},"agents-sync",[136,763,764],{},"coverage",[136,766,767],{},"storybook-static",[136,769,770],{},"package-contracts"," skips nothing (Q5)",[210,773,774,775,426,778,781,782,784,785,242,788,790],{},"One ",[136,776,777],{},"walk(dir, accept, extraIgnores)",[136,779,780],{},"shared\u002Fadapters\u002F",", with a common base set plus per-caller extras. ",[136,783,753],{}," must scan ",[136,786,787],{},".claude\u002F",[136,789,761],{}," must not",[210,792,793],{},"wont-fix — each walker's ignore list fits its caller, and Q5 is wont-fix",[186,795,796,799,815,824],{},[210,797,798],{},"D4",[210,800,801,263,804,426,807,810,811,814],{},[136,802,803],{},"dirsIn",[136,805,806],{},"filesIn",[160,808,809],{"href":736},"map\u002Fadapters\u002Ffiles.ts:15-35",", and the frontmatter ",[136,812,813],{},"name:"," regex at lines 60 and 77 of the same file",[210,816,774,817,820,821],{},[136,818,819],{},"entriesIn(path, predicate)"," and one ",[136,822,823],{},"nameField(text)",[210,825,276],{},[186,827,828,831,844,851],{},[210,829,830],{},"D5",[210,832,833,834,837,838,840,841],{},"The cache write in ",[160,835,836],{"href":226},"shared\u002Fadapters\u002Fcache.ts",": once inside ",[136,839,230],{}," and once as ",[136,842,843],{},"writeCache",[210,845,846,677,848,850],{},[136,847,230],{},[136,849,843],{},", which is also where B1's guard goes",[210,852,276],{},[186,854,855,858,876,890],{},[210,856,857],{},"D6",[210,859,860,863,864,263,867,863,870,426,873],{},[136,861,862],{},"writeText","\u002F",[136,865,866],{},"writeBytes",[136,868,869],{},"matchesText",[136,871,872],{},"matchesBytes",[136,874,875],{},"agents-sync\u002Fadapters\u002Ffiles.ts:53-73",[210,877,878,879,882,883,886,887],{},"Buffers only: ",[136,880,881],{},"Buffer.from(string)"," makes ",[136,884,885],{},"Output.contents"," a single type in ",[136,888,889],{},"agents-sync\u002Fmain.ts",[210,891,892,893,896,897],{},"wont-fix — text and bytes differ in chmod handling; merging only moves ",[136,894,895],{},"Buffer.from"," into ",[136,898,899],{},"main.ts",[186,901,902,905,927,933],{},[210,903,904],{},"D7",[210,906,560,907,910,911,915,916,426,919,922,923,926],{},[136,908,909],{},"\"@joinery\u002F\""," literal in ",[160,912,914],{"href":913},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fdev\u002Fmain.ts","dev\u002Fmain.ts:27",", beside ",[136,917,918],{},"SCOPE",[160,920,921],{"href":700},"dev\u002Fdomain\u002Fprojects.ts:3",". The local ",[136,924,925],{},"spellings"," there also shares its name with the domain export but means something different",[210,928,929,930,932],{},"Export ",[136,931,918],{}," and rename the local",[210,934,276],{},[127,936,938],{"id":937},"quality","Quality",[180,940,941,956],{},[183,942,943],{},[186,944,945,947,949,952,954],{},[189,946,191],{},[189,948,194],{},[189,950,951],{},"Issue",[189,953,200],{},[189,955,203],{},[205,957,958,1018,1064,1093,1125,1161,1198,1227,1253,1307,1340,1391,1413,1437],{},[186,959,960,963,989,1008,1015],{},[210,961,962],{},"Q1",[210,964,965,223,969,223,973,223,977,223,983],{},[160,966,968],{"href":967},"repo:.husky\u002Fpre-push",".husky\u002Fpre-push",[160,970,972],{"href":971},"\u002Fwiki\u002Freadme","README.md:178",[160,974,976],{"href":975},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fdrift\u002Freadme","drift\u002FREADME.md:12",[160,978,980],{"href":979},"\u002Fwiki\u002Fdocs\u002Fdecisions\u002F0011-docs-system-enforcement",[136,981,982],{},"0011",[160,984,986],{"href":985},"\u002Fwiki\u002Fdocs\u002Fdecisions\u002F0013-linter-coverage",[136,987,988],{},"0013",[210,990,991,993,994,997,998,1001,1002,863,1004,1007],{},[145,992,388],{}," The committed hook never runs ",[136,995,996],{},"docs:drift"," (",[136,999,1000],{},"grep -E 'drift|DOCS'"," finds nothing), yet four docs say it does, with ",[136,1003,626],{},[136,1005,1006],{},"HEAD"," set to the pushed range",[210,1009,1010,1011,1014],{},"Either wire it into the hook, with ",[136,1012,1013],{},"\u003C\u002Fdev\u002Ftty"," for the prompt and ZERO_SHA handled for new branches, or correct the four docs",[210,1016,1017],{},"fixed — the docs now say drift runs manually",[186,1019,1020,1023,1039,1059,1062],{},[210,1021,1022],{},"Q2",[210,1024,1025,219,1029,223,1032,219,1036],{},[160,1026,1028],{"href":1027},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Fpick.ts","issue\u002Fpick.ts:70",[136,1030,1031],{},"pickIssue",[160,1033,1035],{"href":1034},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Fdomain\u002Fpick.ts","issue\u002Fdomain\u002Fpick.ts:24-31",[136,1037,1038],{},"projectLoad",[210,1040,1041,1044,1045,400,1048,1050,1051,1054,1055,1058],{},[136,1042,1043],{},"issueSource({ knownOffline, requestFailed: false, online: false })"," is just ",[136,1046,1047],{},"knownOffline",[136,1049,1038],{}," returns a ",[136,1052,1053],{},"projects"," field on the ",[136,1056,1057],{},"cache"," branch that the caller never reads. Two layers of indirection hide a two-line decision",[210,1060,1061],{},"Reduce both to the booleans the callers actually use",[210,1063,276],{},[186,1065,1066,1069,1077,1083,1090],{},[210,1067,1068],{},"Q3",[210,1070,1071,219,1074],{},[160,1072,1073],{"href":217},"issue\u002Fadapters\u002Fgh.ts:65",[136,1075,1076],{},"listIssues",[210,1078,1079,1082],{},[136,1080,1081],{},"--limit 100"," is applied before the client-side project filter, so a repo with more than 100 open issues silently drops some from the picker",[210,1084,1085,1086,1089],{},"Filter server-side with ",[136,1087,1088],{},"--search \"project:…\"",", or page until exhausted",[210,1091,1092],{},"wont-fix — the repo has under 20 open issues",[186,1094,1095,1098,1106,1115,1122],{},[210,1096,1097],{},"Q4",[210,1099,1100,219,1103],{},[160,1101,1102],{"href":217},"issue\u002Fadapters\u002Fgh.ts:25",[136,1104,1105],{},"repoOwner",[210,1107,1108,1109,1111,1112],{},"One extra gh round trip per ",[136,1110,222],{}," and per ",[136,1113,1114],{},"moveToInProgress",[210,1116,1117,1118,1121],{},"Memoise it the way ",[136,1119,1120],{},"repoRoot"," is",[210,1123,1124],{},"wont-fix — one extra gh call inside an interactive prompt",[186,1126,1127,1130,1137,1150,1153],{},[210,1128,1129],{},"Q5",[210,1131,1132,219,1135],{},[160,1133,746],{"href":743,"rel":1134},[745],[136,1136,749],{},[210,1138,1139,1140,223,1143,263,1146,1149],{},"Walks ",[136,1141,1142],{},"dist\u002F",[136,1144,1145],{},".nuxt\u002F",[136,1147,1148],{},"coverage\u002F"," inside each package, so a generated file can make a missing export target pass",[210,1151,1152],{},"Fixed by D3's shared ignore set",[210,1154,1155,1156,1158,1159],{},"wont-fix — export targets point into ",[136,1157,142],{},", generated dirs never hold a file at those paths, and packages have no ",[136,1160,1142],{},[186,1162,1163,1166,1176,1186,1192],{},[210,1164,1165],{},"Q6",[210,1167,1168,219,1173],{},[160,1169,1172],{"href":1170,"rel":1171},"https:\u002F\u002Fgithub.com\u002Fxfontr\u002Fjoinery\u002Fblob\u002F33d1140\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fpackage-contracts\u002Fdomain\u002Fvalidate.ts#L136",[745],"package-contracts\u002Fdomain\u002Fvalidate.ts:136",[136,1174,1175],{},"validateExportNode",[210,1177,1178,1181,1182,1185],{},[136,1179,1180],{},"null"," targets (Node's way to block a subpath) and fallback arrays are both valid ",[136,1183,1184],{},"exports"," values, and both are reported as errors",[210,1187,1188,1189,1191],{},"Accept ",[136,1190,1180],{},". Validate each element of an array",[210,1193,1194,1195,1197],{},"wont-fix — no manifest here uses ",[136,1196,1180],{}," or array targets, and adding one fails the check loudly",[186,1199,1200,1203,1212,1222,1225],{},[210,1201,1202],{},"Q7",[210,1204,1205,219,1210],{},[160,1206,1209],{"href":1207,"rel":1208},"https:\u002F\u002Fgithub.com\u002Fxfontr\u002Fjoinery\u002Fblob\u002F33d1140\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fpackage-contracts\u002Fmain.ts#L12",[745],"package-contracts\u002Fmain.ts:12,15",[136,1211,290],{},[210,1213,1214,1215,863,1218,1221],{},"\"✅\"\u002F\"❌\" are prefixed to ",[136,1216,1217],{},"out.success",[136,1219,1220],{},"out.error",", which clack already decorates with its own icon, so interactive runs show two icons",[210,1223,1224],{},"Drop the emoji",[210,1226,276],{},[186,1228,1229,1232,1239,1246,1251],{},[210,1230,1231],{},"Q8",[210,1233,1234,219,1237],{},[136,1235,1236],{},"review-version\u002Fmain.ts:21,28",[136,1238,290],{},[210,1240,1241,1242,1245],{},"\"four artifacts unchanged\" is hardcoded and drifts as soon as ",[136,1243,1244],{},"METHOD_ARTIFACTS"," changes length",[210,1247,1248],{},[136,1249,1250],{},"${METHOD_ARTIFACTS.length}",[210,1252,276],{},[186,1254,1255,1258,1263,1292,1302],{},[210,1256,1257],{},"Q9",[210,1259,1260],{},[160,1261,1262],{"href":226},"shared\u002Fadapters\u002Fcache.ts:5,12",[210,1264,1265,1268,1269,1272,1273,1276,1277,1280,1281,1284,1285,1288,1289],{},[136,1266,1267],{},"CACHE_DIR"," resolves against ",[136,1270,1271],{},"cwd"," rather than ",[136,1274,1275],{},"at()",", so the cache location depends on how the script was launched. The adapter imports ",[136,1278,1279],{},"flag"," from ",[136,1282,1283],{},"..\u002Fcli.ts",", which means an adapter depends on the CLI layer and reads ",[136,1286,1287],{},"process.argv"," behind the parsed ",[136,1290,1291],{},"Args",[210,1293,1294,1297,1298,1301],{},[136,1295,1296],{},"at(CACHE_DIR)",", with ",[136,1299,1300],{},"refresh"," passed in by the caller",[210,1303,1304,1305],{},"wont-fix — every entry point runs with cwd at ",[136,1306,138],{},[186,1308,1309,1312,1321,1332,1337],{},[210,1310,1311],{},"Q10",[210,1313,1314,223,1318],{},[160,1315,1317],{"href":1316},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Fadd.ts","issue\u002Fadd.ts:49-53",[160,1319,1320],{"href":913},"dev\u002Fmain.ts:15-23",[210,1322,1323,1324,1327,1328,1331],{},"A throw from ",[136,1325,1326],{},"listLabels"," or ",[136,1329,1330],{},"projectsWithDev"," leaves the spinner running under the error",[210,1333,1334,1335],{},"Stop it in a ",[136,1336,578],{},[210,1338,1339],{},"wont-fix — the error still prints; a leftover spinner frame on a crash is cosmetic",[186,1341,1342,1345,1354,1369,1378],{},[210,1343,1344],{},"Q11",[210,1346,1347,219,1351],{},[160,1348,1350],{"href":1349},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fcoverage-report\u002Fdomain\u002Fdiscover.ts","coverage-report\u002Fdomain\u002Fdiscover.ts:18-20",[136,1352,1353],{},"resolveOutput",[210,1355,1356,1357,1360,1361,1364,1365,1368],{},"The error says \"in nx.json\" when outputs can come from ",[136,1358,1359],{},"project.json"," or inference. Only the first ",[136,1362,1363],{},"{projectRoot}"," is replaced, and ",[136,1366,1367],{},"{workspaceRoot}"," is left as is",[210,1370,1371,1372,1375,1376],{},"Neutral wording, ",[136,1373,1374],{},"replaceAll",", and handle ",[136,1377,1367],{},[210,1379,1380,1381,1384,1385,426,1388],{},"wont-fix — the only ",[136,1382,1383],{},"test:coverage"," output is ",[136,1386,1387],{},"{projectRoot}\u002Fcoverage",[136,1389,1390],{},"nx.json",[186,1392,1393,1396,1404,1407,1410],{},[210,1394,1395],{},"Q12",[210,1397,1398,219,1402],{},[160,1399,1401],{"href":1400},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fship\u002Fmain.ts","ship\u002Fmain.ts:28",[136,1403,290],{},[210,1405,1406],{},"Auto-merge is enabled before checks run and stays on after one fails, so a later re-run that passes merges with nobody watching",[210,1408,1409],{},"Disable auto-merge on failure, or say in the failure message that it stays queued",[210,1411,1412],{},"wont-fix — staying queued for a passing re-run is what auto-merge is for",[186,1414,1415,1418,1425,1432,1435],{},[210,1416,1417],{},"Q13",[210,1419,1420,219,1423],{},[160,1421,1422],{"href":379},"shared\u002Fadapters\u002Fexec.ts:15",[136,1424,329],{},[210,1426,1427,1428,1431],{},"The message says \"gh would read it as a flag\", but ",[136,1429,1430],{},"drift\u002Fadapters\u002Fgit.ts"," also uses it for git refs",[210,1433,1434],{},"Name the command in the message, or drop the tool name",[210,1436,276],{},[186,1438,1439,1442,1456,1468,1481],{},[210,1440,1441],{},"Q14",[210,1443,1444,223,1448,223,1452],{},[160,1445,1447],{"href":1446},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fmap\u002Fmain.ts","map\u002Fmain.ts:42",[160,1449,1451],{"href":1450},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fcoverage-report\u002Fmain.ts","coverage-report\u002Fmain.ts:19-20",[160,1453,1455],{"href":1454},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Fadapters\u002Fprompts.ts","issue\u002Fadapters\u002Fprompts.ts",[210,1457,1458,1459,400,1462,1464,1465],{},"The two commands write to disk directly, where every other script goes through ",[136,1460,1461],{},"adapters\u002F",[136,1463,1455],{}," is pure data and belongs in ",[136,1466,1467],{},"domain\u002F",[210,1469,1470,1471,1474,1475,896,1478],{},"Move the writes into each script's ",[136,1472,1473],{},"adapters\u002Ffiles.ts",", and move ",[136,1476,1477],{},"prompts.ts",[136,1479,1480],{},"issue\u002Fdomain\u002F",[210,1482,1483,1484,1486,1487],{},"fixed — the writes moved into adapters; ",[136,1485,1455],{}," stays, since it imports types from ",[136,1488,1489],{},"gh.ts",[127,1491,1493],{"id":1492},"order","Order",[1495,1496,1497,1511,1517,1530,1536],"ol",{},[1498,1499,1500,1503,1504,1506,1507,1510],"li",{},[145,1501,1502],{},"B3, B1 and B2 first."," They're the user-visible ones. B3 throws away a typed issue, B1\nsilently breaks offline ",[136,1505,266],{},", and B2 makes drift stop asking. Each needs a spec that\npins the failure (",[136,1508,1509],{},"writing-tests",").",[1498,1512,1513,1516],{},[145,1514,1515],{},"D5 before B1",", so the empty-list guard lives in the one cache write.",[1498,1518,1519,1522,1523,1525,1526,1529],{},[145,1520,1521],{},"D3 before B5."," Both change ",[136,1524,463],{},". Land the walker merge, confirm ",[136,1527,1528],{},"pnpm docs:map --check"," is unchanged, then apply B5 and review its re-render on its own. The merge fixes Q5\nfor free.",[1498,1531,1532,1535],{},[145,1533,1534],{},"B4, B6, B7, B8 and B9"," are independent small fixes. B4 and B9 only matter once Q1 puts drift\nback in a hook, so settle Q1 alongside them.",[1498,1537,1538,1541],{},[145,1539,1540],{},"The remaining D and Q rows"," in any order. D1, D2, D4, D6 and D7 are behaviour-neutral, and\nthe existing specs should pass untouched.",{"title":1543,"searchDepth":1544,"depth":1544,"links":1545},"",2,[1546,1547,1548,1549,1550],{"id":129,"depth":1544,"text":130},{"id":177,"depth":1544,"text":178},{"id":630,"depth":1544,"text":631},{"id":937,"depth":1544,"text":938},{"id":1492,"depth":1544,"text":1493},"md",null,{"scope":1554,"commit":1555},"@joinery\u002Fscripts","33d1140",true,"\u002Fdocs\u002Faudits\u002F2026-09-25-scripts",{"title":118,"description":1543},"docs\u002Faudits\u002F2026-09-25-scripts","snc3F6ratUAczQf6PzJsEPyK1gvY0dxE9D-hq_l7oAE",1795478398905]