Compiler Passespass
A compiler pass is a single, declarative transformation over the intermediate representation. Passes declare what they consume and produce, their dependencies, and whether they need a model. The scheduler runs them in topological order.
Breaking compilation into ordered, dependency-declared passes keeps the compiler extensible (add a pass = add a directory), auditable (each artifact knows its producing pass), and reproducible (model/temperature pinned in pass.yaml).
Where it appears
- Knowledge Compiler SDK pass registry
- SKCE pass-0X-* directories
Descend
Prerequisites
Dependencies
Foundations
Historical evolution
From the original 9-phase Knowledge Compiler pipeline (parsing, analysis, graph, embedding, clustering, optimization, generation) to the SKCE pass-01..09 curriculum pipeline.
Implementation details
Each pass is pass.yaml + run.py; the orchestrator (passes_framework.py) topologically sorts via Kahn's algorithm and runs deterministic passes always, model passes when a local client is available.
Sources
- [src/sovereign_knowledge_compiler/compiler/synthesizer.py] src/sovereign_knowledge_compiler/compiler/synthesizer.py
- [compiler/passes_framework.py] compiler/passes_framework.py
- [src/sovereign_knowledge_compiler/compiler/synthesizer.py] src/sovereign_knowledge_compiler/compiler/synthesizer.py
- [compiler/passes_framework.py] compiler/passes_framework.py