release

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Release context-mode v2 (ADR-0013). Starting the skill is the approval for this release; the preview in step 6 is for information, not a second approval. Stop and report at the first step that fails; do not retry a failed step with a different method.
  1. Check the start state. Run
    git branch --show-current
    and
    git status --porcelain
    . The branch must be
    v2
    and the tree must be clean; if not, stop and report what is dirty. Run
    gh auth status
    and
    git pull --ff-only
    .
  2. Run the E2E cases:
    node e2e/cases/run.mjs
    . If a row is
    FAIL
    , stop and report the failing case ids.
  3. Run the v1 KEEP-PASS unit tests (GS4).
    npm ci
    installs the dev toolchain only (ADR-0013 "Trust boundary"); users never run npm. Then run
    npx vitest run
    . If one of the 131 tracked tests fails, stop and show its name.
  4. Run the live test:
    node e2e/live/run.mjs --all
    (Sonnet 5, effort low, ADR-0017) and show its table. If a row is
    FAIL
    , stop. Then update the live-skip streak in
    e2e/live/skip-streak.json
    (
    { "streak": <n> }
    ): if the table has one or more
    SKIPPED
    rows, add 1 to
    streak
    ; if it has none, reset it to 0. If the file changed, commit it on
    v2
    and push. If
    streak
    is now
    LIVE_SKIP_LIMIT
    (3) or more, refuse to continue: report which cases were skipped and the note on each row.
  5. v1 migration checkpoint (GS10). The cases
    e2e/live/cases/v1-migration-*.json
    ran in step 4 (their
    covers
    paths include
    v1-transition
    , so
    --all
    selects them). Do not run them again; confirm each one is
    PASS
    in the step 4 table, and stop if one is not.
  6. Preview. Run
    node scripts/release/plan.mjs --dry-run
    . Show the owner the next version and the release notes. If it says there is nothing to release, stop.
  7. Start the release:
    gh workflow run release.yml --ref v2 -f sha=$(git rev-parse HEAD)
    .
  8. Follow the new run with
    gh run watch
    and report each job status as it changes. At the end, report in one short table: version, release commit on
    release
    , GitHub Release URL, live test (passed, or skipped), and the smoke-install result per agent.
skip-live
: if the owner types
/release skip-live
, skip steps 4 and 5 (the streak file does not change) and in step 6 run
node scripts/release/plan.mjs --dry-run --skip-live
, so the release notes carry the line "Live E2E skipped for this release." Say in the final report that the live test was skipped.
This skill never runs these one-time steps: switching the marketplace to
ref: "release"
, adding workflows to
main
, and
npm deprecate
. Ask the owner about each one separately.
发布 context-mode v2(ADR-0013)。启动该 skill 即表示批准本次发布;第 6 步中的预览仅供参考,并不构成第二次批准。遇到第一个失败步骤时停止并报告;不要改用其他方法重试失败步骤。
  1. 检查初始状态。运行
    git branch --show-current
    和
    git status --porcelain
    。分支必须为
    v2
    ,且工作树必须干净;否则停止并报告脏文件或改动。运行
    gh auth status
    和
    git pull --ff-only
    。
  2. 运行 E2E 用例:
    node e2e/cases/run.mjs
    。如果某行显示
    FAIL
    ,停止并报告失败的用例 ID。
  3. 运行 v1 KEEP-PASS 单元测试(GS4)。
    npm ci
    仅安装开发工具链(ADR-0013 "Trust boundary");用户绝不运行 npm。然后运行
    npx vitest run
    。如果 131 个受跟踪测试中有任何一个失败,停止并显示其名称。
  4. 运行 live 测试:
    node e2e/live/run.mjs --all
    (Sonnet 5,effort low,ADR-0017),并显示其表格。如果某行显示
    FAIL
    ,则停止。然后更新
    e2e/live/skip-streak.json
    中的 live-skip 连续计数(
    { "streak": <n> }
    ):如果表中有一个或多个
    SKIPPED
    行,则将
    streak
    加 1;如果没有任何
    SKIPPED
    行,则将其重置为 0。如果文件发生变化,请在
    v2
    上提交并推送。如果
    streak
    现在达到或超过
    LIVE_SKIP_LIMIT
    (3),拒绝继续:报告被跳过的用例以及每一行的备注。
  5. v1 迁移检查点(GS10)。用例
    e2e/live/cases/v1-migration-*.json
    已在第 4 步运行(其
    covers
    路径包含
    v1-transition
    ,因此
    --all
    会选中它们)。不要再次运行;确认第 4 步表格中每个用例均为
    PASS
    ,如果有任何一个不是,则停止。
  6. 预览。运行
    node scripts/release/plan.mjs --dry-run
    。向负责人显示下一版本和发布说明。如果提示没有可发布的内容,则停止。
  7. 启动发布:
    gh workflow run release.yml --ref v2 -f sha=$(git rev-parse HEAD)
    。
  8. 使用
    gh run watch
    跟踪新运行,并在状态变化时报告每个 job 的状态。最后用一个简短表格报告:版本、
    release
    上的发布提交、GitHub Release URL、live 测试(通过或跳过),以及每个 Agent 的 smoke-install 结果。
skip-live
:如果负责人输入
/release skip-live
,则跳过第 4 步和第 5 步(连续计数文件不发生变化),并在第 6 步运行
node scripts/release/plan.mjs --dry-run --skip-live
,使发布说明包含这一行:"Live E2E skipped for this release."。在最终报告中说明 live 测试已被跳过。
此 skill 绝不执行以下一次性步骤:将 marketplace 切换到
ref: "release"
、向
main
添加 workflows,以及执行
npm deprecate
。每一项都需单独询问负责人。