createAgent({ output: DECISION }): the model returns { route, confidence, reason } validated by a zod schema (readable as result.object), and the workflow branches on the typed fields.
- Calibrated abstention.
confidenceFloor(default 0.7) routes low-confidence decisions to the careful workflow — the model declares uncertainty, the harness degrades gracefully instead of trusting a shaky route. - Typed degradation. An unparseable triage reply returns
confidence: 0→ careful path. There is no path where a malformed decision silently becomes “fix things”.