Skip to content

feat(cua): add delegated-run provider#679

Closed
coygeek wants to merge 6 commits into
openclaw:mainfrom
coygeek:cua-provider-delegated-run
Closed

feat(cua): add delegated-run provider#679
coygeek wants to merge 6 commits into
openclaw:mainfrom
coygeek:cua-provider-delegated-run

Conversation

@coygeek

@coygeek coygeek commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add the CUA delegated-run provider with config, bridge, claims, doctor, archive sync, retained reuse, stop, and cleanup lifecycle support
  • register CUA in provider metadata, docs, generated matrix, source map, changelog, and live smoke dispatch
  • add opt-in scripts/live-cua-smoke.sh coverage with explicit skip/environment/quota/validation/cleanup classifications

Verification

  • go test -count=1 ./internal/providers/cua ./internal/providers/all ./internal/cli
  • go test -count=1 ./...
  • go vet ./...
  • node scripts/generate-provider-matrix.mjs
  • node scripts/check-provider-matrix.mjs
  • bash scripts/check-docs.sh
  • go build -trimpath -o /tmp/crabbox-cua-integrated ./cmd/crabbox
  • (cd /tmp && /tmp/crabbox-cua-integrated providers)
  • (cd /tmp && /tmp/crabbox-cua-integrated doctor --provider cua --json) classified local environment as blocked because the CUA Python SDK is not installed
  • scripts/live-cua-smoke.sh classified skipped reason=missing_CRABBOX_CUA_LIVE with no live resources created
  • autoreview --mode branch --base origin/main --engine copilot --model auto reported no accepted/actionable findings

Notes

  • Codex AutoReview with gpt-5.5 was quota-blocked during closeout; Claude fallback was unavailable because Claude Code was not logged in. The structured Copilot AutoReview fallback passed cleanly.
  • Direct push to openclaw/crabbox was denied for the authenticated account, so this branch is published from the fork.

coygeek added 6 commits June 24, 2026 15:17
Register the CUA delegated-run provider with non-secret config, provider-prefixed flags, safe local-only API URL handling, generated metadata, and foundation tests.

Keep lifecycle and bridge behavior non-mutating and explicitly deferred so later plan branches can add claims, doctor probing, and run execution without changing the provider contract.
Implement the PLAN-02 CUA SDK bridge contract, conservative local claim helpers, and bridge-backed non-mutating doctor checks. The bridge uses JSON stdin/stdout through Runtime.Exec, maps Crabbox credentials only into the child process environment, and runs from a trusted cache directory to avoid repository-controlled Python imports.
Add the CUA delegated-run backend for warmup, fresh run, retained reuse, list, status, stop, cleanup, and archive sync through the Python SDK bridge.\n\nDocument the completed provider contract, add guarded live-smoke classification, and cover lifecycle, ownership, sync, timeout, env-forwarding, and cleanup behavior with focused tests.
@clawsweeper

clawsweeper Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat(cua): add delegated-run provider This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@coygeek

coygeek commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

Duplicate of #678

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant