1.5 KiB
1.5 KiB
| name | description | metadata | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| cto-sandbox-job | Sandcastle background job protocol for CTO. Use for broad, risky, long-running, AFK, or competitive branch attempts while WebUI remains the control plane. |
|
CTO Sandbox Job
Karpathy 4 Rules
- Think Before Coding — state why direct coding is insufficient and define branch, scope, provider, and success criteria.
- Simplicity First — use the existing
sandcastleadapter path; do not build a parallel orchestrator. - Surgical Changes — writable scope must be explicit; no host-root or ambient environment forwarding.
- Goal-Driven Execution — accept a job only after diff inspection, verification, and result classification.
Required Job Contract
target_repo,base_ref, uniquecto/<work-id>branch.- Sandbox provider: Docker or Podman by default.
noSandboxandbranchStrategy: headrequire JP approval.- Prompt, log, raw events, branch, commits, diff, and verification output are artifacts.
- Ingest result as
accept,rerun,manual-review, orreject.
Safety Rules
- Snapshot and report dirty worktree state before launch.
- Do not pass ambient
.envor credential stores into the sandbox. - Hosted agent providers must be disclosed under
external_orchestrators. - Cancellation must preserve artifacts and mark the run cancelled.