Quick Navigation: README | Course Development | Software | Published | Summaries
This repository contains source curricula, a Python publishing engine and a YouTube transcript archive. Inventory and test counts belong in generated facts, qualified by their recorded source/runtime; do not copy them into prose or imply a fresh full-gate pass.
Software commands run from software/ with uv on Python 3.11+; the engine declares its dependencies in software/pyproject.toml.
The gate has one entry point. Each arm is a single command, and
.github/workflows/ci.yml calls these same arms
(gate commands):
./run.sh lint # ruff check + ruff format --check (src/ scripts/)
./run.sh types # mypy src/
./run.sh no-mocks # no-mocks policy scan
./run.sh test # offline test gate (default arm)
./run.sh test-full # every test, including internet/API/whisper
./run.sh docs # relative links + generated facts current
./run.sh gnn # pinned GNN conformance
./run.sh all # the offline arms in order# Install the engine and its development tools
cd software && uv sync --extra dev
# Run one test file
cd software && uv run pytest tests/test_batch_processing_main.py -v
# Render one course to Text and Markdown
cd software && uv run python scripts/generate_all_outputs.py --course ai-philosophy --formats txt,md
# Preview the top-level pipeline from the repository root
python publish.py --dry-runMarkers, coverage, and single-test invocations are documented in
software/docs/TESTING.md; measured counts and
per-arm wall times are generated into docs/_generated/.
| Directory | Purpose | AGENTS.md |
|---|---|---|
course_development/ |
Source curricula across levels and domains | AGENTS.md |
published/ |
Rendered outputs for distribution (generated, not hand-edited) | AGENTS.md |
software/ |
Python engine, CLI scripts, tests and technical guides | AGENTS.md |
docs/ |
Repository-level documentation: gate, CI, documentation index | AGENTS.md |
summaries/ |
Generated course summaries | AGENTS.md |
publish.py |
Top-level pipeline entry point | — |
publish.toml |
Publishing configuration (courses, formats, options) | — |
All code and content must use real methods — no mocks, stubs, fakes, [TODO], [PLACEHOLDER], or TBD markers. Every function must have a real implementation; every module must contain substantive, accurate content.
Every component must be:
- Modular — Self-contained, reusable, independently testable
- Intelligent — Thoughtfully designed with clear purpose
- Functional — Working implementation with proper error handling
- Logged — Appropriate logging for debugging and monitoring
- Tested — Covered by real tests (no mocks)
- Documented — README.md and AGENTS.md at every level
Every directory in this repository must have an AGENTS.md file that documents:
- Directory purpose and contents
- Critical rules and conventions for that context
- Links to child and parent AGENTS.md files
Course content must match the target audience's level:
| Level | Formalism | Code | Lab Style |
|---|---|---|---|
| ES (K-5) | None | None | Stories, drawing |
| Family (0-6) | None | None | Parent-child activities |
| MS (6-8) | Fractions | Scratch | Group challenges |
| HS (9-12) | Algebra | Python basics | Guided labs |
| 101 (Undergrad) | Full notation | Python/NumPy | Simulations, essays |
| Core (Graduate) | Full formalism | Custom library | Case studies, proofs |
| 401 (PhD) | Advanced | Research code | Seminars, proposals |
The spine-shaped curricula follow this topic order in every unit:
- Systems → 2. Agents → 3. Perception → 4. Cognition → 5. Action → 6. Learning → 7. Communication → 8. Planning
This order is fixed and reflects the logical dependency chain of the Free Energy Principle.
courses/
├── AGENTS.md ← THIS FILE (top-level)
├── course_development/
│ ├── AGENTS.md ← Master curriculum guidelines
│ ├── active_inference/AGENTS.md ← Core curriculum (4 tracks)
│ ├── active_inference_*/AGENTS.md ← Level-adapted courses
│ ├── domains/AGENTS.md ← Domain curricula (7 domains)
│ └── [per-unit, per-module AGENTS.md]
├── published/
│ └── AGENTS.md ← Published outputs guidelines
├── software/
│ ├── AGENTS.md ← Software technical reference
│ ├── src/AGENTS.md ← Source modules
│ ├── scripts/AGENTS.md ← CLI tools
│ ├── tests/AGENTS.md ← Test infrastructure
│ ├── docs/AGENTS.md ← Documentation
│ └── [per-module AGENTS.md]
└── summaries/
└── AGENTS.md ← Summaries guidelines
Always use relative paths when linking between files:
See [QUICKSTART.md](software/docs/QUICKSTART.md) for setup instructions.
See [Curriculum Overview](course_development/README.md) for the full course map.| Resource | Path | Purpose |
|---|---|---|
| Documentation hub | software/docs/README.md |
Index of every technical guide |
| Publishing config | publish.toml |
Toggle courses, formats, options |
| Pipeline runbook | software/docs/PIPELINE.md |
End-to-end publish.py stages and outputs |
| Quick start | software/docs/QUICKSTART.md |
Installation & setup |
| Architecture | software/docs/ARCHITECTURE.md |
System design |
| Course catalog | software/docs/COURSE_CATALOG.md |
All courses at a glance |
| Contributing | software/docs/CONTRIBUTING.md |
How to contribute |
"Minimize surprise. Maximize evidence." — Active Inference Institute