Release cadence manager

From d-o-hub/rust-self-learning-memory · View interactive version

Release cadence manager is an AI agent skill from the GitHub repository d-o-hub/rust-self-learning-memory. Monitor release cadence, detect drift, and coordinate resolution using GOAP orchestrator with swarm agents. Use when release drift is detected, PRs need release-preparation labels, or automated release coordination is required.

How to use this skill

Skill file

Release Cadence Manager

Monitor release cadence, detect drift, and coordinate resolution using GOAP orchestrator with swarm agents.

Quick Reference

When to Use

NOT Appropriate For

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

Gate Semantics

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.

the release-prep PR itself; on an unrelated PR it is the documented deadlock breaker for maintainers, never a fix.

trigger**. PR body edits are free while every branch push restarts the whole required suite, so batch

docs/skills edits into one push.

./scripts/release-cadence-manager.sh resolve --pr {n}, re-run the job (or push) before reading the verdict.

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.

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.

./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

Agent 2: Label Manager Agent

Agent 3: Release Coordinator Agent

Agent 4: Validation Agent

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.