Repository navigation
docs: respect configured Crabbox provider for agent tests - #106789
clawsweeper[bot] wants to merge 8 commits into
Conversation
|
Codex review: blocked before merge. Reviewed October 6, 2026, 1:17 PM ET / 17:17 UTC (Revision 24). ClawSweeper reviewWhat this changesThe branch aligns agent-testing guidance with configured Crabbox providers and makes changed-check delegation provider-neutral unless Testbox is explicitly requested. Merge readiness⛔ Blocked before merge - 4 items remain Keep open for a scoped maintainer disposition. Current main already honors eligible provider preferences, but this protected, maintainer-engaged PR conflicts with newer workload routing. No introduced correctness defect was established; earlier claims that it removes ci-fast routing are not supported by a verified merge result. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s development checks use Crabbox to select an execution environment and run validation. Agent guidance and the changed-check launcher feed provider preferences into the wrapper, which applies platform and workload eligibility before dispatch. flowchart TD
A[Agent validation request] --> B[Source trust and proof requirements]
B --> C[Changed-check launcher]
D[Operator provider preference] --> E[Crabbox routing]
C --> E
E --> F[Eligible execution environment]
F --> G[Validation results and provider attribution]
Decision needed
Why: Current main already implements preference precedence but deliberately excludes local-container from ci-fast; resolving the stale branch cannot safely choose a broader eligibility policy from the July approval. Before merge
Agent review detailsSecurityNone. PR surfaceTests +24, Docs +36, Other +12. Total +72 across 7 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one canonical routing path that honors eligible operator preferences, preserves current workload restrictions, and carries forward only behavior still missing from main. Do we have a high-confidence way to reproduce the issue? No current-main reproduction of ignored eligible provider preferences was established: current source honors CLI and environment selections. local-container with ci-fast is rejected by the current eligibility contract, which is a separate policy question. Is this the best way to solve the issue? Unclear for the remaining branch: using the existing provider-selection owner is the right approach, but current main already supplies it. The best remaining change must be narrowed against that implementation rather than restoring the older launcher. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c10679395819. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (23 earlier review cycles; latest 8 shown)
|
|
🦞✅ Source: Why human review is needed: What the maintainer can do as a next step: I added |
fc9925f to
3e26f83
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
3e26f83 to
87d3e60
Compare
|
@clawsweeper re-review The replacement now restores the original provider-selection behavior at exact head Provider order for eligible trusted heavy proof is now: explicit user request, then Fresh proof:
Please review this exact head. Approval/merge remains manual. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer/operator decision for this PR: I explicitly approve the compatibility-sensitive provider precedence for ordinary eligible trusted heavy proof:
Source-trust, platform, and proof requirements remain stronger than preference. In particular, untrusted source still cannot use credential-hydrated Testbox, and remote/cross-platform proof still requires a provider that satisfies that proof contract. Head @clawsweeper re-review This is approval of the provider-policy decision, not a request to auto-approve or auto-merge the PR. GitHub approval/merge remains manual. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞✅ Source: Why human review is needed: What the maintainer can do as a next step: I added |
|
Thanks for the PR. We're closing older pull requests that have gone stale against current Current main already honors an eligible configured Crabbox provider for agent test commands, and this branch now conflicts with the newer workload routing and has failing CI since July. If this change is still needed, please open a fresh PR against current |
Related: #104485
What Problem This Solves
Ordinary Crabbox agent commands were forced onto Blacksmith Testbox even when an operator had selected another eligible provider through
CRABBOX_PROVIDER. That made machine-local provider preferences ineffective and could also cause local-container execution to be described as remote/Testbox proof.Why This Change Was Made
Aligns the root policy and both Crabbox/testing skills on one provider-selection contract:
--provider, allowingCRABBOX_PROVIDERto override the repository default.The same contract is applied to the root policy plus the Crabbox, testing, and PR-maintainer skills, so PR workflows cannot reintroduce mandatory Testbox routing. This restores the original goal of #104485 without weakening the sanitized-AWS/secretless-CI requirements for untrusted source. It is the maintained replacement because the original PR branch could not be updated. Original contributor: @hxy91819.
User Impact
Operators can set a machine-local preference such as
CRABBOX_PROVIDER=local-containerwithout changing the shared skill. AWS or another eligible provider can be selected the same way. Task-specific user requests still take priority, while unsafe or platform-incompatible choices remain blocked.Evidence
32452922d779597437621cdf63fb02d740b49837.CRABBOX_PROVIDERoverrides the configured provider, and an explicit CLI--providerremains the final override.local-container-> local Docker proof with no explicit provider; unset env -> Blacksmith fallback; untrusted credential-hydrated Testbox request -> sanitized AWS or secretless CI.scripts/pr prepare-runis a merge-gate verification contract, not provider selection.--provider:node scripts/crabbox-wrapper.mjs run --id cbx_b5d22ebde587 --no-sync --timing-json -- corepack pnpm test test/scripts/crabbox-wrapper.test.ts.provider=local-container, leasecbx_b5d22ebde587, local Docker proof, 195/195 tests passed, exit 0. Cleanup verified: container removed and lease status returned not found.oxfmt --check AGENTS.md .agents/skills/crabbox/SKILL.md .agents/skills/openclaw-testing/SKILL.mdgit diff --check