[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M698Q0PYEF22RZN1Z9SK69Z1":3,"skill-same:01M698Q0PYEF22RZN1Z9SK69Z1":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":54,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M698Q0PYEF22RZN1Z9SK69Z1","crabbox","Crabbox 远程 E2E 验证","Crabbox\u002FTestbox remote proof: portable provider routing, untrusted isolation, Linux\u002FmacOS\u002FWindows\u002FWSL2, live E2E, diagnostics, cleanup.","Crabbox\u002FTestbox 远程验证：可移植的 provider 路由、不可信环境隔离、Linux\u002FmacOS\u002FWindows\u002FWSL2、实时 E2E、诊断与清理。","openclaw\u002Facpx","openclaw","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F252820863?v=4","01M698P3FSAZ6B4R928ZF19KPT","01M698PWQVZW498MZG7BJS10KC",3430,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Facpx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcrabbox\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[5,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"macos","linux","windows","diagnostics","cleanup","routing","e2e","provider","live","isolation","proof","remote","portable","provider routing","2026-11-10 10:12:30",false,"---\nname: crabbox\ndescription: \"Crabbox\u002FTestbox remote proof: portable provider routing, untrusted isolation, Linux\u002FmacOS\u002FWindows\u002FWSL2, live E2E, diagnostics, cleanup.\"\n---\n\n# Crabbox\n\nRemote and clean-machine proof. Packages. Docker. Live providers. Desktop.\nCross-OS. The consumer repository owns when its validation needs a remote\nenvironment; Crabbox availability alone is not a reason to offload local work.\n\nBackends:\n\n- `blacksmith-testbox`: trusted maintainer source. Prepared CI. `tbx_...`.\n- `aws`: direct brokered Crabbox. Fresh PRs. Custom sync\u002Fenv\u002Fcapture. `cbx_...`.\n- `local-container`: Docker fallback. Not remote proof.\n- `ssh`: existing operator host. macOS\u002FWindows\u002FWSL2.\n\nAlways report provider, id, run URL, command, result. Never call Testbox “AWS\nCrabbox.”\n\n## Repository Contract\n\nThis canonical skill owns portable Crabbox policy and CLI operations only.\nConsumer-specific setup belongs in that repository's `AGENTS.md`, package\nscripts, hydration workflow, or another file outside the synchronized skill.\n\nResolve these placeholders from trusted repository instructions before running\nan example:\n\n- `\u003Ccheck-command>`: the repository's focused or broad validation command.\n- `\u003Cinstall-and-check-command>`: its clean-container install plus validation.\n- `\u003Ctrusted-bootstrap-script>`: a maintainer-reviewed untrusted-PR bootstrap\n  stored outside the untrusted checkout.\n- `\u003Ccontainer-image>` and `\u003Cowner\u002Frepo#number>`: the consumer's runtime and PR.\n\nNever invent a missing command or copy a command from another consumer.\n\n## Authorization and Isolation\n\nRoutine use of the configured Crabbox\u002FTestbox environment is part of completing\nthe requested task; do not ask for separate approval. This includes creating,\nreusing and stopping task-owned leases, temporary state, and clean checkouts or\nworktrees needed for proof or a task-required Crabbox repair.\n\nA dirty, missing or occupied checkout is a reason to use a clean task-owned\ncheckout or worktree, not a permission blocker. Preserve existing checkouts,\nbranches and unrelated edits. Keep source-trust, credential, production-access,\nbudget and publication boundaries; routine-use approval does not waive them.\n\n## Route First\n\nSource trust determines which providers are allowed. It does not select one.\n\n- Trusted development tests\u002Fchecks\u002Fbuilds: follow the consumer's local-first\n  policy; use remote when its environment is needed or explicitly requested.\n- Trusted + remote proof: inspect and preserve the resolved provider.\n- Blacksmith Testbox: use when already resolved or explicitly requested.\n- Direct AWS: use when AWS semantics are required or explicitly requested.\n- Untrusted contributor\u002Ffork: secretless fork CI or sanitized direct AWS.\n- Never untrusted code on credential-hydrated Testbox.\n- Never run untrusted repo wrapper\u002Fconfig locally.\n- No speculative warmup. Acquire when first heavy command ready. Reuse id. Stop.\n\nTest size, expected duration, and hydration failure do not authorize a provider\noverride. Omit `--provider` for normal work. Add it only when the user requests\nthat backend or the proof specifically tests its semantics.\n\n## Preflight\n\nRun from repo root.\n\n```sh\ncommand -v crabbox\ncrabbox --version\ncrabbox config show --json | jq '{provider, profile, target}'\ncrabbox run --help | sed -n '1,100p'\ncommand -v blacksmith\nblacksmith --version\n```\n\nSet the checked installed binary once. A consumer may document a different\ntrusted wrapper, but the shared skill never assumes a sibling checkout or\nrepository-specific script.\n\n```sh\nexport CRABBOX=\"$(command -v crabbox)\"\ntest -n \"$CRABBOX\"\n\"$CRABBOX\" --version\n\"$CRABBOX\" config show --json | jq '{provider, profile, target}'\n```\n\nRead `.crabbox.yaml` and `config show`; the resolved provider can also come from\nuser or environment configuration. If the binary is missing, follow the\nconsumer's trusted install instructions. For a source build or repair, verify\nthe canonical upstream and use a clean task-owned checkout or worktree. Never\nassume a sibling checkout is trusted or overwrite its unrelated work. Keep\ntask-specific builds separate from the operator's installed binary.\n\n## Trusted Testbox\n\nUse this section only when `config show` resolves `blacksmith-testbox` or the\nuser explicitly requested Testbox. These provider-neutral commands preserve the\nresolved configuration; add `--provider blacksmith-testbox` only for that\nexplicit override.\n\nOne-shot heavy gate:\n\n```sh\n\"$CRABBOX\" run --timing-json -- CI=1 \u003Ccheck-command>\n```\n\nSeveral commands: warm once, save id, reuse, stop.\n\n```sh\n\"$CRABBOX\" warmup --keep --timing-json\n\"$CRABBOX\" run --id \u003Ctbx_id> --timing-json -- \u003Ccheck-command>\n\"$CRABBOX\" stop \u003Ctbx_id>\n```\n\nRules:\n\n- One lease, one active command. No sync\u002Freclaim during run.\n- Native Testbox runs own sync, including reused `--id` runs. Never rely on\n  `--no-sync` to preserve a remote baseline: Blacksmith has no native bypass,\n  and released Crabbox versions can silently ignore the flag. An unchanged\n  intentional rerun is not a Testbox exception.\n- `--reclaim` only deliberate checkout-path ownership transfer.\n- Base\u002Fhead change: stop. Rewarm. No stale-lease override.\n- Raw SHA unreliable for `warmup --ref`; use branch\u002Ftag.\n- `blacksmith testbox list` hides states. Use `list --all` or\n  `status --id \u003Ctbx_id>`.\n- Testbox status\u002Fstop: `--id`. No status `--json`.\n- Delegated provider rejects `--fresh-pr`, `--full-resync`, `--script*`,\n  `--env-helper`, capture\u002Fdownload flags.\n\n## Untrusted AWS\n\nClean trusted default-branch checkout. Installed trusted Crabbox binary. Fresh\nlease per reviewed full head SHA. No instance role. No Tailscale. No hydration.\nOnly `CI` forwarded. Trusted bootstrap uploaded beside `--fresh-pr`.\n\n```sh\ncd \u003Cclean-trusted-default-branch-checkout>\nenv -u CRABBOX_AWS_INSTANCE_PROFILE \\\n  \"$CRABBOX\" config show --json | \\\n  jq -e '.aws.instanceProfile == \"\"' >\u002Fdev\u002Fnull\n\nenv -u CRABBOX_AWS_INSTANCE_PROFILE \\\n  -u CRABBOX_TAILSCALE \\\n  -u CRABBOX_TAILSCALE_AUTH_KEY \\\n  -u CRABBOX_TAILSCALE_AUTH_KEY_ENV \\\n  -u CRABBOX_TAILSCALE_EXIT_NODE \\\n  -u CRABBOX_TAILSCALE_EXIT_NODE_ALLOW_LAN_ACCESS \\\n  -u CRABBOX_TAILSCALE_HOSTNAME_TEMPLATE \\\n  -u CRABBOX_TAILSCALE_TAGS \\\n  \"$CRABBOX\" warmup \\\n  --provider aws --network public --tailscale=false \\\n  --tailscale-exit-node= \\\n  --tailscale-exit-node-allow-lan-access=false \\\n  --keep --timing-json\n\n\"$CRABBOX\" inspect --provider aws --id \u003Ccbx_id> --json | \\\n  jq -e '.network == \"public\" and .tailscale == null' >\u002Fdev\u002Fnull\n\nenv -u CRABBOX_AWS_INSTANCE_PROFILE \\\n  CRABBOX_ENV_ALLOW=CI \\\n  \"$CRABBOX\" run \\\n  --provider aws --id \u003Ccbx_id> \\\n  --fresh-pr \u003Cowner\u002Frepo#number> \\\n  --no-hydrate --timing-json \\\n  --script \u003Ctrusted-bootstrap-script> -- \\\n  \u003Cexpected_full_head_sha> \u003Ccheck-command>\n\nenv -u CRABBOX_AWS_INSTANCE_PROFILE \\\n  \"$CRABBOX\" stop --provider aws \u003Ccbx_id>\n```\n\nThe consumer-owned bootstrap proves the IMDSv2 IAM credential endpoint returns\n404, verifies the full SHA, removes inherited runtime injection variables,\npins the repository toolchain, isolates `HOME`, installs, and tests.\n\nHead moved? Stop. Rewarm. No reuse across revisions. No remote PR or no-role\nproof unavailable? Secretless fork CI. No exceptions.\n\n## Direct AWS\n\nTrusted direct run:\n\n```sh\n\"$CRABBOX\" run \\\n  --provider aws \\\n  --idle-timeout 90m --ttl 240m --timing-json \\\n  --shell -- \\\n  \"\u003Ccheck-command>\"\n```\n\nFocused:\n\n```sh\n\"$CRABBOX\" run \\\n  --provider aws --timing-json --shell -- \\\n  \"\u003Ccheck-command>\"\n```\n\nStale sync: retry `--full-resync` once. Still bad: fresh lease. One-shot should\nstop itself; after failure\u002Finterruption verify `\"$CRABBOX\" list --provider aws`.\n\nBroker auth, not cloud keys:\n\n```sh\n\"$CRABBOX\" config show\n\"$CRABBOX\" doctor\n\"$CRABBOX\" whoami\n\"$CRABBOX\" login --url \u003Cbroker-url> --provider aws\n```\n\nNormal validation asking for AWS keys usually means wrong path.\n\n## Fresh PR \u002F Container\n\n`--fresh-pr \u003Cowner\u002Frepo#123>`: clean remote checkout. Add `--apply-local-patch`\nonly for intentional local fixup. Direct providers only.\n\nUse local Docker only when the resolved configuration selects it or the user\nexplicitly requests a local-container lane:\n\n```sh\n\"$CRABBOX\" run \\\n  --provider local-container \\\n  --local-container-image \u003Ccontainer-image> \\\n  --no-hydrate --fresh-pr \u003Cowner\u002Frepo#number> \\\n  --timing-json --shell -- \\\n  \"\u003Cinstall-and-check-command>\"\n```\n\nReport `local-container`; not AWS\u002FTestbox. Keep `--no-hydrate` and use a\nrepository-local dependency cache when host-mounted caches cannot cross filesystems.\n\n## Observability\n\nPrefer built-ins:\n\n- `--preflight`: target\u002Fworkspace\u002Ftool probes.\n- `--debug --timing-json`: sync, command, total timing.\n- `--script \u003Cfile>` \u002F `--script-stdin`: safe multiline direct-provider command.\n- `--allow-env NAME` + `--env-from-profile \u003Cfile>`: exact direct-provider env.\n- `CRABBOX_ENV_ALLOW=NAME,...`: exact ambient env allowlist.\n- `--capture-stdout`, `--capture-stderr`: direct-provider local capture.\n- `--capture-on-fail`: test artifacts. Treat as secret-bearing until reviewed.\n- `--keep-on-failure`: retain failed lease for debugging.\n- `--results-auto` \u002F `--junit \u003Cpath>`: structured failure digest.\n- `CRABBOX_PHASE:\u003Cname>` lines: phase timing.\n\nSecrets: exact key only. One command. Never print. Never repo file. Never shell\nhistory. No safe injection path? Report live auth blocked. No fake-key upgrade to\n“live proof.”\n\n## Real E2E\n\n“Test in Crabbox” means user path, not merely remote unit tests.\n\n1. Reproduce entrypoint when feasible.\n2. Patch. Narrow local test.\n3. Remote install\u002Fupdate\u002Fonboard\u002FCLI\u002Fservice\u002FAPI path.\n4. Record provider, id, command, environment shape, redacted secret source,\n   observed result.\n5. Cleanup.\n\nRoute:\n\n- Install\u002Fpackage: pack tarball; install like user; matching Docker\u002Fpackage lane.\n- Provider\u002Fauth: real provider. Scrub unrelated provider vars.\n- Integration: setup, config, send\u002Freceive, and inspect redacted logs.\n- Service\u002Fsession\u002Ftool: real CLI or API; inspect persisted state and result.\n- Parser\u002Fconfig: focused tests enough only when OS\u002Fpackage\u002Fservice cannot matter.\n\nBefore\u002Fafter: same Testbox when practical. Detached temp worktrees under `\u002Ftmp`.\nNever checkout refs in synced root. For native Testbox, prepare and compare both\nrevisions within one synced invocation; later runs sync the local checkout again.\nFull-screen CLI: real PTY. Interactive Clack: exact arrows\u002FEnter; raw search\ntyping can lie.\n\nUse the consumer's documented temporary state\u002Fconfig directory so proof cannot\nmutate the operator's normal installation.\n\n## Desktop \u002F Cross-OS\n\nStatic hosts:\n\n```sh\n\"$CRABBOX\" run --provider ssh --target macos \\\n  --static-host \u003Cmacos-host> -- \u003Ccheck-command>\n\"$CRABBOX\" run --provider ssh --target windows --windows-mode normal \\\n  --static-host \u003Cwindows-host> -- pwsh -NoProfile -Command '\u003Ccheck-command>'\n\"$CRABBOX\" run --provider ssh --target windows --windows-mode wsl2 \\\n  --static-host \u003Cwindows-host> -- \u003Ccheck-command>\n```\n\nWindows\u002FWSL2: prefer Azure when advertised\u002Fconfigured. Native Windows uses\nOpenSSH + PowerShell + Git + tar. Actions hydration Linux-only.\n\nBrokered macOS: paid EC2 Mac. First quota\u002Fno-spend preflight. No silent\nsubstitution for Linux proof.\n\n```sh\n\"$CRABBOX\" admin hosts quota --provider aws --target macos \\\n  --region eu-west-1 --type mac2.metal --json\n\"$CRABBOX\" admin hosts allocate --provider aws --target macos \\\n  --region eu-west-1 --type mac2.metal --dry-run --json\n```\n\nHuman desktop: WebVNC preferred when the resolved provider supports it. Do not\nchange providers only to gain desktop support.\n\n```sh\n\"$CRABBOX\" warmup --desktop --browser --keep\n\"$CRABBOX\" desktop launch --id \u003Cid> \\\n  --browser --url https:\u002F\u002Fexample.com --webvnc --open --take-control\n\"$CRABBOX\" desktop doctor --id \u003Cid>\n\"$CRABBOX\" webvnc status --id \u003Cid>\n\"$CRABBOX\" artifacts collect --id \u003Cid> --all --output artifacts\u002F\u003Cslug>\n```\n\nBefore handoff, prove CLI\u002Fapp from neutral `~`:\n\n```sh\n\"$CRABBOX\" run --id \u003Cid> --shell -- \\\n  \"cd ~ && command -v \u003Ccommand> && \u003Ccommand> --version\"\n```\n\nVisible desktop alone proves nothing. Keep browser windowed unless capture task.\nNever commit proof assets to product repo.\n\n## Failure Triage\n\nIdentify layer: wrapper, provider, hydration, sync, SSH, command.\n\n```sh\n\"$CRABBOX\" doctor\n\"$CRABBOX\" status --id \u003Cid> --wait\n\"$CRABBOX\" inspect --id \u003Cid> --json\n\"$CRABBOX\" history --limit 20\n\"$CRABBOX\" logs \u003Crun_id>\n\"$CRABBOX\" results \u003Crun_id>\nblacksmith testbox list --all\nblacksmith testbox status --id \u003Ctbx_id>\n```\n\n- Provider\u002FCLI old: follow the consumer's trusted Crabbox update path.\n- Config\u002Fauth: `config show`, `doctor`, `whoami`.\n- Sync quiet\u002Fstale: `--debug --timing-json`, then `--full-resync` once.\n- Testbox capacity: no retry storm. Report the blocker; change providers only\n  with explicit user approval.\n- Command failure: read phase, failed test, JUnit, skipped shell segment. Focused\n  rerun first.\n- Cleanup unclear: list exact provider. Stop only owned ids.\n- Consumer wrapper broken: use the installed Crabbox CLI only to isolate the\n  wrapper, preserving the same resolved provider.\n\nCrabbox stop does not accept `--timing-json`.\n\n## Boundary\n\nCrabbox stays generic: lease, sync, command, logs, results, timing, cleanup.\nConsumer setup belongs in that repository's hydration workflow and scripts.\n","# Crabbox\n\nRemote and clean-machine proof. Packages. Docker. Live providers. Desktop.\nCross-OS. The consumer repository owns when its validation needs a remote\nenvironment; Crabbox availability alone is not a reason to offload local work.\n\nBackends:\n\n- `blacksmith-testbox`: trusted maintainer source. Prepared CI. `tbx_...`.\n- `aws`: direct brokered Crabbox. Fresh PRs. Custom sync\u002Fenv\u002Fcapture. `cbx_...`.\n- `local-container`: Docker fallback. Not remote proof.\n- `ssh`: existing operator host. macOS\u002FWindows\u002FWSL2.\n\nAlways report provider, id, run URL, command, result. Never call Testbox “AWS\nCrabbox.”\n\n## Repository Contract\n\nThis canonical skill owns portable Crabbox policy and CLI operations only.\nConsumer-specific setup belongs in that repository's `AGENTS.md`, package\nscripts, hydration workflow, or another file outside the synchronized skill.\n\nResolve these placeholders from trusted repository instructions before running\nan example:\n\n- `\u003Ccheck-command>`: the repository's focused or broad validation command.\n- `\u003Cinstall-and-check-command>`: its clean-container install plus validation.\n- `\u003Ctrusted-bootstrap-script>`: a maintainer-reviewed untrusted-PR bootstrap\n  stored outside the untrusted checkout.\n- `\u003Ccontainer-image>` and `\u003Cowner\u002Frepo#number>`: the consumer's runtime and PR.\n\nNever invent a missing command or copy a command from another consumer.\n\n## Authorization and Isolation\n\nRoutine use of the configured Crabbox\u002FTestbox environment is part of completing\nthe requested task; do not ask for separate approval. This includes creating,\nreusing and stopping task-owned leases, temporary state, and clean checkouts or\nworktrees needed for proof or a task-required Crabbox repair.\n\nA dirty, missing or occupied checkout is a reason to use a clean task-owned\ncheckout or worktree, not a permission blocker. Preserve existing checkouts,\nbranches and unrelated edits. Keep source-trust, credential, production-access,\nbudget and publication boundaries; routine-use approval does not waive them.\n\n## Route First\n\nSource trust determines which providers are allowed. It does not select one.\n\n- Trusted development tests\u002Fchecks\u002Fbuilds: follow the consumer's local-first\n  policy; use remote when its environment is needed or explicitly requested.\n- Trusted + remote proof: inspect and preserve the resolved provider.\n- Blacksmith Testbox: use when already resolved or explicitly requested.\n- Direct AWS: use when AWS semantics are required or explicitly requested.\n- Untrusted contributor\u002Ffork: secretless fork CI or sanitized direct AWS.\n- Never untrusted code on credential-hydrated Testbox.\n- Never run untrusted repo wrapper\u002Fconfig locally.\n- No speculative warmup. Acquire when first heavy command ready. Reuse id. Stop.\n\nTest size, expected duration, and hydration failure do not authorize a provider\noverride. Omit `--provider` for normal work. Add it only when the user requests\nthat backend or the proof specifically tests its semantics.\n\n## Preflight\n\nRun from repo root.\n\n```sh\ncommand -v crabbox\ncrabbox --version\ncrabbox config show --json | jq '{provider, profile, target}'\ncrabbox run --help | sed -n '1,100p'\ncommand -v blacksmith\nblacksmith --version\n```\n\nSet the checked installed binary once. A consumer may document a different\ntrusted wrapper, but the shared skill never assumes a sibling checkout or\nrepository-specific script.\n\n```sh\nexport CRABBOX=\"$(command -v crabbox)\"\ntest -n \"$CRABBOX\"\n\"$CRABBOX\" --version\n\"$CRABBOX\" config show --json | jq '{provider, profile, target}'\n```\n\nRead `.crabbox.yaml` and `config show`; the resolved provider can also come from\nuser or environment configuration. If the binary is missing, follow the\nconsumer's trusted install instructions. For a source build or repair, verify\nthe canonical upstream and use a clean task-owned checkout or worktree. Never\nassume a sibling checkout is trusted or overwrite its unrelated work. Keep\ntask-specific builds separate from the operator's installed binary.\n\n## Trusted Testbox\n\nUse this section only when `config show` resolves `blacksmith-testbox` or the\nuser explicitly requested Testbox. These provider-neutral commands preserve the\nresolved configuration; add `--provider blacksmith-testbox` only for that\nexplicit override.\n\nOne-shot heavy gate:\n\n```sh\n\"$CRABBOX\" run --timing-json -- CI=1 \u003Ccheck-command>\n```\n\nSeveral commands: warm once, save id, reuse, stop.\n\n```sh\n\"$CRABBOX\" warmup --keep --timing-json\n\"$CRABBOX\" run --id \u003Ctbx_id> --timing-json -- \u003Ccheck-command>\n\"$CRABBOX\" stop \u003Ctbx_id>\n```\n\nRules:\n\n- One lease, one active command. No sync\u002Freclaim during run.\n- Native Testbox runs own sync, including reused `--id` runs. Never rely on\n  `--no-sync` to preserve a remote baseline: Blacksmith has no native bypass,\n  and released Crabbox versions can silently ignore the flag. An unchanged\n  intentional rerun is not a Testbox exception.\n- `--reclaim` only deliberate checkout-path ownership transfer.\n- Base\u002Fhead change: stop. Rewarm. No stale-lease override.\n- Raw SHA unreliable for `warmup --ref`; use branch\u002Ftag.\n- `blacksmith testbox list` hides states. Use `list --all` or\n  `status --id \u003Ctbx_id>`.\n- Testbox status\u002Fstop: `--id`. No status `--json`.\n- Delegated provider rejects `--fresh-pr`, `--full-resync`, `--script*`,\n  `--env-helper`, capture\u002Fdownload flags.\n\n## Untrusted AWS\n\nClean trusted default-branch checkout. Installed trusted Crabbox binary. Fresh\nlease per reviewed full head SHA. No instance role. No Tailscale. No hydration.\nOnly `CI` forwarded. Trusted bootstrap uploaded beside `--fresh-pr`.\n\n```sh\ncd \u003Cclean-trusted-default-branch-checkout>\nenv -u CRABBOX_AWS_INSTANCE_PROFILE \\\n  \"$CRABBOX\" config show --json | \\\n  jq -e '.aws.instanceProfile == \"\"' >\u002Fdev\u002Fnull\n\nenv -u CRABBOX_AWS_INSTANCE_PROFILE \\\n  -u CRABBOX_TAILSCALE \\\n  -u CRABBOX_TAILSCALE_AUTH_KEY \\\n  -u CRABBOX_TAILSCALE_AUTH_KEY_ENV \\\n  -u CRABBOX_TAILSCALE_EXIT_NODE \\\n  -u CRABBOX_TAILSCALE_EXIT_NODE_ALLOW_LAN_ACCESS \\\n  -u CRABBOX_TAILSCALE_HOSTNAME_TEMPLATE \\\n  -u CRABBOX_TAILSCALE_TAGS \\\n  \"$CRABBOX\" warmup \\\n  --provider aws --network public --tailscale=false \\\n  --tailscale-exit-node= \\\n  --tailscale-exit-node-allow-lan-access=false \\\n  --keep --timing-json\n\n\"$CRABBOX\" inspect --provider aws --id \u003Ccbx_id> --json | \\\n  jq -e '.network == \"public\" and .tailscale == null' >\u002Fdev\u002Fnull\n\nenv -u CRABBOX_AWS_INSTANCE_PROFILE \\\n  CRABBOX_ENV_ALLOW=CI \\\n  \"$CRABBOX\" run \\\n  --provider aws --id \u003Ccbx_id> \\\n  --fresh-pr \u003Cowner\u002Frepo#number> \\\n  --no-hydrate --timing-json \\\n  --script \u003Ctrusted-bootstrap-script> -- \\\n  \u003Cexpected_full_head_sha> \u003Ccheck-command>\n\nenv -u CRABBOX_AWS_INSTANCE_PROFILE \\\n  \"$CRABBOX\" stop --provider aws \u003Ccbx_id>\n```\n\nThe consumer-owned bootstrap proves the IMDSv2 IAM credential endpoint returns\n404, verifies the full SHA, removes inherited runtime injection variables,\npins the repository toolchain, isolates `HOME`, installs, and tests.\n\nHead moved? Stop. Rewarm. No reuse across revisions. No remote PR or no-role\nproof unavailable? Secretless fork CI. No exceptions.\n\n## Direct AWS\n\nTrusted direct run:\n\n```sh\n\"$CRABBOX\" run \\\n  --provider aws \\\n  --idle-timeout 90m --ttl 240m --timing-json \\\n  --shell -- \\\n  \"\u003Ccheck-command>\"\n```\n\nFocused:\n\n```sh\n\"$CRABBOX\" run \\\n  --provider aws --timing-json --shell -- \\\n  \"\u003Ccheck-command>\"\n```\n\nStale sync: retry `--full-resync` once. Still bad: fresh lease. One-shot should\nstop itself; after failure\u002Finterruption verify `\"$CRABBOX\" list --provider aws`.\n\nBroker auth, not cloud keys:\n\n```sh\n\"$CRABBOX\" config show\n\"$CRABBOX\" doctor\n\"$CRABBOX\" whoami\n\"$CRABBOX\" login --url \u003Cbroker-url> --provider aws\n```\n\nNormal validation asking for AWS keys usually means wrong path.\n\n## Fresh PR \u002F Container\n\n`--fresh-pr \u003Cowner\u002Frepo#123>`: clean remote checkout. Add `--apply-local-patch`\nonly for intentional local fixup. Direct providers only.\n\nUse local Docker only when the resolved configuration selects it or the user\nexplicitly requests a local-container lane:\n\n```sh\n\"$CRABBOX\" run \\\n  --provider local-container \\\n  --local-container-image \u003Ccontainer-image> \\\n  --no-hydrate --fresh-pr \u003Cowner\u002Frepo#number> \\\n  --timing-json --shell -- \\\n  \"\u003Cinstall-and-check-command>\"\n```\n\nReport `local-container`; not AWS\u002FTestbox. Keep `--no-hydrate` and use a\nrepository-local dependency cache when host-mounted caches cannot cross filesystems.\n\n## Observability\n\nPrefer built-ins:\n\n- `--preflight`: target\u002Fworkspace\u002Ftool probes.\n- `--debug --timing-json`: sync, command, total timing.\n- `--script \u003Cfile>` \u002F `--script-stdin`: safe multiline direct-provider command.\n- `--allow-env NAME` + `--env-from-profile \u003Cfile>`: exact direct-provider env.\n- `CRABBOX_ENV_ALLOW=NAME,...`: exact ambient env allowlist.\n- `--capture-stdout`, `--capture-stderr`: direct-provider local capture.\n- `--capture-on-fail`: test artifacts. Treat as secret-bearing until reviewed.\n- `--keep-on-failure`: retain failed lease for debugging.\n- `--results-auto` \u002F `--junit \u003Cpath>`: structured failure digest.\n- `CRABBOX_PHASE:\u003Cname>` lines: phase timing.\n\nSecrets: exact key only. One command. Never print. Never repo file. Never shell\nhistory. No safe injection path? Report live auth blocked. No fake-key upgrade to\n“live proof.”\n\n## Real E2E\n\n“Test in Crabbox” means user path, not merely remote unit tests.\n\n1. Reproduce entrypoint when feasible.\n2. Patch. Narrow local test.\n3. Remote install\u002Fupdate\u002Fonboard\u002FCLI\u002Fservice\u002FAPI path.\n4. Record provider, id, command, environment shape, redacted secret source,\n   observed result.\n5. Cleanup.\n\nRoute:\n\n- Install\u002Fpackage: pack tarball; install like user; matching Docker\u002Fpackage lane.\n- Provider\u002Fauth: real provider. Scrub unrelated provider vars.\n- Integration: setup, config, send\u002Freceive, and inspect redacted logs.\n- Service\u002Fsession\u002Ftool: real CLI or API; inspect persisted state and result.\n- Parser\u002Fconfig: focused tests enough only when OS\u002Fpackage\u002Fservice cannot matter.\n\nBefore\u002Fafter: same Testbox when practical. Detached temp worktrees under `\u002Ftmp`.\nNever checkout refs in synced root. For native Testbox, prepare and compare both\nrevisions within one synced invocation; later runs sync the local checkout again.\nFull-screen CLI: real PTY. Interactive Clack: exact arrows\u002FEnter; raw search\ntyping can lie.\n\nUse the consumer's documented temporary state\u002Fconfig directory so proof cannot\nmutate the operator's normal installation.\n\n## Desktop \u002F Cross-OS\n\nStatic hosts:\n\n```sh\n\"$CRABBOX\" run --provider ssh --target macos \\\n  --static-host \u003Cmacos-host> -- \u003Ccheck-command>\n\"$CRABBOX\" run --provider ssh --target windows --windows-mode normal \\\n  --static-host \u003Cwindows-host> -- pwsh -NoProfile -Command '\u003Ccheck-command>'\n\"$CRABBOX\" run --provider ssh --target windows --windows-mode wsl2 \\\n  --static-host \u003Cwindows-host> -- \u003Ccheck-command>\n```\n\nWindows\u002FWSL2: prefer Azure when advertised\u002Fconfigured. Native Windows uses\nOpenSSH + PowerShell + Git + tar. Actions hydration Linux-only.\n\nBrokered macOS: paid EC2 Mac. First quota\u002Fno-spend preflight. No silent\nsubstitution for Linux proof.\n\n```sh\n\"$CRABBOX\" admin hosts quota --provider aws --target macos \\\n  --region eu-west-1 --type mac2.metal --json\n\"$CRABBOX\" admin hosts allocate --provider aws --target macos \\\n  --region eu-west-1 --type mac2.metal --dry-run --json\n```\n\nHuman desktop: WebVNC preferred when the resolved provider supports it. Do not\nchange providers only to gain desktop support.\n\n```sh\n\"$CRABBOX\" warmup --desktop --browser --keep\n\"$CRABBOX\" desktop launch --id \u003Cid> \\\n  --browser --url https:\u002F\u002Fexample.com --webvnc --open --take-control\n\"$CRABBOX\" desktop doctor --id \u003Cid>\n\"$CRABBOX\" webvnc status --id \u003Cid>\n\"$CRABBOX\" artifacts collect --id \u003Cid> --all --output artifacts\u002F\u003Cslug>\n```\n\nBefore handoff, prove CLI\u002Fapp from neutral `~`:\n\n```sh\n\"$CRABBOX\" run --id \u003Cid> --shell -- \\\n  \"cd ~ && command -v \u003Ccommand> && \u003Ccommand> --version\"\n```\n\nVisible desktop alone proves nothing. Keep browser windowed unless capture task.\nNever commit proof assets to product repo.\n\n## Failure Triage\n\nIdentify layer: wrapper, provider, hydration, sync, SSH, command.\n\n```sh\n\"$CRABBOX\" doctor\n\"$CRABBOX\" status --id \u003Cid> --wait\n\"$CRABBOX\" inspect --id \u003Cid> --json\n\"$CRABBOX\" history --limit 20\n\"$CRABBOX\" logs \u003Crun_id>\n\"$CRABBOX\" results \u003Crun_id>\nblacksmith testbox list --all\nblacksmith testbox status --id \u003Ctbx_id>\n```\n\n- Provider\u002FCLI old: follow the consumer's trusted Crabbox update path.\n- Config\u002Fauth: `config show`, `doctor`, `whoami`.\n- Sync quiet\u002Fstale: `--debug --timing-json`, then `--full-resync` once.\n- Testbox capacity: no retry storm. Report the blocker; change providers only\n  with explicit user approval.\n- Command failure: read phase, failed test, JUnit, skipped shell segment. Focused\n  rerun first.\n- Cleanup unclear: list exact provider. Stop only owned ids.\n- Consumer wrapper broken: use the installed Crabbox CLI only to isolate the\n  wrapper, preserving the same resolved provider.\n\nCrabbox stop does not accept `--timing-json`.\n\n## Boundary\n\nCrabbox stays generic: lease, sync, command, logs, results, timing, cleanup.\nConsumer setup belongs in that repository's hydration workflow and scripts.\n",{"name":5,"description":7},"main","1260171d808fa9fe094059586feb17b9eec01c63",".agents\u002Fskills\u002Fcrabbox",366,"https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Facpx","https:\u002F\u002Facpx.sh","https:\u002F\u002Fgithub.com\u002Fopenclaw","https:\u002F\u002Fopenclaw.ai","Your personal, open source AI assistant.","2026-11-14 13:18:04",{"source":9,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add openclaw\u002Facpx --skill crabbox",{"tool":65,"command":66},"bunx","bunx skills add openclaw\u002Facpx --skill crabbox",{"tool":68,"command":69},"pnpm","pnpm dlx skills add openclaw\u002Facpx --skill crabbox","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Facpx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcrabbox\u002FSKILL.md",true,[],[74,109],{"skillNo":75,"name":76,"nameZh":77,"description":78,"descriptionZh":79,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":80,"categories":81,"keywords":88,"publishedAt":44},"01M698Q1Y3DDYDRRQ05K2R9K7D","acpx","acpx 多智能体通信","Use acpx as a headless ACP CLI for agent-to-agent communication, including installed-agent inspection, prompt\u002Fexec\u002Fsessions workflows, session scoping, queueing, permissions, output formats, system-prompt overrides, and multi-agent flows authored with defineFlow\u002Fdecision\u002FdecisionEdge.","使用 acpx 作为 headless ACP CLI 进行 agent 间通信，包括已安装 agent 检查、prompt\u002Fexec\u002Fsessions 工作流、会话作用域、排队、权限、输出格式、system-prompt 覆盖，以及通过 defineFlow\u002Fdecision\u002FdecisionEdge 编写的多 agent 流程。","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Facpx\u002Fblob\u002Fmain\u002Fskills\u002Facpx\u002FSKILL.md",[82,85],{"categoryNo":83,"categoryName":84,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":86,"categoryName":87,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",[76,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108],"as","flows","decision","agent-to-agent","formats","multi-agent","scoping","workflows","agent communication","for","system","session","use","prompt","inspection","headless","communication","cli","permissions","sessions",{"skillNo":110,"name":111,"nameZh":112,"description":113,"descriptionZh":114,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":115,"categories":116,"keywords":119,"publishedAt":44},"01M698PZ4PXDAYKYCHQ4TG8ZVH","autoreview","结构化代码审查","Structured code review through the shared OpenClaw agent-skills installation.","通过共享安装的 OpenClaw agent-skills 进行结构化代码审查。","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Facpx\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fautoreview\u002FSKILL.md",[117,118],{"categoryNo":86,"categoryName":87,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[111,120,121,122,123,124,125,126,127,10],"structured","review","code","openclaw agent","agent-skills","installation","shared","code review"]