fabro/docs/agents
Bryan Helmkamp ce80cb6101 Extract outcome and failure_reason from LLM routing directives
The extract_status_fields function recognized "outcome" as a field for
detecting status JSON objects but never read its value — LLM responses
like {"outcome": "fail", "failure_reason": "tests failed"} were silently
ignored and the outcome was always Success.

Now extract_status_fields reads the outcome field to set the node status
and failure_reason to populate the failure detail. Also adds a fallback:
if no routing directives are found in the response text, the handler
reads status.json from the sandbox CWD (written by agents that prefer
file output over inline JSON). Response text always takes priority.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-07 09:38:16 -05:00
..
hooks.mdx Update docs: fill in administration, agents, execution, and reference pages; remove placeholder pages 2026-03-05 20:25:23 -05:00
mcp.mdx Update docs: fill in administration, agents, execution, and reference pages; remove placeholder pages 2026-03-05 20:25:23 -05:00
outputs.mdx Extract outcome and failure_reason from LLM routing directives 2026-03-07 09:38:16 -05:00
permissions.mdx Update docs: fill in administration, agents, execution, and reference pages; remove placeholder pages 2026-03-05 20:25:23 -05:00
prompts.mdx Add custom TextMate grammar for DOT syntax highlighting in docs 2026-03-05 21:41:54 -05:00
skills.mdx Simplify Skills page, link to Agent Skills spec instead of duplicating 2026-03-05 19:19:29 -05:00
subagents.mdx Fill in tutorials, examples, and reference docs with content and SVGs 2026-03-05 22:14:02 -05:00
tools.mdx Fill in tutorials, examples, and reference docs with content and SVGs 2026-03-05 22:14:02 -05:00