AGENTS.md — Theory module
Formal theoretical background for COGANT: Active Inference, the
"code as generative model" thesis, the GNN intermediate representation,
and the isomorphism theorem. Unlike ../concepts/, which is expressly
informal, theory pages are expected to be defensible at a workshop-paper
level of rigour.
Purpose and ownership
This module is the written half of the scientific record. It has to stay
consistent with the manuscript under ../../../manuscript/ and the dated
empirical studies under ../evaluation/. Owned by whoever is editing the
manuscript or running the formal proof track.
File map
| File | Purpose | Update trigger |
|---|---|---|
README.md |
TOC and recommended reading order | Any time a file is added, removed, or renamed |
AGENTS.md |
This file — maintenance rules | When ownership, notation conventions, or the manuscript-consistency policy changes |
active_inference_primer.md |
Short introduction for readers new to Active Inference | When the primer's audience or vocabulary changes |
active_inference.md |
Theoretical justification for the code-to-role mapping | When the mapping, the rule rationale, or the matrices change |
code_as_generative_model.md |
The "code is a generative model" thesis | When the thesis is refined or extended |
gnn_format.md |
Short narrative on the GNN format as COGANT uses it | When the headline story about GNN changes |
gnn_format_reference.md |
Exhaustive reference for the 19-section GNN package | When a section is added, removed, or renamed in the AII GNN spec or the COGANT emitter |
roundtrip.md |
Forward→Reverse→Forward verification: role preservation vs strict structural isomorphism | When the roundtrip contract, status vocabulary, or verification methodology changes |
isomorphism.md |
Formal statement and proof sketch of the isomorphism theorem | When the theorem statement, assumptions, or proof outline changes |
Notation and consistency
- Every symbol used in multiple pages (for example
A,B,C,Dmatrices, hidden states, observations, actions) has to match the manuscript's appendix on inference mathematics. When you rename a symbol, grepdocs/andmanuscript/and update both in the same PR. active_inference.mdis the theory-track counterpart to../evaluation/ACTIVE_INFERENCE_MAPPING.md. The evaluation file is dated and citable; this file is the stable, non-dated statement. Keep them in agreement but do not merge them.gnn_format.mddefers to the upstream Active Inference Institute spec where it exists. Do not fork the spec; cite it.
Adding a new doc
- Pick a short, lower-case, underscore-separated slug.
- Open with a one-sentence claim and a "Status" line (draft / stable / inactive).
- Put formal definitions and theorem statements in clearly numbered blocks so the manuscript can cite them by number.
- Add a row to the
## Contentstable inREADME.md.
Known gotchas
isomorphism.mdis the theorem the whole project rests on. Do not weaken its statement without updating the manuscript, the evaluation roundtrip study, and../concepts/roundtrip.mdin the same PR.gnn_format.mdandgnn_format_reference.mdoverlap deliberately: the short page orients a first-time reader, the reference page enumerates the 19 sections. When the upstream GNN spec changes, update the reference first and then the short page.