Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

ci(ok): anchor override for main-reset to recover anchor drift (#4168)

Andrew Mikofalvy550f9f3ccc1c
diff --git a/.github/scripts/point-release-plan.mjs b/.github/scripts/point-release-plan.mjs
index 18a5ad6f3..dfe5c0301 100644
--- a/.github/scripts/point-release-plan.mjs
+++ b/.github/scripts/point-release-plan.mjs
@@ -32,7 +32,9 @@ export function guardAnchor({ anchorVersion, latestStableTag }) {
return refuse(
'anchor-drift',
`${verdict.reason} Refusing rather than waiting: this lane holds the release-cadence lock, ` +
- 'and the consolidation that clears the drift needs it. Re-run once the anchor is level.',
+ 'and the consolidation that clears the drift needs it. Re-run once the anchor is level. ' +
+ 'If main-reset itself keeps failing its version guard, dispatch it with anchor_override=true ' +
+ '(RELEASES.md, Recovering anchor drift).',
);
}
return pass(verdict.reason);
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f97233824..30c997da0 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -396,7 +396,7 @@ jobs:
TOP=$(printf '%s\n%s\n' "$BASE_VERSION" "$STABLE" | sort -V | tail -n1)
if [[ "$TOP" != "$BASE_VERSION" ]]; then
echo "::error::Computed beta base ${BASE_VERSION} is BEHIND the latest stable ${STABLE} — genuine anchor drift, not the transient post-promotion window (base==stable is deferred upstream)."
- echo "::error::Run public-open-knowledge-main-reset.yml with stable_version=${STABLE} on agents-private, then re-cut."
+ echo "::error::Run public-open-knowledge-main-reset.yml with stable_version=${STABLE} on agents-private, then re-cut. If that reset fails its version guard, re-dispatch it with -f anchor_override=true (RELEASES.md, Recovering anchor drift)."
exit 1
fi
echo "Beta base ${BASE_VERSION} leads latest stable ${STABLE}."