ticket.git-delivery.publish-replay ​
Replace the newest retryable failed publication attempt with a fresh request for the head the work has since acknowledged.
Re-request publication after a retryable failure, deriving every field.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-tickets |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
delivery_uuid | string | Yes | — | The delivery to re-drive. Every other field of the replacement request -- sequence, head, destination ref, policy digest, binding, artifact -- is derived from the attempt being replaced and the work's acknowledged head, so there is nothing to look up and nothing to get wrong. Refused unless the delivery is publishing, the newest attempt failed as retryable, nothing is active, and the acknowledged head equals the head that attempt requested. |
actor_type | string | No | — | — |
actor_uuid | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
attempt | dict | No | — | — |
created | boolean | No | — | — |
claimed | boolean | No | — | — |
changed | boolean | No | — | — |
confirmed | boolean | No | — | — |
organization_uuid | string | No | — | Input field preserved in workflow state. |
delivery_uuid | string | No | — | Input field preserved in workflow state. |
sequence | integer | No | — | Input field preserved in workflow state. |
idempotency_key | string | No | — | Input field preserved in workflow state. |
requested_head_oid | string | No | — | Input field preserved in workflow state. |
destination_ref | string | No | — | Input field preserved in workflow state. |
policy_digest | string | No | — | Input field preserved in workflow state. |
binding_uuid | string | No | — | Input field preserved in workflow state. |
artifact_uuid | string | No | — | Input field preserved in workflow state. |
expected_remote_oid | string | No | — | Input field preserved in workflow state. |
actor_type | string | No | — | Input field preserved in workflow state. |
actor_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 |
broker_uuid | string | No | — | Input field preserved in workflow state. |
lease_uuid | string | No | — | Input field preserved in workflow state. |
lease_seconds | integer | No | — | Input field preserved in workflow state. |
attempt_uuid | string | No | — | Input field preserved in workflow state. |
broker_binding_key | string | No | — | Input field preserved in workflow state. |
broker_capabilities | list | No | — | Input field preserved in workflow state. |
outcome | string | No | — | Input field preserved in workflow state. |
native_push_ref | string | No | — | Input field preserved in workflow state. |
provider_request_ref | string | No | — | Input field preserved in workflow state. |
evidence | json | No | — | Input field preserved in workflow state. |
observed_remote_oid | string | No | — | Input field preserved in workflow state. |
verifier_type | string | No | — | Input field preserved in workflow state. |
verifier_uuid | string | No | — | Input field preserved in workflow state. |
failure_class | string | No | — | Input field preserved in workflow state. |
retryable | boolean | No | — | Input field preserved in workflow state. |
required_action | json | No | — | Input field preserved in workflow state. |
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.git-delivery.publish-replay",
"initial_data": {
"organization_uuid": "value",
"delivery_uuid": "value"
}
}