Active Inference & Category Theory — an Active Inference Institute repository for learning about and exploring where Active Inference and Category Theory meet.
- IntroAdventureSyllabus.md — Introduction to Category Theory applied to Active Inference, Adventure Mode: a self-paced, "adventure mode" curriculum for reading and researching active-inference papers that use category-theoretic tools. For those who seek a nonlinear, jump-right-into-the-deep-end experience.
- docs/ — documentation index: repository layout, the GNN conformance workflow, and the documentation gate, alongside links to every other document.
- gnn/ — GNN (Generalized Notation Notation) materials for the Map the model activity: a small runnable model specification and a walk-through that maps category-theoretic notions onto a generative-model notation, and marks where the mapping runs out. See the GNN downstream adoption guide at the pinned revision and this repository’s pin record.
- Manuscript — source and render instructions for the worked perception exercise.
- CONTRIBUTING.md — how to propose improvements to the curriculum.
- LICENSE — CC0 1.0 Universal (public-domain dedication).
- .aii/config.yaml — InstituteOS sidecar metadata for this repository.
If you use this repository in your work, please cite it as:
Active Inference Institute. Active Inference & Category Theory. https://github.com/ActiveInferenceInstitute/ActiveInferenceCategoryTheory
Machine-readable citation metadata is available in CITATION.cff.
run.sh is the single entry point for every check; each arm is the
command used by the workflow. .github/workflows/docs.yml
defines the docs gate job for pull requests and pushes to main. Its steps
include ./run.sh docs (links and metadata), ./run.sh tests
(gate unit tests (hermetic)), and ./run.sh gnn (gnn conformance (pinned)).
./run.sh docs fails, with exit code 1, when a relative Markdown link or image
does not resolve, when a tracked YAML file does not parse, when CITATION.cff
lacks cff-version, title or license, or when a tracked Markdown document is
missing from docs/documentation-index.md. The
proof that it can fail is run 41720066280, in the job then named
links and metadata: the log line README.md: missing link target: does-not-exist.md is followed by ##[error]Process completed with exit code 1.
Reproduce it locally — the offline arm's only dependency is PyYAML:
python3 -m pip install pyyaml==6.0.2
./run.sh docsdocs/guides/run-guide.md lists every arm and
docs/arm-runtimes.md holds the measured wall time of
each; docs/guides/validation.md explains what the gate checks.
education-contract.json declares adoption of the
Education workflow contract.
specs/education/schema.json is the unchanged
canonical schema; category-theory.json
is a curated transcription of the authored learning plan.
Each teaching section under Topics and Sections in the
syllabus becomes a unit, with its
heading as the title and its opening learning-focus sentence as the objective.
The GNN scaffold contributes the Map the Model
unit, quoting its perception-update and model-writing prompts; its executable
example remains the learner perception model,
not a separate invented learning objective. Unit source_path fields and the
bundle's source revision identify the authored material.
Prerequisites and glossary are empty: suggested reading order and optional external pre-/co-requisites are not internal dependency edges, and the GNN correspondence table explicitly offers analogies rather than definitions. The workload outline's “Applying in the variability-retained world” has no teaching section or objective to transcribe. No topic, stratum, or audience classification is inferred.
With the lead checkout alongside this repository, validate using its checker without installing into or writing to the lead:
python3 -B ../courses/software/scripts/check_education_contract.py \
specs/education/category-theory.json
python3 -B ../courses/software/scripts/check_education_contract.py
./run.sh docs
./run.sh gnngnn is the member's executable content check; the tests arm covers the gate
scripts themselves and asserts nothing about the bundle. Keep bundle wording
aligned with the linked sources when editing the learning plan.