mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +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>
48 lines
1.6 KiB
Text
48 lines
1.6 KiB
Text
digraph ImplementFeature {
|
|
graph [
|
|
goal="Implement a feature with tests and code review",
|
|
model_stylesheet="
|
|
* { llm_model: claude-haiku-4-5; llm_provider: anthropic; reasoning_effort: low; }
|
|
.coding { llm_model: claude-sonnet-4-5; llm_provider: anthropic; reasoning_effort: high; }
|
|
#review { llm_model: claude-sonnet-4-5; llm_provider: anthropic; reasoning_effort: high; }
|
|
"
|
|
]
|
|
rankdir=LR
|
|
|
|
start [shape=Mdiamond, label="Start"]
|
|
exit [shape=Msquare, label="Exit"]
|
|
|
|
// Planning phase
|
|
plan [label="Plan", shape=tab, prompt="Create a detailed implementation plan for: $goal"]
|
|
|
|
// Human approval
|
|
approve [shape=hexagon, label="Approve Plan"]
|
|
|
|
// Implementation (threaded for context continuity)
|
|
subgraph cluster_impl {
|
|
label = "Implementation"
|
|
node [thread_id="impl", fidelity="full"]
|
|
implement [label="Implement", class="coding", prompt="Implement the approved plan."]
|
|
test [label="Write Tests", class="coding", prompt="Write comprehensive tests."]
|
|
}
|
|
|
|
// Validation
|
|
validate [label="Run Tests", shape=parallelogram, script="cargo test 2>&1 || true"]
|
|
gate [shape=diamond, label="Tests passing?"]
|
|
|
|
// Review
|
|
review [label="Code Review", shape=tab, prompt="Review the implementation for correctness."]
|
|
|
|
// Wiring
|
|
start -> plan -> approve
|
|
|
|
approve -> implement [label="[A] Approve"]
|
|
approve -> plan [label="[R] Revise"]
|
|
|
|
implement -> test -> validate -> gate
|
|
|
|
gate -> review [label="Pass", condition="outcome=success"]
|
|
gate -> implement [label="Fix"]
|
|
|
|
review -> exit
|
|
}
|