| name | agent-loop-schemes |
| description | Translate an accepted GoalContract into normalized Zig actuation-operation topology. Use when work has repeated classes, migrations, debugging history, review campaigns, proof fanout, branch comparison, or nontrivial stopping conditions; remain advisory and never grant mutation or completion. |
Agent Loop Schemes
Mission
Describe the smallest step topology that $goal-actuating can place inside
actuation-open/v1 obligations and operations.
GoalContract
-> run-topology-advice/v1
-> $goal-actuating selects operations and obligation groups
This skill owns topology advice only. It does not create execution authority,
run actions, fold evidence, count review attempts, or close the goal.
Advice shape
run_topology_advice:
version: run-topology-advice/v1
goal_id:
source_digest:
shape: direct | iterative | memoized-migration | debug-history | review-closeout | branch-comparison
step_producer:
rule:
owner_boundary:
decomposition:
step_template:
kinds: []
required_bindings: []
verifier_rule:
evidence_rule:
reducer: evidence-fold
continuation_requires_current_fold: true
review_rule:
classifier: review-fold
resolution: review-resolution/v1
raw_findings_are_steps: false
parallelism:
mode: none | scout-fanout | review-class-fanout | proof-fanout | branch-comparison
safe_when: []
fan_in_owner: goal-actuating
stop_rule:
success:
blocked:
invalid_proof:
invalidators: []
next_owner: goal-actuating
Selection
- Use
direct for one bounded step with one known verifier.
- Use
iterative for an ordinary dependency-ordered goal.
- Use
memoized-migration when many failures share one repair rule.
- Use
debug-history when hypotheses or failure signatures may repeat.
- Use
review-closeout when findings must be classified, resolved, repaired,
and reviewed to a current clean suffix.
- Use
branch-comparison only when isolated strategies share one verifier.
Laws
- Every material action becomes one selected run step.
- Every continuation consumes a current evidence fold.
- Review findings become resolution classes before they become work.
- Repeated owner-boundary pressure becomes one replacement-kernel node.
- Parallel leaves must be resource-disjoint and fold back through the lead.
- Public effects remain outside the topology and belong to
$ship.
- Only a live closure decision completes the goal.
Procedure
- Bind advice to the accepted source digest and GoalContract.
- Choose one shape and one stop rule.
- Name the work producer, owner boundary, verifier, and evidence reducer.
- Preserve repeated-class memoization and invalid strategies.
- Describe only safe parallelism; shared owners remain serial.
- Hand advice to
$goal-actuating, which decides whether to project a
WorkGraph.
Guardrails
- Do not invent a persistent controller.
- Do not emit executable work from raw review prose.
- Do not choose product scope or mutation authority.
- Do not create a second runtime beside
$goal-actuating.
- Do not treat topology advice as proof or closure.