GET /api/v1/repos/:owner/:name/issues reads only state, label (one), author, cursor and limit (listQuery, src/http/api.ts). Any other parameter is dropped with no error. ?labels=P0 Trust and ?milestone=586, the GitHub and Forgejo spellings, return the full unfiltered list. An agent, or a person reading the answer, takes that for the filtered one. It happened during the 2026-11-20 security sweep and misreported what P0 Trust held.
Change. Refuse an unknown query parameter on list routes with a 422 that names the accepted ones. Accept labels (comma-separated, all must match) as the plural of label. Add milestone=<number>, meaning issues under that umbrella's tree (core/milestones.ts).
Done when:?labels=x filters, ?milestone=586 lists that tree, ?nonsense=1 answers 422 with the accepted names, and a test covers all three.
GET /api/v1/repos/:owner/:name/issuesreads onlystate,label(one),author,cursorandlimit(listQuery,src/http/api.ts). Any other parameter is dropped with no error.?labels=P0 Trustand?milestone=586, the GitHub and Forgejo spellings, return the full unfiltered list. An agent, or a person reading the answer, takes that for the filtered one. It happened during the 2026-11-20 security sweep and misreported what P0 Trust held.Change. Refuse an unknown query parameter on list routes with a 422 that names the accepted ones. Accept
labels(comma-separated, all must match) as the plural oflabel. Addmilestone=<number>, meaning issues under that umbrella's tree (core/milestones.ts).Done when:
?labels=xfilters,?milestone=586lists that tree,?nonsense=1answers 422 with the accepted names, and a test covers all three.🤖 Generated with Claude Code