# Abstract {#sec:abstract}

![The GeneralizedNotationNotation (GNN) pipeline at a glance, generated from the producer's token map at commit {{GNN_GIT_COMMIT}}. A plain-text specification — the `StateSpaceBlock` declaring the model's tensors, `A`, `B`, `C`, `D`, and `E` for the discrete categorical kind of [@eq:generative_model] through [@eq:policy] and its own matrix vocabulary for the other model kinds — is parsed (Step {{GNN_STEP_GNN}}), type-checked and validated (Steps {{GNN_STEP_TYPE_CHECKER}}–{{GNN_STEP_VALIDATION}}), rendered as backend-specific code (Step {{GNN_STEP_RENDER}}), executed (Step {{GNN_STEP_EXECUTE}}), and analyzed (Step {{GNN_STEP_ANALYSIS}}), before artifacts flow into the cross-repository interchange checks against the pinned GEO-INFER and fep_lean pairs. Read the cards left to right: each header names the stage, each pill names the pipeline step (or the source role), and the body states what the stage produces. The validation stage includes the B-tensor orientation check — every discrete `B` literal is read as column-stochastic `B[s', s, a]`, and `--transpose-b` maps row-stochastic textbook literals onto that canonical order — and the execution stage includes the bnlearn lane, which generates runnable Python from the same parsed model and skips with a recorded status when its runtime is absent. The footer states the scale the panel summarizes: {{GNN_STEP_COUNT}} pipeline steps, {{GNN_FAMILY_COUNT}} model families, {{GNN_BACKEND_COUNT}} registered render backends with {{GNN_EXECUTABLE_BACKEND_COUNT}} render targets having Step {{GNN_STEP_EXECUTE}} execution adapters, and {{GNN_MCP_TOOL_COUNT}} Model Context Protocol tools.](../output/figures/gnn_graphical_abstract.png){#fig:graphical_abstract width=100%}

Active Inference offers a unifying account of perception, learning, and action under the free energy principle [@friston2010], yet the generative models at its core are still communicated ad hoc: scattered across prose descriptions, bespoke notebooks, and framework-specific code that rarely agree. This fragmentation makes published models hard to reproduce, compare, or port between tools, and it raises the barrier for newcomers learning the formalism [@parr2022]. GeneralizedNotationNotation (GNN) addresses this gap with a standardized, human- and machine-readable text language for specifying Active Inference generative models, paired with a {{GNN_STEP_COUNT}}-step processing pipeline that transforms a single specification into validation, visualization, simulation, and analysis artifacts [@gnn2023]. A GNN file denotes a generative model, and the language lets that model take the several shapes the field actually uses: the notation blocks a file declares — categorical `A`/`B`/`C`/`D`[/`E`] tensors, linear-Gaussian system matrices `F`/`H`/`Q`/`R` with a Gaussian prior, per-agent and per-level compositions — fix its model kind, which the pipeline classifies structurally and carries through rendering and execution, recording explicitly which registered backends can render and run a model of each kind and which report it unsupported. GNN's "Triple Play" treats each model as three coordinated views — a textual specification, graphical visualizations, and executable cognitive models — so that outputs share an authored source and can be checked for consistency through identity, parameter, semantic, and numerical receipts. The framework spans {{GNN_EXAMPLE_COUNT}} exemplar specifications ({{GNN_DISCRETE_EXEMPLAR_COUNT}} discrete-state and {{GNN_CONTINUOUS_EXEMPLAR_COUNT}} continuous linear-Gaussian) across {{GNN_FAMILY_COUNT}} model families and {{GNN_BACKEND_COUNT}} registered rendering backends, with explicit gates for cross-format semantic fidelity and cross-framework reliability. GNN {{GNN_ORCHESTRATION_VERSION}} layered safe-by-design long-running orchestration on top of this language and pipeline — durable observation streams, resumable run sessions, and auditable container plans that generate, validate, and replay data only, with no live infrastructure mutation. We describe the language, the model kinds it denotes, the pipeline architecture, and the validation contracts and source-bound checks used to assess specification round trips and admitted executions across simulation backends — with coverage gaps recorded as explicit profiled-unsupported statuses rather than silently omitted — providing inspectable infrastructure for reproducing and comparing Active Inference models within the recorded capability and verification boundaries.
