Managed AI Harness
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/apply-planPOST /api/workflow-harness
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
- Submit context/plan via managed workflow endpoint
- Execute governed apply after required review gates
Notes
- Deterministic engine behavior remains available without managed services.
- Managed harness behavior is policy-gated by entitlement and plan.
How is this guide?