Skip to content
Proud to collaborate with Microsoft for Startups

ticket.reconcile.orphaned ​

Sweep non-terminal tickets stuck with a claim label but no pipeline stage label; flag them (queue + audit) and, opt-in, re-inject them into the pipeline.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-tickets
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringNo——
stale_hoursintegerNo—Hours a ticket must sit untouched before it is judged orphaned (default 24).
claim_labelstringNo—Label marking a ticket as claimed by the pipeline (default 'triage-claimed').
reentry_labelstringNo—Stage label added on apply to re-engage the pipeline (default 'pipeline:verify').
applybooleanNo—Re-inject flagged tickets by adding the re-entry stage label. Default false — flag only, and wait for a human.
dry_runbooleanNo—Evaluate and report without writing anything.
statuseslistNo——
limitintegerNo——
nowstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
scannedintegerNo——
flaggedintegerNo——
reinjectedintegerNo——
skippedintegerNo——
errorsintegerNo——
dry_runbooleanNo——
resultslistNo——
organization_uuidstringNo—Input field preserved in workflow state.
stale_hoursintegerNo—Input field preserved in workflow state.
claim_labelstringNo—Input field preserved in workflow state.
reentry_labelstringNo—Input field preserved in workflow state.
applybooleanNo—Input field preserved in workflow state.
statuseslistNo—Input field preserved in workflow state.
limitintegerNo—Input field preserved in workflow state.
nowstringNo—Input field preserved in workflow state.
failed_atstringNo—ISO-8601 timestamp when action_fail recorded the failure
failure_reasonstringNo—Human-readable failure reason from action_fail
failure_typestringNo—Engine-stamped failure category
failed_actionstringNo—Engine-stamped action that raised
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerstringNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—executeAccepted
executingNoNo—completeApplying the mutation
completedNoYesYes—Done
failedNoYesNo—Failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedexecuteexecutingRun the mutation
executingcompletecompletedFinalize
* (any state)failfailedCatch-all failure

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "ticket.reconcile.orphaned",
  "initial_data": {
    "organization_uuid": "value",
    "stale_hours": 123,
    "claim_label": "value",
    "reentry_label": "value"
  }
}