Repository navigation
Conversation
…roup (#1728) Bumps the actions-deps group with 1 update: [codecov/codecov-action](https://github.com/codecov/codecov-action). Updates `codecov/codecov-action` from 7.1.0 to 7.1.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/codecov/codecov-action/releases">codecov/codecov-action's releases</a>.</em></p> <blockquote> <h2>v7.1.1</h2> <h2>What's Changed</h2> <ul> <li>chore(release): 7.1.1 by <a href="https://github.com/thomasrockhu-codecov"><code>@thomasrockhu-codecov</code></a> in <a href="https://redirect.github.com/codecov/codecov-action/pull/1973">codecov/codecov-action#1973</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/codecov/codecov-action/compare/v7.1.0...v7.1.1">https://github.com/codecov/codecov-action/compare/v7.1.0...v7.1.1</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/codecov/codecov-action/commit/303a32d7a59b442fa8d48b6a1cc6825c09c847a5"><code>303a32d</code></a> chore(release): 7.1.1 (<a href="https://redirect.github.com/codecov/codecov-action/issues/1973">#1973</a>)</li> <li>See full diff in <a href="https://github.com/codecov/codecov-action/compare/0b35c9ecc4f0529d0eb674914510c22f85b196b4...303a32d7a59b442fa8d48b6a1cc6825c09c847a5">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ng Shapes (#1726) Fixes #1722. Fixes #1701. Two digest-reader defects in `scripts/pr_review.py`, each of which blocks a Merge Gate over a review the script could not read rather than over anything wrong with the pull request. They land together because they are the same class of defect in the same file, and one review round over both costs less than two. ## The coverage marker is read within its line, #1722 `is_coverage_line` and `read_coverage` both matched the `fleet-review` marker with `fullmatch`, so it counted only where it occupied its whole line. One of Copilot's two overview formats ends a prose sentence with it instead, and there the digest reported `coverage=unstated` about a round that stated full coverage in plain sight. Requesting another review does not clear it, the next round stating coverage the same way. Both sites are widened, and that matters rather than being belt and braces: `is_coverage_line` is the collector, `coverage_statements` returns only the lines it accepted, and `read_coverage` therefore never saw the line at all. **The anchor was doing one more job than the issue credits it with.** An HTML comment renders invisibly, so a body that wants a marker seen has to quote it, and `coverage_statements` already strips a fenced block and an inline code span ahead of every reader. A blockquote is the third such convention, and the line anchor was excluding one for free, because `>` is not whitespace. That exclusion is now explicit, and it runs to the blank line that closes the quotation rather than to the end of the line opening it, since a line carrying no `>` under one that does is still inside it. Continuation carries paragraph text only, so a line opening its own block ends the quotation above it, which of the three coverage spellings leaves only the reviewer's own sentence quotable. A line carrying both a prose count and a disagreeing marker is refused. Two readings that disagree leave unanswered which one the round meant, which is the case `read_coverage` already returns None for, and refusing it blocks rather than passing. ## The two unread Copilot summary shapes, #1701 `Previously missed (N)` and a severity badge rendered as an inline `picture` element were both reported as unrecognized, and an unrecognized shape blocks the gate on its own. **The issue's open question is settled.** It could not tell whether `(N)` was Copilot's placeholder or the script's substitution, and said a second repository's review would be needed. It is the script's: the live body carries `Previously missed (1)`, and `normal` reduces every count to `(N)` exactly as it does for the suppressed heading beside it. The badge carries its severity only in the `img` `alt`. Every other part is a versioned icon URL, and the set has already been bumped once, so `normal` reduces a badge to that text and nothing keys on the markup. A finding entry cannot be vetted the way a section heading is, its title differing on every finding, so the badge identifies the shape and a stated count separates a section heading from a finding's title. **Vetting the heading alone would have been the wrong fix.** It would have silenced the section while hiding the findings inside it, which is the reverse hazard the issue names. Those entries raise no inline thread, which is a suppressed finding's exact shape, so the section is read the same way: counted across every round, split by head, and printed whole with its severity as a word. It is kept apart from `suppressed=` because the two take different answers, one a finding the reviewer withheld and one it raised outright against code the branch never touched. No exit code rides on it. `pr-review-conduct`'s Merge Gate item 3 enumerates the no-thread finding classes by digest field and now names this one, since an agent working that gate otherwise has no instruction covering a field the digest prints. `scripts/README.md` documents it beside `suppressed=`. ## Review record Five adversarial passes ran before this opened, raising 24 findings between them. The two fixes above were sound from the first pass; every round after it was repairing the machinery built around them. Of note, because the branch's own theme is this defect class: - A badge whose `img` had lost its `alt`, which icon-set drift produces, paired with the next entry's badge and deleted a finding's title and text from the only place those findings appear. - Reading a quoted heading as a raised section, which is reachable from this pull request's own test bodies. - A section anchor that matched anywhere in a line, so the sentence `restores a guard previously missed (2) rounds ago` fabricated a section on a clean round. - Spelling that anchor's whitespace as `\s`, which is Unicode-aware and so overlapped the non-ASCII alternative beside it, making the leading run ambiguous and the parse exponential in it. Twenty-six non-breaking spaces took six seconds. - Two fail-opens on quoted content, a lone closing tag and a tab indent, each letting a quoted coverage line read as the round's own. - `FLEET_REVIEW`'s own leading `\s*`, which the whole-line spelling needed and a search does not, quadratic in the whitespace run it sits in. Each is held by a case that fails without its fix. ## Known residual The section anchor still admits non-ASCII punctuation, so an em dash opening a sentence can read as the section heading. It is narrower than every earlier spelling, which admitted ASCII punctuation too, and closing it means a class of non-ASCII symbols rather than the whole of non-ASCII. A sibling section heading stating no count does not bound a block, which is recorded in `sibling_heading`'s own docstring: the requirement is strictly narrowing, and every vetted heading states a count, so a body reaching it also reports `shapes=UNRECOGNIZED` and tells its reader not to believe the fields beside it. Out of scope and filed separately: #1725, `FLEET_REVIEW` opening on `\s*` means a four-space-indented marker, which is a Markdown code block and so a quotation, reads as a stated coverage line. ## Verification 1641 tests pass. Ruff, mypy, `prose_lint.py`, `repo_gate.py --check eol`, `spec/validate.py` and `build_dist.py --check` are green. Checked against the live review bodies the issues name: the round that was blocking reads `unrecognized=0 coverage=full` with its previously-missed finding surfaced, and the one round still reading `unstated` genuinely carries no coverage statement of any kind. The `comments` label is set because the change adds comment lines deliberately, this file recording the reasoning for each reader beside it rather than in a commit nobody reads next to the code. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The new time-based assertions in the test suite use a tight 1.0s bound and are likely to be flaky on slower or contended CI runners.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
This PR promotes develop to main and updates the PR-review digest reader so it can reliably parse Copilot review output across both overview formats (including inline coverage markers and the "Previously missed" section), plus a small Codecov action pin bump.
Changes:
- Update
scripts/pr_review.pyto read thefleet-reviewcoverage marker when it appears inline (not only as a whole-line match), while preserving quote-stripping behavior. - Teach the digest to recognize and render "Previously missed" blocks (including severity badges rendered as
<picture>) as first-class no-thread findings. - Bump
codecov/codecov-actionfrom v7.1.0 to v7.1.1 invalidate-task.yml, and update related docs/tests/skill text.
| File | Description |
|---|---|
| scripts/pr_review.py | Expands coverage-marker detection, adds "Previously missed" parsing, and normalizes severity badge markup for digest output. |
| scripts/tests/test_pr_review.py | Adds regression tests for the new parsing behaviors (including performance-guard timing checks). |
| scripts/README.md | Documents the new previously_missed= digest field and how severity badges are reduced. |
| .github/workflows/validate-task.yml | Updates the Codecov action pin to v7.1.1. |
| .agents/skills/pr-review-conduct/SKILL.md | Updates Merge Gate guidance to include the new no-thread finding class. |
| .github/skills/pr-review-conduct/SKILL.md | Generated distribution copy of the updated skill content. |
| .claude-plugin/fleet-skills/skills/pr-review-conduct/SKILL.md | Generated plugin distribution copy of the updated skill content. |
| .claude-plugin/fleet-skills/.source-digests/pr-review-conduct | Updates the source digest for the regenerated skill distribution. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…an Hang (#1731) Answers a finding raised on the `develop -> main` promotion pull request #1730: two unit tests assert a wall-clock bound via `time.monotonic()` and are prone to CI flakiness. A promotion pull request's head is `develop`, so the fix lands here first. The finding is correct about the flake risk. Checking it found that neither case worked, each broken in its own way, so the flakiness was the least of it. ## The quadratic case guarded nothing `coverage_statements` skips a blank line before any reader sees it, and a line of 65526 spaces strips to empty, so the case measured a blank-line skip rather than the pattern it names. Restoring the marker's outer `\s*` runs left the whole file green. The run now carries a character of its own, which takes it to the reader: about 2.7 milliseconds as written, about 5.7 seconds with the runs restored. ## The exponential case could not report what it caught Its bound is read after the call returns, and at a run of 40 the ambiguous spelling parses for hours, so the suite hangs and the assertion is never reached. Measuring that directly timed out at 300 seconds. The cost doubles per character, so the input size is what decides whether a regression is reported or is merely fatal. The size is 28 rather than the first one that clears the bound. At 26 a regression takes about five seconds against a three second ceiling, and a runner twice this host's speed would let one through; at 28 it takes about twenty seconds, which is bounded and has headroom on the side that matters. ## What makes the bound safe Not the clock, the margin under it. The readings as written are about 17 microseconds and 2.7 milliseconds against a three second ceiling, so a runner would have to be thousands of times slower to reach it. The ceiling is stated once as `BACKTRACK_BOUND` so the two cases cannot drift apart. Each regression was restored in a scratch copy to confirm the case reports rather than hangs: ```text exponential anchor -> CAUGHT in 20.6s AssertionError: 20.48 not less than 3.0 quadratic marker runs -> CAUGHT in 5.8s AssertionError: 5.70 not less than 3.0 ``` ## Correction carried in the commit message An earlier draft said the quadratic run took about nine seconds before the fix. That holds on no committed tree: the spelling before it used `fullmatch`, which backtracks linearly and reads the same input in about 3 milliseconds. The nine second state was an intermediate no commit carries. Tests only. No production code changes, and the full suite is green at 1641. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
It modifies core Merge Gate parsing logic with nuanced regex/Markdown/HTML heuristics and should get a final human sign-off despite the strong test coverage.
Review effort: Lite
Findings: None

Closes #1722. Closes #1701.
Promotes
developtomain. Two commits.Read the Coverage Marker Inside a Sentence, and the Two Copilot Finding Shapes (#1726)
Two digest-reader defects in
scripts/pr_review.py, each of which blocked a Merge Gate over a review the script could not read rather than over anything wrong with the pull request under it.The coverage marker is read within its line, #1722.
is_coverage_lineandread_coveragematched thefleet-reviewmarker withfullmatch, so it counted only where it occupied its whole line. One of Copilot's two overview formats ends a prose sentence with it, and there the digest reportedcoverage=unstatedabout a round that stated full coverage in plain sight, which requesting another review does not clear. Both sites are widened, the collector as well as the reader. The line anchor was also excluding a blockquoted marker for free, so that exclusion is now explicit beside the fenced-block and code-span strips that were always deliberate, and it runs to the blank line that closes the quotation, carrying paragraph text only.The two unread Copilot summary shapes, #1701.
Previously missed (N)and a severity badge rendered as an inlinepictureelement were both reported as unrecognized, and an unrecognized shape blocks the gate on its own. The issue's open question is settled: the(N)is this script's own normalization rather than Copilot's placeholder, the live body carryingPreviously missed (1). The badge's severity is read from itsimgalt, every other part being a versioned icon URL, and either quoting of that attribute is accepted. Vetting the heading alone would have silenced the section while hiding the findings inside it, so the section is read the way a suppressed one is: counted across every round, split by head, and printed whole, kept apart fromsuppressed=because the two take different answers, with no exit code riding on it.pr-review-conduct's Merge Gate item 3 names the new field, since it enumerates the no-thread finding classes and an agent working that gate otherwise has no instruction covering one the digest prints.scripts/README.mddocuments it besidesuppressed=.The review loop found five further defects, every one through the reader this change adds. Each arrived in a collapsed section that opens no thread, so each round reported
unresolved=0 merge=CLEANwhile they stood. Two were crashes on unbounded digit runs, two were falseunstatedreads that block a merge on a satisfied item, and one was a badge left unreduced by a quoting change. Ten local passes ran across the branch, disposing of 30 findings in total.Known residuals, documented in the source rather than left to be rediscovered: the section anchor admits non-ASCII punctuation, and a sibling heading stating no count does not bound a block, a body reaching that also reporting
shapes=UNRECOGNIZED. #1725 covers the indented-marker looseness separately.Bump codecov/codecov-action from 7.1.0 to 7.1.1 in the actions-deps group (#1728)
Dependabot, already reviewed and merged on
develop.🤖 Generated with Claude Code