add gstack 2 parity and lifecycle gates

This commit is contained in:
Sinabina
2026-07-17 11:08:32 -07:00
parent b6572ebbb7
commit 9919c4cdd3
212 changed files with 29098 additions and 3845 deletions
+8 -2
View File
@@ -14,7 +14,7 @@
*/
import { describe, it, expect } from "bun:test";
import { readFileSync, readdirSync, statSync } from "fs";
import { existsSync, readFileSync } from "fs";
import { join } from "path";
import { execFileSync } from "child_process";
@@ -32,7 +32,13 @@ function listTrackedSkillMd(): string[] {
cwd: REPO_ROOT,
encoding: "utf-8",
});
return out.split("\n").filter((line) => line.trim().length > 0);
return out
.split("\n")
.filter((line) => line.trim().length > 0)
// `git ls-files` includes tracked deletions in an in-progress migration.
// GStack 2 intentionally deletes the root SKILL.md, so only inspect files
// that still exist in the candidate worktree.
.filter((line) => existsSync(join(REPO_ROOT, line)));
}
describe("scripts/resolvers/gbrain.ts — no `gbrain put_page` CLI subcommand in emitted instructions (regression for #1346)", () => {