fix(reviewer): stop bot from flagging future-to-it version numbers #63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/version-claims-prompt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
QuickScanPromptandFullReviewPrompt: future-to-the-model versions are real releases that postdate training and warrant no commentary at all.Go 2.16 vs 1.26example (which the model was reading either way) in favor of a clearer framing.go.mod,package.json,pyproject.toml, Dockerfiles, lockfiles) and explicitly forbid the three failure modes seen on #17: claiming a version "doesn't exist yet," asserting the "current latest," and suggesting a downgrade.Closes #17.
Test plan
gofmt -l .,go vet ./...,go build ./...go test -race ./internal/reviewer/...Automated review by pr-reviewer v0.28.2 | Safety Check | Claude Sonnet 4 | tracking id
r-fa6a0c-cf0ee7This is an AI-generated review and may contain mistakes.
Status: ✅ Completed
✅ Verdict: LGTM — This is a safe prompt text modification that improves AI reviewer behavior without introducing any security, breaking, or correctness issues.
Complexity: trivial
Safety Check Review
This PR modifies the prompts used for automated code reviews to strengthen guidance against flagging newer software versions.
Changes reviewed:
internal/reviewer/prompts.goQuickScanPromptandFullReviewPromptconstantsAnalysis:
The changes replace the existing version number guidance with more explicit and comprehensive instructions:
Before: Basic warning not to flag unrecognized versions with a simple example
After: Detailed guidance that:
Safety considerations:
✅ No security issues: This is a prompt text change with no executable code
✅ No breaking changes: Constants are being modified but the interface remains the same
✅ No credentials or secrets: Only contains instructional text
✅ No obvious bugs: The text replacement appears correct and maintains proper string formatting
The change is purely instructional text meant to improve the behavior of an AI reviewer system. The modifications are reasonable and address a specific issue (#17) where the bot was incorrectly flagging legitimate version numbers.
6f6906b2e889946421dd