Skip to content
Proud to collaborate with Microsoft for Startups

dgi.workflow.promote ​

Promote a DGI-compiled plan to a durable, versioned composition via the existing composition.save primitive (member build-time; no end-user path).

Promote a DGI-compiled plan to a durable composition via composition.save.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-dgi
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization UUID the composition is scoped to.
actorstringNo—Authoring member/service actor.
planjsonNo—The DGI-compiled plan to promote (generator or serializer dialect).
virtual_workflowjsonNo—Alias for the compiled plan (the reasoning DAG state key).
namestringNo—Human lineage name; defaults to the plan name.
descriptionstringNo—Optional human description for the saved composition.
created_by_uuiduuidNo—Authoring member UUID (provenance).
confirmbooleanNo—Required True to promote a plan that contains state-modifying steps.

Output Schema ​

FieldTypeRequiredDefaultDescription
statusstringNo—Terminal status.
composition_uuidstringNo—Saved composition UUID (absent when confirmation is required).
workflow_typestringNo—Runnable virtual.<uuid>@<version> type for the start boundary.
versionjsonNo—Saved version.
validation_passedbooleanNo—Whether composition.save validated the definition.
validation_errorslistNo—Validation errors.
validation_warningslistNo—Validation warnings.
state_modifyinglistNo—Distinct state-modifying workflow_types detected in the plan.
requires_confirmationbooleanNo—True when the plan was gated pending an explicit confirm flag.
summaryjsonNo—Plan summary.
failure_reasonstringNo—Failure reason.
errorstringNo—Error message.
error_typestringNo—Error class.
failed_atstringNo—Failure timestamp.
failed_at_statestringNo—State the workflow was in when it failed.
failed_layerstringNo—Engine-stamped layer index (DAG path).
failed_stepstringNo—Engine-stamped step name (DAG path).

States ​

StateInitialTerminalSuccessAuto-advanceDescription
PENDINGYesNo—execute—
COMPLETEDNoYesYes——
FAILEDNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
PENDINGexecuteCOMPLETED—
* (any state)failFAILED—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "dgi.workflow.promote",
  "initial_data": {
    "organization_uuid": "value"
  }
}