ticket.reconcile.sweep ​
Sweep source-backed tickets whose fault went quiet; record quiescence and suggest retirement (auto-apply only for release-superseded incidents, opt-in).
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-tickets |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | No | — | — |
quiet_days | integer | No | — | Days of silence before a ticket is suggested for retirement (default 14). |
superseded_quiet_days | integer | No | — | Corroborating silence required before a release-superseded ticket may be auto-applied (default 3). |
deployed_versions | json | No | — | Map of project -> currently deployed version. Enables the strong release-supersession signal; without it only the time window applies. |
apply | boolean | No | — | Auto-apply the retirement for release-superseded incidents. Default false — suggestions wait for a human. |
dry_run | boolean | No | — | Evaluate and report without writing anything. |
source_types | list | No | — | — |
limit | integer | No | — | — |
now | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
scanned | integer | No | — | — |
suggested | integer | No | — | — |
superseded | integer | No | — | — |
applied | integer | No | — | — |
skipped | integer | No | — | — |
errors | integer | No | — | — |
dry_run | boolean | No | — | — |
results | list | No | — | — |
organization_uuid | string | No | — | Input field preserved in workflow state. |
quiet_days | integer | No | — | Input field preserved in workflow state. |
superseded_quiet_days | integer | No | — | Input field preserved in workflow state. |
deployed_versions | json | No | — | Input field preserved in workflow state. |
apply | boolean | No | — | Input field preserved in workflow state. |
source_types | list | No | — | Input field preserved in workflow state. |
limit | integer | No | — | Input field preserved in workflow state. |
now | 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.reconcile.sweep",
"initial_data": {
"organization_uuid": "value",
"quiet_days": 123,
"superseded_quiet_days": 123,
"deployed_versions": "value"
}
}