Expand description
Framework-wide version constants.
Four orthogonal version axes are checked at the install seam
between DSL → Compiler → Runtime, per
docs-plan/CORRECTED_ARCHITECTURE.md §Versioning:
FRAMEWORK_IR_VERSION— stamped by DSL intoModelProto.metadata_props["ai.bytesandbrains.ir_version"]; checked once atCompiler::with_target_versionentry.WireEnvelope.schema_version— lives on the wire envelope (bb-runtime); checked byEnvelopeCodec::decode_capped.NodeSnapshot.spec_version— lives on the snapshot (bb-runtime); checked byNode::restore.crate::syscall_ids::SYSCALL_OPSET_VERSION(and sibling domain-versioned opsets) — stamped intoGraphProto.opset_import; the runtime registersatomic_dispatchkeyed by(domain, op_type, version).
Constants§
- FRAMEWORK_
IR_ VERSION - The current framework IR contract version. Bump when the
ModelProtoinvariants the compiler depends on change in a way that older DSL emits cannot satisfy. - FRAMEWORK_
IR_ VERSION_ KEY - Canonical metadata-props key under which
FRAMEWORK_IR_VERSIONis stamped on eachModelProto.