Plugin Architecturearchitecture
The convention that every compiler pass is a directory with a pass.yaml (declares I/O, dependencies, determinism) and a run.py (the logic), discovered and scheduled by a registry.
It keeps the compiler extensible without forks — add a pass by adding a directory — and lets an agent propose new passes as typed YAML (the recursive-research loop).
Where it appears
- compiler/passes_framework.py
- passes/pass-0X-* directories
Descend
Prerequisites
Dependencies
- —
Foundations
Historical evolution
Mirrors the Knowledge Compiler SDK pass registry; SKCE adds the recursive self-extension story.
Implementation details
PassRegistry loads pass.yaml + run.py, topologically sorts (Kahn), runs deterministic passes always, model passes when available.
Sources
- [compiler/passes_framework.py] compiler/passes_framework.py
- [docs/PLUGIN_ARCHITECTURE.md] docs/PLUGIN_ARCHITECTURE.md
- [compiler/passes_framework.py] compiler/passes_framework.py
- [docs/PLUGIN_ARCHITECTURE.md] docs/PLUGIN_ARCHITECTURE.md