Workflows and Explicit Bounded Loops
Status: published 0.3.0 stable release. Supported platforms: Windows and Linux. macOS is not yet officially supported.
Purpose
This module helps developers without Loop Engineering experience choose correctly between fixed orchestration and verified convergence. Failures, pauses, resumes, retries, and effects remain observable and reviewable.
| Mode | Use it when | Framework guarantee |
|---|---|---|
| Basic agent loop | One agent decides whether to continue calling tools | Shared budgets, permissions, trace, and terminal results; no business-quality convergence claim |
workflow | Steps and dependencies are known before execution | Sequence, parallelism, conditions, bounded retries, and stable-step resume |
loop | The task requires generate, verify, repair, and re-verify | Explicit states, bounded repair, no-progress detection, pause-resume, and exhaustion failure |
workflow and loop are mutually exclusive. Do not choose a Loop merely to appear more autonomous; keep deterministic rules in normal code, tools, or a Workflow.
Public interfaces and states
- Configuration:
LoopConfig,LoopActionConfig, andLoopVerificationConfig - Execution:
LoopController,LoopRunner, andOrchestrator - Resume:
prepareRunResume,RunStateJournal, and effect receipts - States:
planning,executing,verifying,repairing,paused, plus success, failure, abort, timeout, and budget-exhaustion terminals
The internal state-machine dependency stays behind LoopController and is not part of configuration, protocol, or SDK contracts. Every dependency upgrade must rerun transition, snapshot, cancellation, and event-order contracts.
Reliability and effect boundaries
- A failed verification must repair, pause, or fail; it cannot return success.
maxIterations,maxRepairs,maxRepeatedAction, global budgets, and timeouts bound execution.- Only confirmed transient provider or network errors retry. Approval denials, security denials, invalid arguments, and deterministic business failures do not retry blindly.
- Tool effects receive
started,committed, orunknownreceipts. Resume does not replay committed effects, while unknown effects pause for human reconciliation. - A snapshot represents a stable CoreMind business state, not an arbitrary call stack or in-flight external request.
fullreduces per-action prompts but never disables explicit deny rules, budgets, traces, checkpoints, receipts, or resume checks.
Source, tests, and examples
- Loop configuration schema
- LoopController
- LoopRunner
- Retry classification
- Module example
- Verified repair golden example
- Development SOP
- Reusable Skill
CoreMind owns execution mechanisms and quality evidence. Users or business owners retain control of goals, verification rules, approval ownership, and final acceptance.