This guide covers new low-level helpers used to harden determinism and safety checks in runtime flows.
Header: include/t81/isa/opcodes.hpp
Added helpers:
t81::tisc::opcode_name(Opcode)t81::tisc::kAllOpcodest81::tisc::is_valid_opcode(std::uint8_t)Typical use cases:
core/isa/encoding.cpp now uses is_valid_opcode(...) so decode acceptance tracks the full enum range through MetaRefine.
Header: include/t81/vm/state.hpp
Added state fields:
call_depthcontradiction_eventsRuntime behavior in core/vm/vm.cpp:
Call enforces a hard recursion ceiling and records a security event when exceeded.Ret decrements tracked depth and increments contradiction count when depth underflows.max(stack_frames.size(), call_depth).Related reason keys in include/t81/axion/reasons.hpp:
kRecursionCeilingkContradictionDetectedThese checks provide deterministic guardrails while preserving existing VM control-flow semantics.