From 527cb02df9fc322a30e3b281c1cbfcc4e5ce4a59 Mon Sep 17 00:00:00 2001 From: shinyobjectz Date: Mon, 9 Nov 2026 06:51:00 -0800 Subject: [PATCH] surface: a guide's `raea export-game` is the command it names, not `raea export` The check that every `raea ` in the agent's context exists matched \w+, which stops at a hyphen, so the delivery and games guides' raea export-game read as raea export and failed every lane's L1 since #73. It matches commands as the help list is read ([a-z][\w-]*); export-game and setup-audio are the hyphenated ones the guides name, both real. --- engine/cli/conformance/surface.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/cli/conformance/surface.test.ts b/engine/cli/conformance/surface.test.ts index 1a12c2a2..bae7d54e 100644 --- a/engine/cli/conformance/surface.test.ts +++ b/engine/cli/conformance/surface.test.ts @@ -84,7 +84,7 @@ describe("raea's surface", () => { const bad: string[] = []; for (const src of sources) { const text = src.startsWith("AGENTS.md") ? /const NOTES = `([\s\S]*?)`;/.exec(cli)![1] : readFileSync(src, "utf8"); - for (const m of text.matchAll(/`raea (\w+)/g)) if (!listed.has(m[1])) bad.push(`${src.replace(raea + "/", "")}: raea ${m[1]}`); + for (const m of text.matchAll(/`raea ([a-z][\w-]*)/g)) if (!listed.has(m[1])) bad.push(`${src.replace(raea + "/", "")}: raea ${m[1]}`); // render's --at takes frame numbers (cut's and frame's take seconds) for (const m of text.matchAll(/raea render [^\n`]*?--at ([^\s`\\]+)/g)) if (!/^(\d+|[A-Z]+)(,(\d+|[A-Z]+))*$/.test(m[1])) bad.push(`${src.replace(raea + "/", "")}: raea render --at ${m[1]} (frame numbers)`); }