From ee21e9ea7764c7f8a74f8a2ed12ce41a840728f4 Mon Sep 17 00:00:00 2001 From: shinyobjectz Date: Sat, 5 Dec 2026 10:12:44 -0800 Subject: [PATCH] raea cloud checks every render again: offload calls raea goal check, and a check that can't run fails the render offload.ts ran the render's check as `raea make check`, which the CLI refuses (exit 2: make is the asset tools since the goal/make split), and acted only on exit 1, so no cloud render had been checked: the agent saw a refusal line and went on. It now calls `raea goal check OUT --at render`; exit 1 fails the render as before, and any other exit fails it saying the check couldn't run. tools/legacy-names.sh now catches the old verb spawned as an argument list too. --- sdk/cloud/server/offload.ts | 9 ++++++++- tools/legacy-names.sh | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sdk/cloud/server/offload.ts b/sdk/cloud/server/offload.ts index 7caad352..6f17009b 100644 --- a/sdk/cloud/server/offload.ts +++ b/sdk/cloud/server/offload.ts @@ -211,10 +211,14 @@ async function main() { } } say(`raea goal check ${path.basename(made)} --at render`) - const r = spawnSync(REAL, ["make", "check", made, "--at", "render"], { stdio: "inherit", env: { ...process.env, RAEA_REAL: REAL } }) + const r = spawnSync(REAL, CHECK_ARGS(made), { stdio: "inherit", env: { ...process.env, RAEA_REAL: REAL } }) if (r.status === 1) { say(`${path.basename(made)} fails its checks: fix every ERROR above (each says what to change), then render again before any review`) process.exitCode = 1 + } else if (r.status !== 0) { + // a refused or crashed check is loud: called by an old name, it was refused with exit 2 and every cloud render went unchecked + say(`raea goal check couldn't check ${path.basename(made)} (exit ${r.status ?? r.signal}): the render isn't done until it can`) + process.exitCode = r.status || 1 } } } finally { @@ -222,6 +226,9 @@ async function main() { } } +/** raea's one check on a finished render, as the box runs it */ +export const CHECK_ARGS = (made: string) => ["goal", "check", made, "--at", "render"] + if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) main().catch((e) => { say((e as Error).message) diff --git a/tools/legacy-names.sh b/tools/legacy-names.sh index 43f5449f..ee882338 100755 --- a/tools/legacy-names.sh +++ b/tools/legacy-names.sh @@ -25,6 +25,7 @@ NAMES=( 'raea-runtime-(cut|goal)-plan => sdk/goal (raea/goal)' 'naming-check\.ts => raea/goal'"'"'s naming pack' 'raea make (check|seen|look|judge|gates)\b => raea goal check|seen|judge|gates (MK45: goal is the loop, make the asset tools)' + '"make", *"(check|seen|look|judge|gates)" => ["goal", "check", ...]: a spawned raea make check is refused with exit 2' 'raea make plan\b => raea make blockout (a project'"'"'s tasks: raea goal tasks)' 'raea next\b => raea goal next' 'raea (clothes|motion|solid|wear|splat|physics|bake|sao|tokensynth|sounds|component)( |`|$) => raea make clothes, motion, solid... (MK45: the asset tools are under make)'