Release Cadence Manager
Monitor release cadence, detect drift, and coordinate resolution using GOAP orchestrator with swarm agents.
Quick Reference
- Methodology - Core GOAP planning cycle
- Agents - Swarm agent capabilities
- Patterns - Common execution patterns
- Integration - Workflow and skill integration
When to Use
- Release drift detected (
version_not_advanced,commit_limit,age_limit) - PRs need
release-preparationlabel - Automated release coordination required
- Manual intervention needed for critical drift
NOT Appropriate For
- Normal release process (use
release-guard) - CI/CD failures (use
ci-fix) - Code quality issues (use
code-quality)
Core Process
Phase 0: ADR Discovery [MANDATORY]
├─ Read: plans/adr/ADR-*.md
├─ Identify: Relevant ADRs for release management
├─ Check: ADR-022 (GOAP), ADR-023 (CI/CD), etc.
└─ Note: Architectural constraints and decisions
Phase 1: Drift Detection [Skill]
├─ Skill(command="release-cadence-manager")
│ Mode: detect
│ → Analyze current release state
└─ Quality Gate: Drift severity determined
Phase 2: Strategy Selection [Skill + Analysis Swarm]
├─ Skill(command="analysis-swarm")
│ → Multi-perspective decision on resolution strategy
├─ Options:
│ ├─ Auto-label PR (if valid release PR)
│ ├─ Create release-preparation PR
│ ├─ Notify maintainer for manual intervention
│ └─ Skip (if false positive)
└─ Quality Gate: Strategy approved
Phase 3: Execution [Swarm Agents]
├─ Agent 1: Drift Detector Agent
│ └─ Monitors release cadence and detects drift
├─ Agent 2: Label Manager Agent
│ └─ Manages the `release-preparation` label
├─ Agent 3: Release Coordinator Agent
│ └─ Coordinates the release process
└─ Agent 4: Validation Agent
└─ Validates that all steps are completed correctly
Phase 4: Validation [Skills]
├─ Skill(command="code-quality")
├─ Skill(command="architecture-validation")
└─ Skill(command="release-guard")
└─ Quality Gate: Release process validated
Phase 5: Update Plans & Documentation [Documentation]
├─ Update: AGENTS.md with new workflow
├─ Create/Update: Skill documentation
└─ Document: Lessons learned and patterns discovered
Drift Detection
Measure in the tree you are reporting about (LESSON-073)
Every number this skill prints is a function of HEAD, the tag set and the
working tree — so a stale checkout produces a confident wrong answer, and it is
the comfortable wrong answer (severity=clean reason=within_cadence) that gets
believed. Observed: local detect said clean from d85efb5c (the v0.1.46
tag, 4 commits behind origin/main) while CI's Check for unreleased changes on
a branch containing that same main said critical reason=version_not_advanced;
after a fast-forward both agreed.
git fetch origin main
git rev-parse HEAD origin/main # equal, or say which one you measured
git rev-list --count HEAD..origin/main # 0 expected
git merge-base --is-ancestor <latest-tag> origin/main
For a one-off measurement, prefer a detached worktree at origin/main
(git worktree add --detach <path> origin/main, removed afterwards) over the
long-lived checkout, and always name the SHA in any release number reported. The
same trap covers git status "working-tree cleanliness unknown" and a shared
CARGO_TARGET_DIR (LESSON-038).
Severity Levels
| Severity | Condition | Action |
|----------|-----------|--------|
| clean | Within cadence | No action |
| warning | Approaching limits | Notify maintainer |
| critical | Exceeded limits | Automated resolution |
Critical Conditions
version_not_advanced:workspace_version == latest_tagand the tag has commits after it (see Gate Semantics)tag_not_ancestor: Latest tag is not an ancestor of HEADinvalid_next_version: Version doesn't follow semver rulescommit_limit: Unreleased commits >= 30age_limit: Release age >= 14 daysno_release_tag: No release tags found
Gate Semantics
version_not_advancedis the normal post-ship state:check-release-drift.shraises it whenever the
workspace version still equals the latest tag while that tag has commits after it. The gate's exit is the
version bump, not a label.
Enforce release cadencefails only when the PR payload lacksrelease-preparation. That label belongs to
the release-prep PR itself; on an unrelated PR it is the documented deadlock breaker for maintainers, never a fix.
release-drift.ymltriggers on[opened, synchronize, reopened, labeled, unlabeled]— **editedis not a
trigger**. PR body edits are free while every branch push restarts the whole required suite, so batch
docs/skills edits into one push.
- A label applied with
GITHUB_TOKENdoes not re-trigger a run. After
./scripts/release-cadence-manager.sh resolve --pr {n}, re-run the job (or push) before reading the verdict.
- Drift files its own tracker entry: the
maintain-issuejob (release-drift.yml:98-149, concurrency group
release-drift-canonical-issue) creates or updates one canonical open release-drift issue from main and
closes it once drift resolves (:156). It is a symptom, so closing it by hand only makes the next detection
re-create it — the exit stays the version bump. Because it is a real issue, it also counts in the open-issue
total the plans validators compare: after it appears, validate-plans.sh reports
WARN: claims 5 open issue(s); GitHub reports 6 until STATUS/CURRENT.md and ROADMAP_ACTIVE.md are updated
in the same PR that changes the state.
- Bumping the version is necessary but not sufficient to be shippable: the
CHANGELOG.md## [X.Y.Z]
heading and the ROADMAP_ACTIVE.md / STATUS/CURRENT.md flip must land as a release-prep PR *before any tag
date is promised*. Verify with ./scripts/verify-release-state.sh --check-unreleased.
- Never weaken the drift gate or delete workflow runs to silence it. Ship only through
./scripts/release-manager.sh ship --execute (release-guard) — never gh release create; merge only
through ./scripts/merge-pr.sh {PR} --execute.
Swarm Agents
Agent 1: Drift Detector Agent
- Purpose: Monitor release cadence and detect drift
- Triggers: PR events, push to main, scheduled checks
- Actions:
- Run
check-release-drift.sh - Analyze drift severity
- Determine if resolution is needed
Agent 2: Label Manager Agent
- Purpose: Manage the
release-preparationlabel - Triggers: Drift detection, PR creation
- Actions:
- Add label to valid release PRs
- Remove label from non-release PRs
- Validate label usage
Agent 3: Release Coordinator Agent
- Purpose: Coordinate the release process
- Triggers: Drift detection, label addition
- Actions:
- Create release-preparation PR if needed
- Update CHANGELOG, ROADMAP, STATUS
- Coordinate with release-guard skill
Agent 4: Validation Agent
- Purpose: Validate that all steps are completed correctly
- Triggers: After each phase
- Actions:
- Validate release state
- Check CI/CD status
- Ensure documentation is updated
Integration
With Existing Skills
| Skill | Integration |
|-------|-------------|
| release-guard | Coordinate release process |
| analysis-swarm | Multi-perspective strategy selection |
| goap-agent | Orchestrator pattern |
| agent-coordination | Swarm agent management |
With Workflows
| Workflow | Integration |
|----------|-------------|
| release-drift.yml | Automated drift detection — triggers and gate exit: Gate Semantics |
| release.yml | Release process |
| pr-readiness | PR validation |
Commands Reference
# Primary CLI (this skill)
./scripts/release-cadence-manager.sh detect
./scripts/release-cadence-manager.sh resolve --pr {n}
./scripts/release-cadence-manager.sh validate
./scripts/release-cadence-manager.sh status
./scripts/release-cadence-manager.sh help
# Low-level drift check (used by CI)
./scripts/check-release-drift.sh
# Ship preflight — a bump alone does NOT make the repo shippable
./scripts/verify-release-state.sh --check-unreleased
# Add / remove escape-hatch label (release-prep PR only; does not clear a bump-free gate)
gh pr edit {n} --add-label "release-preparation"
gh pr edit {n} --remove-label "release-preparation"
# Check PR status
gh pr view {n} --json labels,state,headRefName
# Ship (use release-guard skill / release-manager)
./scripts/release-manager.sh status
Troubleshooting
Common Issues
| Issue | Solution |
|-------|----------|
| False positive drift | Usually the expected post-ship version_not_advanced — land the bump, don't label it away (Gate Semantics) |
| Label not adding | Verify permissions and label exists |
| PR not detecting label | Label writes with GITHUB_TOKEN do not re-trigger a run — re-run the job or push |
| Checks didn't re-run after PR edit | edited is not a release-drift.yml trigger; batch edits into one push |
| Release process blocked | Use release-guard skill |
Debug Commands
# Check drift status
./scripts/check-release-drift.sh
# Check PR labels
gh pr view {n} --json labels
# Check workflow runs
gh run list --workflow=release-drift.yml
# Check release status
./scripts/release-manager.sh status
Progressive Disclosure
- CI reference: ci-reference.md
- Workflow definition:
.github/workflows/release-drift.yml - Drift detection:
./scripts/check-release-drift.sh - Release process:
.agents/skills/release-guard/SKILL.md