Skip to content

Maintainer Notes

docs/AI records durable implementation details: contracts, design rationale, cache and artifact semantics, resolved failure modes, and maintenance guidance. The notes are grouped by the part of the repository that owns the behavior.

This index and the linked notes were audited against the working tree on 2026-08-10. Treat dated incident and tuning notes as historical evidence; the current contract is stated explicitly in each note.

Architecture

  • Public Markov state — state bits shared by environments, learned models, exact graphs, and shielding.
  • Safety abstractions — the per-agent safety projection used by runtime cost accounting and graph labelling.

Environments

Joint Graphs

World Model

Opponent Model

Shielding

Reinforcement Learning

  • JAX IPPO migration — shared trainer interfaces, cost handling, and notebook integration.
  • Discrete ICPO port — the repo-native constrained-policy implementation and compatibility decisions.
  • Frozen final-policy safety — restorable checkpoints, live survival estimates, and exact stationary-policy reachability.
  • Final-policy campaign report — all-algorithm frozen-policy aggregation, worst-seed safety gates, and exact baseline reachability joins.

Notebooks

Experiments and Presentation

Operations

  • Documentation — Zensical layout, navigation, validation, and the user/maintainer content split.
  • Test runtime — component ownership, changed-file selection, and fast/slow policy.
  • Logging — the shared Loguru-backed engine and file locking behavior.
  • Canonical interface cleanup — removed aliases, accepted artifact schemas, and required rebuilds.

Maintenance Rules

  • Update an existing note when a contract changes; do not leave the old claim in place as if it were still current.
  • Put a new note in the narrowest owning subfolder and add it to this index.
  • Record the cache/version consequence whenever state, graph, safety, or shield semantics change.
  • Keep user instructions in the main Zensical pages under docs/; link here only when implementation depth is useful.
  • Validate documentation-only changes with uv run zensical build --strict and uv run python scripts/run_tests.py changed.