Skip to content
Proud to collaborate with Microsoft for Startups

ticket.coding-artifact.reserve ​

Reserve an organization-scoped Git bundle identity bound to one delivery, work item, session, execution, lease, base OID, and head OID.

Reserve one immutable identity before a coding runner exports bytes.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-tickets
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes—Authenticated organization scope; control-plane injected, never caller authority.
delivery_uuidstringNo—Optional same-organization software delivery bound to the Git work; mismatches fail closed.
repository_uuidstringYes—Registered repository UUID; it must exactly match the Git work repository.
work_uuidstringYes—Ticket Git-work UUID whose clean exact OIDs are exported.
idempotency_keystringYes—Stable retry key for this one artifact identity; reuse with different immutable fields is rejected.
formatstringNogit_bundle_v3Portable artifact format; currently only git_bundle_v3.
object_formatstringYes—Native Git object format controlling exact OID length: sha1 or sha256.
base_oidstringYes—Exact latest acknowledged clean base Git OID; must match the selected object format and Git work.
head_oidstringYes—Exact latest acknowledged clean head Git OID; must match the selected object format and Git work.
session_uuidstringYes—AgentSession UUID bound to the exporting workspace lease.
execution_uuidstringYes—RunnerExecution UUID bound to the exporting workspace lease.
workspace_lease_uuidstringYes—WorkspaceLease UUID that must bind this work, session, execution, repository, base OID, and head OID.
expires_atstringYes—ISO-8601 retention deadline in the future and no more than 90 days from reservation.

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.reserve",
  "initial_data": {
    "organization_uuid": "value",
    "repository_uuid": "value",
    "work_uuid": "value",
    "idempotency_key": "value"
  }
}