Skip to content

Adopt the no-comments posture here and support it as a plugin setting #15647

Description

@kyle-sexton

Decision (owner, 2026-11-14, after /planning:interview, /planning:design and /planning:plan)

Source: the talk "All Code Is Slop (Except Mine)" (Lauren Tan, AI Engineer Code Summit, 2026-11-11), slides 21-22 and 39, and her no-comments skill and review agent.

  • Posture. The shipped default of /code-tidying:remove-comments stays necessary, which is her policy: the floor plus the keep list. This repository pins comment_posture: necessary in docs/conventions/code-tidying.yaml; the owner's user scope pins the same value. The three postures and their names stay.

  • Floor. It stays fixed and gains one shape: the comment trailing a uses: line pinned to a full commit id. Its three differences from her review agent are recorded in docs/upstream/cursor-pstack.md.

  • The lint. The code-tidying plugin ships one language-agnostic git-hook entry, comment-lint, which judges the comment lines a change adds through the pygments token stream and names the fix for each one outside the posture. Two team-only settings:

    • comment_lint: off | report | block (default off; report prints and passes).
    • comment_lint_allow: extended regular expressions for a repository's own markers.

    It passes: a shebang or encoding cookie, a tool directive, a license cue, TODO(#issue) and FIXME(#issue), a pinned uses: line's trailer, a line carrying or following an ignore marker, a structured doc comment, a suppression's reason beside its waiver, and under necessary a comment run holding a URL or an RFC number. Under explanatory it does not run. A CI gate reads the level, posture and allow list from the merge base, so a branch cannot lower its own level.

  • Stage ownership.

    Stage Owner Job
    Plan and implement, before the first edit the repository's review-criteria file, named in the plan and carried in each worker brief tells the author the posture
    Commit and CI the code-tidying comment lint detects a comment a change adds outside the allowed shapes
    Local review the review rule, read by /review:quality-gate judges added comments, an ignore marker included
    Pull-request prep /code-tidying:remove-comments --pipeline --base <ref> cleans comments in the files a pull request touches, a person approving each edit
    Pull request review lane the review rule second catch
  • Existing comments. This repository sets comment_edit_scope: files, so existing comments go as files are touched. No repository-wide cleanup, no comment count or ratchet, no unattended deletion.

  • /code-tidying:tidy reads the posture and adds only keep-list comments under necessary.

  • Level here. report in the build pull request and in the follow-up one that turns the commit-time hook on (owner, 2026-11-15). Moving to block is a later owner decision, after the generated-file marker is narrowed. The dry run over the last 50 merged pull requests is in ADR 0108: 631 findings, no false positive.

Done when

  • docs/conventions/code-tidying.yaml holds comment_posture: necessary and comment_edit_scope: files and passes its schema.
  • With the lint on, a commit or pull request that adds a comment outside the allowed shapes fails with a message naming the fix; an allowed shape passes; the same command runs at commit time and in CI; with the lint off, nothing changes.
  • Under necessary and none, the comment pass keeps the version comment on a pinned action.
  • A planning or implementing agent in this repository is given the comment rule's file before it writes code.
  • Under necessary, /code-tidying:tidy adds no comment outside the keep list; under explanatory it is unchanged.
  • docs/upstream/cursor-pstack.md states the three floor differences.
  • One decision record: new comments are stopped by a lint on added lines and by review, not by a count gate.
  • The commit-time hook is on in this repository (second pull request). It needs Python 3 with pygments on each machine that commits.

Out of scope

  • A repository-wide cleanup of existing comments: a later owner decision; the comment pass already takes an explicit target.
  • Renaming none; a rule in each language's own linter; the lane's tidy step applying the posture.

Activity

  1. added
    needs-triage
    on Nov 12, 2026
  2. added theissue type on Nov 12, 2026
  3. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    Size: Large
    Complexity: Medium
    Uncertainty: Knowable
    Flags: intent
    Blocked by: none

    Understood: adopt a no-comments posture in this repo, add a plugin setting for it, and add a comment-count ratchet. The issue says a planning interview must lock the contract first, so these are open:

    1. Where does the none setting live for this repo and for the owner's user scope? RECOMMENDED: the repo's conventions file plus user-level settings, because the issue names both scopes and the repo's conventions file is already where posture is set.
    2. How is the write-time mechanism discovered per repository? RECOMMENDED: detect the linter or hook the repo already runs and suggest it, without enforcing anything, because the issue rules out shipping a language-specific lint.
    3. What does the ratchet count? RECOMMENDED: code comments only, with Markdown excluded, because the issue says the policy covers code, not Markdown.

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated triage. A maintainer reviews it.

  4. added
    needs-owner-decision
    on Nov 12, 2026
  5. melodic-automation-lanes commented on Nov 12, 2026

    @melodic-automation-lanes
    Contributor

    The triage verdict left this issue at needs-owner-decision:

    • flagged: intent
    • held by needs-owner-decision
    • no lanes App verdict comment shows whether an earlier verdict was flagged

    Reason: intent

  6. melodic-automation-lanes commented on Nov 12, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: Set comment_posture none for this repository, support a no-comments setting across plugins, and land a code-comment-count ratchet in this repository's CI.

    Related work

    Open questions

    1. Where does the none setting live for this repository and for the owner's user scope? The comment_posture setting already exists in the code-tidying plugin with values including none; is the work only to set it, or to add a cross-plugin setting that other plugins read?
      RECOMMENDED: Reuse the existing code-tidying comment_posture setting: set none in this repository's plugin settings and in the owner's user-scope settings, and add no new setting. Basis: plugins/code-tidying/.claude-plugin/plugin.json:39
    2. How is the write-time mechanism chosen per repository? Does a plugin skill detect the linter or hook the repository already runs and only suggest it, or may it add the hook itself?
      RECOMMENDED: Detect and suggest only, and ship no language-specific lint, as the issue states. The detection lives in an existing skill such as remove-comments or toolchain setup. Basis: judgment
    3. What does the ratchet count: all comment lines or only comments in source files? Which file types and which counter tool does it use, given that /toolchain:ratchet counts a lint or script output?
      RECOMMENDED: Count code comments only, with Markdown excluded. Use a repository script that /toolchain:ratchet runs as a count, with the ceiling set to the current count and checked in CI. Basis: plugins/toolchain/skills/ratchet/SKILL.md
    4. Is this one issue or several? It mixes a repository dogfood change (conventions plus CI ratchet) with a plugin feature (default stays explanatory, no-comments setting supported, write-time discovery).
      RECOMMENDED: Split into a dogfood issue (set none, land the ratchet) and a plugin-support issue (setting and discovery docs), after the interview locks the contract. Basis: judgment
    5. The body says to run /planning:interview before build, and no Decision recorded comment answers the three contract questions. Should the lane wait for that decision?
      RECOMMENDED: Yes. Keep the needs-owner-decision label until a Decision recorded comment answers the questions above. Basis: judgment

    Sources read

    • plugins/code-tidying/.claude-plugin/plugin.json:39: comment_posture setting exists, values auto, none, necessary, explanatory; auto defaults to explanatory, or necessary with --pipeline
    • plugins/code-tidying/schemas/code-tidying.schema.json:11: comment_posture enum includes none
    • plugins/code-tidying/CHANGELOG.md:193: the none, necessary and explanatory postures were introduced, with default auto
    • plugins/toolchain/skills/ratchet/SKILL.md: the ratchet skill exists, with a lint-count eval at plugins/toolchain/evals/ratchet-lint-count

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  7. added
    needs-human
    and removed
    needs-owner-decision
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-humanneeds-triage

    Type

    Fields

    Work status

    needs-owner-decision

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions