Compilation Governance

CONTINUITY & IDENTITY

Compilation Governance

Pre-Spend Trust

No unchecked plan reaches production.

Compiled PlanAuditPreflightReserveDispatch
“Every dispatch earns permission to spend.”

What This Layer Does

Compilation Governance is the trust boundary between a finished shot plan and paid generation. Every dispatch passes deterministic checks before it can reserve a credit or reach a provider.

Named ScriptIR lint passes and PromptAuditor blockers inspect the compiled structure. Byte budgets keep payloads within their production contract. Preflight confirms that the chosen model, reference state, duration, and prompt plan agree. Blocking findings fail closed.

Only a ready plan can reserve spend, and reservation happens before dispatch. The result is an inspectable chain of decisions: what was compiled, what passed, what was blocked, what was held, and what was actually sent.

Receives

  • Version-pinned compiled shot plan
  • ScriptIR and named lint results
  • Prompt audit findings and byte-budget status
  • Reference identity and continuity state
  • Model-specific generation plan and quoted spend

Produces

  • Pass or fail-closed dispatch decision
  • Named audit findings without hidden repair
  • Verified payload budget and preflight parity
  • Reservation-before-dispatch record
  • Inspectable production audit trail

Engine Output Example

COMPILATION GOVERNANCE — Gate excerpt
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

IR LINTS      Passed
PROMPT AUDIT  No blocking findings
BYTE BUDGET   Within contract
REFERENCE     Ready
PREFLIGHT     Plan and dispatch agree
RESERVATION   Held before routing
ROUTING       Permitted

[Gate names and status only. Rule logic and provider payload redacted.]

Representative structure from a StoryDirector compilation. Sensitive grammar is intentionally omitted.

Why This Matters

Director's Notes

A polished interface is not a production guarantee. A production guarantee is the moment the system refuses to spend on incomplete work.

Compilation Governance makes that refusal part of the architecture. Technical evaluators can see the contract: deterministic checks, bounded payloads, fail-closed routing, and money reserved only for a dispatch that has earned it.

Technical Specifications

Classification

Deterministic, fail-closed governance

Named Gates

ScriptIR lint, PromptAuditor, byte budget, reference readiness, generation preflight

Dependencies

DirectorLogic™, SRC™, Reference Identity™, ProdScale™

Outputs to

Credit reservation and provider routing

Spend Contract

Reserve before dispatch; block before spend

Related Layers

Experience Compilation Governance in action.