Skip to content

fix(open-knowledge): prevent beta-base collision after stable promotion#268

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jun 25, 2026
Merged

fix(open-knowledge): prevent beta-base collision after stable promotion#268
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

No description provided.

…on (#2104)

After a stable is promoted, the beta cycle anchor in pre.json trails the
just-shipped stable until main-reset advances it (a cross-repo PR plus
Copybara round-trip). Any feature mirror push that lands in that window
makes release.yml compute a beta base equal to the fresh stable, tripping
the "beta base must lead the latest stable" guard with a red, paging
failure even though the condition is transient and self-healing. It got
worse when the main-reset PR was ejected from the merge queue without
re-enqueuing, stranding the anchor advance and stretching the window to
25+ minutes until a manual admin merge.

Two levers:

1. release.yml compute-beta now DEFERS instead of failing when the
   computed base equals the latest stable: it skips the cut with a loud
   warning and re-cuts automatically once the anchor leads. The Guard
   step is narrowed to a backstop for a base strictly BEHIND stable
   (genuine drift), which stays a hard failure.

2. main-reset.yml lands its bot PR with a direct admin merge instead of
   riding the merge queue, collapsing the race window to about a minute
   and removing the queue-eject failure mode. It falls back to queued
   auto-merge if the token cannot bypass, so it never hard-fails.

Lever 2's admin path activates only once the inkeep-internal-ci app is a
bypass actor on main's ruleset; until then it falls back to today's
behavior. Lever 1 is effective immediately and needs no permission grant.

GitOrigin-RevId: 2686a67bc9a06cdc39cbfe60c6b1c333b65135de
@inkeep-oss-sync
inkeep-oss-sync Bot requested a review from nick-inkeep as a code owner June 25, 2026 18:06

@inkeep-internal-ci inkeep-internal-ci Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval from agents-private public-mirror-sync (run: https://github.com/inkeep/agents-private/actions/runs/28190197637). Source of truth is the monorepo; direct edits on inkeep/open-knowledge are overwritten on next sync.

@inkeep-oss-sync
inkeep-oss-sync Bot merged commit 6325bff into main Jun 25, 2026
@inkeep-oss-sync
inkeep-oss-sync Bot deleted the copybara/sync branch June 25, 2026 18:06
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