Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(graduation): older-release e2e binaries predate the graduation release

garrytan0031789a8c68
diff --git a/docs/fix-wave-notes/capy-foundations-2.md b/docs/fix-wave-notes/capy-foundations-2.md
index 62658e0d11..e975c1e8f4 100644
--- a/docs/fix-wave-notes/capy-foundations-2.md
+++ b/docs/fix-wave-notes/capy-foundations-2.md
@@ -54,6 +54,21 @@ Every P0 item shipped. Nothing was cut.
for 10,000 rows. The refresh now runs after every N pages, where the batch
is already flushed; Lane F's planner-stats test walks 301 pages so its check
after page 300 still sees 600 rows.
+- Master merge (v0.60.52.0: engine graduation, auto_chronicle date quality,
+ contributor fixes): runMigrateEngine runs graduation's Windows platform
+ check before Lane F's source checks; the legacy copier's PGLite refusal,
+ which now only fires with graduation turned off, asks the user to turn
+ graduation back on and preview the read-only plan, or to stay on PGLite and
+ share it with `gbrain mcp expose`; chronicle publication applies the
+ invite marking to the events the date screen keeps, so an ended invite is
+ projected (no judge call) and still dated by its `end`; `auth rescope
+ --client` takes `--operations all` and `--sources none` / `--takes-holders`
+ together; `core-services-1.md` was split under the 60 KB cap.
+- `test/e2e/graduation-clients.test.ts` picked its "older released binaries"
+ as the newest tags at or below VERSION. Once v0.60.52.0 was tagged that
+ included the graduation release itself, which correctly refuses a lock-gap
+ write with `graduation_interrupted`, so the lock-gap case failed (on master
+ too). The helper now takes the newest tags before v0.60.52.0.
- `consumer.ts` composes Lane A's `consumer:prepared` seam and first-tick
PGLite `releaseAbandonedClaims` with Lane F's refresh-fence predicate in the
idle probe; released claims are still fenced when they are claimed again.
diff --git a/test/helpers/graduation-e2e.ts b/test/helpers/graduation-e2e.ts
index f5ef8798b7..24c2d90b21 100644
--- a/test/helpers/graduation-e2e.ts
+++ b/test/helpers/graduation-e2e.ts
@@ -259,7 +259,14 @@ export function manifestPath(home: string): string {
// ── Older released binaries ───────────────────────────────────────────────────
-/** The last `count` release tags at or below this checkout's VERSION, newest first (from origin). */
+/** The first release that ships engine graduation; an "older release" predates it and knows nothing of the graduation protocol. */
+export const GRADUATION_RELEASE = '0.60.52.0';
+
+/**
+ * The last `count` release tags older than both this checkout's VERSION and
+ * GRADUATION_RELEASE, newest first (from origin). Once v0.60.52.0 is tagged,
+ * "at or below VERSION" would pick a graduation-aware binary.
+ */
export function previousReleaseTags(count = 2): string[] {
const version = readFileSync(join(REPO, 'VERSION'), 'utf8').trim();
const out = Bun.spawnSync(['git', '-C', REPO, 'ls-remote', '--tags', '--refs', 'origin', 'v*'], { stdout: 'pipe', stderr: 'pipe' });
@@ -268,7 +275,7 @@ export function previousReleaseTags(count = 2): string[] {
const cmp = (a: number[], b: number[]) => { for (let i = 0; i < Math.max(a.length, b.length); i++) { const d = (a[i] ?? 0) - (b[i] ?? 0); if (d) return d; } return 0; };
const current = version.split('.').map(Number);
return out.stdout.toString().split('\n').map(line => line.split('refs/tags/')[1]).filter((t): t is string => !!t && /^v\d+(\.\d+){3}$/.test(t))
- .filter(t => cmp(parse(t), current) <= 0).sort((a, b) => cmp(parse(b), parse(a))).slice(0, count);
+ .filter(t => cmp(parse(t), current) <= 0 && cmp(parse(t), GRADUATION_RELEASE.split('.').map(Number)) < 0).sort((a, b) => cmp(parse(b), parse(a))).slice(0, count);
}
/**