Skip to main content

WorkCharts & Workflow Builder Spec

How do we let business users visually orchestrate AI agents and human workers without writing code?

Build Contract

#FeatureFunctionOutcomeJobState
1Drag-and-drop canvasVisual workflow composition from skillsBusiness users build workflows seamlesslyBuild automation without engineersBuild
2Skill/Stage LibraryBrowse capabilities, drag to canvasExposes Workflow Engine abilitiesUnderstand automation capabilitiesBuild
3WorkChart TriggersSchedule (cron), event, or manual triggerAutomates when the workflow startsLet the process run itselfBuild
4Confidence ThresholdsSlider controls for confidence gatesUsers adjust risk toleranceTrust automationBuild
5Escalation EditorEscalate low-confidence outputs to humanClear paths for AI-to-Human handoffsKeep human in the loopBuild
6Execution MonitorReal-time dashboard of running workflowsLive confidence scores & stage progressMonitor automationBuild
7Task ReceiptsStructured job_outcomes (cost/quality)Proves what the engine executedValidate ROI and Agent efficiencyBuilt

Principles

Problem Statement (SIO)

When operating a business factory (Situation), Ops Managers (who) struggle to execute scalable business processes autonomously (Intention) because SOPs are just text in Notion, and the workflow engine requires writing code (Obstacle). This creates a hardest thing: bridging the gap between the process an Ops Manager understands and the code the machine executes without requiring an engineer. This costs weeks of engineering delay for every new automated workflow. Currently they manually ping the team on Slack or file Jira tickets to request automations.

The Job

ElementDetail
SituationWhen an Ops Manager wants to automate a standard operating procedure (SOP)
IntentionThey need it to be executed by AI where possible and Humans where necessary
ObstacleThe engine is inaccessible because it requires coding, and Notion SOPs aren't executable

Why Now

All ventures (Stackmates, Dreamineering, etc.) are generating SOPS and deploying features, but the execution bridge between the Workflow Engine and the Ops Manager is completely missing. Ops Managers are blind and blocked by engineering.

Design Constraints

ConstraintRationale
Compose, don't generateThe Builder must NOT generate new capabilities. It only composes registered skills from the engine.

Refusal Spec

CategoryActionResponse
Code EditingUser tries to edit capability source code in builderRefuse: "The Builder composes capabilities. Code edits belong in the Skill Registry."

Performance

Priority Score

PRIORITY = Pain x Demand x Edge x Trend x Conversion

DimensionScore (1-5)Evidence
Pain4Ops Managers are fully blocked, waiting weeks for developers.
Demand4Stackmates, Prettymint, etc., directly need this builder.
Edge4We integrate autonomous AI assessment (Confidence) natively into process orchestration.
Trend5AI agent orchestration is moving from CLI to visual, no-code compositions.
Conversion3Path to revenue is through platform usage efficiency.
Composite960Build Now

Quality Targets

80% of workflows created successfully without a single line of custom code written by the Ops Manager.

Failure Budget

Failure TypeBudgetResponse
Workflow Stalls5%Escalate to Human-in-the-loop

Eval Strategy

WhatHowWhen
Creation TimeStart-to-DeployEvery run

Kill signal: If average workflow creation takes more than 30 minutes after onboarding, the builder is too complex.

Platform

Current State

ComponentBuiltWiredWorkingNotes
Workflow Engine CoreYesYesYesAPI only
job_outcomes tableYesYesYesReceipts exist
workchart_triggersNoNoNoNeeded for scheduling
Builder CanvasNoNoNoFrontend React Component needed
Execution MonitorNoNoNoFrontend React Component needed

Human Fallback

TriggerEscalation PathSLA
Confidence dropping below thresholdEscalate to Human form (Awaiting Approval)4 Hours

Build Ratio

~40% composition (Workflow Engine), ~60% new code (React UI & Trigger logic)

Protocols

Build Order

SprintFeaturesWhatEffortAcceptance
03, 7WorkChart Schema & TriggersHighCrons fire WorkCharts successfully
11, 2Visual Builder CanvasHighCan drag and drop 2 nodes and save
24, 5Confidence & EscalationMedLogic paths work based on Engine Output
36Execution Monitor & ReceiptsMedLive view of progress is rendering

Commissioning

#FeatureInstallTestOperationalOptimize
1Drag-and-drop canvas

Players

Demand-Side Jobs

Job 1: Ops Manager

Situation: When defining a standard procedure for a venture.

ElementDetail
Struggling momentWriting SOPs in Notion that no one strictly follows
Current workaroundPinging team on Slack / Jira tickets
What progress looks likeA self-executing graph of tasks that routes effectively
Hidden objection"I don't trust the AI to do this right, I need to see its confidence."
Switch triggerWhen processes break because a step was skipped

Role Definitions

RoleAccessPermissions
Ops ManagerBuilder & MonitorRead/Write workflows, Escalate
DeveloperSkill RegistryRead/Write Engine Capabilities

Relationship to Other PRDs

PRDRelationshipData Flow
Workflow EngineParentBuilder reads skills, Engine executes

Context