diff --git a/scripts/smoke-persona-initiative-engine.ts b/scripts/smoke-persona-initiative-engine.ts index 00dbc2a..8af9e8e 100644 --- a/scripts/smoke-persona-initiative-engine.ts +++ b/scripts/smoke-persona-initiative-engine.ts @@ -726,7 +726,7 @@ const doctrineObservation = await readGlobalAgentDoctrine({ homeDirectory: "C:/User", readText: async (path) => { doctrineReads.push(path); - if (path.endsWith("Codex\\AGENTS.md")) throw new Error("missing"); + if (doctrineReads.length === 1) throw new Error("missing"); return "Global doctrine from the first readable authority."; }, });