fabro/docs/public/workflows
Bryan Helmkamp 491babe5da
Add node-level on_failure override
A node can now set its own on_failure attribute to override the
graph-level failed-node routing policy in either direction: a
best-effort node can keep route inside an exit graph, and a critical
node can exit while the rest of the graph keeps the default. An absent
node attribute inherits the graph policy.

- Node::on_failure returns Option<OnFailure> so absence means inherit
- Graph::resolve_on_failure(node_id) is the single resolution point,
  returning ResolvedOnFailure { policy, scope } so the executor's
  end-of-run message names the scope that stopped routing
- The core Graph trait method becomes resolve_on_failure(node_id); the
  graph-scope failure message is unchanged
- The failed-human-gate fallthrough block stays independent of a
  node-level route override
- Validation now accepts and value-checks node-level on_failure (it
  previously warned that node placement had no effect) and keeps the
  edge-placement warning with updated wording
- Document precedence in transitions, failures, and the DOT reference,
  and extend today's changelog entry

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Chraa21RK7i2KqHdZSJLb8
2026-08-25 18:55:39 -04:00
..
human-in-the-loop.mdx refactor: remove duplicated review target rendering and validation 2026-07-28 15:14:23 -04:00
imports.mdx fix(graphviz): parse whitespace-separated node classes 2026-07-29 21:51:57 -04:00
stages-and-nodes.mdx docs: refresh product documentation 2026-08-24 09:53:09 -04:00
stylesheets.mdx Merge pull request #686 from fabro-sh/fix/space-separated-node-classes 2026-07-29 22:31:48 -04:00
transitions.mdx Add node-level on_failure override 2026-08-25 18:55:39 -04:00
variables.mdx Add context-sourced command stdin 2026-07-29 10:25:51 -04:00