kiro-discord-bot

Release Runbook #

Tag、publish 或部署新 release 前使用這份 runbook。

1. Preflight #

執行標準 preflight:

scripts/release-preflight.sh

若修改 ACP、engine 整合、MCP policy、bot-tools 或 cron pending ingestion,也執行對應 smoke checks:

RUN_ACP_SMOKE=1 KIRO_CLI=$(which kiro-cli) scripts/release-preflight.sh
RUN_OMP_SMOKE=1 OMP_PATH=$(which omp) scripts/release-preflight.sh

2. Review Diff #

Tag 前確認:

若這次包含 agent-engine 架構變更,也要確認:

3. Tag and Push #

git tag vX.Y.Z
git push origin main vX.Y.Z

Release workflow 會為 Linux/macOS、amd64/arm64 建置 archives。每個 archive 應包含:

4. 驗證 GitHub Actions #

gh run list --workflow release --limit 1
gh run view <run-id>
gh release view vX.Y.Z --json tagName,name,isDraft,isPrerelease,url

Release 尚未存在、仍是 draft,或 artifacts 尚未可用前,不要部署新 tag。

5. 部署 #

Systemd hosts:

  1. 下載 release archive。
  2. 備份目前 binaries。
  3. 停止 service。
  4. 替換 binaries。
  5. 啟動 service。
  6. 檢查 logs 與 /doctor

macOS launchd hosts:

  1. 替換 local install directory 下的 binaries。
  2. 保留 .env、data 與 launchd plist。
  3. launchctl kickstart -k service。
  4. 確認 Bot running as .../doctor

6. Post-deploy Checks #

完整 channel/thread 與 Kiro/OMP checklist 請使用 操作矩陣

7. Rollback #

新 release 通過 live checks 前,保留上一版 binaries。Rollback 只應還原 binaries;不要刪除 DATA_DIR、Docker volumes、.kiro/.env

Rollback 後重啟 service 並跑 /doctor

8. Agent CLI 升級 #

Kiro CLI 與 OMP 都是外部 agent CLI。這個 repository 不發布也不更新這兩個 CLI;請使用各自工具更新,並在更新後重啟 bot。

kiro-cli update -y
kiro-cli --version

omp update --check
omp update
omp --version

任一 agent CLI 升級後都要重啟 bot,讓 preflight 與後續 agent sessions 使用新的 binary。重啟後執行 /doctor 驗證 enabled engines。