Skip to main content

18. Build order

Components

Each component is written in one form, kept in one place, and runs in one place.

ComponentFormKept inRuns on
Engine hostOne C# project (.NET isolated Azure Functions): API controllers, WorkflowInterpreter orchestration, Decider, activity functions, event, schedule, and archival functionsEngine repositoryThe Azure Functions app
Database schemaSQL migration scripts, applied in orderEngine repositoryAzure SQL
InfrastructureBicep templates for every Azure resource on page 17Engine repositoryApplied to the resource group by the pipeline
Gateway configurationAPI Management policies: token validation, role checks, per-workflow tool and agent scope (generated), AI policies, agent endpointsEngine repository; the tool scope fragment is regenerated by the pipelineAPI Management
Worker SDKsWos.Worker (C#, NuGet package) and wos_worker (Python package)Engine repository, published to the organisation's package feedInside each worker
Workflow definitionsJSON files, one per workflow, plus task definitions, event handlers, schedules, and instruction textsWorkflows repositoryRegistered into Azure SQL through the API; read by the interpreter
WorkersOne container image per code area, built on a worker SDKOne repository per code areaContainer Apps, or any host with outbound HTTPS
Teams bridgeA small service: posts cards, receives button clicks, calls the Task APIIts own repositoryA Functions app or Container App
PipelinesGitHub Actions workflows: validate and register definitions, generate gateway policy, deploy host, build worker imagesEach repositoryGitHub
Operator UIA static web application over the engine APIIts own repositoryAzure Static Web Apps

Steps

StepBuildComponents touchedProves
1Azure SQL schema; Decider; WorkflowInterpreter; HttpActivity; RecordActivity; metadata and workflow endpointsInfrastructure (Functions, DTS, Azure SQL, gateway), schema, engine host, gateway token validation, pipeline for the hostA definition made only of HTTP tasks runs and is recorded
2SWITCH, FORK_JOIN, DO_WHILE, WAIT, SUB_WORKFLOW, SET_VARIABLE, TERMINATEEngine hostControl flow
3HUMAN and the Teams bridgeEngine host, Teams bridgeA run waits for a person and continues
4Service Bus queues; poll and update endpoints; Wos.Worker; wos_worker; one Container Apps worker with queue-based scalingInfrastructure (Service Bus, Container Apps), engine host, worker SDKs, first worker image, worker pipelineA worker task runs anywhere
5LLM_CHAT, LIST_TOOLS, CALL_TOOL, CALL_AGENT; the human-gate registration check; gateway AI policiesEngine host, gateway tool scope and AI policies, definitions pipeline (policy generation)Model, tool, and agent calls, with the write-tier rule enforced
6Event handlers; schedules; Blob payload offload; status eventsInfrastructure (Event Grid, Blob), engine hostRuns start from messages and timers
7Archival; metrics; Fabric mirror; run control endpoints; operator UIEngine host, infrastructure (monitoring, Static Web Apps), operator UIOperations