Skip to content

Commit e0bb1c8

Browse files
committed
docs: distinguish configured and selected Crabbox providers
1 parent f6e14d2 commit e0bb1c8

2 files changed

Lines changed: 36 additions & 26 deletions

File tree

‎.agents/skills/crabbox/SKILL.md‎

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ Apply trust, platform, and proof requirements before provider preference. An
3737
untrusted checkout must not enter a credential-hydrated backend, and a local
3838
container must not be reported as remote, cross-platform, or Testbox proof.
3939

40-
Within those constraints, select the provider in this order:
40+
Within those constraints, the wrapper selects the provider in this order:
4141

4242
1. A provider explicitly requested by the user for this task.
43-
2. `CRABBOX_PROVIDER`, which is Crabbox's documented per-machine provider
43+
2. Platform routing, such as automatic Azure selection for Windows/WSL2 when
44+
the binary advertises it.
45+
3. `CRABBOX_PROVIDER`, which is Crabbox's documented per-machine provider
4446
override.
45-
3. The repository default in `.crabbox.yaml`, currently
47+
4. The repository default in `.crabbox.yaml`, currently
4648
`blacksmith-testbox`.
4749

4850
For ordinary trusted work, omit `--provider` so the existing wrapper precedence
@@ -58,17 +60,20 @@ lease and execute the test inside that container; it is not permission to run
5860
`scripts/run-vitest.mjs` or another test command directly on the host. Report
5961
local-container proof as local Docker isolation, not remote or Testbox proof.
6062

61-
Before the first substantial run, record the effective selection without
62-
printing credentials:
63+
Before the first substantial run, record the configured environment/repository
64+
provider without printing credentials:
6365

6466
```sh
6567
crabbox config show --json | jq -r '.provider'
6668
```
6769

68-
Always report the provider Crabbox actually used. If the preferred provider is
69-
unavailable, retry once when the failure is plausibly transient, then choose a
70-
fallback that preserves the task's trust and proof requirements or report the
71-
blocker.
70+
This configured value is a fallback, not proof of the backend selected for a
71+
particular command. Treat the wrapper's emitted `[crabbox] ... provider=...`
72+
diagnostic as authoritative for the actual backend; it reflects explicit
73+
`--provider` overrides and automatic Windows/WSL2 Azure routing. If the selected
74+
provider is unavailable, retry once when the failure is plausibly transient,
75+
then choose a fallback that preserves the task's trust and proof requirements
76+
or report the blocker.
7277

7378
## First Checks
7479

@@ -85,18 +90,19 @@ pnpm crabbox:run -- --help | sed -n '1,120p'
8590

