Expand description
Single source of truth for metadata-key string constants shared
across DSL → Compiler → Runtime. Reference these constants rather
than re-typing "ai.bytesandbrains.*" literals.
Constants§
- ATTR_
PEER PeerId-typed value name. Used by backoff + peer-health gates.- BACKEND_
SUBGRAPH_ BODY_ ATTR - Attribute key for the embedded
GraphProtobody inside aBackendSubgraphcarrier. Stamped bycollapse_backend_subgraphs. - BACKEND_
SUBGRAPH_ OP op_typefor a carrier NodeProto wrapping aGraphProtobody. Engine forwards these toBackend::dispatchfor native-graph specialization.- BATCH_
GROUP_ KEY - Per-edge batch grouping id stamped by
analyze_wire_edges. - BINDING_
KEY_ PREFIX - Prefix for per-target per-slot binding entries:
binding.<target>.<slot> = "<role>|<TYPE_NAME>|<slot_id|-1>". - CHAIN_
DEPTH_ KEY - Static chain depth from this Send. Runtime multiplies by
per_hop_budget_nsto size deadlines against the full round-trip. - CHAIN_
TARGETS_ KEY - Comma-separated targets participating in the chain (originating target excluded). Used for per-hop budget renegotiation.
- COMPILED_
CURRENT_ VERSION - Current compilation passport value. Bumps on IR-breaking changes.
- COMPILED_
KEY - Compilation passport key. Missing →
InstallError::NotCompiled; mismatched value →InstallError::IncompatibleCompiledVersion. - CONCRETE_
TYPE_ KEY - Concrete-component type. Paired with
INSTANCE_KEY. - DEDUP_
SLOT - Attribute key carrying the dedup slot identifier on a
DedupGateRxop. Together with the inbound peer this seeds the(peer, slot)dedup key. - DEFAULT_
CLASS - Default-class tag used by
infer_peer_classeswhen a peer expression has no explicit class denotation. - DEP_
SLOT_ KEY_ PREFIX - Prefix for per-dependency entries:
dep.<role> = "<slot>". Stamped byresolve_component_dependencies. - DEST_
SITE_ NAME_ PREFIX - Prefix for per-fill destination site names stamped on
Sendnodes. Used by the lower-network-io pass to derive the partition name on the receive side. - DEST_
SUFFIX_ ATTR_ PREFIX - Prefix for per-fill multiaddr suffixes stamped on
Sendnodes. Suffixes are keyeddest_suffix.<i>for fill indexi. - FRAMEWORK_
IR_ VERSION_ KEY - Canonical metadata-props key under which
FRAMEWORK_IR_VERSIONis stamped on eachModelProto. - INSTANCE_
KEY - Per-instance disambiguator paired with
CONCRETE_TYPE_KEY. - MODULE_
PHASE_ BODY - Body-phase value of
MODULE_PHASE_KEY. - MODULE_
PHASE_ BOOTSTRAP - Bootstrap-phase value of
MODULE_PHASE_KEY. Fired once on first poll; body parks until descendants drain. - MODULE_
PHASE_ KEY - Distinguishes a Module’s body recording from its bootstrap.
Drives
Engine::bootstrap_function_keyseeding on first poll. - RECV_
SLOT_ ID_ KEY - Stamped on
wire.Recvwhose payload feeds a role NodeProto’sslot_idinput. Drivesdecode_typed_fill’s backend-mediated branch. Absent on framework-carrier Recv nodes. - REQUIRED_
TRAIT_ KEY - Required-trait identifier for a generic slot. Paired with
SLOT_ID_KEY. - SLOT_
ID_ KEY - Per-slot disambiguator paired with
REQUIRED_TRAIT_KEY. - TRIGGER_
DENOTATION - Trigger type denotation; matches
<Trigger as WireType>::DENOTATION. - WIRE_
ID_ KEY - Per-edge wire-pairing token minted by
Graph::wireand read by the compiler’sdiscover_wire_edgespass. - WIRE_
TRANSPORT_ DATA - Value of
WIRE_TRANSPORT_KEYfor full-payload edges. - WIRE_
TRANSPORT_ KEY - Per-edge classification stamped by
analyze_wire_edges. Value isWIRE_TRANSPORT_DATAorWIRE_TRANSPORT_TRIGGER_ONLY. - WIRE_
TRANSPORT_ TRIGGER_ ONLY - Value of
WIRE_TRANSPORT_KEYfor trigger-only edges.
Functions§
- binding_
key - Build the binding key for
(target, slot). Splits at the FIRST dot after the prefix when parsing — slot names may contain dots. - dep_
slot_ key - Build the metadata key for a dependency on the canonical role
string (PascalCase - e.g.
"Backend","Index"). - dest_
suffix_ attribute - Per-input
dest_suffix.<name>AttributeProto carrying the resolved destination multiaddr suffix. - encode_
binding_ value - Encode a binding’s
(role, TYPE_NAME, slot_id_or_neg1)triple into the pipe-delimited value"<role>|<TYPE_NAME>|<slot_id_or_-1>". Reads inversely viaparse_binding_value. - parse_
binding_ key - Parse a binding key into
(target, slot).Nonefor non-binding. - parse_
binding_ value - Decompose a binding value into
(role, TYPE_NAME, slot_id_or_-1).Nonewhen the format doesn’t match (the caller surfaces this asInstallError::InvalidBindingTable). - read_
dependency_ metadata - Read
dep.<role> = "<slot>"entries as borrowed(role, slot). - read_
function_ module_ phase - Read
MODULE_PHASE_KEYoff a FunctionProto.Nonewhen the key is absent. - read_
model_ metadata - Read a
ModelProto.metadata_propsentry by key. Returns the borrowed value string;Nonewhen the key isn’t present. - role_
from_ dep_ slot_ key - If
keyis aDEP_SLOT_KEY_PREFIX-namespaced dependency entry, return the bare role string. OtherwiseNone. - stamp_
dependency_ metadata - Stamp
depsontonode.metadata_propsasdep.<role> = "<slot>". Idempotent on duplicates. - stamp_
function_ module_ phase - Stamp
MODULE_PHASE_KEYonto a FunctionProto. Replaces existing. - stamp_
model_ metadata - Stamp
(key, value)ontomodel.metadata_props, replacing any existing entry with the same key. Idempotent on re-runs.