ticket.ingest.tool-request ​
Map a staff-actor tool-request envelope into a capability-gap task ticket.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-tickets |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
from_actor | string | Yes | — | — |
requested_capability | string | Yes | — | — |
justification | string | No | — | — |
message_uuid | string | No | — | — |
chain_uuid | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
ticket_uuid | string | No | — | — |
created | boolean | No | — | — |
occurrence_count | integer | No | — | — |
organization_uuid | string | No | — | Input field preserved in workflow state. |
from_actor | string | No | — | Input field preserved in workflow state. |
requested_capability | string | No | — | Input field preserved in workflow state. |
justification | string | No | — | Input field preserved in workflow state. |
message_uuid | string | No | — | Input field preserved in workflow state. |
chain_uuid | string | No | — | Input field preserved in workflow state. |
failed_at | string | No | — | ISO-8601 timestamp when action_fail recorded the failure |
failure_reason | string | No | — | Human-readable failure reason from action_fail |
failure_type | string | No | — | Engine-stamped failure category |
failed_action | string | No | — | Engine-stamped action that raised |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | string | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | execute | Accepted |
executing | No | No | — | complete | Applying the mutation |
completed | No | Yes | Yes | — | Done |
failed | No | Yes | No | — | Failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | execute | executing | Run the mutation |
executing | complete | completed | Finalize |
* (any state) | fail | failed | Catch-all failure |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "ticket.ingest.tool-request",
"initial_data": {
"organization_uuid": "value",
"from_actor": "value",
"requested_capability": "value"
}
}