Diagnostics
Stable E-codes, phase/category, source excerpts, exact spans and one renderer for check/run/build.
CONTRACT →I13 COMPILER OBSERVATORY · KNOWN-GOOD EXECUTABLE SLICE
A visual record of the compiler that turns .i13 source into validated IVM-13, executes it on the explicit-frame reference VM, lowers the same execution authority into real WebAssembly, and now uses I13 itself for executable compiler-law probes wherever the language can honestly express them.
AUTHORITY CHAIN
Static introspection can reveal every major layer, but authority remains fixed: SPEC defines the language, HIR defines meaning, and IVM defines execution.
COMPILER TOOLING
Each component is deliberately downstream of compiler authority. They make the machine inspectable and testable without quietly becoming new semantics.
Stable E-codes, phase/category, source excerpts, exact spans and one renderer for check/run/build.
CONTRACT →Executable contract for accepted results, compile errors, runtime traps and canonical resource behavior.
MANIFEST LAW →Deterministic read-only dumps of tokens, AST, HIR and validated IVM with symbolic operands.
DUMP LAW →Streaming pre-instruction observation of the real VM loop: PC, frames, stack effects, bindings and spans.
TRACE LAW →Step, next, continue, source breakpoints and immutable binding/frame/stack inspection on the same VM.
DEBUG LAW →The compiler's executable law mirror is written in I13: opcode effects, frame admission, tagged operation gates and Answer modes.
SELF-USE LAW →I13-BOOTSTRAP-0.1
This phase deliberately moves executable compiler-law logic into examples/compiler_bootstrap.i13 without pretending the language can already parse its own source. The host orchestrates; I13 computes and self-tests.
Text, collections, filesystem access and compiler construction still require the host because those capabilities do not exist in frozen I13 v0.1.
I13 now computes its bootstrap witness itself. The host only checks the exported results; it does not implement those bootstrap decisions for the test.
Every frozen IVM opcode has its stack need/net law represented in I13, including variable Call(argc).
A recursive I13 witness covers all fifteen effect signatures at fixed bootstrap arity 3.
With 4095 active frames, one more I13 frame is admitted to reach the canonical ceiling.
At the ceiling, another Call is rejected by the I13 bootstrap mirror.
The I13 law kernel computes need 17 and net -16 instead of relying on one hard-coded arity.
Generated Wasm matched every exported bootstrap proof global and repeated deterministically.
REPRESENTATION LAW
The first Wasm torture break came from flattening function handles into numeric payloads. The frozen repair carries kind, payload and binding state as separate facts.
NUMBER uses kind 0 with an f64 payload. FUNCTION uses kind 1 with a function/table identity payload. Binding state remains independent.
Ask, Answer, arguments, returns, globals and locals preserve the tagged pair. A backend may change representation; it may not erase value identity.
RESOURCE BOUNDARIES
The compiler deliberately distinguishes a canonical I13 execution limit from an implementation safety fuse.
Canonical language execution law. Root/main counts as frame 1. Reference VM and generated Wasm must enforce the same ceiling.
Deterministic runtime safety fuse. One executed IVM instruction equals one VM step, but the 8M default is not language validity and Wasm need not copy it.
HARDENING EVIDENCE
Torture discovers, policy tests characterize, conformance freezes accepted behavior, and bootstrap proves how much of the law can be exercised by I13 itself.
Arithmetic, control, tagged function flow, arity, binding edges and recursion through the canonical frame fence.
VM and Wasm both complete. 4095 and 4096 produce matched canonical frame rejection/trap.
Whole CLI paths, stable diagnostics, execution results, runtime traps and the I13 frame law remain gated.
Function identity survives globals, arguments, returns and comparisons without falling back into numeric payloads.
Run, trace and debug share the same execution loop. Observers cannot write execution state.
The I13-coded law kernel passes reference VM and generated Wasm parity, including deterministic rerun.
Reference VM hits the 8M safety fuse while Wasm completes. Classified as runtime-policy divergence, not semantic defect.
DEBUGGER v0.1
The terminal below is a visual guide to the frozen debugger vocabulary. It is not a browser execution engine and does not redefine compiler authority.
Debugger commands: step · next · continue · break · delete · bindings · print · stack · frames · where · quit
CANONICAL RECORD
These records separate construction history, accepted law and measured evidence.