{
  "id": "studio-6667586f-946c-46f3-ad7c-f6c04e15e27b",
  "scope": "studio_project",
  "source_of_truth": "supabase.studio_artifacts",
  "source_path": "studio_artifacts/6667586f-946c-46f3-ad7c-f6c04e15e27b",
  "source_kind": "supabase_json",
  "visibility": "internal",
  "renderer_id": "design_doc.dreamborn-forge.generated.v1",
  "design_system": "dreamborn-design-system:forge",
  "generated_at": "2026-05-10T18:19:39.276Z",
  "artifact_type": "build-execution",
  "schema_version": "studio_artifact.generated.v1",
  "title": "Flow-to-Plan Compiler MVP",
  "summary": "build-execution artifact · for Bezel Workflow · phase W0-S2 · status complete",
  "status": "complete",
  "version": 1,
  "phase_id": "W0-S2",
  "project_id": "d7ee6565-842e-4d74-9eda-84c2ed2fe1d6",
  "project_slug": "redkey-bezel-workflow-d7ee6565",
  "project_title": "Bezel Workflow",
  "client_id": "redkey",
  "platform_project_id": null,
  "created_at": "2026-05-09T17:00:35.971277+00:00",
  "updated_at": "2026-05-09T17:00:35.46+00:00",
  "format_source": "supabase_json",
  "content_shape": [
    "kind",
    "repo",
    "title",
    "status",
    "changes",
    "project",
    "phase_id",
    "next_action",
    "completed_at",
    "verification"
  ],
  "content_data": {
    "kind": "build-execution",
    "repo": "/Users/justinking/Vaults/Projects/bezel-api",
    "title": "Flow-to-Plan Compiler MVP",
    "status": "complete",
    "changes": [
      "Added @bezel-api/workflow-compiler workspace with compileFlowToPlan.",
      "Compiler validates FLOW.json before emitting a runtime plan.",
      "Compiler emits existing PlanIntake-compatible { name, tasks } output.",
      "Compiler preserves step dependencies for sequential/fan-out flows.",
      "Compiler maps product role names to runtime role ids when roleIdByName is provided.",
      "Compiler writes safe __bezel metadata into task input for flow/step/connector/action/credential_ref/redaction/self-heal policy.",
      "Compiler warns on secret-shaped task input keys without copying raw values into metadata."
    ],
    "project": "Bezel Workflow",
    "phase_id": "W0-S2",
    "next_action": "W0-S3: add API/local route or product-facing adapter to submit compiled FLOW.json into existing plan materialization, plus a fixture-backed workflow run path.",
    "completed_at": "2026-05-09T17:00:35.460Z",
    "verification": [
      "npx vitest run packages/workflow-compiler/test/compile-flow.test.ts: 4/4 passed",
      "npx vitest run packages/workflow-contracts/test/flow.test.ts apps/workflow/test/workflow-screens.test.ts: 7/7 passed",
      "npm test: 43 files / 162 tests passed",
      "npm run typecheck: passed",
      "npm run build: passed",
      "npm install --package-lock-only: 0 vulnerabilities"
    ]
  },
  "sections": [
    {
      "title": "Next Action",
      "level": 2,
      "body": "W0-S3: add API/local route or product-facing adapter to submit compiled FLOW.json into existing plan materialization, plus a fixture-backed workflow run path."
    }
  ],
  "html_path": "projects/redkey-bezel-workflow-d7ee6565/artifacts/build-execution-w0-s2-6667586f.html",
  "json_path": "projects/redkey-bezel-workflow-d7ee6565/artifacts/build-execution-w0-s2-6667586f.json"
}