Problem
The API replies status: decision.status / actionTaken: decision.actionTaken, but execution may flip status to escalated and actionTaken is always null: tickets stored as escalated are reported resolved with actionTaken: null.
Where
app/api/inbound/route.ts (response built from pre-execution decision) + lib/policy.ts.
Acceptance
Add a failing test first posting a resolvable ticket whose execution fails, asserting response status === "escalated". Then fix.
Problem
The API replies
status: decision.status/actionTaken: decision.actionTaken, but execution may flip status to escalated andactionTakenis alwaysnull: tickets stored as escalated are reportedresolvedwithactionTaken: null.Where
app/api/inbound/route.ts(response built from pre-execution decision) +lib/policy.ts.Acceptance
Add a failing test first posting a resolvable ticket whose execution fails, asserting response
status === "escalated". Then fix.