fix: focus-aware feedback prompts and multi-category support #16
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.
Motivation
--focusflag and needed to be guided to only evaluate requested categories while still surfacing critical issues from other categories.Description
FeedbackFocus.parse_listto parse comma-separated focus values and accept multiple normalized categories, and addedALLas a constant for completeness.list[str] | Nonefocus type throughprepare_context/FeedbackContextand the prompt-building flow so prompts receive the parsed list of categories directly.prompts/feedback.pyto include anIn-scope categoriesline, per-category definitions limited to selected categories, and aCritical overrideinstruction to always include high-severity issues from any category.feedback_cli.pyto accept comma-separated values and pass the parsed list toprepare_context, and added a dry-run unit testtest_feedback_focus_multiple_categories_limits_promptto validate prompt rendering.Testing
uv run pytestand all unit tests passed (154 passed).uv run ruff checkand linting passed (All checks passed!).uv run mypywhich reported unrelated type errors due to missingtorchstubs insrc/scribae/translate/mt.pyand therefore returned errors; this is an existing environmental typing issue not introduced by these changes.Codex Task