Skip to content
Proud to collaborate with Microsoft for Startups

ticket.repository-policy.create ​

Create an immutable provider-blind repository delivery-policy version.

Create one immutable draft delivery-policy version.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-tickets
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
repository_uuidstringYes——
versionintegerYes——
allowed_target_refslistYes——
work_ref_policyjsonYes——
required_commandslistYes——
required_checkslistYes——
approval_policyjsonYes——
merge_policyjsonYes——
release_policyjsonYes——
build_policyjsonYes——
deployment_policyjsonYes——
evidence_policyjsonYes——
retention_policyjsonNo—Bounded workspace, ref, outbox, prompt/tool metadata, execution-log, and evidence retention. Coding-artifact retention remains runner-group scoped.
retry_budgetjsonYes——
cost_budgetjsonYes——

Output Schema ​

FieldTypeRequiredDefaultDescription
policydictNo——
createdbooleanNo——
activatedbooleanNo——
retiredbooleanNo——
organization_uuidstringNo—Input field preserved in workflow state.
repository_uuidstringNo—Input field preserved in workflow state.
versionintegerNo—Input field preserved in workflow state.
allowed_target_refslistNo—Input field preserved in workflow state.
work_ref_policyjsonNo—Input field preserved in workflow state.
required_commandslistNo—Input field preserved in workflow state.
required_checkslistNo—Input field preserved in workflow state.
approval_policyjsonNo—Input field preserved in workflow state.
merge_policyjsonNo—Input field preserved in workflow state.
release_policyjsonNo—Input field preserved in workflow state.
build_policyjsonNo—Input field preserved in workflow state.
deployment_policyjsonNo—Input field preserved in workflow state.
evidence_policyjsonNo—Input field preserved in workflow state.
retention_policyjsonNo—Input field preserved in workflow state.
retry_budgetjsonNo—Input field preserved in workflow state.
cost_budgetjsonNo—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
policy_uuidstringNo—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.repository-policy.create",
  "initial_data": {
    "organization_uuid": "value",
    "repository_uuid": "value",
    "version": 123,
    "allowed_target_refs": "value"
  }
}