Problem
I merged 393 comment lines into src/ in one day, against 341 lines of code across the whole dock package. AGENTS.md now carries the rule that would have stopped it — "added comment lines > added code lines ⇒ cut" (#18225) — and the lines that motivated the rule are still in the tree.
| file |
my merged comment lines today |
dashboard/dock/Workspace.mjs |
209 |
dashboard/dock/model/Document.mjs |
76 |
dashboard/dock/projection/Reconciler.mjs |
63 |
dashboard/dock/model/Operations.mjs |
19 |
manager/DragCoordinator.mjs |
17 |
main/addon/Stylesheet.mjs |
9 |
dock/Workspace.mjs is 4331 lines total, 1773 code, 2558 comment/blank — 59% not code. Reported as "4000 LOC" in D#18150, which counted my prose as engineering and hid that the growth was the prose.
What this is not
Not a blanket comment purge. Three kinds stay:
- Structural JSDoc (
@param, @returns, @member, @type, @summary) — check-jsdoc-types requires it and it is the API surface.
- A non-obvious invariant a reader cannot recover from the code — why
cloneOnGet: 'none' is behaviour-critical, why a railed item cannot take the item-only path.
- A guard's negative-space contract — the reason a wrong root must fail rather than green.
What goes is archaeology: how the bug was found, what the previous shape was, which review round changed it, and the same fact restated in three registers. That belongs in the commit and the ticket, which is where §pr_diff_equals_pr_body now says to put it.
Acceptance Criteria
Non-goals
- Peer-authored comments. Mine only.
- The
apps/ and test/ trees.
- D#18150's structural question (the file's ownership). This removes prose from it; it does not shrink its responsibilities.
Related
#18225 / PR #18227 (the rule) · D#18150 (the 4000-LOC discussion this corrects the measurement of)
Authored by Grace (Claude Opus 5, Claude Code). Session 8d936ec9-b816-4ded-a91e-6e91ef6a3325.
Problem
I merged 393 comment lines into
src/in one day, against 341 lines of code across the whole dock package.AGENTS.mdnow carries the rule that would have stopped it — "added comment lines > added code lines ⇒ cut" (#18225) — and the lines that motivated the rule are still in the tree.dashboard/dock/Workspace.mjsdashboard/dock/model/Document.mjsdashboard/dock/projection/Reconciler.mjsdashboard/dock/model/Operations.mjsmanager/DragCoordinator.mjsmain/addon/Stylesheet.mjsdock/Workspace.mjsis 4331 lines total, 1773 code, 2558 comment/blank — 59% not code. Reported as "4000 LOC" in D#18150, which counted my prose as engineering and hid that the growth was the prose.What this is not
Not a blanket comment purge. Three kinds stay:
@param,@returns,@member,@type,@summary) —check-jsdoc-typesrequires it and it is the API surface.cloneOnGet: 'none'is behaviour-critical, why a railed item cannot take the item-only path.What goes is archaeology: how the bug was found, what the previous shape was, which review round changed it, and the same fact restated in three registers. That belongs in the commit and the ticket, which is where
§pr_diff_equals_pr_bodynow says to put it.Acceptance Criteria
src/today is removed; structural JSDoc and the two categories above are retained.npm run test-unitandnpm run test-componentsstay green — this touches no executable line.src/, and the PR states code-vs-comment counts separately rather than as "LOC".dock/Workspace.mjs's code-to-comment ratio is reported before and after, since it is the file D#18150 is about.Non-goals
apps/andtest/trees.Related
#18225 / PR #18227 (the rule) · D#18150 (the 4000-LOC discussion this corrects the measurement of)
Authored by Grace (Claude Opus 5, Claude Code). Session 8d936ec9-b816-4ded-a91e-6e91ef6a3325.