Flow-to-Plan Compiler MVP
internal prototype · canonical JSON + Dreamborn Forge HTML
internal generated
build-execution · supabase_json

Flow-to-Plan Compiler MVP

build-execution artifact · for Bezel Workflow · phase W0-S2 · status complete

Planning Surface

Use this to decide what happens next.

Status

complete

Phase

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.

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
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.

Agent Handoff
Start Here

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.

Completion Evidence
  • 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
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.

Structured Payload

Machine-readable source fields

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