fix(docs-review): check related docs by name and directory, not just identifier grep#55
Conversation
PR Summary by QodoImprove docs-review stale-doc detection with name/directory doc matching
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
55 rules 1. Protected skills/ files modified
|
|
I'll let this sit for 24 more hours to see if you want to submit some corrections or someone else has anything to say. |
…identifier grep The docs-review skill finds stale docs by grepping for identifiers from the diff. This misses docs that describe the same feature area but don't mention any specific changed identifier — common when a PR adds new behavior rather than renaming existing behavior. Add a step to check whether documentation files covering the same feature exist based on file name and directory structure, and evaluate them as candidates even without grep matches. Update the quick-scan pass to handle candidates without grep hits by reading section headings instead. Signed-off-by: csoceanu <csoceanu@redhat.com>
c3b7691 to
a7f35a6
Compare
Functional tests are runningAuthorization passed for this commit. See the Functional Tests workflow for results. |
|
Hello! @csoceanu you need to decide if the Qodo feedback is relevant and resolve the threads in order for me to merge. (I rebased to get you the functional tests running) |
|
Thanks @rh-hemartin @ben-alkov ! Resolved all 3 Qodo threads - none require code changes. |
|
Thanks for your contribution! |
|
🤖 Finished Retro · ✅ Success · Started 7:12 AM UTC · Completed 7:23 AM UTC |
|
PR #55 was a well-motivated, small (12 additions, 3 deletions) human-authored contribution from an external contributor that improved the docs-review skill's recall by adding name/directory-based document discovery alongside the existing identifier grep. The change was backed by data (6% false negative rate from 111 merged PRs) and required zero rework. Two human reviewers approved within 2 days, but the PR took 5 days to merge due to a 2-day gap waiting for the contributor to resolve bot review threads. The fullsend review agent never ran because the dispatch requires PR author write permission for auto-triggering on fork PRs, and no maintainer manually triggered Proposals filed
|
Summary
The docs-review skill finds stale docs by grepping for identifiers from the diff. This misses docs that describe the same feature area but don't mention any specific changed identifier — common when a PR adds new behavior rather than renaming existing behavior.
This PR adds a step to check whether documentation files covering the same feature exist based on file name and directory structure, and evaluate them as candidates even without grep matches.
Changes
docs-review/SKILL.mdstep 4: after the identifier grep, also check for related doc files by name/directory matchdocs-review/SKILL.mdstep 5: handle candidates without grep hits by reading section headings in the quick-scan passdocs-currency.md: align the sub-agent instructions with the updated skillContext
An impact analysis of 111 merged PRs found that the skill missed stale docs in 7 PRs (6% false negative rate). In most of these cases, the PR added new user-visible behavior and the related doc file wasn't found because the new identifiers didn't exist in existing docs. This change addresses that gap by matching code files to doc files by name and directory structure, not just identifier grep.
Same change as fullsend-ai/fullsend#3233, opened here per @rh-hemartin's request since agents are migrating to this repo.