Skip to content
Back to skills

Platform Release Engineering

ASecurity

发布 / 灰度 / canary / rollback / rollout / 环境泳道 / promotion gate / 发布值班 SOP(P0·P1 打断排班、是否回滚)→ design or review how a change moves from build to traffic and back safely, including rollout strategy, approval, rollback, secrets, config, and deploy control planes. Skip when the ask is the production release lifecycle — 上线范围确认 / 合并 main / 打 tag / 生产构建 / 发布后 reset → release-coordination; release document substance → release-doc-writer.

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agentspythonrustgoshellbashawsgcpazuretestingcode-review

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add ccoalm/ccl-skills --skill platform-release-engineering --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Platform Release Engineering?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Platform Release Engineering
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ccoalm-platform-release-engineering/badge)](https://www.skillsdirectory.com/skills/ccoalm-platform-release-engineering)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: platform-release-engineering
description: 发布 / 灰度 / canary / rollback / rollout / 环境泳道 / promotion gate / 发布值班 SOP(P0·P1 打断排班、是否回滚)→ design or review how a change moves from build to traffic and back safely, including rollout strategy, approval, rollback, secrets, config, and deploy control planes. Skip when the ask is the production release lifecycle — 上线范围确认 / 合并 main / 打 tag / 生产构建 / 发布后 reset → release-coordination; release document substance → release-doc-writer.
---

# Platform Release Engineering

Owns lane/environment topology, build/deploy pipelines, traffic shifting (canary, blue-green, mirror), promotion gates using observability evidence, secret/dynamic-config distribution and rollback contracts.

- Code/test changes require self-checks; invoke `code-review` automatically before completion.

You do not own:
- What signals exist to judge a release — see `platform-observability`.
- How a request reaches a service or which subset of pods it lands on — see `platform-service-connectivity` for mesh, registry, and lane-routing primitives. This skill *uses* those primitives.
- Service-internal shape (handler-level refactor, DB migration mechanics) must route to `software-architecture`.
- Language-specific library/module tagging mechanics — the owning stack dev skill. A release task that tags a module in a multi-module repo using local path overrides (e.g. Go `replace`) must run that stack's external-consumer-view verification (see `go-microservice-dev`) before the tag is pushed; this skill owns when a tag may ship and how registry publication is verified, not how the language toolchain validates package internals.

## Skill Routing

- Use this skill for: designing the env/lane matrix, choosing a rollout strategy, defining a promotion gate, writing rollback procedure, designing a secret-distribution model, deciding static-vs-dynamic config split, building the image pipeline, choosing the deploy mechanism (custom control plane / GitOps / pipeline tool), designing approval/review workflow.
- Use `platform-observability` first when the question is "what SLI does the gate consume?" — the gate definition lives here; the SLI lives there.
- Use `platform-service-connectivity` first when the question is purely about VirtualService weights / mesh routing — this skill *invokes* those changes, but the connectivity skill owns the primitives.
- For the production release lifecycle — scope confirmation, merge authorization, tag/pipeline evidence, watchers, and post-release reset — route to `release-coordination`; this skill must not own that coordination lifecycle.
- Use `release-doc-writer` for the release document's substance and evidence discipline.
- Use `references/python-package-registry-release.md` when publishing Python wheel/sdist artifacts to a private PyPI-compatible registry or verifying that a published package resolves from the registry without source/editable mappings.
- Use `defect-diagnosis` for an active incident; come back here to land the recurring rollback gap.

## Core Mental Model

A release moves through three planes:

```
   Source plane         →    Control plane          →    Data plane
   ─────────────             ─────────────────             ─────────────
   code commit               build/deploy API              k8s + mesh
   image build               approval workflow             pods + VirtualService
   config update             traffic-shift orchestration   secret + dcc state
   secret rotation           rollback orchestration        log + metric + trace
```

The control plane is the source of truth for "what is supposed to be running where, in which lane, at what weight." Two healthy patterns exist:

| Pattern | How control plane works | Best for |
|---|---|---|
| **Custom orchestration API** | A platform-team service exposes deploy/canary/review CRUD; CLI and UI clients call it; it generates k8s manifests and applies them. | Heavy customization needs, deep integration with internal RBAC/audit, lane-first models. |
| **GitOps (Argo CD / Flux)** | Desired state lives in a git repo; a controller reconciles cluster to repo. | Standard k8s shape, declarative discipline, off-the-shelf reuse. |
| **Pipeline tool (Spinnaker / Tekton / Jenkins)** | A pipeline runner executes "build → test → deploy → verify" stages with approval gates between. | Long sequenced flows, complex multi-cluster orchestration. |

Pick one as the spine; do not mix. Hybrid patterns (e.g. control plane that writes to a GitOps repo) are workable but require explicit ownership of the boundary.

## Non-Negotiable Rules

### R1 — Lane is the unit of release, not "environment"

- "Environment" implies a small fixed set (`prod`/`staging`/`dev`). Real platforms grow many concurrent lanes: per-developer iteration, per-test-run, named canary slices, shadow traffic, stress-test traffic. Treat them all uniformly.
- A lane has: name, parent lane (for fallback), allowed services list, traffic weight (in canary case), expiry (for ephemeral lanes), owner.
- New service deploys MUST declare which lanes they support. A service deployed only to `prod` cannot be tested in `staging` lane — fix by deploying to both.
- Lane primitives are defined by `platform-service-connectivity` (registry tag and/or k8s label plus mesh routing). This skill operates them.

### R2 — Build pipeline is reproducible from source + version tag

- Image build takes (`source@commit`, `version`) → image; same input, same digest.
- No floating tags in prod (`latest`, branch names). Use immutable version tags or digests.
- Build environment is itself pinned: builder image version, base image version, build args. Drift here is invisible until rollback fails.
- Build output is recorded: image digest, source commit, build time, builder version. The release control plane references digest, not tag.
- Verify the **committed** release tree with `git show <sha>:<file>`, keep published tags immutable, and enforce protected/signed remote tag provenance — load `references/deploy-pipeline.md` (`## Release tag tree and provenance verification`) before cutting or auditing a release tag.

### R3 — Deploy is declarative; bash scripts are bootstrap, not lifecycle

- Steady-state deploy and update MUST go through a declarative path (control plane API or GitOps reconciler). Bash scripts (`kubectl apply -f`) are acceptable ONLY for one-time cluster bootstrap (install mesh, install a discovery backend if the chosen mode needs one, install observability stack).
- A service whose deploys live in `deploy.sh` is an audit and rollback hazard. Mark for migration.
- Reason: declarative state is queryable, diffable, and replayable. Imperative scripts are not.

### R4 — Promotion is evidence-driven, not time-driven

A canary or staged rollout is promoted to the next stage ONLY if:
1. The canary's SLI burn rate within the bake window is within budget (query via `platform-observability` SLIs).
2. No P0/P1 alert fired against the canary during the bake window.
3. Manual approval from the documented reviewer (where the workflow requires it).
4. Smoke probes against the canary's endpoints return success.

Time-only promotion ("wait 30 minutes then ramp to 100%") is a guess. Wire the SLI query into the gate; reject the promotion if it fails.

### R5 — Rollback is one command and reaches steady state in < 5 minutes

- Rollback is invoked from the same control plane as forward deploy. A separate rollback tool is a sign the model is broken.
- Rollback target: the previous known-good release (image digest + config snapshot).
- Mechanism choice depends on rollout strategy:
  - Canary: shift VirtualService weight back to 0 for the canary subset.
  - Blue-green: swap which color receives traffic.
  - Plain rolling update: re-deploy the prior image digest.
- Rollback for data migrations is separate and harder; see `references/rollback-playbook.md`.
- Drill: a quarterly rollback exercise on a non-critical service catches drift in the rollback path. If you cannot drill it, you cannot use it.

### R6 — Secrets do not live in source repos

- Secrets (DB passwords, API keys, tokens, certs) MUST come from a secret store at deploy time or runtime, not from a committed file.
- Acceptable distribution mechanisms:
  - Cloud-provider KMS / Secrets Manager (AWS, GCP, Azure, or other major-cloud equivalent).
  - Self-hosted secret manager (HashiCorp Vault, internal KMS with audit log).
  - k8s `Secret` objects populated by a controller that pulls from the above.
- Unacceptable patterns: secrets in `values.yaml` in git, secrets in ConfigMap, secrets in any config file checked into source, hardcoded passwords in YAML manifests. Each is a recurring exfiltration pattern in postmortems.
- The platform should run an automated scan (e.g. `gitleaks`, `trufflehog`) on every PR. New secrets MUST go through the secret-store path; CI rejects commits that look like raw credentials.

### R7 — Config has three tiers

| Tier | Mechanism | Update frequency | Example |
|---|---|---|---|
| Static | committed YAML files (`conf/<env>.yml`), bundled in image | Build-time | DB connection pool sizes, feature defaults |
| Dynamic | config center (dcc / Apollo / etcd / Consul KV) | Runtime, no restart | Feature flags, rate limits, A/B variants |
| Secret | secret store | Runtime, masked | Credentials, certs |

A platform that conflates these (e.g. ships feature flags in static YAML, requires redeploy to flip) burns release velocity. Define which lever lives where; new config goes into the right tier from day one.

### R8 — Review/approval is part of the release path, not a step before it

- For high-impact changes (production deploys, schema migrations, mesh policy changes, IAM changes), the deploy API requires an approval record before it executes.
- The approval record lists: reviewer, change summary, risk class, rollback plan, observability evidence the reviewer checked. Stored in the same audit log as the deploy event.
- Lower-risk changes (canary to 1%, dev-lane updates) MAY bypass review. Risk class is declared with the change; mis-declaration is reviewed.
- Approval after deploy is not approval; it is rationalization.

### R9 — Multi-cluster / multi-region is explicit, not emergent

- Single-cluster deploy is acceptable while traffic fits one cluster. Multi-cluster is a deliberate decision with: cluster pairing rule, failover trigger, cross-cluster discovery or mesh federation, and mesh trust domain.
- Cross-cluster service calls go through the platform's chosen discovery/federation path, not direct DNS. Mesh trust must be configured pairwise.
- DR drill: route prod traffic to the secondary cluster for a bounded window every quarter. If you cannot drill it, you cannot use it.

### R10 — Bootstrap state is documented and idempotent

- Cluster bootstrap (install mesh, optional discovery backend, observability stack, control plane) is a documented sequence. Each step is idempotent (re-running it on a healthy cluster produces no change).
- The bootstrap script is committed; partial / commented-out steps are a smell. Either the step is required (uncomment and document) or not (delete).
- A new region / new cluster comes up via the bootstrap script + a region-specific config layer. Manual setup is forbidden.

### R11 — Persisted settings migrations preserve scope and intent

- Treat persisted user/workspace settings and remotely managed runtime policy as release state: before changing defaults, permission or approval modes, managed-policy schemas/caches, or segmented setting migrations, you must load `references/secret-and-config-management.md` (`## Persisted settings and remotely managed runtime policy migrations (R11)`).

### R12 — CLI package distribution and self-update are release surfaces

- Treat a command-line product installer or self-updater as a release control path: before designing, modifying, or reviewing CLI installation ownership, signed release-metadata staging, containment materialization, crash-safe activation, per-version locking, or installer cleanup, you must load `references/deploy-pipeline.md` (`## CLI package distribution and self-update (R12)`).

### R13 — Drain a job-executing worker pool before disruptive reconfig or restart

- Drain any job-executing worker pool (CI/build runners, queue/stream consumers, long-task workers) before disruptive restart, replacement, scale-down, or non-hot-reloadable reconfig: before operating on a busy pool or reconciling interrupted units, you must load `references/rollback-playbook.md` (`## Worker-pool drain and orphan reconciliation (R13)`).

## Workflow

### Phase A — Topology

1. Map the env/lane matrix: long-lived envs, named canary lanes, per-developer lanes, ephemeral test lanes.
2. Map clusters and regions; document which lanes live in which cluster.
3. Confirm the chosen cross-cluster discovery or mesh federation path if multi-cluster.

### Phase B — Source to image

1. Image build is reproducible from `(commit, version)`. Builder image pinned.
2. Image registry is private; access controlled.
3. Image digest is the deploy identifier, not tag.

### Phase C — Control plane

1. Pick one spine: custom API / GitOps / pipeline tool. Document the choice.
2. CRUD operations: service, lane, lane-service-deploy, review-task, canary-check-task, rollback, and optional delegated traffic-policy hooks when the platform exposes connectivity-owned policy through the release shell. Each is callable from CLI and UI where applicable.
3. Audit log captures every deploy event with: actor, target, previous state, new state, approval link.

### Phase D — Rollout strategy

1. Default: canary via mesh VirtualService weight shift.
2. Alternatives: blue-green (two parallel deployments, swap router), mirror/shadow (copy traffic to non-prod target without affecting users).
3. Canary check task definition: bake duration, SLI queries, smoke tests, promotion threshold, abort threshold.

### Phase E — Promotion gate

1. SLI burn-rate during bake window within budget (call into `platform-observability`).
2. No P0/P1 alerts on the canary subset.
3. Smoke probe success.
4. Manual approval (where the risk class requires).
5. If any fails: abort, rollback, log the abort cause.

### Phase F — Rollback contract

1. One command from the control plane.
2. Reaches steady state within 5 minutes (target; measure it).
3. Data migration rollbacks declared in advance (forward-compatible migrations preferred; see `references/rollback-playbook.md`).
4. Drill quarterly.

### Phase G — Secret + config

1. Static config: YAML in image, env-suffix split (e.g. `conf/<env>.yml`).
2. Dynamic config: config center; client SDK with cache + push-update.
3. Secret: secret store; injected via init container or sidecar; never in image, never in git.
4. Rotation: secrets have an expiry; pipeline rotates before expiry; rotation is observable.
5. Persisted settings migration: apply the scope, eligibility, idempotency, rollback-read, retention, backup, and audit checklist in `references/secret-and-config-management.md` before the release ships.

### Phase H — Evidence

Before marking the release done:
- Deploy event in audit log with approval link.
- Canary traced end-to-end; SLI burn-rate query result attached.
- Rollback command exists and has been tested in the same environment within the quarter.
- No secret-in-git scanner hits on the change.
- For CLI installers/updaters: record the complete owner, signed-metadata, activation, fencing, rollback-candidate, and repair evidence defined in `references/deploy-pipeline.md` (`## CLI package distribution and self-update (R12)`).
- For Python package registry releases: published package evidence shows the built artifact metadata, registry package/version listing, simple-index metadata, target-distribution download+hash proof from the intended private registry, the dependency install index used, and a fresh-environment import/version check; see `references/python-package-registry-release.md`.
- For a disruptive change to a job-executing worker pool (R13): record the admission-fence, drain-deadline / break-glass, triage, and orphan-retry evidence defined in `references/rollback-playbook.md` (`## Worker-pool drain and orphan reconciliation (R13)`).

## Decision Points

- **"Custom control plane vs GitOps"** → custom buys deep integration with internal RBAC and audit; GitOps buys reuse and declarative discipline. Pick by team size and customization need, not fashion.
- **"Canary by percentage vs canary by header lane"** → header-lane canary is safer (you control who sees it); percentage canary is simpler. Use header for high-risk changes, percentage for general rollout.
- **"Roll back vs roll forward"** → roll back if (a) the issue is severe and (b) rollback target is known good. Roll forward if (a) the issue is minor and (b) the fix is small and tested.
- **"Single shared cluster vs per-team cluster"** → per-team is operationally expensive; share until you can't. The cliff is usually noise isolation, not capacity.
- **"Mesh-managed canary vs SDK-managed canary"** → mesh; the SDK doesn't know about deployed pods.
- **"Cross-repo integration layer: deploy repo vs dedicated integration repo"** → keep ONE authoritative source of version combinations per system, resolve cross-stack e2e versions from it, roll it back in lockstep with deploy config, and load `references/version-authority-and-deprecation.md` (`## Cross-repo integration layer: deploy repo vs dedicated integration repo`) for co-location defaults and the six dedicated-repo split triggers.
- **"Where the version number lives across repos" (version-authority layering)** → version management is layered (contract tag → combination manifest → consumer pin → repo-local `AGENTS.md` *pointer* to the authority); never copy the authoritative current pin into a doc (it drifts on the next bump). See `references/version-authority-and-deprecation.md` for the per-layer owner/change-mode table, the narrow audit/generated-artifact inline-version exception, the freshness gate, and the standing current-state drift check (the manifest/status doc needs a mechanical drift gate, not same-batch sync discipline — keeping it fresh by memory silently rots across sessions). `product-rd-workflow`'s spec/repo-contract sync gate cross-refs this.
- **"When can the producer drop an old contract version?" (deprecation timing for consumers you don't control)** → for store apps / distributed SDKs / customer-deployed services, key the backward-compat hold off a **real adoption/telemetry signal, not a calendar date** (`stale-after` is a revisit placeholder, not authorization to drop); but no signal is not a license for an unowned indefinite hold either — sunset then proceeds via an explicit owned EOL decision. See `references/version-authority-and-deprecation.md` for the signal types, the EOL-decision fields, and the testing-strategy compatibility-window split.

## Common Pitfalls (observed, not blanket-prescribed)

- When authoring a new CI bootstrap, runner config or deploy script, changing one, or auditing a platform for rough edges — secrets in git/ConfigMaps, commented-out bootstrap steps, hardcoded build IPs/hostnames, ad-hoc `kubectl apply` deploy scripts, post-deploy approvals, time-only canary promotion, overlapping orchestration spines, missing DR drills, unbounded external CI bootstrap fetches, or perpetually pending jobs on a self-hosted runner fleet — you must load `references/deploy-pipeline.md` (`## Observed pipeline, bootstrap, and runner pitfalls`).

## Sanitization and Provenance

This skill is product-agnostic. It must not contain:
- Repository names, control-plane service names, internal hostnames, internal IPs, cluster names.
- Image registry URLs, cloud-provider artifact paths, region codes that identify the platform.
- Business-domain terms, tenant types, vertical names.
- Specific credentials or example secrets, even fake ones.

Reused industry patterns (canary, blue-green, GitOps, control plane, lane, dcc, config center, secret manager) are fair game.

## References

- `references/env-and-lane-matrix.md` — Lane as first-class entity; long-lived envs, ephemeral lanes, canary slices, shadow traffic; cluster/region topology.
- `references/deploy-pipeline.md` — Build → image → manifest → apply; three control-plane patterns; CLI / UI / API surface.
- `references/canary-and-rollout-strategy.md` — Canary check task shape; bake window; abort thresholds; blue-green and mirror alternatives.
- `references/promotion-gate-and-review.md` — Evidence-driven gate; SLI wiring; approval workflow; audit-log; DORA release-process metrics.
- `references/rollback-playbook.md` — Rollback by strategy; data-migration rollback discipline; forward-compatible migration patterns; drill schedule.
- `references/secret-and-config-management.md` — Static / dynamic / secret tier; rotation; injection paths; scanning.
- `references/multi-region-and-cluster.md` — Cluster pairing; failover trigger; cross-cluster discovery/federation; DR drill.
- `references/lane-orchestration-control-plane.md` — Concrete mature pattern: lane as DB entity with strict naming, per-lane resource config, custom-API surface, deploy-interactive via WebSocket, log-error-diff canary alternative, and serialized mesh reconciliation with ordered apply, rollback, and drain handling.
- `references/config-center-via-etcd.md` — etcd v3 as config-center backend; key shape `/<psm>/<namespace>/<key>`; in-cluster + SD endpoint discovery; Watch listener; mature SDK with LRU cache + hit/miss/error metrics; payload-by-cadence cache TTL; operator interface via control plane.
- `references/custom-control-plane-boundary.md` — When custom plane vs GitOps / Spinnaker is right; 10 things it MUST own (catalog / lane / deploy orchestration / approval / canary task / rollback / delegated traffic-policy hooks / mesh reconcile / audit / integrations); 14 things it MUST NOT own (k8s scheduling / SD / mTLS / metrics / logs / traces / secrets / CI build / IDP / etc); recommended API + CLI + Web surface; hard rules (no business logic, chat-platform adapter isolated, break-glass kubectl open); migration paths from kubectl-scripts / GitOps / Spinnaker.
- `references/deploy-cli-concrete-recipe.md` — Concrete deploy CLI recipe with compile/build/deploy-config/review/deploy commands, pipeline metadata parsing, image namespacing, control-plane API calls, streamed deploy status, review-task wait loop, and self-bootstrap notes.
- `references/version-authority-and-deprecation.md` — Cross-repo version-authority layering (per-layer owner/change-mode; never copy the current pin; the audit/generated-artifact inline exception + freshness gate) and deprecation timing for un-upgradable consumers (signal-not-calendar hold; the owned EOL-decision fallback).
- `references/python-package-registry-release.md` — Private PyPI-compatible wheel/sdist upload, duplicate recovery, simple-index metadata checks, and registry-only install verification.

## Verification before marking work done

1. **Static**: deploy pipeline path is declarative; bash scripts are clearly bootstrap-only; secrets scanner integrated into CI.
2. **Live**: trigger a canary; verify SLI gate queries fire; verify abort path works (force a fake SLI breach).
3. **Live, rollback**: execute rollback in a non-critical service; reach steady state and verify within 5 min.
4. **Audit**: every deploy in the last 30 days has an approval record before the deploy event.
5. **Static, no leakage**: grep this skill — zero internal hostnames, repo names, or business terms.

If any check fails, the work is interim, not done.

Files in this skill

  • SKILL.md38.5 KB
  • agents/openai.yaml266 B
  • references/canary-and-rollout-strategy.md9.6 KB
  • references/config-center-via-etcd.md13.3 KB
  • references/custom-control-plane-boundary.md14.6 KB
  • references/deploy-cli-concrete-recipe.md15.3 KB
  • references/deploy-pipeline.md10.7 KB
  • references/env-and-lane-matrix.md4.9 KB
  • references/lane-orchestration-control-plane.md22.2 KB
  • references/multi-region-and-cluster.md5.2 KB
  • references/promotion-gate-and-review.md14.1 KB
  • references/python-package-registry-release.md30.9 KB
  • references/rollback-playbook.md5.5 KB
  • references/secret-and-config-management.md20.1 KB
  • references/version-authority-and-deprecation.md5.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.