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 Channel Promotion

From Leeroopedia
Knowledge Sources
Domains Release_Pipeline, Channel_Promotion
Last Updated 2026-10-23 00:00 GMT

Overview

A practice of promoting a validated release version to a distribution channel as the single mutation point for production dist-tags.

Description

Channel Promotion is the principle of making exactly one operation responsible for moving a npm dist-tag to a new version. In the Babysitter release pipeline, release-promotion.cjs promote is the ONLY step that mutates latest, staging, or develop dist-tags. All prior steps publish under candidate tags.

The promotion requires validation evidence from the published-consumer verification step. Without evidence, promotion is refused. This creates a hard gate between candidate publication and production availability.

Usage

Use this principle when designing release pipelines where dist-tag mutation must be a single, audited, evidence-gated operation.

Theoretical Basis

The promotion is a single, atomic operation across all publishable packages:

assertPromotionAllowed(version, evidence)
for each package in publishable:
    npm dist-tag add <pkg>@<version> <channel>

Key properties:

  • Single mutation point: No other step in the pipeline touches production dist-tags.
  • Evidence-gated: Requires validation evidence file; refuses promotion without it.
  • Dry-run capable: The --dry-run flag shows what would be promoted without mutating.

Related Pages

Implemented By

Page Connections

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