8691
- OpenClaw scripts prefer `../crabbox/bin/crabbox` when present. The user PATH
8792
shim can be stale.
88-
- Check `crabbox config show --json` for the effective provider. Omitting
89-
`--provider` honors `CRABBOX_PROVIDER` before the repository default, which
90-
is Blacksmith Testbox for normal Linux paths. The wrapper selects Azure for
91-
unqualified Windows/WSL2 runs when the local Crabbox binary advertises Azure.
92-
Pass `--provider aws` when direct brokered AWS semantics are required.
93+
- Check `crabbox config show --json` for the configured provider fallback.
94+
Omitting `--provider` honors `CRABBOX_PROVIDER` before the repository default,
95+
which is Blacksmith Testbox for normal Linux paths. The wrapper selects Azure
96+
for unqualified Windows/WSL2 runs when the local Crabbox binary advertises
97+
Azure. Pass `--provider aws` when direct brokered AWS semantics are required.
9398
- The brokered AWS image is a Linux developer image in `eu-west-1`; the repo
9499
config pins hot `eu-west-1a/b/c` placement so Fast Snapshot Restore can apply.
95100
If warmup drifts well past the minute-scale path, verify image promotion,
96101
region/AZ placement, and FSR state before blaming OpenClaw.
97102
- For trusted OpenClaw agent tests and computationally intensive work, use the
98-
repo wrapper with the effective provider. Use the repo Testbox helpers or
99-
explicit `--provider blacksmith-testbox` only when Testbox proof is required.
103+
repo wrapper and report the provider from its emitted diagnostic. Use the repo
104+
Testbox helpers or explicit `--provider blacksmith-testbox` only when Testbox
105+
proof is required.
100106
- Treat contributor/fork source as untrusted unless a maintainer explicitly
101107
approves credentialed execution after review. Run untrusted source only in
102108
secretless fork CI or sanitized direct AWS Crabbox. For every untrusted AWS
@@ -174,7 +180,8 @@ env -u CRABBOX_AWS_INSTANCE_PROFILE \
174180
crabbox stop --provider aws <cbx_id>
175181
```
176182

177-
- Always report the actual provider and id from wrapper/config output. A
183+
- Always report the actual provider from wrapper output and the id from the run
184+
details. Config output only describes the configured fallback. A
178185
`cbx_...` id is shared by direct providers, including local-container, so it
179186
does not identify AWS by itself; `tbx_...` identifies Blacksmith Testbox
180187
through Crabbox. If the output only says
@@ -682,7 +689,8 @@ Common Crabbox-only failures:
682689
- Provider missing or old CLI: use `../crabbox/bin/crabbox` from the sibling
683690
repo, or update/install Crabbox before retrying.
684691
- Bad local config: inspect `.crabbox.yaml`, `crabbox config show`, and
685-
`crabbox whoami`; ordinary trusted proof should use the effective provider.
692+
`crabbox whoami`; ordinary trusted proof should use the wrapper-selected
693+
provider reported by its diagnostic.
686694
Direct AWS must use brokered auth, not raw keys.
687695
- Slug/claim confusion: use the raw `cbx_...` / `tbx_...` id, or run one-shot
688696
without `--id`.
@@ -729,8 +737,9 @@ Raw Blacksmith footguns:
729737
- Treat `blacksmith testbox list` as cleanup diagnostics, not a shared reusable
730738
queue.
731739

732-
Use the effective provider for ordinary trusted OpenClaw agent tests and heavy
733-
work. When Testbox proof is required, use Blacksmith Testbox through Crabbox.
740+
Use the wrapper-selected provider for ordinary trusted OpenClaw agent tests and
741+
heavy work. When Testbox proof is required, use Blacksmith Testbox through
742+
Crabbox.
734743
If Blacksmith is down or quota-limited, do not keep probing it; switch to direct
735744
AWS only when that backend proves the same surface, and note the
736745
delegated-provider outage.
@@ -772,10 +781,11 @@ blacksmith auth login --non-interactive --organization openclaw
772781

773782
## Brokered AWS Backend
774783

775-
Use direct AWS when it is the operator's effective provider, when another
776-
provider is unavailable, when the task needs direct-provider semantics, or when
777-
an explicit backend comparison is required. Pass `--provider aws` when the task
778-
must override a different effective provider.
784+
Use direct AWS when it is explicitly selected or configured through
785+
`CRABBOX_PROVIDER`, when another provider is unavailable, when the task needs
786+
direct-provider semantics, or when an explicit backend comparison is required.
787+
Pass `--provider aws` when the task must override a different configured
788+
fallback.
779789

780790
```sh
781791
pnpm crabbox:warmup -- --provider aws --class beast --market on-demand --idle-timeout 90m

‎.agents/skills/openclaw-testing/SKILL.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ commands.
105105

106106
1. Inspect the diff and classify the touched surface:
107107
- any trusted agent-run test, focused or broad: run it on the pre-warmed
108-
effective Crabbox backend; local-container is valid Docker isolation but
109-
is not remote proof
108+
wrapper-selected Crabbox backend; local-container is valid Docker
109+
isolation but is not remote proof
110110
- changed gates, builds, typechecks, lint fan-out, Docker, package, E2E, or
111111
live work: run it through Crabbox; use a remote backend when the requested
112112
proof requires remote, cross-platform, or Testbox semantics

0 commit comments

Comments
 (0)