Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:A5c ai Babysitter Release Matrix Calculation

From Leeroopedia
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.

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment