ai-engine

Create an Alloy decision

Changed on

Creates a schema-validated AlloyDecision (v2.0.0). P0/P1 decisions are routed for human approval per the approval matrix. rawInput triggers RAG evidence enrichment automatically.

post/ai/decision

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/ai/decision
  • Auth: one of:
    • API key in cookie session
    • HTTP bearer

Request body

recommendedActionstring required
rationaleSummarystring required
riskLevel'P0' | 'P1' | 'P2' | 'P3' | 'P4' required
confidencenumber
workflowIdstring nullable
signalIdsstring[]
ownerSuggestionstring nullable
fallbackPlanstring nullable
modelRoutestring
rawInputstring

If provided, triggers RAG retrieval to enrich evidenceRefs

Response

Decision created

messagestring

Changes

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • info

      removed the non-success response with the status

    • info

      endpoint added