A pipeline passes artifacts between stages
An agent pipeline is easier to control when each stage consumes a named artifact and produces a bounded output. Passing the whole conversation between stages hides assumptions and makes recovery difficult.
Use a pipeline when stages are sequential and each output can be checked before the next stage starts.
| Stage | Artifact |
|---|---|
| Discover | CODEBASE_INVENTORY.md or research note |
| Plan | PLAN.md or TASK_SPEC.md |
| Implement | Diff and changed-file list |
| Verify | Test and review evidence |
| Handoff | HANDOFF_NOTE.md |
Pipeline contract
- Name input and output for every stage.
- Record the check that makes an output usable.
- Stop when an output is incomplete or contradictory.
- Keep artifacts small enough for a fresh reviewer.
- Resume from the last accepted artifact rather than repeating all stages.
Example pipeline
issue
→ TASK_SPEC.md
→ PLAN.md
→ diff
→ verification report
→ HANDOFF_NOTE.mdCanonical lesson source · JavaRush
Open JavaRush material