<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8" />
  <meta name="generator" content="pandoc 3.13" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
  <title>04_artifacts_and_evidence.md.web</title>
  <style>
    /* Default styles provided by pandoc.
    ** See https://pandoc.org/MANUAL.html#variables-for-html for config info.
    */
    html {
      color: #1a1a1a;
      color: light-dark(#1a1a1a, #fdfdfd);
      background-color: #fdfdfd;
      background-color: light-dark(#fdfdfd, #1a1a1a);
      color-scheme: light dark;
    }
    body {
      margin: 0 auto;
      max-width: 36em;
      padding-left: 50px;
      padding-right: 50px;
      padding-top: 50px;
      padding-bottom: 50px;
      hyphens: auto;
      overflow-wrap: break-word;
      text-rendering: optimizeLegibility;
      font-kerning: normal;
    }
    @media (max-width: 600px) {
      body {
        font-size: 0.9em;
        padding: 12px;
      }
      h1 {
        font-size: 1.8em;
      }
    }
    @media print {
      html {
        color-scheme: light only;
      }
      html, body, pre, code {
        background-color: transparent;
      }
      body, a, a:visited, blockquote {
        color: black;
      }
      pre, code {
        padding: 0;
      }
      p, h2, h3 {
        orphans: 3;
        widows: 3;
      }
      h2, h3, h4 {
        page-break-after: avoid;
      }
    }
    p {
      margin: 1em 0;
    }
    a, a:visited {
      color: inherit;
    }
    img {
      max-width: 100%;
    }
    svg {
      height: auto;
      max-width: 100%;
    }
    h1, h2, h3, h4, h5, h6 {
      margin-top: 1.4em;
    }
    h5, h6 {
      font-size: 1em;
      font-style: italic;
    }
    h6 {
      font-weight: normal;
    }
    ol, ul {
      padding-left: 1.7em;
      margin-top: 1em;
    }
    li > ol, li > ul {
      margin-top: 0;
    }
    blockquote {
      margin: 1em 0 1em 1.7em;
      padding-left: 1em;
      border-left: 2px solid;
      border-color: #e6e6e6;
      border-color: light-dark(#e6e6e6, #4c4c4c);
      color: #606060;
      color: light-dark(#606060, #b6b6b6);
    }
    code {
      white-space: pre-wrap;
      font-family: Menlo, Monaco, Consolas, 'Lucida Console', monospace;
      font-size: 85%;
      margin: 0;
      hyphens: manual;
    }
    pre {
      margin: 1em 0;
      overflow: auto;
    }
    pre code {
      padding: 0;
      overflow: visible;
      overflow-wrap: normal;
    }
    .sourceCode {
     background-color: transparent;
     overflow: visible;
    }
    hr {
      border: none;
      border-top: 1px solid currentColor;
      height: 1px;
      margin: 1em 0;
    }
    table {
      margin: 1em 0;
      border-collapse: collapse;
      width: 100%;
      overflow-x: auto;
      display: block;
      font-variant-numeric: lining-nums tabular-nums;
    }
    table caption {
      margin-bottom: 0.75em;
    }
    tbody {
      margin-top: 0.5em;
      border-top: 1px solid currentColor;
      border-bottom: 1px solid currentColor;
    }
    th {
      border-top: 1px solid currentColor;
      padding: 0.25em 0.5em 0.25em 0.5em;
    }
    td {
      padding: 0.125em 0.5em 0.25em 0.5em;
    }
    header {
      margin-bottom: 4em;
      text-align: center;
    }
    #TOC li {
      list-style: none;
    }
    #TOC ul {
      padding-left: 1.3em;
    }
    #TOC > ul {
      padding-left: 0;
    }
    #TOC a:not(:hover) {
      text-decoration: none;
    }
    span.smallcaps{font-variant: small-caps;}
    div.columns{display: flex; gap: 1.5em;}
    div.column{flex: auto;}
    @media screen {
    div.columns{gap: min(4vw, 1.5em);}
    div.column{overflow-x: auto;}
    }
    div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
    /* The extra [class] is a hack that increases specificity enough to
       override a similar rule in reveal.js */
    ul.task-list[class]{list-style: none;}
    ul.task-list li input[type="checkbox"] {
      font-size: inherit;
      width: 0.8em;
      margin: 0 0.8em 0.2em -1.6em;
      vertical-align: middle;
    }
  </style>

