Skip to main content

Compound Workflow

The compound workflow combines /adlc.plan (planning) with /adlc (execution) for complex tasks that benefit from a HITL review gate before implementation.

When to Use

ScenarioUseWhy
Single story, clear scope/adlc aloneDirect PO→CA→Specialist is faster
Multi-project, 100+ filesCompoundReview file inventory before touching code
Destructive operationsCompoundValidate scope before archive merges, cleanups
Ambiguous requirementsCompoundPO+CA+Explore clarify before specialists execute

Flow

/adlc.plan [task]

├─ Phase 0: Product-Owner (requirements, INVEST stories, scope boundaries)
├─ Phase 0: Cloud-Architect (architecture, file inventory, delegation plan)
├─ Phase 1: Explore agents x3 (parallel codebase research)
├─ Phase 2: Plan agent (synthesize implementation plan)
├─ Phase 3: Write self-contained plan file
└─ Phase 4: Present to HITL


HITL reviews plan file
- Validates PO scope boundaries
- Reviews CA delegation table
- Checks Explore findings
- Approves or requests changes


/adlc [path/to/plan-file.md]

├─ Step 1.5: Plan File Validation
│ - Reads plan YAML frontmatter (scope_id, coordination_logs)
│ - Verifies PO+CA logs exist and are within 96h TTL
│ - Skips Steps 2-3 (PO+CA already completed in /adlc.plan)

├─ Step 4: Specialist Execution
│ - Reads ## ADLC: Specialist Delegation table from plan file
│ - Delegates to each specialist IN ORDER
│ - Each specialist gets: Requirements + Architecture + Codebase Findings

└─ Step 5: PDCA Cross-Validation
- MCP + Native API + CLI + Visual verification
- Autonomous until >=99.5% accuracy
- Max 3 cycles before HITL escalation

Plan File Format

The plan file is self-contained — a new /adlc session can consume it without the original session context.

---
plan_version: "1.1.0"
scope_id: "refactor-auth-services"
created: "2026-04-07T10:00:00Z"
coordination_logs:
product_owner: "tmp/myproject/coordination-logs/product-owner-2026-04-07.json"
cloud_architect: "tmp/myproject/coordination-logs/cloud-architect-2026-04-07.json"
specialist_sequence:
- agent: "python-engineer"
scope: "Implement auth module refactoring"
- agent: "qa-engineer"
scope: "Create integration tests"
ttl_hours: 96
---

Required Sections

SectionSourcePurpose
## ADLC: ContextHITL + POWhy this change, problem statement
## ADLC: RequirementsProduct-OwnerINVEST stories, ACs, scope boundaries
## ADLC: ArchitectureCloud-ArchitectTechnical approach, file inventory, ADRs
## ADLC: Codebase FindingsExplore agentsExisting code to reuse, patterns, tech debt
## ADLC: Implementation PlanPlan agentOrdered steps, file paths, line references
## ADLC: VerificationCA + QATest strategy, quality gates, PDCA approach
## ADLC: Specialist DelegationCloud-ArchitectAgent, files, task, dependencies table

TTL and Scope Matching

The /adlc command validates plan files before skipping PO+CA:

  1. Plan detection: $ARGUMENTS contains .md path with plan_version in frontmatter
  2. Scope matching: scope_id in plan file maps to coordination log task_scope
  3. Log validation: Both PO+CA logs exist, valid JSON, status: success/approved
  4. TTL check: Logs within 96h window (configurable via ADLC_COORD_LOG_TTL_HOURS)
  5. Safe default: Any check failure falls through to full PO+CA coordination

Example Session

# Session 1: Planning
$ claude
> /adlc.plan "Refactor authentication across user-service, auth-service, and gateway"
# ... PO produces stories, CA produces delegation plan, Explore finds existing patterns
# Plan file written to ~/.claude/plans/adlc-plan-2026-04-07.md

# HITL reviews the plan file, approves

# Session 2: Execution (can be same session or new one)
> /adlc ~/.claude/plans/adlc-plan-2026-04-07.md
# Step 1.5 validates plan + finds PO+CA logs from Session 1
# Step 4 delegates to specialists from the plan's delegation table
# Step 5 PDCA validates until >=99.5%

Comparison: /adlc vs /adlc.plan vs Native Plan Mode

CapabilityNative Plan Mode/adlc/adlc.plan + /adlc
PO+CA coordinationNo (deadlock)YesYes (Phase 0)
HITL review gatePlan file onlyNo pre-execution gatePlan file + approval
Specialist delegationNoYes (Step 4)Yes (from plan table)
Codebase researchExplore onlyAfter CAPhase 1 (3 parallel)
Evidence pipelineNoneFullFull
PDCA validationNoYesYes
Blast radius control100% (can't edit)Hook-enforcedPlan review + hooks
Best forSimple researchSingle storiesComplex multi-project