-
Notifications
You must be signed in to change notification settings - Fork 112
fix(docs-review): check related docs by name and directory, not just identifier grep #3233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
csoceanu
wants to merge
3
commits into
fullsend-ai:main
from
csoceanu:fix/docs-review-related-docs-check
Closed
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -124,12 +124,19 @@ From the script output, collect all matched doc files into a | |
| candidate list. Exclude documentation files that are already modified | ||
| in the same PR — those are being actively updated. | ||
|
|
||
| Additionally, for each changed code file, check whether a | ||
| documentation file covering the same feature exists based on file | ||
| name and directory structure. If one exists and is not already in the | ||
| candidate list, add it. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2. Related-doc match underspecified The new “match by file name and directory structure” instruction doesn’t define a concrete heuristic (what directories to search, what constitutes a match, or how many candidates to add), so different runs/agents can apply different interpretations and produce inconsistent candidate sets. This ambiguity is duplicated into the docs-currency sub-agent instructions, increasing variance in behavior. Agent Prompt
|
||
|
|
||
| ### 5. Evaluate every candidate (two passes) | ||
|
|
||
| **Pass 1 — Quick scan.** For each candidate doc file from step 4, | ||
| view only the lines that matched the grep (use `grep -n` to see them | ||
| in context). Based on the matching lines alone, decide whether the | ||
| doc might be stale. Record a verdict for every candidate: | ||
| in context). For candidates added by name/directory match without | ||
| grep hits, read the doc's section headings to determine if it | ||
| describes behavior changed in this PR. Record a verdict for every | ||
| candidate: | ||
|
|
||
| ```text | ||
| - path/to/doc.md → possibly stale (describes behavior that changed) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.