Repository navigation
Closed
Labels
needs-owner-decisionAwaiting a human or maintainer judgment call.needs-triageNot yet classified. Floor until a type and one priority tier are set.
Description
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
reportuntil a required check covers a pull request that edits the lint's judge. TodayCI Statusonly 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
blockmost 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). Underblock, 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.yamlholdscomment_lint: block, or this issue is closed with the owner's reason for staying atreport. - ADR 0108 states the level in force.
Related
- Adopt the no-comments posture here and support it as a plugin setting #15647, feat(code-tidying): stop new comments with a lint on added lines #16297, chore(code-tidying): run the comment lint at commit time in this repository #16309, fix(code-tidying): count "do not edit" as a generated marker only as a whole-file notice #16338, Judge a change that loosens a check as a review criterion, wherever it appears #15832
Metadata
Metadata
Assignees
Labels
needs-owner-decisionAwaiting a human or maintainer judgment call.needs-triageNot yet classified. Floor until a type and one priority tier are set.
Type
Fields
Work status
needs-owner-decision
Priority
medium
Activity
github-actions commentedon Nov 15, 2026
Size: Small
Complexity: Low
Uncertainty: Knowable
Flags: intent
Blocked by: none
I read this as a tracking issue for one owner decision: whether
comment_lintindocs/conventions/code-tidying.yamlmoves fromreporttoblock, plus recording the level in force in ADR 0108. It waits on the narrowed generated-file marker (branchfix/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:
blocknow, or stay atreport? RECOMMENDED: stay atreportuntil the marker fix merges and the hook time is measured. The dry run in ADR 0108 found about 12 findings per pull request, soblockwould fail most pull requests.blockthis 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:
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 15, 2026
The triage verdict left this issue at
needs-owner-decision:Reason:
intentmelodic-automation-lanes commentedon Nov 15, 2026
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: blockis set in docs/conventions/code-tidying.yaml with ADR 0108 stating it, or the issue closes with the owner's reason for staying atreportand ADR 0108 saysreportis in force.Related work
Open questions
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
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
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
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
To answer, post a comment that starts with this line:
Automated refinement by the lanes App. Answer with a comment whose first line is
**Decision recorded.**.kyle-sexton commentedon Nov 15, 2026
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 Statusis the only required check onmain. Confirm how a review finding on an edited judge reachesCI Status(its review-lanes step and the pr-verify verdict) before relying on review to stop one.kyle-sexton commentedon Nov 15, 2026
The generated-file marker is narrowed: #16338 merged as 2b56d2f.
do not editnow counts only as a whole-file notice, so that condition onblockis met. What remains is the owner's decision and the points under "To settle with the move".kyle-sexton commentedon Nov 15, 2026
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-commitfor that job. That matchesdocs/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 ofblock.A weakened judge is not stopped by a required check.
CI Statusonly 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 (theneeds-humanlabel, which failsCI Status), or an unresolved inline thread (thebaseruleset setsrequired_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.kyle-sexton commentedon Nov 15, 2026
Owner decision, 2026-11-15 (in session, "go w/ recomendations"): the level stays at
reportuntil 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 onblock; its design is not decided.kyle-sexton commentedon Nov 17, 2026
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:10on main readscomment_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.