Provider integrations
Sandbox Loom supports provider integrations without making a provider the authority for policy, workspace access, approvals, quality gates, evidence, or commits.
For operators and project owners
OpenClaw acts as a conversational gateway for authenticated intent, status, approval requests, and redacted notifications. Hermes, OpenCode, and Codex act as bounded agent runtimes. In every case, Sandbox Loom retains the final decision over capabilities, execution, verification, and commits.
Use deterministic fixtures first. Live provider execution is opt-in, requires explicit credentials and environment configuration, and should use a small disposable project.
For builders and coding-agent integrators
Provider adapters consume the shared request/event contract. A provider must:
- preserve project, run, phase, slice, provider-session, and event-sequence correlation;
- normalize unknown provider events into explicit diagnostics;
- enforce workspace, capability, timeout, output, and environment bounds;
- stop at policy denials, approval requirements, quality-gate failures, cancellation, interruption, and stale status; and
- leave commit and evidence finalization to Sandbox Loom.
Workflow action boundary
Provider-backed workflows use the explicit
coding_agent.provider.request action. The task names a registered provider
and lifecycle operation; the executor supplies the canonical agent request.
The handler delegates through the provider gateway, so the normal policy
capability mapping, workspace binding, approval boundary, quality gates,
checkpointing, and commit handler remain in force. Existing
coding_agent.cli.request tasks remain the compatibility path for direct
local CLI adapters.
When configured, the project handler also records the correlated provider request and canonical events. Evidence includes provider, provider-session, run, runtime, project, phase, slice, operation, and event sequence; provider event payloads use the shared redaction rules.
For acceptance, keep local and OCI runs as separate records. A provider event
with runtime: oci must remain an OCI result even when namespace creation or
another host prerequisite fails; it must never be rewritten as a successful
local run. Runtime failures are evidence for the selected backend, not a
permission to fall back. The deterministic verification is:
The live-provider examples are separate from this deterministic test and are
opt-in because they require provider credentials or an authenticated OpenClaw
endpoint. See examples/17_provider_acceptance/README.md for setup and
cleanup.
Hermes recovery
Hermes session records are durable and bound to the project, run, phase, and slice. A session ID cannot be reused. Resume/reconciliation accepts only canonical, strictly ordered events; duplicate or regressed delivery and events after a terminal state fail closed. CLI nonzero exits preserve the provider status, exit status, and bounded stderr as a deterministic failure.
See the architecture overview for the public boundary. The
normative repository artifacts are specifications/architecture/agent-session-contract.md
and specifications/architecture/openclaw-hermes-integration.md; the offline
acceptance commands are listed there for builders.