flag unbounded gh issue/pr list calls (no --limit)#216
Conversation
|
Hmm. Should we allow configurable number ? And possibly at least a flag or notification telling "and there is more" ? |
|
Good points. On the configurable number: the validator only checks for the presence of --limit, not the value, so any number works. Just edit the snippet directly. I decided a dedicated abstraction (env var, shared config) is not worth the overhead for now. On "and there is more": added a prose note to the three affected skill files instructing Claude to note in its response if the result count equals the --limit value, so the user knows there may be additional results not shown. |
Indeed - LLM should figure on its own and allow override the default in overrides.
yep. Good enough. Let LLM propos what to do. It will likely figure out when such issue happen and will propose modifications. |
|
Hi @justinmclean — heads-up: this PR currently shows as conflicting against The conflicts are in I had a look at rebasing it on your behalf, but resolving how the new validator from this PR should coexist with the Pattern 4 infrastructure feels like a judgement call you should make rather than me guessing. Could you rebase against latest Thanks! |
56daf52 to
7729c4c
Compare
Generated-by: Codex (GPT-5)
What
Adds a new
validate_gh_list_limitcheck that flagsgh issue listandgh pr listcalls in fenced code blocks that have no--limitargument.Why
gh issue listandgh pr listdefault to 30 results. On a large repolike apache/airflow with thousands of open issues, this silently truncates
— any downstream logic (counting, filtering, looping) operates on an
incomplete set with no error or warning. Adding
--limitmakes the intentexplicit and prevents hard-to-spot data loss.
Changes
tools/skill-validatorGH_LIST_CATEGORYconstant (gh_list_no_limit), added toSOFT_CATEGORIES_join_continuationshelper: joins shell line-continuations (\+ newline)before checking, so
--limiton a continuation line is correctly recognisedvalidate_gh_list_limit— scans fenced blocks only; prose and inlinebacktick mentions are not flagged
run_validationfor all skill.mdfiles"gh-list-no-limit"added to_SOFT_RULE_PREFIXESTestGhListLimitReal gaps found (3)
pr-management-triage/actions.md:517pr-management-code-review/selectors.md:119security-issue-invalidate/SKILL.md:246The
selectors.md:484call (gh pr list \ ... --limit 100across continuationlines) is correctly silent — the multiline join handles it.
Notes
All violations are SOFT — advisory warnings that do not fail CI unless
--strictis passed. Even so, the 3 flagged files have been fixed.