<link data-template-favicon rel="icon" href="favicon.ico">

<style>
:root {
  --brand-1: #5b6ee0;
  --web-bg: #f8f8f8;
  --web-surface: #ffffff;
  --web-text: #2c3e50;
  --web-border: #bdc3c7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-1: #7e8ce8;
    --web-bg: #0f1420;
    --web-surface: #161c2b;
    --web-text: #e6eaf2;
    --web-border: #2a3447;
  }
}
.theorem-box {
  border-left: 4px solid var(--brand-1);
  background: var(--web-surface);
  padding: 0.6em 1em;
  margin: 1.1em 0;
  border-radius: 0 4px 4px 0;
}
.theorem-box.definition { border-left-style: dashed; }
.theorem-box > p:first-child { margin-top: 0; }
.theorem-box > p:last-child { margin-bottom: 0; }
.figure-long-description {
  border: 1px solid var(--web-border);
  border-radius: 4px;
  margin-block: 0.75rem;
  padding: 0.5rem 0.75rem;
}
.figure-long-description > summary { cursor: pointer; font-weight: 700; }
.figure-long-description > p { max-width: 80ch; overflow-wrap: anywhere; }
.figure-exact-values { max-width: 80ch; overflow-wrap: anywhere; }
code { overflow-wrap: anywhere; word-break: break-word; }
pre {
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}
pre code { overflow-wrap: inherit; white-space: inherit; word-break: inherit; }
div.sourceCode { max-width: 100%; overflow: visible; }
pre.sourceCode { background: #2c3e50; color: #ecf0f1; }
pre.sourceCode code,
pre.sourceCode code span { color: inherit; }
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}
mjx-container[display="true"] { max-width: 100%; overflow: visible; }
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}
.table-scroll:focus-visible {
  outline: 3px solid var(--brand-1);
  outline-offset: 3px;
}
.table-scroll > table { margin-block: 0; min-width: 100%; width: max-content; }
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: 'Liberation Serif', 'Times New Roman', serif;
  line-height: 1.6;
  width: min(100%, 800px);
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f8f8f8;
  color: #1a1a1a;
  overflow-wrap: break-word;
  overflow-x: hidden;
  overflow-x: clip;
}

main,
nav,
section,
article,
figure,
figcaption {
  min-width: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  transform: translateY(-120%);
  background-color: #1a1a1a;
  color: #ffffff;
  font-family: sans-serif;
  font-weight: 700;
  text-decoration: underline;
}

.skip-link:visited {
  color: #ffffff;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

@media (max-width: 600px) {
  body {
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }

  figure img {
    width: 100% !important;
  }
}

@media (max-width: 800px) {
  body {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
  }
}

h1, h2, h3, h4, h5, h6 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 5px;
  overflow-wrap: anywhere;
}

code {
  background-color: #ecf0f1;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Liberation Mono', 'Courier New', monospace;
  overflow-wrap: anywhere;
  word-break: break-word;
}

pre {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 15px;
  border-radius: 5px;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  overflow-wrap: inherit;
  white-space: inherit;
  word-break: inherit;
}

div.sourceCode {
  max-width: 100%;
  overflow: visible;
}

pre.sourceCode {
  background: #2c3e50;
  color: #ecf0f1;
}

pre.sourceCode code,
pre.sourceCode code span {
  color: inherit;
}

pre > code.sourceCode {
  white-space: pre-wrap;
}

pre > code.sourceCode > span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}

.table-scroll:focus-visible {
  outline: 3px solid #1f6f8b;
  outline-offset: 3px;
}

.table-scroll > table {
  margin-block: 0;
  min-width: 100%;
  width: max-content;
}

figure {
  max-width: 100%;
  margin: 1.5rem 0;
}

th, td {
  border: 1px solid #bdc3c7;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #1f6f8b;
  color: white;
}

