T81 Foundation

Guide: Runtime Contract Helpers

This guide covers new low-level helpers used to harden determinism and safety checks in runtime flows.

TISC Opcode Contract Helpers

Header: include/t81/isa/opcodes.hpp

Added helpers:

Typical use cases:

core/isa/encoding.cpp now uses is_valid_opcode(...) so decode acceptance tracks the full enum range through MetaRefine.

VM Safety Counters

Header: include/t81/vm/state.hpp

Added state fields:

Runtime behavior in core/vm/vm.cpp:

Related reason keys in include/t81/axion/reasons.hpp:

These checks provide deterministic guardrails while preserving existing VM control-flow semantics.