Skip to content
Proud to collaborate with Microsoft for Startups

registry.module.apply ​

Validate, persist and compile an app module descriptor

Validate + persist a module descriptor and compile it into the governance registries (GOV-9, idempotent atomic compile).

Inputs: actor, organization_uuid, identity_app_uuid, slug (required); title, feature_flag, plan_gate, capabilities (list), audit_events (list), descriptor (object), dry_run (bool) optional. In one transaction keyed by plan_hash the apply persists the module row, upserts the feature-flag registry (descriptor.featureFlag), and compiles the capability catalog (descriptor.capabilities ∪ derived vw/data/document caps), the route registry (descriptor.routes) and the audit-event registry (descriptor.auditEvents ∪ the audit_events input) — all five stores in one atomic write. dry_run=true computes the plan and writes nothing. Outputs: slug, feature_flag, plan_gate, capabilities (the compiled catalog set), audit_events, plan_hash, created, version, dry_run, compiled (per-registry summary). Re-applying an unchanged descriptor is stable (same plan_hash, no dupes).

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-policy
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
actorstringYes——
organization_uuiduuidYes——
identity_app_uuiduuidYes——
slugstringYes——
titlestringNo——
feature_flagstringNo——
plan_gatestringNo——
capabilitieslistNo——
audit_eventslistNo——
descriptordictNo——
dry_runbooleanNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
slugstringNo——
feature_flagstringNo——
plan_gatestringNo——
capabilitieslistNo——
audit_eventslistNo——
plan_hashstringNo——
createdbooleanNo——
versionintegerNo——
dry_runbooleanNo——
compileddictNo——
identity_app_uuiduuidNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_layerstringNo——
failed_stepstringNo——
errorstringNo——
error_typestringNo——
reasonstringNo——

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": "registry.module.apply",
  "initial_data": {
    "actor": "value",
    "organization_uuid": "value",
    "identity_app_uuid": "value",
    "slug": "value"
  }
}