Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(triage): treat an unfilled bug report scaffold as missing proof

mateo7a1773547363
diff --git a/.github/scripts/triage_with_llm.py b/.github/scripts/triage_with_llm.py
index d2536058e01..a7bd145dbc8 100644
--- a/.github/scripts/triage_with_llm.py
+++ b/.github/scripts/triage_with_llm.py
@@ -582,7 +582,9 @@ def build_issue_prompt(*, title: str, body: str) -> str:
Commands whose external dependencies (LLM provider, DB,
network) are mocked or stubbed do NOT count.
Prose-only "steps to reproduce" with no run output, video, or
- screenshot do NOT satisfy (1).
+ screenshot do NOT satisfy (1). An unfilled template scaffold
+ (bare headings such as "Version or commit:" with nothing under
+ them, empty numbered lists) counts as absent, not as evidence.
(2) Expected vs. actual behavior (`has_expected_vs_actual`).
FAIL the bug report if either (1) or (2) is missing. Do not bias
diff --git a/tests/test_litellm/test_github_triage_with_llm.py b/tests/test_litellm/test_github_triage_with_llm.py
index f50cf126c36..300fd7c0710 100644
--- a/tests/test_litellm/test_github_triage_with_llm.py
+++ b/tests/test_litellm/test_github_triage_with_llm.py
@@ -672,6 +672,11 @@ class TestBuildPrompts:
assert "mocked or stubbed" in normalized
# Prose-only steps are explicitly insufficient now.
assert "steps to reproduce" in normalized
+ # An unedited issue-form scaffold must not read as evidence: the proof
+ # field ships with visible headings, so the judge has to be told that
+ # bare headings with nothing under them count as absent.
+ assert "unfilled template scaffold" in normalized
+ assert "counts as absent, not as evidence" in normalized
def test_should_not_crash_when_pr_body_contains_curly_braces(self, triage_module):
"""User-supplied content with `{` / `}` must NOT be re-parsed by