Individual skill
release-rollback
Roll a release back for real when post-deploy regression goes red — apc release rollback flips the current version to pulled and the last good version back to current in the release ledger, and (with --mirror) repoints the bare mirror ref. Behind an approval gate; with no previous good version it BLOCKS instead of spinning green. green(0) applied · staged(3) plan awaiting approval · blocked(1) nothing to roll back to.
sdk/apc/skills/release-rollback/SKILL.md
Source commit f83b859a173802a73d978197e92328ab2bf57a6e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 3, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,364
- Repository last updated
- Oct 22, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-communication Repository topic
- agent-memory Repository topic
- ai-agents Repository topic
- claude Repository topic
- cursor Repository topic
- docker Repository topic
- knowledge-base Repository topic
- llm-tools Repository topic
- mcp Repository topic
- mcp-server Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
Read excerpt
# release-rollback
上线后回归红时的**真回滚**(`apc/01` §2 release-rollback,收口步 10)。它落两个真副作用:
1. **release 账本回退**:把当前 `current` 版本翻 `pulled`、上一好版本翻回 `current`(真写 JSON ledger,可读回核验)。
2. **版本指针回退**(给了 `--mirror`):把 bare mirror 的 `refs/heads/release-current` 重指到上一好 tag 的 commit(真 git 副作用,`git ls-remote` 可核验)。
**什么时候用**:`release-verify`(部署后回归)红了,需要把 fleet 退回上一个好版本。回滚后应建 bug task 回 bugfix 入口。
## 承重纪律(发版 skill 的命根子,先记死)
- **审批门不可跳**。未审批 = `staged`(出回滚计划 dry-run,不执行)。本机替身以 `--approved <token>` 非空为门(真 approvalId 服务端校验 = M5)。审批人看到的是**回滚计划**(from→to 版本 + 影响面),不是"agent 说要回滚了"。
- **无上一好版本 → `blocked`,绝不空转返绿**。账本只有一条、或更早的都已 `pulled` ⇒ 无从回滚 ⇒ blocked(exit 1)。这是本 verb 的**负控注入点**:一个"回滚"skill 若在没东西可回滚时也返绿,就是开卷考试。
- **prod 不做**。本 skill 是 test 环境的回滚;prod 回滚走人 + M5 路径。