---
CAPYSQUASH documentation page.
---
Title: Managed AI Harness. Description: Deterministic Context v1 + managed plan/apply workflow for CAPYSQUASH.
MANAGED AI HARNESS
The engine and CLI provide deterministic artifacts. Managed AI orchestration (plan/apply) is handled by CAPYSQUASH managed services.
Command surface
Local OSS runtime does not expose ai-test, ai-demo, or ai-fix commands.
Use:
# deterministic context artifact
capysquash squash migrations/ --emit-context --context-output ./squashed/.capysquash.context.v1.json
# managed feature discovery
capysquash features --jsonContext v1 artifact
Default artifact name:
.capysquash.context.v1.json
The artifact includes deterministic analysis context, candidates, ambiguous cases, and context_hash.
Managed endpoints
Submit Context/Plan through managed APIs in entitled environments:
POST /api/harnessPOST /api/harness/handshakePOST /api/harness/sessions/{session_id}/approvePOST /api/harness/sessions/{session_id}/execute
Capability lookup:
GET /api/features/ai-harnessGET /api/harness/features/ai-harness(bearer-token flow)
Lock semantics
When managed harness is unavailable, responses return lock codes:
FEATURE_LOCKED_LOGIN_REQUIREDFEATURE_LOCKED_SUBSCRIPTION_REQUIRED
Recommended flow
- Run deterministic squash with
- emit-context - Validate output with
capysquash validate - Resolve managed feature capability
- Start a managed session with the context and plan
- Approve the reviewed session and execute with the returned single-use token
Notes
- Deterministic engine behavior remains available without managed services.
- Managed harness behavior is policy-gated by entitlement and plan.
- There is no client
auto_approveflag.
How is this guide?