Skip to content

Decide when the comment lint moves from report to block in this repository #16341

Closed

Description

@kyle-sexton

Problem

Issue #15647 shipped the comment lint and turned it on at commit time in this repository at comment_lint: report, which prints findings and passes. Its original decision put block in the follow-up pull request; the owner kept report on 2026-11-15, and #15647 closed when #16309 merged. Nothing else tracks the later move to block.

Decided (owner, 2026-11-15)

  • The level stays at report until a required check covers a pull request that edits the lint's judge. Today CI Status only requires that both review lanes completed on the head (.github/workflows/pr-require-checks.yml:7259), so a finding that the judge was weakened holds a merge only while its review thread is unresolved.
  • The CI gate keeps running the lint code from the pull request's own commit, so a pull request that changes the rules is checked by the rules it proposes.

What the move waits on

  • A required check that fails a pull request which weakens the judge, or runs the merge base's judge beside the head's. Its design is not decided.
  • The generated-file marker is narrowed (fix(code-tidying): count "do not edit" as a generated marker only as a whole-file notice #16338).
  • Commit-hook time measured: median 0.35 s on a one-file commit, 0.94 s on 44 files (docs/contracts/check-placement/README.md:392).
  • The dry run in ADR 0108 found 631 findings over the last 50 merged pull requests, about 12 per pull request, so under block most pull requests fail until their added comments are removed or linked.

To settle with the move

  • The CI gate reads the level, posture and allow list from the merge base (scripts/check-comment-lint.sh). Under block, a pull request that adds an allow pattern and a comment relying on it fails until the pattern merges first. Decide whether that stays.

Done when

  • docs/conventions/code-tidying.yaml holds comment_lint: block, or this issue is closed with the owner's reason for staying at report.
  • ADR 0108 states the level in force.

Related

Activity

  1. added
    needs-owner-decision
    on Nov 15, 2026
  2. added
    needs-triage
    on Nov 15, 2026
  3. github-actions commented on Nov 15, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Low
    Uncertainty: Knowable
    Flags: intent
    Blocked by: none

    I read this as a tracking issue for one owner decision: whether comment_lint in docs/conventions/code-tidying.yaml moves from report to block, plus recording the level in force in ADR 0108. It waits on the narrowed generated-file marker (branch fix/comment-lint-generated-marker). I found no merged pull request that already settles it, and no duplicate among the open issues. #15647, #16297, #16309 and #15832 are related.

    Two things are open that the issue text cannot answer:

    1. Move to block now, or stay at report? RECOMMENDED: stay at report until the marker fix merges and the hook time is measured. The dry run in ADR 0108 found about 12 findings per pull request, so block would fail most pull requests.
    2. Should the CI gate keep reading the level and allow list from the merge base? Under block this means a pull request that adds an allow pattern fails until the pattern merges first. RECOMMENDED: keep it. A pull request cannot loosen its own gate, which matches the decision already recorded for Judge a change that loosens a check as a review criterion, wherever it appears #15832.

    The 4-second commit-time hook measurement is a lane-checkable follow-up that does not need the owner.

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

    **Decision recorded.** <answer to questions 1 and 2>
    

    Automated triage. A maintainer reviews it.

  4. melodic-automation-lanes commented on Nov 15, 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

  5. melodic-automation-lanes commented on Nov 15, 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: Either comment_lint: block is set in docs/conventions/code-tidying.yaml with ADR 0108 stating it, or the issue closes with the owner's reason for staying at report and ADR 0108 says report is in force.

    Related work

    Open questions

    1. Move comment_lint to block now, or stay at report until the generated-marker fix merges?
      RECOMMENDED: Stay at report until the marker branch merges; revisit then. The dry run found 631 findings over 50 pull requests, about 12 each, so block would fail most pull requests. Basis: docs/adr/0108-stop-new-comments-with-a-lint-on-added-lines-and-review-not-a-count.md:47
    2. Should the CI gate keep reading level, posture and allow list from the merge base, so a pull request adding an allow pattern and a comment that relies on it fails until the pattern merges first?
      RECOMMENDED: Keep it, so a pull request cannot loosen its own gate. Adding the pattern in a separate earlier pull request is the cost. Basis: scripts/check-comment-lint.sh
    3. Is the existing hook timing enough, or must a new measurement be taken before block?
      RECOMMENDED: The existing measurement is enough: 0.331 s for a one-file commit and 0.939 s for 44 files, on the reference host. The issue's 4 s was a single-machine figure. Record the difference and accept the existing numbers, or re-measure on the machine that gave 4 s. Basis: docs/contracts/check-placement/README.md:392
    4. If the owner moves to block, should that wait for the 12-per-pull-request backlog to be cleared, or is a failing-most-pull-requests period accepted?
      RECOMMENDED: Wait until a dry run after the marker fix shows a much lower per-pull-request count, or accept the failures only with the owner's explicit say-so. Basis: judgment

    Sources read

    • docs/conventions/code-tidying.yaml:10: comment_lint is report now, with two allow patterns for test-scope headers
    • docs/adr/0108-stop-new-comments-with-a-lint-on-added-lines-and-review-not-a-count.md:31: decision 5 says this repository starts at report and moves to block in a follow-up change
    • docs/adr/0108-stop-new-comments-with-a-lint-on-added-lines-and-review-not-a-count.md:47: dry run total is 631 findings, 0 false positives
    • docs/adr/0108-stop-new-comments-with-a-lint-on-added-lines-and-review-not-a-count.md:52: with no false positive the follow-up change may set block
    • docs/contracts/check-placement/README.md:392: the pre-commit comment-lint entry took 0.331 s for 1 file and 0.939 s for 44 files on the reference host, 2026-11-14
    • plugins/code-tidying/git-hooks/comment-lint.sh:20: reads comment_lint (off, report or block) from the team file

    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.**.

  6. kyle-sexton commented on Nov 15, 2026

    @kyle-sexton
    MemberAuthor

    One more point to settle before block: the CI gate runs the pull request's own lint code, so a pull request that weakens the judge is left to review (#15832). CI Status is the only required check on main. Confirm how a review finding on an edited judge reaches CI Status (its review-lanes step and the pr-verify verdict) before relying on review to stop one.

  7. kyle-sexton commented on Nov 15, 2026

    @kyle-sexton
    MemberAuthor

    The generated-file marker is narrowed: #16338 merged as 2b56d2f. do not edit now counts only as a whole-file notice, so that condition on block is met. What remains is the owner's decision and the points under "To settle with the move".

  8. kyle-sexton commented on Nov 15, 2026

    @kyle-sexton
    MemberAuthor

    Both points under "To settle with the move" were checked on 2026-11-15.

    Hook time. The commit-time lint took a median 0.35 s on a staged one-file change (five runs, 0.34 to 0.36 s), and 0.45 s through lefthook run pre-commit for that job. That matches docs/contracts/check-placement/README.md:392 (1 file 0.331 s, 44 files 0.939 s). The "about 4 seconds" in the body was not reproduced; its cause is unknown. Hook time does not stand in the way of block.

    A weakened judge is not stopped by a required check. CI Status only requires that both review lanes completed on the head (.github/workflows/pr-require-checks.yml:7259, step at :7323), not that they found nothing. A review finding stops a merge in two ways only: a cost or CRITICAL-security hold (the needs-human label, which fails CI Status), or an unresolved inline thread (the base ruleset sets required_review_thread_resolution: true). An IMPORTANT finding that the judge was weakened therefore holds the merge only while its thread is open, and resolving the thread does not require the fix. Not traced: whether pr-verify or the merge-risk rating would catch it on their own.

  9. kyle-sexton commented on Nov 15, 2026

    @kyle-sexton
    MemberAuthor

    Owner decision, 2026-11-15 (in session, "go w/ recomendations"): the level stays at report until a required check covers a pull request that edits the lint's judge. The body now records this and lists that check as the one open condition on block; its design is not decided.

  10. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    Closing as done: the decision this issue asked for is made and applied. ADR 0110 and #16699 (merged 2026-11-17) moved the comment lint from report to block, and docs/conventions/code-tidying.yaml:10 on main reads comment_lint: block. Not covered by that change: a separate check on pull requests that edit the lint's own judge; file it on its own if it is still wanted. Posted by an agent session.

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-owner-decisionneeds-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