Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeLinear
LibraryApp-tickets
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes—Authenticated organization scope; control-plane injected, never caller authority.
worker_uuidstringYes—Trusted storage-janitor identity that will own the lease.
lease_uuidstringYes—Caller-generated idempotent deletion lease UUID.
lease_secondsintegerYes—Deletion-lease duration from 30 through 900 seconds.
artifact_uuidstringNo—Optional exact elapsed artifact; omit to claim the oldest eligible organization artifact.

Output Schema ​

FieldTypeRequiredDefaultDescription
artifactdictNo—Provider-neutral artifact; excludes storage coordinates and credentials.
createdbooleanNo—True only when this idempotent call created the artifact.
changedbooleanNo—True only when this idempotent call advanced artifact state.
claimedbooleanNo—True only when this call acquired the lease.
organization_uuidstringNo—Input field preserved in workflow state.
delivery_uuidstringNo—Input field preserved in workflow state.
repository_uuidstringNo—Input field preserved in workflow state.
work_uuidstringNo—Input field preserved in workflow state.
idempotency_keystringNo—Input field preserved in workflow state.
formatstringNo—Input field preserved in workflow state.
object_formatstringNo—Input field preserved in workflow state.
base_oidstringNo—Input field preserved in workflow state.
head_oidstringNo—Input field preserved in workflow state.
session_uuidstringNo—Input field preserved in workflow state.
execution_uuidstringNo—Input field preserved in workflow state.
workspace_lease_uuidstringNo—Input field preserved in workflow state.
expires_atstringNo—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
artifact_uuidstringNo—Input field preserved in workflow state.
manifest_sha256stringNo—Input field preserved in workflow state.
artifact_sha256stringNo—Input field preserved in workflow state.
size_bytesintegerNo—Input field preserved in workflow state.
object_countintegerNo—Input field preserved in workflow state.
uncompressed_bytesintegerNo—Input field preserved in workflow state.
verifier_uuidstringNo—Input field preserved in workflow state.
lease_uuidstringNo—Input field preserved in workflow state.
lease_secondsintegerNo—Input field preserved in workflow state.
enabledbooleanNo—Input field preserved in workflow state.
reasonstringNo—Input field preserved in workflow state.
worker_uuidstringNo—Input field preserved in workflow state.
deleted_object_countintegerNo—Input field preserved in workflow state.
deleted_bytesintegerNo—Input field preserved in workflow state.
retryablebooleanNo—Input field preserved in workflow state.

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.coding-artifact.deletion-claim",
  "initial_data": {
    "organization_uuid": "value",
    "worker_uuid": "value",
    "lease_uuid": "value",
    "lease_seconds": 123
  }
}