Workflows
syndicate run anatomy
syndicate run <workflow-name> [flags]
| Flag | Description |
|---|---|
--objective "<text>" | Declare workflow objective |
--specialist <id> | Invoke a registered specialist |
| `--autonomy interactive | supervised |
| `--checkpoint always | policy |
--dry-run | Stages 1-3 only; no permit issuance or state mutation |
--no-tui | Force non-interactive output |
| `--output json | text |
--timeout <duration> | Maximum wall-clock time |
Source: cli_command_reference.md §6.
Autonomy modes
| Mode | Behavior |
|---|---|
interactive | Checkpoint at every tool invocation |
supervised | Checkpoint at policy-defined boundaries (default) |
bounded | Pre-authorized execution envelope; checkpoint on envelope boundary violations |
Mode is selected per run with --autonomy. Policy may restrict or mandate stricter behavior than the requested mode (cli_command_reference.md §6.2).
Workflow lifecycle (normative 10-stage model)
This page describes the full implementation lifecycle (governed_execution_spec.md §5). The six-stage overview model remains a conceptual summary.
- Proposal intake — control plane receives structured proposal metadata and objective context.
- Canonicalization — proposal is converted into deterministic canonical form before any policy or approval logic.
- Policy evaluation — control plane determines allow/deny, envelope policy, side-effect classes, and checkpoint triggers.
- Context and evidence preparation — control plane finalizes identifiers and evidence inputs for reconstruction.
- Approval determination — control plane decides whether execution proceeds, needs operator approval, or is denied.
- Approval recording — if approval is required, a bound approval record is durably persisted.
- Permit issuance — control plane mints permit bound to canonical target and scope constraints.
- Tool-layer validation — tool layer validates permit authenticity, expiry, scope, side-effect class, lineage, trust, and checkpoint status.
- Execution attempt — side effects run only after successful validation.
- Result recording — execution result evidence is appended with status, side effects, timing, permit ID, lineage, and trust impact.
Enforcement invariants:
- Stage 8 validation failure denies execution immediately (
governed_execution_spec.mdGP-003). - If required evidence cannot be durably written, execution hard-blocks. No degraded mode permitted (
governed_execution_spec.mdGP-004).
Streaming output
Streaming is incremental output-fragment rendering, not buffered full-response rendering.
- TUI mode: fragments render in main pane from
turnOutputsubscription. --no-tuimode: fragments write to stdout as received.
syndicate run <workflow-name> --no-tui --objective "<text>" 2>&1 | tee workflow.log
Source: operator_interface_spec.md §18.7 and cli_command_reference.md §6.
Self-correction loop
After file-modifying execution, LSP diagnostic validation runs for modified files (lsp_integration_spec.md §8.1).
When result class is new_errors, diagnostics are fed into the next model context window for self-correction (lsp_integration_spec.md §8.4).
- Default maximum iterations: 2
- Policy-controlled via
lsp.self_correction_max_iterations - If iterations are exhausted, unresolved diagnostics are surfaced to operator
Workflow interruption
Interruption paths:
Ctrl+Cin TUI- process termination in headless mode
Interruption behavior preserves evidence (session_and_turn_model.md ST-007):
- partial turn records through the last completed step
- all emitted audit events before interruption
- trust state snapshot at interruption point
Session termination invalidates in-flight permits and active execution envelopes.
Exit code 3 indicates interruption (cli_command_reference.md §6.3).
v1 deployment note This page describes v1 local-embedded behavior. Team and enterprise deployments use
syndicate-server; control-plane topology differs while permit validation, checkpoint rules, and evidence requirements stay authoritative.
Non-guarantee callout Governed workflows guarantee authorization and evidence controls, not correctness of model output and not absence of hallucinations.