Recipe catalog / report-facets
Label the facets of a progress report
report-facets is a Jev recipe from the jev-recipes TypeScript package. Which of these does report include: an outcome statement, supporting evidence, blockers, a next step, open questions? Use it when you need to check an agent progress report for the parts a supervisor expects before accepting it, routing it, or asking the agent to fill in what is missing.
Last updated .
Explore this recipe interactively · Source and implementation guide · Markdown version
How do I use report-facets 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 { reportFacets } from 'jev-recipes/report-facets';
const result = await reportFacets({
"report": "Migrated 4 of the 6 legacy endpoints to the new router; all 38 tests in tests/api pass (run log attached). The remaining two endpoints depend on the auth middleware rewrite, which is still blocked on the token format decision from the platform team. Next I will stub the middleware so the last two endpoints can be migrated behind a feature flag.",
"minConfidence": 0.8
});
console.log(result);
What input does report-facets 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"
]
},
"detected": {
"type": "array",
"items": {
"type": "string",
"enum": [
"statesOutcome",
"providesEvidence",
"statesBlockers",
"statesNextStep",
"raisesQuestions"
]
}
},
"labels": {
"type": "object",
"properties": {
"statesOutcome": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"ready",
"review"
]
},
"verdict": {
"type": "string",
"enum": [
"present",
"absent"
]
},
"probability": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"status",
"verdict",
"probability",
"confidence"
],
"additionalProperties": false
},
"providesEvidence": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"ready",
"review"
]
},
"verdict": {
"type": "string",
"enum": [
"present",
"absent"
]
},
"probability": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"status",
"verdict",
"probability",
"confidence"
],
"additionalProperties": false
},
"statesBlockers": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"ready",
"review"
]
},
"verdict": {
"type": "string",
"enum": [
"present",
"absent"
]
},
"probability": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"status",
"verdict",
"probability",
"confidence"
],
"additionalProperties": false
},
"statesNextStep": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"ready",
"review"
]
},
"verdict": {
"type": "string",
"enum": [
"present",
"absent"
]
},
"probability": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"status",
"verdict",
"probability",
"confidence"
],
"additionalProperties": false
},
"raisesQuestions": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"ready",
"review"
]
},
"verdict": {
"type": "string",
"enum": [
"present",
"absent"
]
},
"probability": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"status",
"verdict",
"probability",
"confidence"
],
"additionalProperties": false
}
},
"required": [
"statesOutcome",
"providesEvidence",
"statesBlockers",
"statesNextStep",
"raisesQuestions"
],
"additionalProperties": false
}
},
"required": [
"model",
"usage",
"status",
"detected",
"labels"
],
"additionalProperties": false
}
}What does a report-facets 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 report-facets.
{
"model": "demo-fixture",
"usage": {
"input_tokens": 0,
"output_tokens": 0
},
"status": "ready",
"detected": [
"statesOutcome",
"providesEvidence",
"statesBlockers",
"statesNextStep"
],
"labels": {
"statesOutcome": {
"status": "ready",
"verdict": "present",
"probability": 0.95,
"confidence": 0.95
},
"providesEvidence": {
"status": "ready",
"verdict": "present",
"probability": 0.88,
"confidence": 0.88
},
"statesBlockers": {
"status": "ready",
"verdict": "present",
"probability": 0.91,
"confidence": 0.91
},
"statesNextStep": {
"status": "ready",
"verdict": "present",
"probability": 0.93,
"confidence": 0.93
},
"raisesQuestions": {
"status": "ready",
"verdict": "absent",
"probability": 0.12,
"confidence": 0.88
}
}
}
Input
See shared options and behavior for client configuration, validation, and errors. Types are inferred from this folder's Zod 4 schemas.
Result
labels holds one check per facet: statesOutcome, providesEvidence, statesBlockers, statesNextStep, and raisesQuestions. Each check has a verdict of present or absent, the yes probability, confidence for the chosen side, and its own status. detected lists the present facets in declaration order.
The overall status is review when any single label falls below minConfidence. Labels that are individually ready remain usable in that case.
Reuse and calls
Uses the shared labels helper, which places one yes/no question per facet in a single Jev request. This folder owns the five questions and their outcome descriptions. A live invocation makes one logical Jev request.
Limits
Each facet is judged independently, so combinations are expected and a report may have none. The labels detect that a facet is present, not that it is accurate: cited evidence can be wrong and a stated outcome can be optimistic. To classify what the reported result actually was use result-outcome; to grade how far the work moved the objective use step-progress.
Example input
demo.json contains editable input and a hand-authored response. After installing jev-recipes, npx jev-recipes demo report-facets shows an offline illustration, not an accuracy measurement. Use npx jev-recipes describe report-facets to inspect the input and result schemas.
How accurate is report-facets?
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 report-facets?
- Labels are independent, so a report can carry several or none.
- Detects that a facet is present, not that it is accurate. Evidence can be cited and still be wrong.
Which recipes are related to report-facets?
- result-outcome: Use result-outcome to classify what a reported result actually was, once the report is known to state one.
- step-progress: Use step-progress to grade how far the reported work moved the objective, rather than what the report contains.