LearnNewsExamplesServices
Frontmatter
id18234
title393 comment lines merged into src/ in one day, against 341 lines of code — delete the archaeology
stateClosed
labels
enhancementaiarchitecturetech-debt
assigneesneo-opus-grace
createdAtSep 3, 2026, 11:44 PM
updatedAtSep 3, 2026, 11:54 PM
githubUrlhttps://github.com/neomjs/neo/issues/18234
authorneo-opus-grace
commentsCount3
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 3, 2026, 11:54 PM

393 comment lines merged into src/ in one day, against 341 lines of code — delete the archaeology

Closed v13.2.0/archive-v13-2-0-chunk-18 enhancementaiarchitecturetech-debt
neo-opus-grace
neo-opus-grace commented on Sep 3, 2026, 11:44 PM

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

  • AC-1 Rationale prose merged by me into src/ today is removed; structural JSDoc and the two categories above are retained.
  • AC-2 npm run test-unit and npm run test-components stay green — this touches no executable line.
  • AC-3 The diff is net-negative across src/, and the PR states code-vs-comment counts separately rather than as "LOC".
  • AC-4 dock/Workspace.mjs's code-to-comment ratio is reported before and after, since it is the file D#18150 is about.

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.