Guardian Runtime Compiler
Status
Section titled “Status”First-party runtime compilation addon for Mission Guardian.
| Field | Value |
|---|---|
| Manifest | addons/guardian-runtime-compiler/manifest.json |
| Public entrypoint | addons/guardian-runtime-compiler/src/index.ts |
| Core port | GuardianRuntimeCompiler |
| Maturity | beta |
Guardian Runtime Compiler turns the active guardian pack artifacts into a compact injection packet for agents. It does not decide governance: it compiles what Cortex Lite exposes for the project.
The source of truth remains the guardian pack materialized in Cortex Lite. The compiler receives:
- the Mission Control runtime packet;
- the active pack artifacts;
- the injection cadence (
full,delta,gate,resume,card_selected).
It returns a TOON-like prompt, a compiled hash, and the status of each layer.
Layers
Section titled “Layers”Layers come from the active pack’s prompt_layers artifact. A layer can point to complete rules, mini rules, mode rules, flowmap, event policy, document requirements, or UI card templates.
The compiler applies only the layers due for the current cadence. A missing blocking layer fails compilation instead of producing a silent degraded injection.
Guarantees
Section titled “Guarantees”- No Mission Guardian rules copied into the core runtime.
- Same pipeline for
solo_agent,team_leader,team_worker,team_qa, andteam_observer. - Dispatch rights remain carried by the runtime packet and refused by the system, not by LLM instructions alone.
npm run guardian:runtime:checkprevents long texts from guardian pack JSON files from being copied into source code.
Related surfaces
Section titled “Related surfaces”| Surface | Detail |
|---|---|
| Runtime preview | GET /api/projects/:id/mission-control/runtime-packet-preview |
| Before-turn injection | Provider context builder through BeforeTurnAugmenter |
| Active pack | Mission Guardian artifacts read from Cortex Lite |
| CI | guardian:runtime:check |
Boundaries
Section titled “Boundaries”The compiler does not administer or synchronize packs. Mission Guardian materializes artifacts; Guardian Runtime Compiler assembles them for injection.