ticket.coding-artifact.deletion-claim ​
Atomically lease physical deletion of one elapsed artifact while skipping legal holds and active janitors.
Lease one elapsed artifact to a trusted storage janitor.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-tickets |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | Authenticated organization scope; control-plane injected, never caller authority. |
worker_uuid | string | Yes | — | Trusted storage-janitor identity that will own the lease. |
lease_uuid | string | Yes | — | Caller-generated idempotent deletion lease UUID. |
lease_seconds | integer | Yes | — | Deletion-lease duration from 30 through 900 seconds. |
artifact_uuid | string | No | — | Optional exact elapsed artifact; omit to claim the oldest eligible organization artifact. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
artifact | dict | No | — | Provider-neutral artifact; excludes storage coordinates and credentials. |
created | boolean | No | — | True only when this idempotent call created the artifact. |
changed | boolean | No | — | True only when this idempotent call advanced artifact state. |
claimed | boolean | No | — | True only when this call acquired the lease. |
organization_uuid | string | No | — | Input field preserved in workflow state. |
delivery_uuid | string | No | — | Input field preserved in workflow state. |
repository_uuid | string | No | — | Input field preserved in workflow state. |
work_uuid | string | No | — | Input field preserved in workflow state. |
idempotency_key | string | No | — | Input field preserved in workflow state. |
format | string | No | — | Input field preserved in workflow state. |
object_format | string | No | — | Input field preserved in workflow state. |
base_oid | string | No | — | Input field preserved in workflow state. |
head_oid | string | No | — | Input field preserved in workflow state. |
session_uuid | string | No | — | Input field preserved in workflow state. |
execution_uuid | string | No | — | Input field preserved in workflow state. |
workspace_lease_uuid | string | No | — | Input field preserved in workflow state. |
expires_at | 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 |
artifact_uuid | string | No | — | Input field preserved in workflow state. |
manifest_sha256 | string | No | — | Input field preserved in workflow state. |
artifact_sha256 | string | No | — | Input field preserved in workflow state. |
size_bytes | integer | No | — | Input field preserved in workflow state. |
object_count | integer | No | — | Input field preserved in workflow state. |
uncompressed_bytes | integer | No | — | Input field preserved in workflow state. |
verifier_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. |
enabled | boolean | No | — | Input field preserved in workflow state. |
reason | string | No | — | Input field preserved in workflow state. |
worker_uuid | string | No | — | Input field preserved in workflow state. |
deleted_object_count | integer | No | — | Input field preserved in workflow state. |
deleted_bytes | integer | No | — | Input field preserved in workflow state. |
retryable | boolean | 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.coding-artifact.deletion-claim",
"initial_data": {
"organization_uuid": "value",
"worker_uuid": "value",
"lease_uuid": "value",
"lease_seconds": 123
}
}