Implementation:A5c ai Babysitter release matrix and metadata
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Release_Pipeline, Build_Validation |
| Last Updated | 2026-10-23 00:00 GMT |
Overview
CLI tools for computing release publication matrices and validating package metadata before publication.
Description
Two scripts form the build and validation stage of the release pipeline:
- release-matrix.cjs — Computes the set of packages to publish, grouped by release group (e.g. hooks-leaves, all-publishable). Outputs a matrix of { name, workspace } objects for GitHub Actions, in formats including matrix, workspaces, json, and waves (publication order respecting dependency waves).
- check-package-metadata.cjs — Validates package.json metadata across all publishable packages: names, repository URLs, bugs URLs, docs coverage. Ensures every published package has consistent, well-formed metadata. 732 lines of checks.
Usage
- Release pipeline Step 3: After manifest synchronization, compute the release matrix and validate metadata before candidate publication.
Code Reference
Source Location
- Repository: Babysitter
- File (matrix): scripts/release-matrix.cjs:L1-109
- File (metadata):** scripts/check-package-metadata.cjs:L1-732
Signature
# Compute release matrix
node scripts/release-matrix.cjs --group <group> --format <format>
# Groups: hooks-leaves, all-publishable, etc.
# Formats: matrix, workspaces, json, waves
# Validate package metadata
node scripts/check-package-metadata.cjs
Import
# CLI scripts — run directly
node scripts/release-matrix.cjs --group all-publishable --format matrix
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| --group | string | Yes (matrix) | Release group name |
| --format | string | Yes (matrix) | Output format: matrix, workspaces, json, waves |
| package.json files | files | Yes (metadata) | All workspace package.json files |
Outputs
| Name | Type | Description |
|---|---|---|
| matrix | JSON array | Array of { name, workspace } for GitHub Actions |
| metadata report | stdout | Pass/fail report per package |
| exit code | number | 0 on success, non-zero on any failure |
Usage Examples
Compute Release Matrix
# Get publication matrix for all publishable packages
node scripts/release-matrix.cjs --group all-publishable --format matrix
# Get publication waves (dependency-ordered)
node scripts/release-matrix.cjs --group all-publishable --format waves
Validate Package Metadata
# Validate all package metadata before publication
node scripts/check-package-metadata.cjs
Related Pages
Implements Principle
Requires Environment
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment