Correctless

/cauto β€” Semi-Auto Implementation Pipeline

Orchestrate the full implementation pipeline after spec review. Runs /ctdd, /simplify, /cverify, /cupdate-arch, /cdocs, then creates a PR β€” with flexible phase resume and autonomous decision-making.

When to Use

How It Fits in the Workflow

/cauto is the pipeline orchestrator. Instead of manually running /ctdd β†’ /cverify β†’ /cdocs β†’ PR, /cauto runs them all in sequence, handling failures, retries, and escalation. It respects the same workflow state machine as manual invocation β€” skills still run in separate agents with context: fork. The orchestrator invokes skills; skills do not auto-continue on their own.

What It Does

  1. Phase gate β€” reads the current workflow phase and computes remaining pipeline steps. Accepts any active phase from review through documented. Rejects spec and model (spec must be reviewed first).
  2. Install freshness check β€” detects stale hooks before any skill runs. Warns if source files changed since last setup.
  3. Invoke /ctdd β€” spawns a sub-agent for the full RED β†’ GREEN β†’ QA β†’ mini-audit cycle. If TDD triggers a spec-update, escalates to the human.
  4. Commit before /simplify β€” creates a clean revert point (β€œTDD complete”).
  5. Invoke /simplify β€” runs Claude Code’s built-in simplification. Post-simplify validation reverts if tests fail or .correctless/ paths were modified.
  6. Invoke /cverify β€” verifies implementation matches spec.
  7. Invoke /cupdate-arch (high+ intensity only) β€” updates architecture documentation.
  8. Invoke /cdocs β€” updates project documentation.
  9. Consolidation β€” scoped commit and push. Only stages known pipeline output paths. Belt-and-suspenders guard prevents committing artifacts.
  10. Create PR β€” via gh pr create (default), skip, or custom command. PR body includes summary, test plan, QA findings, and verification status.

Escalation

When a failure persists after N attempts (3 at standard, 2 at high/critical), the pipeline stops and writes a structured escalation file. Re-running /cauto after the human resolves the issue resumes from where it left off.

Phase 2: Tiered Decision Architecture

Decisions are routed through a tiered hierarchy: Policy (deterministic) β†’ Worker (self-resolution) β†’ Decision Agent (ephemeral) β†’ Supervisor (lightweight) β†’ Hard Stop (human). Token and time budgets are enforced with warn at 75% and hard stop at 100%.

Phase 3: Spec-to-PR Orchestration

When no workflow exists, /cauto can start from scratch β€” running /cspec interactively or accepting a provided spec file. Autonomous review with supervisor triage incorporates findings automatically. A mandatory spec approval gate always requires human confirmation before implementation begins.

Example

Agent: Reading workflow state... phase is "review". Full pipeline ahead.
       Checking install freshness... all hooks current.
       Reading preferences... pr_creation: gh, defaults for all others.

       Starting /ctdd...
       [RED β†’ test audit β†’ GREEN β†’ /simplify β†’ QA β†’ mini-audit]
       /ctdd complete. Committing TDD changes.

       Running /simplify... accepted (tests pass, no protected paths modified).

       Starting /cverify...
       Verification complete β€” 5/5 rules covered, 0 smells.

       Skipping /cupdate-arch (standard intensity).

       Starting /cdocs...
       Documentation updated.

       Consolidation: staging pipeline outputs...
       Pushed to origin/feature/my-feature.

       Creating PR via gh...
       PR #42 created: https://github.com/user/repo/pull/42

       Pipeline Summary:
       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
       β”‚ Step         β”‚ Duration β”‚ Tokens β”‚ Result β”‚
       β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€
       β”‚ ctdd         β”‚ 8m 12s   β”‚ 45,200 β”‚ pass   β”‚
       β”‚ simplify     β”‚ 0m 34s   β”‚ β€”      β”‚ pass   β”‚
       β”‚ cverify      β”‚ 1m 05s   β”‚ 8,300  β”‚ pass   β”‚
       β”‚ cupdate-arch β”‚ β€”        β”‚ β€”      β”‚ skip   β”‚
       β”‚ cdocs        β”‚ 2m 18s   β”‚ 12,100 β”‚ pass   β”‚
       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”˜

What It Reads / Writes

Reads Writes
Workflow state (.correctless/artifacts/workflow-state-{slug}.json) All artifacts from invoked skills
.correctless/config/workflow-config.json .correctless/artifacts/audit-trail-{slug}.jsonl
.correctless/preferences.md .correctless/artifacts/escalation-{slug}.md (on failure)
.correctless/config/auto-policy.json (Phase 2) .correctless/meta/overrides/{slug}-{date}.json
Approved spec PR on GitHub

Intensity Levels

Aspect Standard High Critical
Pipeline ctdd β†’ simplify β†’ cverify β†’ cdocs β†’ PR + cupdate-arch + cupdate-arch
Failure threshold 3 attempts 2 attempts 2 attempts
Supervisor activations Same Same Same

Common Issues