FI
ForgeOrchestrator
Swift Package v1.0.0

ForgeOrchestrator

Three orchestrators for three shapes of app flow.
Sequence for once-through. Pipeline for shared state. Monitor for continuous.

$ .package(url: "...ForgeOrchestrator", from: "1.0.0")

Quick Example

TaskFlowApp.swift
import ForgeOrchestrator

// Pick the orchestrator that matches your flow shape

// 1. Sequence — runs actions once, in priority order (app launch gates)
let sequence = SequenceOrchestrator()
sequence.register(ForceUpdateAction())
sequence.register(OnboardingAction())
await sequence.evaluate()

// 2. Pipeline — actions share typed state (data-loading flows)
let pipeline = PipelineOrchestrator()
pipeline.register(LoadPostsAction())
pipeline.register(FilterPostsAction())
let results = await pipeline.evaluate()

// 3. Monitor — re-evaluates on interval (long-running checks)
let monitor = MonitorOrchestrator(interval: 300)
monitor.register(TermsExpiredAction())
monitor.start()

Why ForgeOrchestrator

Three Orchestrators

Sequence // once-through
Pipeline // shared state
Monitor // continuous

Each orchestrator is built for a distinct flow shape. Pick one per use case.

Priority Ordering

.critical // runs first
.high
.medium
.low // runs last

Actions execute in priority order. Critical gates run before anything else — guaranteed.

CompletionSignal

await signal.wait()
signal.complete()

Bridge UI flows to async evaluation. Wait on any thread; complete from any context.

Forge Ecosystem