AIMAgentic Intent Model

ResolveTicket

helpdesk.tickets.resolve.aim · intent helpdesk.tickets.resolve · kind intent

Step 1: Verify the acting agent and the current status.STEP 1 · STEPVerify the acting agent …Step 2: Set `status="resolved"` and stamp `resolvedAt`STEP 2 · STEPSet `status="resolved"` …TicketStep 3: Emit the eventSTEP 3 · STEPEmit the eventTicketResolved
Workflow ExecuteResolve: 3 steps with decision gates and waits, generated straight from the model. Click any step to jump to its operation or event.
3 facets and 5 edges, reaching 1 node outside this intent, drawn from what the file declares. Each box leads to its lines. a declared edge and its verbrefs or holds, from a Schemain another intent✓ a requirement it satisfies
---aim: helpdesk.tickets.resolvekind: intentparent: helpdesk.tickets---# ResolveTicket## SummaryAn agent resolves a ticket. Its status moves to `resolved`, `resolvedAt` is stamped, and a `TicketResolved` event is emitted — which the parent's `NotifyRequester` flow consumes to email the requester.## Requirements- Only an agent may resolve a ticket.- A ticket may be resolved only from `open` or `in_progress`.- Resolving stamps `resolvedAt` and emits `TicketResolved`.## Tests- A requester (non-agent) is denied.- Resolving an already-resolved ticket is a safe no-op.- A `TicketResolved` event carries the ticket id and the resolver.## Contract: ResolveTicket### SummaryMark a ticket resolved on behalf of the acting agent.### Input```schematicketId: string required```### Authz- Caller must be an agent.### Expects- The ticket exists and is not already `resolved`.### Ensures- Orchestration is delegated to the resolve flow — [invokes](aim:#Flow:ExecuteResolve).- The ticket status becomes `resolved` and `resolvedAt` is set — [mutates](aim:#Record:Ticket).- A resolution event is emitted — [emits](aim:#Event:TicketResolved).### Returns- The updated Ticket.### Bindings- binds: `src/tickets/resolve.ts#resolveTicket` — as: handler- binds: `route:POST /api/tickets/:id/resolve` — as: route## Flow: ExecuteResolve### SummaryTransition the ticket to resolved and emit the event.### Steps1. Verify the acting agent and the current status.2. Set `status="resolved"` and stamp `resolvedAt` — [mutates](aim:#Record:Ticket).3. Emit the event — [emits](aim:#Event:TicketResolved).## Event: TicketResolved### SummaryEmitted when an agent resolves a ticket. Consumed by the parent's `NotifyRequester` flow.### Payload```schematicketId: string requiredresolvedBy: string requiredresolvedAt: datetime required```### Routing- Channel: `helpdesk.tickets.resolved`- Durable: true### Bindings- binds: `topic:helpdesk.tickets.resolved` — as: topic