Skip to content

triage: mandatory Security Model citation + closed-tracker precedent search - #149

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:triage-prelim-checks
May 14, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:triage-prelim-checks

Conversation

@potiuk

@potiuk potiuk commented May 14, 2026

Copy link
Copy Markdown
Member

Summary

Adds two mandatory pre-classification steps to security-issue-triage:

  • Step 2.5 — Apply the Security Model verbatim: the classifier must quote the relevant 2-3 sentences of the project's Security Model and explain how the tracker maps to (or escapes) that wording. A trust-boundary cheat-sheet codifies the common attacker/target combinations into default dispositions, so the classifier cannot skip the boundary analysis silently.
  • Step 2.6 — Closed-tracker precedent search: extends the existing fuzzy-dup search to look for closed-as-invalid and closed-as-not-CVE-worthy precedents (today the search only finds open-tracker dedup candidates). A STRONG rejection precedent lowers proposal confidence and often swings the disposition.

Motivation

In a 2026-05-14 triage sweep against airflow-s/airflow-s, the first-pass classification got 8 of 9 trackers wrong — proposed VALID/DEFENSE-IN-DEPTH for cases that had direct NOT-CVE-WORTHY precedents (e.g. airflow-s#258 for the __classname__ → import_string pattern, airflow-s#215 / #237 for cross-DAG-read via Execution API). The misclassifications were caught after a second round of human pushback ("check past similar issues; read the Security Model deeply"). This PR codifies "read the Security Model deeply" and "check past similar issues" as mandatory steps in the skill instead of relying on the human to push back.

Test plan

  • Re-run /security-issue-triage against airflow-s#404-feat(github-body-field): rewrite one issue-body field out-of-context #412 (the cases that originally tripped this) and confirm the new Step 2.5 trust-boundary cheat-sheet produces the correct first-pass dispositions for each.
  • Confirm Step 2.6 finds airflow-s#258 when triaging a new report describing import_string() with attacker-controlled classnames inside the Triggerer / parser / worker pool.
  • Run gh search issues against a closed tracker label that doesn't exist (e.g. closed:invalid-but-no-matches) to confirm the empty case is handled cleanly.
  • Budget check: total gh search calls per tracker stay within the documented ≤5 envelope (the new closed search shares the same 5-call cap with the existing open search).

🤖 Generated with Claude Code

…search

Adds two pre-classification steps to security-issue-triage:

Step 2.5 — Apply the Security Model verbatim. The classifier must quote
the relevant 2-3 sentences of the project's Security Model and explain
how the tracker maps to (or escapes) that wording. A trust-boundary
cheat-sheet codifies the common attacker/target combinations into
default dispositions, so the classifier cannot skip the boundary
analysis silently.

Step 2.6 — Closed-tracker precedent search. Extends the existing
fuzzy-dup search (Step 2a in security-issue-import) to look for closed
'invalid' / 'not CVE worthy' / 'duplicate' trackers — and CVE-allocated
positive precedents — for the same fuzzy keys. A STRONG rejection
precedent lowers proposal confidence and often swings the disposition
from VALID to NOT-CVE-WORTHY.

Motivation: a 2026-05-14 triage sweep against airflow-s/airflow-s got
8 of 9 trackers' first-pass classification wrong — proposed VALID for
cases that had direct NOT-CVE-WORTHY precedents (e.g. airflow-s#258
for the __classname__→import_string pattern, airflow-s#215/apache#237 for
cross-DAG-read via Execution API). The misclassifications were only
caught after the human triager pushed back twice asking the assistant
to read the Security Model deeply and check past similar issues. This
PR codifies both as mandatory pre-classification steps.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@potiuk
potiuk force-pushed the triage-prelim-checks branch from 32205f6 to f81df2d Compare May 14, 2026 12:52
@potiuk
potiuk merged commit 9c98ead into apache:main May 14, 2026
12 checks passed
@potiuk potiuk added capability:triage Sweep + classify + propose disposition family:security security-* skills labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:triage Sweep + classify + propose disposition family:security security-* skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant