{
  "path": "__tests__/scripts/seat-workflow-generation.test.ts",
  "commit": "527baea7c",
  "date": "2026-09-14",
  "excerpt": "it(\"STAYS QUIET on every committed seat workflow\", () => {\n    const dir = path.join(REPO, \".github\", \"workflows\");\n    const alarmed = fs.readdirSync(dir).filter((n) => n.endsWith(\".yml\"))\n      .filter((n) => fs.readFileSync(path.join(dir, n), \"utf8\").includes(\"On failure, open an issue\"));\n    // Every seat spec renders the alarm; a lock over zero workflows is no lock.\n    expect(alarmed.length).toBe(fs.readdirSync(SEATS_DIR).filter((f) => f.endsWith(\".json\")).length);\n    for (const f of alarmed) {\n      expect(missing(fs.readFileSync(path.join(dir, f), \"utf8\")), `${f} has outcome words with no arm`).toEqual([]);\n    }\n  });\n\nit(\"goes LOUD when an arm is removed from a rendered workflow\", () => {\n    const rendered = fs.readFileSync(path.join(REPO, \".github\", \"workflows\", \"autonomous-content.yml\"), \"utf8\");\n    const without = rendered.replace(/^\\s*agent_done\\) WHAT=.*\\n/m, \"\");\n    expect(without).not.toBe(rendered);\n    expect(missing(without)).toEqual([\"agent_done\"]);\n  });"
}
