From fde928756bd2867398bc1146693a425bfc3d44a3 Mon Sep 17 00:00:00 2001 From: kjgbot Date: Sun, 30 Aug 2026 22:12:08 +0200 Subject: [PATCH] fix(workflows): build-1 preps kernel + fixtures inside its own sandbox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #64 tried to solve this via a pre-build step but was correctly rejected — cloud workflow steps run in isolated sandboxes (ops/BACKLOG.md:686-707). This puts the prep inside build-1's task prompt so it runs in the same sandbox as npm test. The prep: chmod +x ops/cargo.sh, build kernel, restore +x on testdata/preflight/*-cli fixtures. Same pattern verify-1 already uses inside its own sandbox. --- workflows/drive-cloud.yaml | 13 +++++++++---- workflows/drive.yaml | 6 ++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/workflows/drive-cloud.yaml b/workflows/drive-cloud.yaml index 04670a1d..779bd1b4 100644 --- a/workflows/drive-cloud.yaml +++ b/workflows/drive-cloud.yaml @@ -179,10 +179,15 @@ workflows: dependsOn: - assess-gate-1 maxIterations: 3 - task: "Read ops/NEXT.md, AGENTS.md, and the relevant parts of\ndocs/RFC-0001-everything-is-a-relayflow.md.\ - \ Implement exactly that\nwork package \u2014 nothing more. Run the definition-of-done commands\n\ - yourself and iterate until they pass. Keep files small and\nsingle-purpose. End with BUILD_DONE\ - \ only when the definition of done\npasses locally; paste the passing output.\n" + task: "Before running any tests, run these commands in this order and paste the last 5 lines of each\ + \ to your summary:\n 1. chmod +x ops/cargo.sh || true\n 2. cd kernel && sh ../ops/cargo.sh build\ + \ # required \u2014 SDK live-kernel tests exec kernel/target/debug/relayflowd\n 3. cd .. && find\ + \ testdata/preflight -name '*-cli' -type f -exec chmod +x {} + 2>/dev/null || true\nThen and only\ + \ then run 'cd sdk && npm test' as part of the definition of done.\n\nRead ops/NEXT.md, AGENTS.md,\ + \ and the relevant parts of\ndocs/RFC-0001-everything-is-a-relayflow.md. Implement exactly that\n\ + work package \u2014 nothing more. Run the definition-of-done commands\nyourself and iterate until\ + \ they pass. Keep files small and\nsingle-purpose. End with BUILD_DONE only when the definition\ + \ of done\npasses locally; paste the passing output.\n" verification: type: output_contains value: BUILD_DONE diff --git a/workflows/drive.yaml b/workflows/drive.yaml index 9dd5523e..94a86948 100644 --- a/workflows/drive.yaml +++ b/workflows/drive.yaml @@ -274,6 +274,12 @@ workflows: dependsOn: [assess-gate] maxIterations: 3 task: | + Before running any tests, run these commands in this order and paste the last 5 lines of each to your summary: + 1. chmod +x ops/cargo.sh || true + 2. cd kernel && sh ../ops/cargo.sh build # required — SDK live-kernel tests exec kernel/target/debug/relayflowd + 3. cd .. && find testdata/preflight -name '*-cli' -type f -exec chmod +x {} + 2>/dev/null || true + Then and only then run 'cd sdk && npm test' as part of the definition of done. + Read ops/NEXT.md, AGENTS.md, and the relevant parts of docs/RFC-0001-everything-is-a-relayflow.md. Implement exactly that work package — nothing more. Run the definition-of-done commands