Control pipelines in AIKernel are finite, deterministic, and fully observable.
A control pipeline maps a semantic ExecutionGraph (from AIKernel.Core) onto a
physical execution engine (CPU/GPU/Emulator) with policy enforcement and
replayable state transitions.
The initial 0.1.1 pipeline consists of three deterministic phases:
-
Receive Envelope
The engine receives aControlExecutionRequestand the associatedExecutionGraph. No physical execution occurs before the request is fully validated and the graph is frozen. -
Apply Policy
AnIControlPolicyimplementation evaluates the request and each node's metadata. The policy may allow, deny, or abort execution. All policy decisions are recorded in the replay/audit stream.CTG governance can be connected here by registering the opt-in
AddCtgControl()services. Control normalizes provider vote output and delegates gate evaluation to AIKernel.Core; it does not duplicate CTG gate logic in the pipeline. -
Execute & Emit Replay/Audit Metadata
The deterministic scheduler orders nodes by contract identity. Each node transition emits aControlStateSnapshot(Scheduled,Running,Completed,Faulted) so the entire execution is replayable without embedding execution-engine logic in demos or Core.Contract identity means lexicographical ordering of
NodeIdandOperatorId.Snapshot phases:
ScheduledRunningCompletedFaulted