kiro-discord-bot

Release Runbook #

Use this runbook before tagging, publishing, or deploying a new release.

1. Preflight #

Run the standard preflight:

scripts/release-preflight.sh

When changing ACP behavior, engine integration, MCP policy, bot-tools, or cron pending ingestion, also run the relevant 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 the Diff #

Before tagging:

For agent-engine architecture changes, also confirm:

3. Tag and Push #

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

The release workflow builds archives for Linux and macOS on amd64 and arm64. Each archive should include:

4. Verify 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

Do not deploy a new tag until the release exists, is not a draft, and the artifacts are available.

5. Deploy #

For systemd hosts:

  1. Download the release archive.
  2. Backup current binaries.
  3. Stop the service.
  4. Replace binaries.
  5. Start the service.
  6. Verify logs and /doctor.

For macOS launchd hosts:

  1. Replace binaries under the local install directory.
  2. Keep .env, data, and launchd plist intact.
  3. launchctl kickstart -k the service.
  4. Confirm Bot running as ... and /doctor.

6. Post-deploy Checks #

Use the Operation Matrix for the full channel/thread and Kiro/OMP checklist.

7. Rollback #

Keep previous binaries until the new release has passed live checks. A rollback should restore binaries only; do not delete DATA_DIR, Docker volumes, .kiro/, or .env.

After rollback, restart the service and run /doctor.

8. Agent CLI Upgrades #

Kiro CLI and OMP are external agent CLIs. This repository does not publish or update those CLIs; update them with their own tools and restart the bot afterward.

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

omp update --check
omp update
omp --version

Restart the bot after any agent CLI upgrade so preflight and future agent sessions use the new binary. Run /doctor after restart to verify the enabled engines.