fix(workflows): build-1 preps kernel + fixtures inside its own sandbox (replaces #64) - #65
fix(workflows): build-1 preps kernel + fixtures inside its own sandbox (replaces #64)#65kjgbot wants to merge 1 commit into
Conversation
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.
|
Warning Review limit reachedNext included review available in 35 minutes. View limit detailsLimit details: You’ve used the included review currently available. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (2)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/settings/billing. Comment |
maintainability lens — FAILMaintainability review — PR #65Blocker — the prompt comment asserts a fact Concern — duplicated setup logic with no forcing function to keep it in sync. Concern — silent failure swallow in a step whose failure the summary is supposed to prove. Concern — instruction lives only in prompt text; no gate enforces it. Note — the two workflow files must be edited in lockstep by hand. REVIEW_FAILED |
history lens — FAILBlocker
Concerns
Notes
REVIEW_FAILED |
structure lens — PASS→ Read docs/RFC-0001-everything-is-a-relayflow.md Structure review — PR #65The change touches only two orchestration YAML files, adding a three-command "preflight" preamble to the BlockersNone. Concerns1. Product/ordering logic duplicated between prose and a check ( 2. Notes
Verdict: the diff is structurally sound as a prompt edit, but it reinstates the prose-over-check anti-pattern the repo has already paid to eliminate. REVIEW_PASSED |
|
🎯 review-swarm: FAILED (M:fail H:fail S:pass) Lens transcripts posted as sibling comments above. |
|
Superseding — swarm found two real issues: (1) prompt taught hardcoded kernel/target/debug/ path that ops/cargo.sh:42-52 explicitly redirects via CARGO_TARGET_DIR (PR #38 fixed); (2) cd's don't persist across agent tool calls, so 'cd .. && find testdata/preflight' hits wrong dir. Retrying with subshells + correct RELAYFLOWD_BIN reference + no failure-hiding || true. |
… drive loop, replaces #64/#65/#68) (#69) * fix(sdk): build kernel + restore fixture +x before npm test (unblocks drive loop) Root cause the drive loop has been stalling on since PR #63 (2026-08-30): sdk/tests/live-kernel.test.ts requires a built relayflowd binary (ops/cargo.sh's toolchain-external target), and the cloud sandbox does not build it before running npm test. Result: the assessor observes red tests, writes ops/NEEDS_HUMAN.md, assess-gate parks the run, and no build/verify step ever fires. Fix moves the prep INSIDE npm test itself so it's correct for every caller — the drive assessor, drive builder, verify step, and humans on a laptop. Superseded PRs (all closed): - #64: separate pre-build step — steps have per-step sandboxes, prep invisible to build (BACKLOG.md:688-707) - #65, #68: prep in build's task prompt — assess parks first, so build never runs This lands the prep at a lower layer that all three stages hit. * fix(sdk): fail-closed on fixture chmod (address swarm blocker on #69) Both lenses on #69 correctly flagged `2>/dev/null || true` as failure-hiding: fixtures are tracked, chmod errors should surface. Replaced with `[ ! -d ../testdata/preflight ] || find ...` — tolerant of an absent dir, but any real error (missing find, permission denied, typo in flag) fails test:prep loudly. Maintainability lens's exact recommendation. --------- Co-authored-by: kjgbot <kjgbot@agentrelay.dev>
Codex previously rejected #64 as history lens for exactly the right reason: cloud steps don't share state. This fix moves the prep INTO the build-1 agent's task prompt — same sandbox as npm test.
Ref: ops/BACKLOG.md:686-707
Prep prepended to build-1's task:
verify-1 already uses this same in-sandbox pattern (ops/cargo.sh build inside its own step).