PUT /projects/{projectId}/agents/{agentId}/factory-policy

PUT /api/v1/projects/{projectId}/agents/{agentId}/factory-policy on the Caveman Cloud control plane. Requires the autopilot:manage scope. Not exposed to autonomous agents: Native user authority over factory case admission, bounded policy, binding approval and cancellation. An agent session must never read a case, resolve a setup blocker, approve an execution binding, admit paid improvement work or cancel a fence.

put/projects/{projectId}/agents/{agentId}/factory-policy

Request

  • Base URL
    https://api.caveman.so/api/v1
  • URL
    https://api.caveman.so/api/v1/projects/{projectId}/agents/{agentId}/factory-policy
  • Auth
    • OAuth 2
      Authorization code: /api/v1/oauth/authorize
      Token URL: /api/v1/oauth/token scopes: autopilot:manage
    • or HTTP bearer
    • or API key in cookie cave_access
    • or API key in cookie __Secure-cave_identity.session_token

Request body

expected_revisioninteger required
goalstring required
change_class'application-source' required
case_budget_microsstring required

Per-case cap. Initial approval also sets the shared allowance. Later edits retain its original amount; new_attempt explicitly approves an additional allowance.

publication_policy'evaluated-draft-only' | 'none' required
test_connectionsstring[]
model_connection_refstring nullable
pausedboolean

Stops new case admissions. Already-admitted cases retain their original authority until cancelled or otherwise fenced.

new_attemptboolean

Explicitly approves a new additional allowance. Identical retries using the original expected_revision return the same new approval; changed content conflicts. Ordinary edits reuse the existing allowance.

Response

Current policy and exact shared allowance. Legacy policies have no shared allowance.

latest_revisioninteger required

Changes

No recorded changes to this operation across all 1 revision of this API.