Skip to content

Guardian Runtime Compiler

First-party runtime compilation addon for Mission Guardian.

FieldValue
Manifestaddons/guardian-runtime-compiler/manifest.json
Public entrypointaddons/guardian-runtime-compiler/src/index.ts
Core portGuardianRuntimeCompiler
Maturitybeta

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 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.

  • No Mission Guardian rules copied into the core runtime.
  • Same pipeline for solo_agent, team_leader, team_worker, team_qa, and team_observer.
  • Dispatch rights remain carried by the runtime packet and refused by the system, not by LLM instructions alone.
  • npm run guardian:runtime:check prevents long texts from guardian pack JSON files from being copied into source code.
SurfaceDetail
Runtime previewGET /api/projects/:id/mission-control/runtime-packet-preview
Before-turn injectionProvider context builder through BeforeTurnAugmenter
Active packMission Guardian artifacts read from Cortex Lite
CIguardian:runtime:check

The compiler does not administer or synchronize packs. Mission Guardian materializes artifacts; Guardian Runtime Compiler assembles them for injection.