img {
  max-width: 100%;
  height: auto;
  border: 1px solid #bdc3c7;
  border-radius: 5px;
  margin: 20px 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

a {
  color: #b91c1c;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}

a:visited {
  color: #8f1d1d;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  outline: 3px solid #1f6f8b;
  outline-offset: 3px;
}

.toc {
  background-color: #ecf0f1;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 30px;
}

.toc a,
#TOC a {
  color: #b91c1c;
  display: inline-block;
  min-height: 28px;
  line-height: 1.5;
  padding-block: 2px;
}

.toc li,
#TOC li {
  margin-block: 1px;
}

.math {
  text-align: center;
  margin: 20px 0;
  font-size: 1.1em;
}

mjx-container[display="true"] {
  display: block;
  max-width: 100%;
  overflow: visible;
  padding-bottom: 0.25rem;
}

.figure {
  text-align: center;
  margin: 30px 0;
}

.figure img {
  max-width: 100%;
  height: auto;
  border: 2px solid #3498db;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* A reading column keeps prose comfortable, but dense scientific figures need
   a larger inspection surface.  The rendered image remains responsive and the
   explicit link opens its source-resolution asset without changing the PDF. */
.figure-full-size-link {
  color: inherit;
  display: block;
  max-width: 100%;
  text-align: center;
}

.figure-full-size-link img {
  cursor: zoom-in;
  margin-bottom: 0.45rem;
}

.figure-full-size-label {
  color: #1f6f8b;
  display: inline-block;
  font-family: sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.figure-full-size-link:focus-visible {
  outline: 3px solid #1f6f8b;
  outline-offset: 4px;
}

@media (min-width: 1000px) {
  /* Wide figure links stay within the viewport but extend beyond the prose
     column. Do not clip their labels at the narrower body boundary. */
  body {
    overflow-x: visible;
  }

  .figure-full-size-link {
    left: 50%;
    max-width: none;
    position: relative;
    transform: translateX(-50%);
    width: min(1080px, calc(100vw - 3rem));
  }
}

.figure-caption {
  font-style: italic;
  color: #4b5563;
  margin-top: 10px;
  text-align: center;
}

.figure-long-description,
.figure-exact-values {
  max-width: 100%;
  overflow-wrap: anywhere;
}

</style>
<script data-template-source-font-loader src="assets/source-web-fonts.js"></script>
</head>
<body>
<a class="skip-link" href="#main-content">Skip to main content</a>
<main id="main-content" tabindex="-1">
<h1 id="sec:artifacts_evidence">Artifacts and Evidence</h1>
<p>This section reports what the project has actually produced and how
each quantitative claim is grounded. Every number below is substituted
at render time from the deterministic producer, which reads the
repository state at commit 027f0de18, so each figure here is regenerated
from the artifacts it describes rather than transcribed.</p>
<h2 id="model-family-coverage">Model-Family Coverage</h2>
<p>GNN ships a curated corpus of model families that exercise the
language across the difficulty gradient from minimal parser fixtures to
full multi-agent and scaling studies. The manifest registers 9 families
(basics, discrete, continuous, hierarchical, multiagent, precision,
structured, gridworld, scaling-study) across 9 target directories, and
<code>input/gnn_files</code> holds 12 corpus directories containing 38
concrete example models. The three sets are not coextensive, and the
manuscript does not treat them as one. Registered in no family:
<code>input/gnn_files/learning</code>,
<code>input/gnn_files/recursive</code>,
<code>input/gnn_files/thrml</code> (3 of the 12 corpus directories),
covered in <span class="citation"
data-cites="sec:limitations_next_steps">[@sec:limitations_next_steps]</span>.
Registered but outside the scanned tree: none, because all 9 target
directories are themselves <code>input/gnn_files</code> corpus
directories. Each family declares the simulation frameworks it is meant
to drive, which is what lets the same text model fan out across the
executable-model leg of the Triple Play [gnn2023]. The families and
their declared frameworks are enumerated below.</p>
<p>The exemplar corpus partitions cleanly by model kind, and the
partition is itself a token: 29 of the 38 example specifications are
discrete-state — the discrete categorical kind and its composed variants
— and 9 are continuous linear-Gaussian specifications in the continuous
family folder. The cold-start index
<code>input/gnn_files/INDEX.md</code> catalogues every exemplar with its
kind, its task folder, and a suggested reading order, and is the fastest
surface for a reader who wants to move from this prose to a runnable
file of a given kind.</p>
<p>Families that declare a capability axis (the continuous family
declares the continuous-render axis) carry a backend split in <span
class="citation"
data-cites="tbl:model_families">[@tbl:model_families]</span> generated
directly from the registry’s declared capability flags. This avoids a
manually copied registry table; actual model admission still depends on
the full parameter and composition checks recorded by the renderer. The
generated flags describe declared capability, while current-run receipts
record which selected backends were actually attempted, unsupported,
skipped, or failed. The profiled cross-framework reference uses the
continuous family, so it does not establish categorical coverage across
the registry (<span class="citation"
data-cites="tbl:framework_capability">[@tbl:framework_capability]</span>
is the per-kind key).</p>
<div class="table-scroll" role="region" tabindex="0" aria-label="Scrollable table: Model families declared in input/model_family_manifest.json with the simulation frameworks each family targets and a…"><table id="tbl:model_families" data-responsive-table="true">
<caption>Model families declared in
<code>input/model_family_manifest.json</code> with the simulation
frameworks each family targets and a generated description. The
<em>Frameworks</em> column is the family’s declared targets, verbatim
from the manifest; the capability splits appended to some descriptions
are generated from <code>src/gnn/render/framework_registry.py</code>
flags, not authored in the manifest, so they cannot disagree with the
registry. Read with <span class="citation"
data-cites="tbl:backend_registry">[@tbl:backend_registry]</span> (what
each backend is) and <span class="citation"
data-cites="fig:family_matrix">[@fig:family_matrix]</span> (the same
coverage as a matrix).</caption>
<colgroup>
<col style="width: 33%" />
<col style="width: 33%" />
<col style="width: 33%" />
</colgroup>
<thead>
<tr>
<th>Family</th>
<th>Frameworks</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>basics</code></td>
<td>pymdp</td>
<td>Minimal perception fixtures used for parser and validator smoke
coverage.</td>
</tr>
<tr>
<td><code>discrete</code></td>
<td>pymdp, jax</td>
<td>Discrete POMDP, passive HMM filtering and episodic contingent T-maze
fixtures.</td>
</tr>
<tr>
<td><code>continuous</code></td>
<td>rxinfer, jax, pytorch, numpyro, stan, ngclearn</td>
<td>Continuous-state linear-Gaussian fixtures (F/H/Q/R + Gaussian prior;
continuous_navigation closes the loop on beliefs; ngc-learn LGSSM
exemplar for the ngclearn backend). Native on RxInfer.jl, JAX, PyTorch,
NumPyro, Stan, cpomdp, ngc-learn; reported unsupported (not failed) on
PyMDP, ActiveInference.jl, DisCoPy, bnlearn, THRML.</td>
</tr>
<tr>
<td><code>hierarchical</code></td>
<td>jax</td>
<td>Declared block-reset hierarchy and approximate 10/100-clock
soft-message controller fixtures.</td>
</tr>
<tr>
<td><code>multiagent</code></td>
<td>rxinfer</td>
<td>Multi-agent coordination and swarm fixtures.</td>
</tr>
<tr>
<td><code>precision</code></td>
<td>pymdp</td>
<td>Precision weighting and curiosity-driven fixtures.</td>
</tr>
<tr>
<td><code>structured</code></td>
<td>pymdp</td>
<td>Structured factor graph and posterior fixtures.</td>
</tr>
<tr>
<td><code>gridworld</code></td>
<td>pymdp, rxinfer, activeinference_jl</td>
<td>Gridworld POMDP fixture used for cross-framework acceptance
checks.</td>
</tr>
<tr>
<td><code>scaling-study</code></td>
<td>pymdp</td>
<td>PyMDP scaling-study fixtures, sampled conservatively for
acceptance.</td>
</tr>
</tbody>
</table></div>
<p>The family-by-framework structure is shown in <span class="citation"
data-cites="fig:family_matrix">@fig:family_matrix</span>, which renders
the coverage matrix directly from the family registry rather than from a
hand-maintained table.</p>
<figure id="fig:family_matrix">
<a class="figure-full-size-link" href="../figures/gnn_family_framework_matrix.png" target="_blank" rel="noopener" aria-label="Open full-size figure, Model-family coverage across the registered rendering backends: one row per family from…"><img src="../figures/gnn_family_framework_matrix.png"
style="width:85.0%"
alt="Grid of model families (rows) against rendering backends (columns). A filled cell means the family declares that backend in input/model_family_manifest.json. The grid is sparse: most families declare a single backend, and only the continuous, discrete and gridworld families declare several. Cells record declared coverage, not profiled outcomes." /><span class="figure-full-size-label" aria-hidden="true">Open full-size figure</span></a>
<figcaption>Model-family coverage across the
registered rendering backends: one row per family from
<code>input/model_family_manifest.json</code>, one column per backend
from <code>src/gnn/render/framework_registry.py</code>, and a green cell
wherever the family declares that backend in its <code>frameworks</code>
field. The right-hand count states how many backends each family
declares; the grid is deliberately sparse — most families declare a
single backend, and only continuous, discrete, and gridworld declare
several. Read it as declared intent, not as profiled outcomes: the gates
described below supply the outcomes. The matrix is generated from the
two registries at commit 027f0de18.</figcaption>
</figure>
<p>These families are not illustrative prose: they are the inputs over
which the parser, the type checker, and the cross-framework code
generators are exercised, and they are the substrate for the reliability
gates described next.</p>
<h2
id="semantic-fidelity-and-cross-framework-reliability-gates">Semantic-Fidelity
and Cross-Framework Reliability Gates</h2>
<p>Two command-defined gates check distinct parts of GNN’s shared-source
contract on selected family fixtures. Both live under
<code>scripts/</code> and use the family manifest described above. Their
actual source-bound command receipts determine the scope and outcome of
verification; the presence of a gate is not itself a passing result.</p>
<p>The semantic-fidelity gate,
<code>scripts/run_semantic_fidelity_gate.py</code>, checks
parse–serialize–parse preservation using the versioned
<code>gnn_semantic_contract_v2</code> contract. It compares model
identity, variables, edges, parameter names, shapes, values and
metadata, equations, timing, and ontology mappings; the default strict
round trip is JSON. Parameter values and their axis order contribute to
the contract hash, so changing values without changing shape changes the
hash. The digest binds the represented contract; it does not prove that
extraction was correct, that generated inference implements the intended
mathematics [dacosta2020], or that independent numerical executions
agree. The gate reports scoped fidelity per selected model and
format.</p>
<p>A separate numerical witness foundation independently reads a
deliberately restricted source subset without importing the production
parser or renderer. For a small asymmetric categorical model, exhaustive
latent-path enumeration distinguishes filtering on each observation
prefix from smoothing on the complete sequence; actual bnlearn filtering
is compared with the former. For a passive linear-Gaussian model with
rectangular observations, nonzero means and correlated covariances, an
independent joint-Gaussian construction conditions each observation
prefix and is compared with every posterior mean and full covariance
from the generated JAX filter. The first observation uses the declared
prior without an extra prediction. Exact source bytes, variable and axis
identities, conditioning horizons, numerical precision and
quantity-specific tolerances remain explicit. Counterexamples change
source identity, orientation, transition/action timing, conditioning,
initial prediction, covariance or precision. These finite, source-bound
comparisons do not establish universal extraction or backend
equivalence, planning correctness or a new Lean proof; formal evidence
remains separately scoped.</p>
<p>The replayable <code>gnn-semantic-witness-v2</code> receipt retains
the exact source, native result and generated-program bytes together
with the independently reconstructed reference and per-quantity
outcomes. The <code>gnn witness</code> interface rebuilds the entire
receipt before accepting a passing numerical outcome; saved arrays or a
prior verdict cannot replace this reconstruction. FEP_Formal
independently replays the same restricted cases with forward Bayes and
recursive Kalman/Joseph updates, using different algorithms from finite
path enumeration and joint-Gaussian conditioning. Separate Lean checks
establish finite-weight normalization and scalar measurement/covariance
identities under their explicit assumptions. These scalar laws are a
structural analogue of the multidimensional Gaussian fixture, not a
proof of its parser, runner or complete translation. Numerical
agreement, source custody, actual program execution and formal
compilation remain separate evidence planes.</p>
<p>An additional <code>gnn-semantic-witness-v3</code> contract admits
two independent stationary passive Gaussian agents. It reconstructs
their authored source independently, builds the joint block-diagonal
Gaussian model and conditions observation prefixes, while retaining
complete native JAX child records and their within-agent covariance
matrices. A separate FEP adapter checks those same authored inputs and
native records with recursive Kalman/Joseph updates. The cross-agent
zero covariance is a consequence of the declared product model, not a
measured native joint covariance. Separate finite post-evidence
product-weight laws and false-claim controls establish their stated
algebraic premises; they do not prove Gaussian conditioning, a parser or
generated execution. Coupling, shared noise, control and unsupported
source or conditioning contracts refuse explicitly.</p>
<p>The generated website exposes reported outcomes through offline
status/text filters, posterior and covariance-variance traces, and
residual views, with full tables and raw receipts available alongside
them. Per-agent selectors and full covariance tables expose retained
component results; separate cards show the independent FEP comparisons
and finite compiler controls with their stated scope. Changing a display
control does not rerun a numerical reference or a proof compiler.
Missing or incompatible evidence remains unavailable or refused; an
informative visualization cannot strengthen its underlying scientific
claim.</p>
<p>The cross-framework reliability gate,
<code>scripts/run_cross_framework_reliability.py</code>, takes a single
GNN model and renders it across multiple simulation backends, then
checks that the resulting executable models agree on the structure they
were generated from. The reference comparison runs on the continuous
family across RxInfer.jl, JAX, PyTorch, NumPyro — 4 independent Active
Inference engines spanning the Python and Julia ecosystems [heins2022].
The family declares 6 backends (RxInfer.jl, JAX, PyTorch, NumPyro, Stan,
ngc-learn); Stan, ngc-learn is declared but not among the 7 frameworks
the gate profiles, so it is excluded from the comparison. Because the
same source model drives all 4 renderings, source identity helps
investigate disagreement. The gate compares shared matrix shapes, trace
lengths, timesteps, and reported seeds, recording absent comparable
fields separately. These checks do not establish numerical equivalence:
a mismatch may arise from extraction, code generation, runtime or
toolchain behavior, inference mode, dtype, or a backend defect.
Numerical comparisons require compatible models and inference semantics,
explicit tolerances, and source-bound numerical witnesses.</p>
<p>Both gates are stated here as commands you can run, not as asserted
pass counts. The manuscript deliberately does not quote a fixed number
of passing checks: an authoritative result is a retained command receipt
bound to its source revision, selected corpus, environment, and
artifacts, and binding a frozen count into prose would invite exactly
the drift the auto-injection contract exists to prevent.</p>
<p>A third interchange check extends the same discipline across
repositories: <code>scripts/run_geo_interchange_checks.py</code>
validates the committed pin in <code>.github/gnn-pair.json</code>
against a selected GEO-INFER checkout and replays exported GNN artifacts
— the tracked gridworld, a compiled H3 stay/diffuse model, a rectangular
Gaussian, and an explicit factored fixture — inside the GEO environment,
writing its receipts even on failure. Like the gates above it is stated
as a command, not as a pass count, and its pinned pair
(<code>ActiveInferenceInstitute/GEO_INFER</code> at a recorded revision)
is what makes “interchange” a checkable claim rather than a promise.</p>
<h2 id="source-preserving-llm-processing">Source-Preserving LLM
Processing</h2>
<p>The LLM analysis step retains exact UTF-8 source parts, task
identities, native responses and resumable checkpoints. Its opt-in
<code>joint_source</code> mode makes a final request containing the
original source and all ordered fragment answers for each multipart
task; <code>part_evidence</code> instead supplies derived answers and
source identities. The latter mode does not present the original source
jointly, and neither silently substitutes for the other. Every submitted
source block, task and output reserve must fit the selected model’s
context; <code>joint_source</code> additionally requires the complete
original to fit its final request. Exact source, request, response and
dependency hashes bind cache and resume; incomplete or nonterminal
native outputs remain unfinished.</p>
<p>Context admission is limited to reviewed Ollama GGUF runtime
contracts. It binds the exact model digest, advertised and loaded
capacity, request messages, native usage and declared output reserve,
with explicit no-shortening controls and overflow refusal. This is
admission under a reviewed provider contract, not an independent
tokenizer or attention measurement. A retained explicit
<code>qwen3-coder:30b</code> profile checks controlled cross-part fact
recovery and a resume with no new generations; they do not establish
general scientific interpretation, arbitrarily large source coverage or
another model’s completion quality. The website presents retained
evidence without strengthening those claims.</p>
<h2 id="repository-scale">Repository Scale</h2>
<p>The repository’s scale is itself evidence of the surface that the
gates and pipeline cover, and it is reported in <span class="citation"
data-cites="fig:repo_metrics">@fig:repo_metrics</span> directly from the
tracked files at commit 027f0de18.</p>
<figure id="fig:repo_metrics">
<a class="figure-full-size-link" href="../figures/gnn_repo_metrics.png" target="_blank" rel="noopener" aria-label="Open full-size figure, Repository-scale counts on a logarithmic axis: pipeline steps, model families, registered…"><img src="../figures/gnn_repo_metrics.png" style="width:80.0%"
alt="Horizontal bar chart on a logarithmic axis of repository-scale counts: pipeline steps, model families, registered backends, render-target adapters, MCP tools, source packages, test files, example models and documentation files. Each bar is annotated with its exact value; all values come from output/data/manuscript_variables.json." /><span class="figure-full-size-label" aria-hidden="true">Open full-size figure</span></a>
<figcaption>Repository-scale counts on a logarithmic
axis: pipeline steps, model families, registered backends, render-target
execution adapters, Model Context Protocol tools, source packages, test
files, example models, and documentation files. Every bar is annotated
with its exact value, and every value is a producer token read from
<code>output/data/manuscript_variables.json</code> at commit 027f0de18 —
the same token map that substitutes the prose counts. The
figure-freshness suite binds the committed image digest and its recorded
producer inputs and counts; semantic content and visual correctness
require their own review. The two backend bars are deliberately
distinct: <em>registered backends</em> (12) counts render targets,
<em>render-target adapters</em> (12) counts the render-target subset
with implemented Step 12 execution adapters. It excludes the separate
execution-only Lean bridge and is not a count of observed native runs.
Read the chart as the scale of the surface the pipeline maintains, not
as a quality measure.</figcaption>
</figure>
<p>The test suite comprises 680 test files containing 7082 test
functions, exercising a source base of 777 Python files across 44
packages (233208 lines of source). The pipeline’s step modules — the
thin orchestrators named in <span class="citation"
data-cites="tbl:pipeline_steps">[@tbl:pipeline_steps]</span> — number
25, one per numbered step. The Model Context Protocol surface — which
exposes GNN’s capabilities to external agents and tools — provides 164
tools across 36 modules. The pipeline itself runs as 25 steps (0–24),
and 7 figure artifacts from the rendering of figures, models, and
reports are committed under <code>output/</code>, of which 7 are the
manuscript’s own.</p>
<h2 id="claim-discipline">Claim Discipline</h2>
<p>A claim is manuscript-ready only when it is bound to a verifiable
artifact. Concretely, every claim in this manuscript must rest on one of
four support types:</p>
<ul>
<li>A retained passing test or validator command receipt, bound to the
source revision, selected inputs, environment, and artifacts — for
example a scoped execution of the semantic-fidelity or cross-framework
gates above.</li>
<li>A generated output produced by a deterministic producer, such as the
figures rendered from the family and repository scans, or the token
values emitted by the manuscript-variable producer that backs every
number on this page.</li>
<li>A source ledger, manifest, or configuration file that fixes a
declared value or capability; actual execution still requires its own
result receipt.</li>
<li>A resolved entry in <code>references.bib</code> for any
external-literature claim [friston2010; parr2022].</li>
</ul>
<p>The pipeline records its own evidence trail under
<code>output/</code>. The run-level summary is written to
<code>output/PIPELINE_REPORT.md</code>, and the per-step execution
record — including which steps ran, their status, and their artifacts —
is captured in <code>output/00_pipeline_summary</code>. Readers should
use those current-run records and their identity bindings to assess
actual pipeline outcomes. Repository counts and declared capability
tokens describe the source surface and do not by themselves establish
native execution or scientific correctness. When a value would otherwise
need a literal number with no producer behind it, the discipline is to
omit the number rather than to hard-code it.</p>
</main>
</body>
</html>
