Kali Standard Envelope Schema
The Kali Standard Envelope Schema defines the contract between external governance engines (such as May I AI) and the BaseLayerOS deterministic substrate. Any envelope must conform to this schema before BaseLayerOS will validate, enforce invariants, and execute or refuse it.
Schema Overview
At a high level, a Kali envelope describes:
- Who is acting (identity and roles)
- What is being requested (capability and action)
- Under which policies and invariants
- Against which data or tools
- With what execution plan and constraints
Core Fields
Validation & Enforcement
BaseLayerOS performs deterministic validation of Kali envelopes before any state transition:
- Schema correctness (all required fields present and well‑formed)
- Rulebook checks (kernel constraints and sector overlays)
- Invariant evaluation (safety, compliance, and risk predicates)
- Routing seal verification (cryptographic binding to audit traces)
If validation or invariant checks fail, the substrate refuses the envelope and records a deterministic refusal trace. If all checks pass, the execution plan is applied as a deterministic state transition.
Extensions
The schema supports extensions for sector‑specific and organization‑specific needs without breaking the core contract:
- risk — risk level, impact domain, escalation requirements
- sector — industry, jurisdiction, regulatory overlays
- model_metadata — model identifiers, safety profiles, evaluation suites
- org_policies — internal policy IDs and business rules
BaseLayerOS can ignore unknown extensions while still enforcing the core deterministic physics.