Loops vs. Graphs, clearly explained!
32,807 次观看
Loops vs. Graphs, clearly explained!
loops are great, and the ceiling is one you can watch turn:
a loop is a gear. it produces, checks, corrects, and comes back around.
after six turns you have one job, done very well. after six hundred turns you still have one job, done very well.
the teeth are perfect. they are touching nothing.
Graph engineering fixes this by moving the decision up a layer: not how well one gear turns, but what it is meshed into.
you need both, and here is the sentence that resolves the whole confusion:
the loop lives inside a node. the graph lives between them.
↳ inside one unit: produce, check, correct, repeat until green
↳ between units: split, fan out, merge, gate, send back
Prompts → Context → Harness → Loops → Graphs
the loop does not go away when you build a graph.
it moves inside, and now there are three of them turning at once on three things you would never have thought to run.
the trick is being selective about what becomes a node.
only spend a model where judgment lives. merging, ranking, deduping and schema checks are edges, and edges are code. free, instant, and they cannot be argued out of a verdict.
one thing to know before you scale it.
a loop that cannot fail is not a loop, it is a repeat with a bill attached.
↳ the test suite exits 0 is a check. the diff touches only the files in the plan is a check
↳ the output looks good, the model says it is confident, no errors were raised, none of those are checks
that last one catches careful people. absence of an error is not evidence of correctness, and a loop built on it will confidently repeat a mistake until the budget runs out, with a clean log the whole way.
and the one that eats whole nights: when a unit fails, return that unit, not the batch.
send back four slices because one failed and you have just rewritten three correct ones. do it twice in a run and the run never converges.
below i have quoted my full guide on graph engineering. it covers the three topologies, the verifier patterns, and where the gate should actually open.
save this and read it below ↓
1 条评论
评论来自 X (Twitter) 上的原帖

@EternitiesAI
moving the decision up the graph is correct. the person stays the final authority on consequential action. a loop that can still write without a gate is babysitting with extra nodes.
