[{"data":1,"prerenderedAt":983},["ShallowReactive",2],{"figure-telemetry":3,"menu-audits":6,"menu-decisions":7,"menu-projects":23,"menu-workflows":99,"wiki":116,"doc-\u002Fdocs\u002Fdecisions\u002F0009-comment-discipline":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":964,"extension":972,"kind":973,"meta":974,"navigation":978,"path":979,"seo":980,"stem":981,"url":973,"verdict":973,"__hash__":982},"docs\u002Fdocs\u002Fdecisions\u002F0009-comment-discipline.md","🧭 Comment discipline: one fact per comment, enforced by a skill and not a hook",{"type":433,"value":434,"toc":963},"minimark",[435,439,444,465,477,481,492,498,608,623,636,718,741,759,807,811,913,917,930,941,945],[436,437,431],"h1",{"id":438},"comment-discipline-one-fact-per-comment-enforced-by-a-skill-and-not-a-hook",[440,441,443],"h2",{"id":442},"context","Context",[445,446,447,448,452,453,456,457,460,461,464],"p",{},"Issue #82 is titled \"Improve Claude comments\" with no body beyond \"As title says\" — the framing\ncame from a separately drafted proposal, not the issue thread. That proposal asks for three\nartifacts: a ",[449,450,451],"code",{},"## Comments"," section appended to CLAUDE.md, a new ",[449,454,455],{},".agents\u002Fskills\u002Fcomment-cleanup\u002F","\nskill, and a ",[449,458,459],{},"PostToolUse"," hook on every ",[449,462,463],{},"Edit|Write|MultiEdit"," that sends newly added comment lines\nto an LLM judge and blocks when it finds narration.",[445,466,467,468,472,473,476],{},"Two questions sit inside that, and the first pass of this report only answered one of them. The\n",[469,470,471],"em",{},"delivery"," question — is one more paragraph, one more skill and one more always-on hook how this\nrepo enforces things — is answered below and unchanged. The ",[469,474,475],{},"policy"," question — what the rule should\nactually say — went untested against the code it governs. Measuring the repo afterwards showed the\nrule as drafted does not describe a comment anyone would want, and that this repo's own comments are\nthe evidence.",[440,478,480],{"id":479},"result","Result",[445,482,483,487,488,491],{},[484,485,486],"strong",{},"The prior rule was \"a comment must justify its line.\" That produces justification, and\njustification is prose."," The rule is: ",[469,489,490],{},"a comment carries one fact that isn't in the code, in one\nsentence."," Everything below is why.",[445,493,494,497],{},[484,495,496],{},"1. The density is real, and it is localised."," 14,193 words of comment prose against 10,733 lines\nof code — roughly a novella of English inside a small monorepo. It is not spread evenly:",[499,500,501,517],"table",{},[502,503,504],"thead",{},[505,506,507,511,514],"tr",{},[508,509,510],"th",{},"Project",[508,512,513],{},"Comment lines \u002F code lines",[508,515,516],{},"Ratio",[518,519,520,541,554,567,580,593],"tbody",{},[505,521,522,535,538],{},[523,524,525,528,529,528,532],"td",{},[449,526,527],{},"packages\u002Fconfigs",", ",[449,530,531],{},"packages\u002Fobservability",[449,533,534],{},"infrastructure\u002Ftranslations",[523,536,537],{},"1–2 \u002F 150–300",[523,539,540],{},"0.6%",[505,542,543,548,551],{},[523,544,545],{},[449,546,547],{},"apps\u002Fhuella-legal",[523,549,550],{},"38 \u002F 875",[523,552,553],{},"4.3%",[505,555,556,561,564],{},[523,557,558],{},[449,559,560],{},"packages\u002Fi18n",[523,562,563],{},"41 \u002F 890",[523,565,566],{},"4.6%",[505,568,569,574,577],{},[523,570,571],{},[449,572,573],{},"packages\u002Fcontent",[523,575,576],{},"129 \u002F 2077",[523,578,579],{},"6.2%",[505,581,582,587,590],{},[523,583,584],{},[449,585,586],{},"apps\u002Fdeveloper-portal",[523,588,589],{},"369 \u002F 3790",[523,591,592],{},"9.7%",[505,594,595,600,603],{},[523,596,597],{},[449,598,599],{},"infrastructure\u002Fscripts",[523,601,602],{},"599 \u002F 2421",[523,604,605],{},[484,606,607],{},"24.7%",[445,609,610,611,613,614,616,617,619,620,622],{},"One comment line per four lines of code in ",[449,612,90],{},", forty times the ratio of ",[449,615,72],{},", under the\nsame rules in the same repo. Density tracks recency of agent authorship rather than complexity of\nthe code, which is what makes it a writing habit and not a property of the problem. ",[449,618,72],{}," and\n",[449,621,41],{}," at 4–6% are the house range; they were written under the same one-line policy and\ndid not drift.",[445,624,625,628,629,528,632,635],{},[484,626,627],{},"2. The failure is length, not count."," Of the block comments in the workspace, 82 are one line,\n111 are four to six, and 22 run seven to nineteen. The one-liners are almost all good —\n",[449,630,631],{},"\u002F** Most recent review first. *\u002F",[449,633,634],{},"\u002F** Words Title Case would ruin: nobody calls the component library \"Ui\". *\u002F"," — and the long ones fail in three named ways, none of which the drafted policy\ncatches:",[499,637,638,651],{},[502,639,640],{},[505,641,642,645,648],{},[508,643,644],{},"Mode",[508,646,647],{},"What it looks like",[508,649,650],{},"Example",[518,652,653,671,692],{},[505,654,655,658,661],{},[523,656,657],{},"Essay voice",[523,659,660],{},"Persuades an imagined critic instead of informing a reader: \"which is how a page stops meaning anything\"",[523,662,663,670],{},[664,665,667],"a",{"href":666},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fdev\u002Fdomain\u002Fprojects.ts",[449,668,669],{},"dev\u002Fdomain\u002Fprojects.ts"," — 33 comment lines over ~45 lines of code, majority prose",[505,672,673,676,682],{},[523,674,675],{},"Restating the code",[523,677,678,679],{},"A 3-line block over ",[449,680,681],{},"[name, name.replace(SCOPE, \"\"), label]",[523,683,684,687,688,691],{},[449,685,686],{},"spellings"," and ",[449,689,690],{},"matches",", same file",[505,693,694,697,700],{},[523,695,696],{},"Third copy",[523,698,699],{},"An architecture statement already in a README and a decision report",[523,701,702,710,711,717],{},[664,703,707],{"href":704,"rel":705},"https:\u002F\u002Fgithub.com\u002Fxfontr\u002Fjoinery\u002Fblob\u002Fd3f31e8\u002Fapps\u002Fdeveloper-portal\u002Flayers\u002Fsnapshot\u002Fshared\u002Ftypes.ts",[706],"nofollow",[449,708,709],{},"shared\u002Ftypes.ts"," header vs. ",[664,712,714],{"href":713},"\u002Fwiki\u002Fapps\u002Fdeveloper-portal\u002Freadme",[449,715,716],{},"developer-portal\u002FREADME.md"," lines 95–99, near-verbatim",[445,719,720,723,729,730,733,734,736,737,740],{},[484,721,722],{},"3. A comment that points at another comment rots fastest, and one already has.",[664,724,726],{"href":725},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fshared\u002Fadapters\u002Fexec.ts",[449,727,728],{},"shared\u002Fadapters\u002Fexec.ts"," reads \"every\ncaller here already reads a failure back off the caught error (",[449,731,732],{},"gh.ts","'s comments say so\nexplicitly)\". Three files are named ",[449,735,732],{},", and the ",[449,738,739],{},"shared\u002F"," one carries no such comment. Pointer\nrot is not a hypothetical this policy is guarding against; it happened inside the branch that exists\nto fix comments.",[445,742,743,746,747,750,751,754,755,758],{},[484,744,745],{},"4. The keep-test that survives both readers is \"can this be reconstructed from present state?\"","\nA comment explaining what the code does is worthless to a human who can read it and to a model that\nreads it faster. What neither can reconstruct is ",[469,748,749],{},"history and outside constraint",": what a scanner\nflagged, the bug behind a strange sort order, a trap in a type. That test keeps roughly 15–20\ncomments in this workspace. Everything else is either derivable from the code or already written\ndown in a README, a ",[449,752,753],{},"CLAUDE.md"," or a report under ",[449,756,757],{},"docs\u002Fdecisions\u002F"," — which the next reader, human or\nagent, reaches anyway.",[445,760,761,764,765,768,769,772,773,776,777,780,781,784,785,788,789,791,792,795,796,799,800,803,804,806],{},[484,762,763],{},"5. The three proposed artifacts, unchanged from the first pass."," The CLAUDE.md section holds,\nfolded under an emoji heading per ",[449,766,767],{},"house-docs"," and replacing the ",[449,770,771],{},"## ✍️ Style"," bullet rather than\nsitting beside it. The ",[449,774,775],{},"comment-cleanup"," skill holds: its comment-only, byte-identical-code\nguarantee is the thing neither ",[449,778,779],{},"simplify"," nor ",[449,782,783],{},"code-review --fix"," offers, and it gets a row in the\n",[449,786,787],{},"## 🛠️ Skills"," table. The ",[449,790,459],{}," hook does not: ",[449,793,794],{},"type: \"prompt\""," hooks return\n",[449,797,798],{},"{\"ok\", \"reason\"}",", so the drafted ",[449,801,802],{},"{\"decision\": \"block\"}"," is a field the handler never reads and\nthe hook would cost a model call and flag nothing. Past the schema bug, ",[449,805,459],{}," fires after\nthe edit lands and so cannot block it, and it would be the first LLM-judged link in a hook chain\nthat is otherwise deterministic shell.",[440,808,810],{"id":809},"options-considered","Options considered",[499,812,813,823],{},[502,814,815],{},[505,816,817,820],{},[508,818,819],{},"Option",[508,821,822],{},"Why not",[518,824,825,836,847,855,863,878,900],{},[505,826,827,830],{},[523,828,829],{},"Keep \"a comment must justify its line\"",[523,831,832,833,835],{},"It is satisfiable by writing a better argument, so it selects for paragraphs — ",[449,834,599],{}," at 24.7% is what the rule produces when followed carefully",[505,837,838,844],{},[523,839,840,841],{},"Enforce the 4–6% ratio in ",[449,842,843],{},"check-invariants.sh",[523,845,846],{},"The ratio is a symptom, and a legitimately dense file (a regex, a protocol adapter) would fail while a file of 40 tidy one-line narrations would pass. Measure it to calibrate a human judgment, don't gate on it",[505,848,849,852],{},[523,850,851],{},"An ESLint rule capping comment-block length",[523,853,854],{},"Closer to enforceable than ratio, but a five-line block split into five adjacent one-line comments passes it unchanged — it moves the noise rather than removing it",[505,856,857,860],{},[523,858,859],{},"A custom ESLint rule for comment quality",[523,861,862],{},"\"Why vs. what\" is a judgment no static rule makes; other unenforceable CLAUDE.md prose (the git rules, the dependency check-in) is left as prose too",[505,864,865,868],{},[523,866,867],{},"Hook exactly as drafted",[523,869,870,871,874,875,877],{},"Returns ",[449,872,873],{},"decision: block",", a field ",[449,876,794],{}," hooks don't read — it would never fire",[505,879,880,890],{},[523,881,882,883,886,887],{},"Hook with the field fixed to ",[449,884,885],{},"ok","\u002F",[449,888,889],{},"reason",[523,891,892,893,895,896,899],{},"Still can't block on ",[449,894,459],{}," (the edit already landed) and, without ",[449,897,898],{},"continueOnBlock: true",", ends the turn on a warning instead of routing the reason back",[505,901,902,910],{},[523,903,904,906,907,909],{},[449,905,779],{}," \u002F ",[449,908,783],{}," instead of a new skill",[523,911,912],{},"Both mix code and comment edits; the value here is the comment-only, byte-identical-diff guarantee",[440,914,916],{"id":915},"consequences","Consequences",[445,918,919,920,922,923,925,926,929],{},"Unlocks a comment pass with a calibration anchor rather than only a principle: 4–6% is what this\nrepo looks like when the rule is followed, and a file far outside it is worth opening. Calls for a\nsweep of the two projects that drifted — ",[449,921,599],{}," from ~600 comment lines to ~120\nand ",[449,924,586],{}," from ~370, almost all of it shortening rather than deleting, since most of\nthese comments have one good sentence inside a paragraph. That sweep is the work this report is\nwaiting on, which is why the status line reads ",[449,927,928],{},"To implement"," while the policy and the skill\nthemselves are already in the repo.",[445,931,932,933,886,935,937,938,940],{},"Forecloses, for now, a real-time gate on every edit: the hook doesn't ship until it is rewritten\nagainst the ",[449,934,885],{},[449,936,889],{}," contract, ",[449,939,898],{}," is set, and its false-positive rate is\nknown. Revisit once the sweep shows whether an on-demand skill catches drift early enough on its\nown — the 24.7% figure is the baseline any future gate gets judged against.",[440,942,944],{"id":943},"confirmation","Confirmation",[445,946,947,687,949,951,952,954,955,958,959,962],{},[449,948,599],{},[449,950,586],{}," landing in the 4–6% comment-line-to-code-line band —\nthe same count Result item 1 used — once the ",[449,953,775],{}," sweep runs. Not yet checked, which is\nwhy ",[449,956,957],{},"status"," stays ",[449,960,961],{},"to-implement",".",{"title":964,"searchDepth":965,"depth":965,"links":966},"",2,[967,968,969,970,971],{"id":442,"depth":965,"text":443},{"id":479,"depth":965,"text":480},{"id":809,"depth":965,"text":810},{"id":915,"depth":965,"text":916},{"id":943,"depth":965,"text":944},"md",null,{"issue":975,"status":976,"decision":977},82,"implemented","accepted",true,"\u002Fdocs\u002Fdecisions\u002F0009-comment-discipline",{"title":431,"description":964},"docs\u002Fdecisions\u002F0009-comment-discipline","0RBuHtE-Xz8uPNREugYqqd9n6yhrR9rKLuypKgTABdQ",1795478405517]