6 · Execute

For Both Executive and Technical Readers

Bayes Server inference against the certified estimand.

Exact inference. The same question always yields the same posterior.

Execute receives the certified estimand and model(s). It runs Bayes Server’s junction-tree inference engine against the evidence bindings. The result is a typed posterior object, a probability distribution, not a string. Continuous and hybrid (CLG) nodes are handled natively, no discretisation.

Rung3’s contribution is the elicited models and orchestration, not the solver. The solver is Bayes Server. The arrangement is what is specific: typed artifacts in, certified posterior out.

Certified estimand and model in. Typed posterior out.

IN IdentificationCertificate (+ CompositionCertificate if composition path)
IN .bayes model(s) loaded and evidence-bound
OUT PosteriorResult

net = Network.load("sepsis.bayes")
result = Inference(net).query(certified_query)

result.posterior["Sepsis"]        # 0.83
result.contributions           # {Lactate: +0.17, SepticAppearance: +0.09}

Junction-tree inference. Exact. Continuous. No approximation.

Bayes Server uses the junction tree algorithm for exact inference. The tree is compiled once per model; subsequent queries are fast clique-propagation passes. For Rung 3 queries, Execute runs the twin-network method: structural equations are duplicated, the actual world is abducted, and the counterfactual world is evaluated.

The rung and query type determine which of the seven primitives Execute invokes.

Primitive When it fires Detail
ExplainAny posterior queryPattern Analysis →
InquireVoI requestedInquiry →
MonitorContinuous observation streamMonitoring →
OptimizeAction search requestedOptimization →
ScenarioNamed worlds in queryScenarios →
RobustnessAlways (post-posterior)Robustness →
LearnParameter update triggeredValidation →

Cognition defines the primitives. Inference defines the directions. Execute runs both.

The Cognitive Primitives →, the seven reasoning services Execute invokes.
Inference →, the three inference directions Execute implements.
Pipeline →, Execute is Step 6.