Repository navigation
docs: default agent validation to remote runners - #100220
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cab6daa5e5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| done | ||
|
|
||
| /usr/local/bin/node --version | ||
| /usr/local/bin/pnpm --version |
There was a problem hiding this comment.
Verify the pinned Corepack cache
In the untrusted Crabbox path, later commands run pnpm with COREPACK_HOME=/opt/openclaw-untrusted-corepack, but this smoke check invokes /usr/local/bin/pnpm without that env. On a fresh lease this can download/use the crabbox user's default Corepack cache instead, so the bootstrap can fail on an avoidable registry fetch or pass without proving the prepared pinned cache that the untrusted test command actually depends on. Set COREPACK_HOME="$corepack_home" (and the bootstrapped PATH) for this verification.
Useful? React with 👍 / 👎.
|
Codex review: needs real behavior proof before merge. Reviewed July 5, 2026, 4:56 AM ET / 08:56 UTC. Summary PR surface: Docs +308, Other +109. Total +417 across 9 files. Reproducibility: yes. for the review finding from source: the PR head script invokes Corepack's env-node Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Export a deterministic PATH including the pinned Node install before pnpm and the requested command, rerun exact-head direct AWS proof, then have the area owner decide whether the remote-first validation policy should land. Do we have a high-confidence way to reproduce the issue? Yes for the review finding from source: the PR head script invokes Corepack's env-node Is this the best way to solve the issue? No. The remote-first validation direction is plausible and now focused, but the bootstrap should set PATH deterministically and be proved at the current head before merge. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7e0d530e07d6. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Docs +308, Other +109. Total +417 across 9 files. View PR surface stats
Security concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (2 earlier review cycles)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d2c61915b9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| export HOME="$run_home" | ||
| export COREPACK_HOME="$corepack_home" | ||
| export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 | ||
| /usr/local/bin/pnpm --version |
There was a problem hiding this comment.
Export the pinned Node path before pnpm
Fresh evidence after the prior comment: this version now exports COREPACK_HOME, but it still never updates PATH before the Corepack shim runs. The pnpm shim installed by Corepack starts with #!/usr/bin/env node, so on raw AWS images whose PATH resolves an older system Node (or omits /usr/local/bin), this smoke check and the install can run pnpm under the image Node instead of the Node 24 installed/proved above, causing untrusted validation to fail or not prove the pinned runtime. Export the bootstrapped path, e.g. $install_root/bin:/usr/local/bin:/usr/bin:/bin, before invoking pnpm and the requested command.
Useful? React with 👍 / 👎.
151c275 to
f764afe
Compare
|
Land-ready verification for
Known proof gaps: none. |
|
Merged via squash.
|
* docs: default agent validation to remote runners * docs: isolate untrusted validation networking * fix: harden untrusted Crabbox validation * docs: refresh generated docs map
What Problem This Solves
Agent sessions could run tests and broad validation locally because the repository guidance did not make remote execution or early Testbox warmup the default. Reused-box examples could also skip source sync, while contributor code lacked a safe remote routing boundary.
Why This Change Was Made
Make Crabbox remote execution the agent default for tests and compute-heavy work, with early Blacksmith Testbox warmup and lease reuse for trusted maintainer code. Add a fail-closed direct-AWS path for untrusted PRs: trusted launcher/config, public networking without Tailscale, no instance role or hydrated credentials, immutable reviewed SHA, isolated home, and a checksum-verified pinned Node/pnpm bootstrap.
User Impact
Maintainer agents should stop bogging down local Macs with test and validation workloads. Trusted work gets fast pre-warmed Testboxes; untrusted contributor code cannot inherit maintainer credentials, IAM roles, tailnet access, stale source, or a moving PR head.
Evidence
git diff --checknode scripts/docs-list.jsbash -n scripts/crabbox-untrusted-bootstrap.shshellcheck scripts/crabbox-untrusted-bootstrap.shpackage.json--fresh-pr,--no-hydrate, provider routing, shell execution, and timing JSONcbx_e99a39d99a98, runrun_ea7b74f23edf, PR headd2c61915b9f4d2cee98ee1e58cd18af363d54078crabbox inspectverifiednetwork=publicwith no Tailscale state before execution; the trusted script then passed IMDS no-role proof, Node archive checksum verification, Nodev24.15.0, pnpm11.2.2, full frozen-lockfile install, and bootstrap-script syntax validation