Recipe catalog / bug-report-completeness
Grade bug report completeness
bug-report-completeness is a Jev recipe from the jev-recipes TypeScript package. How complete is report for someone to reproduce and triage it, on a five-level rubric? Use it when you need to decide whether an incoming bug report can go straight to triage or needs a follow-up request for details first.
Last updated .
Explore this recipe interactively · Source and implementation guide · Markdown version
How do I use bug-report-completeness in TypeScript?
Install with npm install jev-recipes. Requires Node.js 22.9 or newer and ES modules. Set TYPESAFE_API_KEY in your server environment for live calls, which send input to TypeSafe and use API quota. See the installation guide.
import { bugReportCompleteness } from 'jev-recipes/bug-report-completeness';
const result = await bugReportCompleteness({
"report": "Steps: 1. Open the Reports tab. 2. Choose a date range ending today. 3. Click Export CSV. Expected: a CSV downloads with rows for the whole range. Actual: the download contains only rows up to yesterday and today's rows are missing.",
"minConfidence": 0.8
});
console.log(result);
What input does bug-report-completeness take?
| Field | Type | Needed |
|---|---|---|
| report | string | Required |
| minConfidence | number | Optional |
Full input and result schemas
{
"input": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"report": {
"type": "string"
},
"minConfidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"report"
]
},
"result": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"model": {
"type": "string"
},
"usage": {
"type": "object",
"properties": {
"input_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"output_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"input_tokens",
"output_tokens"
],
"additionalProperties": false
},
"status": {
"type": "string",
"enum": [
"ready",
"review"
]
},
"score": {
"type": "number",
"minimum": 0
},
"level": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"probabilities": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"completeness": {
"type": "string",
"enum": [
"bare",
"symptom",
"partial",
"nearly",
"complete"
]
}
},
"required": [
"model",
"usage",
"status",
"score",
"level",
"confidence",
"probabilities",
"completeness"
],
"additionalProperties": false
}
}What does a bug-report-completeness result look like?
This hand-authored response demonstrates the contract. It is not a model accuracy measurement. Run it without an API key: npx jev-recipes demo bug-report-completeness.
{
"model": "demo-fixture",
"usage": {
"input_tokens": 0,
"output_tokens": 0
},
"status": "ready",
"score": 2.92,
"level": 3,
"confidence": 0.85,
"probabilities": {
"0": 0,
"1": 0.01,
"2": 0.1,
"3": 0.85,
"4": 0.04
},
"completeness": "nearly"
}
Input
See shared options and behavior for client configuration, validation, and errors. Types are inferred from this folder's Zod 4 schemas.
Result
completeness is one of bare, symptom, partial, nearly, or complete, taken from the most likely rubric level. level is that level's index from 0 to 4. score is Jev's expected value across the rubric and can fall between levels; use it to order an intake queue or pick a follow-up template.
A result is ready when confidence meets minConfidence. Otherwise it is review and still carries the graded values. probabilities is keyed by level index.
Reuse and calls
Uses the shared score helper. This folder owns the completeness question, the rubric wording, and the review policy. A live invocation makes one logical Jev request.
Limits
The rubric checks whether the four reproduction elements are present, not whether they are correct or sufficient to find the cause. A report that names an environment but gives vague steps still grades on what it contains. Severity, priority, and who should be asked for missing details are application decisions; pair the grade with clarify to name the gaps.
Example input
demo.json contains editable input and a hand-authored response. After installing jev-recipes, npx jev-recipes demo bug-report-completeness shows an offline illustration, not an accuracy measurement. Use npx jev-recipes describe bug-report-completeness to inspect the input and result schemas.
How accurate is bug-report-completeness?
No verified live accuracy measurement is available. Evaluate representative cases before using this decision in your workflow.
Use the evaluation guide to measure this decision on your own labeled cases.
What are the limits of bug-report-completeness?
- Grades the presence of reproduction elements, not their accuracy. A report can be complete and still describe the wrong cause.
- Does not judge severity or priority. Route and escalation rules belong in application code.
Which recipes are related to bug-report-completeness?
- clarify: Use clarify to name the specific missing or ambiguous details once a report grades incomplete.
- requirement-testability: Use requirement-testability to check whether a described expected behavior can be verified.