How it works
Sandbox
Workers build and prove a change in a local sandbox against one source revision. It produces evidence, not deployments.
On this page
What it does
The local sandbox is one way to verify a change before release (a sensible default your Clankie lead can configure, not mandatory for every team). Teams that prefer verifying in staging, landing dark behind a feature flag for the agent to test on its own cohort, patching straight to prod on high-confidence fixes, or proving changes against canary signals can tune their rollout policy that way instead.
When you use the sandbox, a run takes one source revision and a profile, runs the requested checks, and returns evidence bound to that revision.
- Local. It runs on your machine or the project's build machine.
- Revision-bound. Every piece of evidence names the source revision it ran against. Change the revision and the evidence no longer counts for the decision.
- Deploys nothing. The sandbox never touches production. Release happens only through your configured rollout policy.
Profiles
A profile names the services a run needs, such as a database or a queue, so checks run against something close to the real stack.
interface SandboxProfile {
name: string;
services: string[];
}A run
interface Sandbox {
profiles(): Promise<SandboxProfile[]>;
run(input: {
cwd: string;
sourceRevision: string;
profile: string;
checks: string[];
}): Promise<SandboxRun>;
}
interface SandboxRun {
id: string;
profile: string;
sourceRevision: string;
evidence: Evidence[]; // recordings, checks, load tests, base comparison
unsupported: string[]; // services the profile asked for that the run could not prove
}Evidence it produces
| Kind | What it holds |
|---|---|
recording |
The feature running, played in the decision with accessible media controls |
check |
Acceptance checks and tests, pass or fail |
load-test |
Latency and error rate under load |
base-comparison |
The same checks against the base revision |
screenshot, log |
Supporting detail |
Each item carries its environment (sandbox profile, device, host), an outcome (pass, fail or inconclusive) and its provenance. Only live evidence for the decision's current revision counts as proof; fixture and replay are labelled and never stand in for it.