feat(#1726): G1-G6 portability AST rules; fix all offenders; delete the ratchet (Phase 4) (#1731)

Phase 4 of epic #1702. Closes #1726.
This commit is contained in:
Tom Boucher
2026-06-25 18:24:39 -04:00
committed by GitHub
parent 2990305f78
commit f08b177215
88 changed files with 2038 additions and 377 deletions

View File

@@ -37,7 +37,7 @@ const LIVENESS_PHRASE = 'runs in a subagent';
// But NOT:
// "◆ Planner wrote N plan(s)..." → not matched (no "spawn" word)
// "◆ Research phase enabled" → not matched (no "spawn" word)
const SPAWN_BANNER_RE = /◆[^\n]*\bspawning?\b/i;
const SPAWN_BANNER_RE = /◆[^\r\n]*\bspawning?\b/i;
function findMdFiles(dir) {
const entries = fs.readdirSync(dir, { withFileTypes: true });
@@ -60,7 +60,7 @@ describe('spawn-liveness-banner', () => {
for (const filePath of mdFiles) {
const content = fs.readFileSync(filePath, 'utf-8');
const lines = content.split('\n');
const lines = content.split(/\r?\n/);
const rel = path.relative(WORKFLOWS_DIR, filePath);
for (let i = 0; i < lines.length; i++) {