Skip to main content

Module version

Module version 

Source
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:

  1. FRAMEWORK_IR_VERSION — stamped by DSL into ModelProto.metadata_props["ai.bytesandbrains.ir_version"]; checked once at Compiler::with_target_version entry.
  2. WireEnvelope.schema_version — lives on the wire envelope (bb-runtime); checked by EnvelopeCodec::decode_capped.
  3. NodeSnapshot.spec_version — lives on the snapshot (bb-runtime); checked by Node::restore.
  4. crate::syscall_ids::SYSCALL_OPSET_VERSION (and sibling domain-versioned opsets) — stamped into GraphProto.opset_import; the runtime registers atomic_dispatch keyed by (domain, op_type, version).

Constants§

FRAMEWORK_IR_VERSION
The current framework IR contract version. Bump when the ModelProto invariants 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_VERSION is stamped on each ModelProto.