Ensure eval suite (config-as-code converge)
Ensure eval suite (config-as-code converge)
Idempotently converge a repo-defined eval suite (target + cases + graders) onto the platform. Identity is the suite name + account scope; the target flow/agent is resolved by name. Hash-only probes skip the payload in the steady state (a miss is a normal 200 `definitionRequired` response, not an error); full requests create the suite or replace its cases when the canonical content hash differs. Non-executing: never runs the eval. The response always carries the server-computed canonical hash.
Authentication
AuthorizationBearer
API key or Clerk session token
Request
This endpoint expects an object.
name
contentHash
definition
Response
Converge result: unchanged | created | updated | definitionRequired (hash miss — retry with the full definition)
OR
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
500
Internal Server Error