Skip to content

ci: auto-adopt engine releases and tag kai-cli#34

Merged
fatihacet merged 1 commit into
mainfrom
automation/release-please
Jul 9, 2026
Merged

ci: auto-adopt engine releases and tag kai-cli#34
fatihacet merged 1 commit into
mainfrom
automation/release-please

Conversation

@fatihacet

@fatihacet fatihacet commented Jul 8, 2026

Copy link
Copy Markdown
Member

What

Make kai-cli auto-adopt and auto-release on every kai-engine release — no release-please.

  • .github/workflows/adopt-engine.yml: on engine-released, run go get kai-engine@<version> + go mod tidy (also advances the transitive kai-core), build/test, commit the bump to main, then tag the next kai-cli patch. That tag triggers the existing ci.yml, which builds the binaries and publishes to GCS + GitHub Releases.

Cascade

kai-engine release ──engine-released──► adopt-engine: bump + commit main + tag ──► ci.yml builds & ships

Also runnable manually: gh workflow run adopt-engine.yml -R kaicontext/kai-cli -f version=vX.Y.Z.

Notes

  • Pure versioned bump — no replace is added, so ci.yml's boundary job stays green.
  • The bot pushes the bump commit + tag directly to main (chosen model), so main must let the App push (no required-review protection blocking it).
  • Patch-bump off the latest v* tag; concurrency guards against overlapping releases.

Requires (GitHub settings — not in this PR)

  • KAI_CORE_APP_* secrets on this repo (already present).
  • Org App granted kai-cli with Contents: R/W (bot pushes commit + tag). It already has kai-core + kai-engine read for fetching.

Part of the auto-release set across kai-core / kai-engine / kai-cli / kai-tui / kai-server.

@kaicontext

kaicontext Bot commented Jul 8, 2026

Copy link
Copy Markdown

🔍 Kai review

⚠️ Kai couldn't finish reviewing this pull request. Push a new commit or re-run the review to try again.

@fatihacet fatihacet force-pushed the automation/release-please branch from 7fc86ba to 3c3ef57 Compare July 8, 2026 20:16
@fatihacet fatihacet changed the title ci: release-please + adopt-engine (auto-adopt engine releases) ci: auto-adopt engine releases and tag kai-cli Jul 8, 2026
@fatihacet fatihacet force-pushed the automation/release-please branch from 3c3ef57 to fed1486 Compare July 8, 2026 21:25
@fatihacet fatihacet closed this Jul 9, 2026
@fatihacet fatihacet reopened this Jul 9, 2026
On engine-released, go get kai-engine@<version> + go mod tidy (also pulls
the matching kai-core forward), build/test, commit to main, then tag the
next kai-cli patch. That tag drives the existing ci.yml build + publish.

Pure versioned bump (no replace), so the boundary job stays green. Bot
pushes the bump commit + tag directly to main.

Hardening: dispatch version validated against strict semver via a quoted env
var (no injection); release is atomic + retry-safe (commit + tag via one
`git push --atomic`, idempotency keyed on the tag so an untagged bump
resumes instead of being dropped), patch math is base-10 (no octal trap),
the commit stages only go.mod/go.sum, and tag collisions are skipped.
@fatihacet fatihacet force-pushed the automation/release-please branch from fed1486 to 67c9d73 Compare July 9, 2026 08:55
@fatihacet fatihacet merged commit d29b790 into main Jul 9, 2026
5 checks passed
@fatihacet fatihacet deleted the automation/release-please branch July 9, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant