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)
  • Auth
    • API key in cookie session
    • or 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 fallbackPlan became not nullable

    • breaking

      the request property ownerSuggestion became not nullable

    • breaking

      the request property workflowId became not nullable

    1 more change in this revision