The pipeline is code. The execution is a graph.
Write a trusted canopy.pipeline.ts using @canopy/ci. Canopy compiles it into a graph of work and dependencies before scheduling execution.
Declare the relationship. Let the runner execute it.
This example uses the same definePipeline, step.source(), and dependency handles as Canopy’s own corporate pipeline. The inputs edge makes test wait for build.
import { definePipeline } from '@canopy/ci';
export default definePipeline(({ step }) => {
const src = step.source();
const build = step('build', {
image: BUN_IMAGE,
run: 'bun run build',
inputs: [src],
});
step('test', {
image: BUN_IMAGE,
run: 'bun run test',
inputs: [build],
});
});The graph is inspectable before a command runs.
Compilation separates authored structure from actual work. The graph gives the planner concrete nodes, inputs, and dependency edges.
Explicit dependencies
Inputs define edges, so independent work can be considered separately.
Run history
Node state, logs, and outcomes stay with the pipeline run.
Deployment gates
Required steps can protect a configured Host deployment path.
Artifact lineage
Build output can be tied to an immutable artifact and release.
Native execution or connected history.
Canopy Pipelines runs work through Host’s pipeline engine. Canopy Connect imports and correlates existing CI/CD records. Teams can understand external work without pretending Canopy executed it.
See the Host delivery model ↗