Commit 57ec8a99
57ec8a99c17dMerged
Scott Nixon <[email protected]> ยท 9 months ago ยท 3 files ยท +1 added ยท ~2 modified
Description
docs: Revise pipeline overview and add verification deep-dive diagram
Update pipeline-overview.svg to show the actual user workflow: planning phase (PRD โ Spec โ Decompose โ Scaffold) with You+Claude collaboration, followed by the execution phase.
Add verification-deep-dive.svg showing all 6 verification layers from static validation through goal gates and budget guards.
Add high-level verification summary to README linking to full docs.
Details
- Commit
- 57ec8a99c17d
- Parent
- e9bfaa169e78
README.mdmodifiedView file
@@ -8,6 +8,23 @@
88
<img src="docs/pipeline-overview.svg" alt="How Attractor Works" width="800"/>99
</p>1010
11+
### How verification works12+
13+
Attractor doesn't just run tasks โ it verifies them. Six layers of checks ensure that every pipeline node actually did what it was supposed to do, from static analysis before any LLM call to runtime proof-of-work at the exit gate.14+
15+
<p align="center">16+
<img src="docs/verification-deep-dive.svg" alt="Verification Deep Dive" width="800"/>17+
</p>18+
19+
1. **Static Validation** โ 12 lint rules check pipeline structure before any LLM call. Missing start nodes, unreachable steps, and malformed conditions are caught immediately.20+
2. **Handler Dispatch** โ The engine resolves each node's handler type (codergen, conditional, tool, etc.) and aborts if the handler isn't registered.21+
3. **Outcome Schema** โ Rust's type system enforces the response contract at compile time. Every handler must return a status, context updates, and notes โ malformed results are structurally impossible.22+
4. **Edge Routing** โ A 5-step cascade selects the next edge: condition match โ preferred label โ suggested ID โ weight โ lexical tiebreak. This enables patterns like "pass โ deploy, partial โ extended tests, fail โ fixup loop."23+
5. **Goal Gates** โ The "proof of work" layer. Nodes marked `goal_gate=true` are audited at exit. If any gate is unsatisfied, the engine resolves a retry target (node โ fallback โ graph-level) and loops back. No target found means pipeline abort.24+
6. **Budget & Step Guards** โ `max_steps`, `max_budget_usd`, and `max_retries` are enforced continuously. Runaway loops are impossible.25+
26+
For the full specification including code references and examples, see **[docs/task-verification.md](docs/task-verification.md)**.27+
1128
## Overview1229
1330
Attractor lets you describe AI workflows as directed graphs using DOT syntax. Each node is a step (LLM call, tool use, human gate, parallel fan-out) and edges define the flow with optional conditions. The engine handles execution, edge selection, retries, goal enforcement, and cost tracking.docs/pipeline-overview.svgmodifiedView file
Loading diffโฆ
docs/verification-deep-dive.svgaddedView file
Loading diffโฆ