Principle:A5c ai Babysitter Release Matrix Calculation
| Knowledge Sources | |
|---|---|
| Domains | Release_Pipeline, Build_Validation |
| Last Updated | 2026-10-23 00:00 GMT |
Overview
A method for computing the set of publishable packages and their dependency-ordered publication waves, combined with metadata validation.
Description
Release Matrix Calculation is the principle of determining which packages to publish and in what order. It uses topological sorting based on internal dependency relationships to produce waves — groups of packages that can be published simultaneously. Packages in the same wave have no inter-dependencies; each wave depends only on already-published waves.
Metadata validation ensures every published package has consistent, well-formed metadata: names, repository URLs, bugs URLs, and documentation coverage.
Usage
Use this principle when publishing monorepo packages where dependency ordering matters and metadata consistency is required.
Theoretical Basis
The wave calculation is a topological sort of the internal dependency graph:
waves = []
remaining = allPublishablePackages
while remaining not empty:
wave = [pkg for pkg in remaining if allDepsPublished(pkg, published)]
waves.append(wave)
published += wave
remaining -= wave
Key property: Packages within a wave can be published in parallel (no inter-dependencies). Waves must be published sequentially.