Glossary
Trunk-based development
Trunk-based development is a branching model in which developers integrate small changes into a single shared mainline at least daily, using short-lived branches or none at all instead of long-running feature branches.
Definition
Trunk-based development: Trunk-based development is a branching model in which developers integrate small changes into a single shared mainline at least daily, using short-lived branches or none at all instead of long-running feature branches.
In practice
How Trunk-based development is used
The defining constraint is integration frequency, not the absence of branches. Branches are permitted; branches that live for a week are not. Every day a branch stays unmerged, the trunk moves further away from it, and the cost of reconciling the two grows — merge conflicts, semantic drift, and a review that has to reason about a diff against a baseline that no longer exists.
Trunk-based development is one of the continuous delivery capabilities identified by the DORA research programme as predictive of higher software delivery performance. The mechanism is straightforward: daily integration forces small batches, small batches make review and testing cheap, and cheap review and testing make frequent deployment safe.
The obvious objection is unfinished work. If everything merges daily, how does incomplete functionality stay out of production? The answer is that visibility is decoupled from integration: feature flags keep merged code dark, branch by abstraction lets a large refactor land in reversible steps, and expand-and-contract lets a schema change ship in stages that are each individually safe.
The prerequisite is a trunk that is always releasable, which in turn requires a fast, trustworthy automated test suite and a strong norm that a broken trunk is fixed immediately. Without those, daily integration just distributes breakage more widely, which is why teams that adopt the branching model without the testing discipline usually conclude it does not work.
Marvex can detect deployments from merges to a designated production branch (PR_MERGE), which fits a trunk-based team directly, or from CI/CD workflow runs (WORKFLOW) where the deploy is an explicit pipeline step.
Quick answer
What is Trunk-based development?
Related terms
Marvex