Repository navigation
feat(ci): report a Follow-ups bullet without the advisory marker - #16008
Conversation
AGENTS.md now says `## Follow-ups` holds only review advisories, each starting with `Pre-existing (advisory):`, and that any other follow-up goes under a heading of its own or into a filed issue. A new ci-status step beside the squash-signature check fails a pull request body whose top-level bullet under that heading lacks the marker, and names both fixes. scripts/ci-follow-ups-marker.test.sh runs the step body against failing and passing bodies. Refs: #15937 Co-Authored-By: Claude Opus 5.5 <[email protected]>
By owner decision the check reports only, to start. Each unmarked
bullet under `## Follow-ups` is a ::warning that names the fix first,
plus a step-summary table, and the step exits 0. The step's
FAIL_ON_UNMARKED_FOLLOW_UPS env value ('false') is the one switch that
makes it fail ci-status later. AGENTS.md says the check reports such a
bullet. The test asserts exit 0 with the findings printed, and exit 1
with the switch on.
Refs: #15937
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5b99e7d4e2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-security-review reviewed Security review (incremental, blocking only): no security issues foundThis review covers only what changed since What changed: the "Require the advisory marker on each Follow-ups bullet" step now counts a list item indented by up to three spaces as top level. It tracks the content column of the item above ( What I checked
Prior findings: the one earlier post is the clean summary for the previous head. It has no inline findings to carry over. Usage: this adds a few extra bash comparisons per body line in a step that already runs. It needs no paid resource. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only): PR #16008 at
|
The step took only a column-0 list item as top level, so a bullet indented one to three spaces, valid CommonMark for a top-level item, drew no warning. An item now counts as nested only when it is indented to the content column of the item above it; a blank line then a less-indented line ends the list. Regression cases cover the reported input, a genuinely nested item, a lazy continuation and an item after prose. Refs: #15937 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #15937
Summary
A pull request body whose
## Follow-upssection has a bullet without thePre-existing (advisory):marker now gets aci-statuswarning for each such bullet, namingthe fix, plus a step-summary table of them. The sweep that files those entries as issues once
the filing pause lifts finds them only by that marker, so an unmarked bullet is never filed. The
check reports only, by the owner's decision; one switch in the step makes it blocking later.
Fix
AGENTS.md, "Review advisories while issue filing is paused", gains the rule:## Follow-upsholds only marked review advisories,
ci-statusreports a bullet there without the marker,and a follow-up that is not a review advisory goes under a heading of its own or into a filed
issue. The owner confirmed this rule in session. What supports it:
marked:
AGENTS.md("list each under## Follow-ups... each entry starting withPre-existing (advisory):") and the source-control plugin'sreference/review-discipline.mdD4.6 ("list it instead under a## Follow-upsheading inthe PR body. Each entry starts with the fixed marker"). The only code that writes the
heading,
.github/scripts/pr-unblock/publish-feedback.mjs(followUpBullet), writes onlymarked bullets. No file defines the heading for anything else.
## Follow-upssection has a bullet without thePre-existing (advisory):marker is toldso". If other follow-ups were allowed there unmarked, no check could tell them from an
advisory that lost its marker.
newest merged pull requests that
Follow-ups in:bodyfinds) have unmarked bullets. They mixreview findings without the marker (
Advisory:,**Pre-existing (advisory)**,**To verify**) with deferred work and owner decisions. 33 of the 34 came from hostsessions and 1 from the issue lane.
ci-statusstep "Require the advisory marker on each Follow-ups bullet" in.github/workflows/pr-require-checks.yml, next to "Fail a body line that would break thesquash signature". It reads each top-level list item (
-,*,+,1.,1)) between## Follow-upsand the next#or##heading. Each must start with the marker. Prose,continuation lines, nested items and fenced blocks are skipped. CRLF bodies are read as LF.
It runs on
pull_requestevents only. A merge group carries no body, so the step skips it, asthe linkage check does. A body edit re-runs
ci-statusas a contract-only event, so a fixedbody clears the warnings without re-running the lanes.
::warningannotation that starts with the fix: "For a reviewadvisory, start it with 'Pre-existing (advisory): '; for any other follow-up, move it out of
'## Follow-ups' to a heading of its own, or file it as an issue." The annotation then gives the
body line and quotes the bullet. A step-summary block lists every such bullet by body line
under the same fix. Other advisory checks in this workflow also surface as a
::warningandexit 0 (the stale-base overlap check, perf(ci): stop failing PRs that are only behind a fast-moving main #7871). No token, permission or comment path is added.
Where the check lives
In this repository, as an inline step. The shared
check-contractaction(
melodic-software/ci-workflows.github/actions/pr-require-checks/check-contract, pinned at2476d5d) checks the title, thedo-not-mergelabel and issue linkage. It has no input forbody sections. The rule comes from this repository's
AGENTS.mdpause, not fromcomponents/pr-convention-policy/policy.jsoninmelodic-software/standards, so a sharedchange would put one repository's rule on every caller. The step follows the pattern of the two
repo-local body checks already in this job, and each is pinned by a
scripts/*.test.shthat runsthe step body. No other repository changes.
Strength: report-only
/corrections:codifyput the check on the tier 2 Tests rung (a check plus the test that pinsit). The owner chose report-only to start, for two reasons:
and a label and never fails
ci-status.The switch is the step's
FAIL_ON_UNMARKED_FOLLOW_UPSenv value,'false'by default. Settingit to
'true'turns each warning into an error and failsci-status. Flip it when the share ofnewly merged bodies with an unmarked bullet under
## Follow-upshas fallen well below today's34 of 77, measured the same way: the step body run over the newest merged pull requests that
Follow-ups in:bodyfinds.Codify's guardrail criterion, for the record:
recurrence.min_occurrences, defaultlayer).
AGENTS.mdrule, every bullet it reports is a real violation.request's body.
the lane's own writer already marks its bullets.
FAIL_ON_UNMARKED_FOLLOW_UPSswitch is the kill switch for blocking mode, and removing thestep turns the check off. No exceptions are needed, because a heading of its own always
satisfies it.
Dogfooding
This repository's own pull requests are checked by it: the step runs in this repository's
ci-status, starting with this pull request's body, which has no## Follow-upssection.Verification
bash scripts/ci-follow-ups-marker.test.sh: PASS=44 FAIL=0. Before the step existed itfailed ("no 'Require the advisory marker on each Follow-ups bullet' step"). It pins the step's
if:, itsPR_BODYenv, the defaultFAIL_ON_UNMARKED_FOLLOW_UPS: 'false', the missingcontinue-on-error, and the step's place inci-statusbefore "Aggregate lane results". Italso runs the body on:
-,*,+,1.and2)bullets,Advisory:, a bolded marker, a bullet under a###inside thesection, a heading with trailing blanks, CRLF, one warning per bullet, the marker and the
move named first,
%escaped. The summary lists each bullet with its fix and escapes|;'true': an unmarked bullet exits 1 with::error::, and a marked bodyexits 0;
publish-feedback.mjsbullet shape, continuation lines and nested items, prose, the section ending at
##and#, fenced-lines, a heading inside a ``` or ~~~ block, an indented heading,## Follow-ups left open, bullets in other sections, no heading, an empty body.Follow-ups in:bodyfinds:77 have the heading, 34 draw warnings and 43 draw none. For example, refactor(autonomy): simplify resolve-prerequisites probe results #15017 ("Left for the
second chunk of Simplify the setup autonomy plugin code (2 of 2) #14419") draws three and docs(harness-ops): point re-audit findings at live upstream sections #15211 (one marked bullet) none.
actionlint .github/workflows/pr-require-checks.yml: clean.shellcheck -xon the new test:clean.
scripts/ci-*.test.sh,check-comment-hygiene(re-run on this version),check-cant-fail-scan,workflow-self-paths,check-lane-coverage,check-docs-onlyandaffected-tests. Some couldnot run on this host because tools are missing, and they fail the same way on
main:ci-review-plugin-source(node moduleyaml),ci-test-node-stop-commands(PyYAML), and twocheck-html-assetscases incheck-script-contract(htmlhint, nonpm ci). CI runs them.Related
AGENTS.md"Review advisories while issue filing is paused"; source-controlreference/review-discipline.mdD4.6.🤖 Generated with Claude Code
https://claude.ai/code/session_01VcupojPZLwoMUhW1ApGhJc