mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-17 04:37:03 +00:00
Extract all 29 full digraph workflows from docs into test/docs/ with an extraction script, assemble 7 snippet DOTs from reference pages, and add a runner script for validate/dry-run/haiku/full phases. Docs fixes: - definition-of-done: replace multi-word condition values with underscored equivalents (parser doesn't support spaces), make safe-default edges unconditional for fallback coverage - semantic-port: make fallback edges unconditional on fetch/analyze nodes so validator doesn't reject all-conditional-edge nodes All 36 DOTs pass `arc validate`. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
33 lines
1 KiB
Text
33 lines
1 KiB
Text
// Assembled from docs/agents/outputs.mdx snippets
|
|
// Tests output context keys and routing directives
|
|
|
|
digraph OutputPatterns {
|
|
graph [goal="Exercise output and routing patterns from the outputs docs page"]
|
|
|
|
start [shape=Mdiamond, label="Start"]
|
|
exit [shape=Msquare, label="Exit"]
|
|
|
|
// Line 25-29: Context keys from prior stages
|
|
plan [label="Plan", prompt="Create an implementation plan."]
|
|
implement [label="Implement", prompt="Implement the plan."]
|
|
|
|
// Line 68-78: Review node with routing directives
|
|
review [
|
|
label="Review",
|
|
shape=tab,
|
|
prompt="Review the implementation. If changes are needed, \
|
|
respond with: {\"preferred_next_label\": \"fix\"}. \
|
|
If everything looks good, respond with: \
|
|
{\"preferred_next_label\": \"approve\"}."
|
|
]
|
|
|
|
fix [label="Fix", prompt="Fix the issues found."]
|
|
|
|
// Wiring
|
|
start -> plan -> implement -> review
|
|
|
|
review -> fix [label="Fix"]
|
|
review -> exit [label="Approve"]
|
|
|
|
fix -> review
|
|
}
|