Repository navigation
Description
What happened
The review agent on PR #242 identified a doc-code mismatch on 2026-09-21 (inline comment on cmd/gaze/main.go:1188): the README and docs/reference/cli/quality.md document that --include-unexported is rejected when --analyzer is set, but the code in runQualityWithExternalAnalyzer only validates --target and --ai-mapper. The --include-unexported flag is silently accepted and ignored. The PR was merged without addressing this finding — the author had already resolved 7+ findings across 3 review rounds over 21 days, and the agent's final review posted the same day as the merge.
What could go better
This is a genuine documentation accuracy bug that the review agent correctly identified and both human reviewers missed. The agent's strongest value-add on this PR was systematic doc-code consistency checking — this is exactly the class of issue where automated review outperforms human review.
However, the finding was not actioned before merge, likely due to a combination of: (a) the agent's accumulated noise from repeated findings (6 duplicate filings across 3 runs) reducing trust in its output, and (b) review fatigue after 21 days and 3 rounds. The finding was valid but lost in the noise.
Confidence: HIGH — the mismatch is verifiable by comparing docs/reference/cli/quality.md (says --include-unexported is rejected) with cmd/gaze/main.go runQualityWithExternalAnalyzer (no check for includeUnexported).
Proposed change
Either add the missing validation in cmd/gaze/main.go runQualityWithExternalAnalyzer to reject --include-unexported with --analyzer (matching the documented behavior):
if p.includeUnexported {
return fmt.Errorf("--include-unexported is not supported with --analyzer")
}Or, if the intention is to silently ignore the flag (since external analyzers handle their own function visibility), update README.md and docs/reference/cli/quality.md to only list --target and --ai-mapper as rejected flags, removing --include-unexported from the incompatibility list.
The choice depends on the intended UX: rejecting loudly follows the existing pattern for --target/--ai-mapper and aligns with Constitution Principle II (Minimal Assumptions — make assumptions explicit). Silently ignoring requires less code but violates the principle of least surprise.
Validation criteria
gaze quality --analyzer /path/to/analyzer --language python --include-unexported ./...either (a) exits with a clear error message if the flag is rejected, or (b) proceeds without error if the docs are updated to allow it.- The behavior of
--include-unexportedwith--analyzermatches what all documentation files (README.md, docs/reference/cli/quality.md) describe. - A test case in
cmd/gaze/external_analyzer_test.gocovers the--include-unexported+--analyzercombination.
Generated by retro agent from #242
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
fullsend-ai-triage commentedon Sep 21, 2026
🤖 Finished Triage · ✅ Success · Started 5:55 PM UTC · Completed 5:59 PM UTC
Commit:
76f8ca9· View workflow run →Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $0.94
fullsend-ai-triage commentedon Sep 21, 2026
Verified the mismatch:
runQualityWithExternalAnalyzervalidates--targetand--ai-mapperbut not--include-unexported, while bothREADME.md(line 199) anddocs/reference/cli/quality.md(line 41) document all three as rejected.The fix should add a validation check following the existing pattern at lines 1190–1201 of
cmd/gaze/main.go, plus a test mirroring the existingTestRunQuality_ExternalAnalyzer_RejectsTargetpattern:Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefullsend-ai-coder commentedon Sep 21, 2026
🤖 Finished Code · ✅ Success · Started 6:00 PM UTC · Completed 6:14 PM UTC
Commit:
76f8ca9· View workflow run →Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $2.38
fix(#273): reject --include-unexported with --analyzer
fix(#273): reject --include-unexported with --analyzer
fix(unbound-force#273): reject --include-unexported with --analyzer