libtracer — context glossary

The canonical vocabulary of libtracer, tracking the reference suite and the normative spec; where another page disagrees, that page is fixed. Each entry gives the term, a short definition, a Detail link for mechanics (C++ headers: file map; ADR/RFC status: index), and Avoid: phrases naming something the protocol lacks or confuses.

Names and versioning

  • Tracer (protocol): The wire protocol: the frames, type codes, addressing, error model and data-API semantics that docs/spec/v1.md and its annexes define. Any peer that implements the spec speaks Tracer. Avoid: “the libtracer protocol”; “libtracer” for the wire.

  • libtracer (reference implementation): The project’s own implementation of Tracer: the C++ core, its bindings and integrations, its packages and this repository. Its behaviour is never normative; where it and the spec disagree, the spec wins. On-the-wire identifiers named before the split (mDNS service names, the “libtracer vN compatible” conformance claim) keep their spelling. Avoid: “Tracer” for the library, a package or the repository.

  • Protocol version: The integer version of the wire format and its specification — v1 — frozen on release and learned at the discovery layer, never per frame. Detail. Avoid: “VR bit”, “wire format v0.1”, per-frame version, VR / version bit.; opt bit 7 is reserved, never a version bit

  • Release version: An implementation’s semantic version, decoupled from the protocol version; it never signals a wire change. Detail. Avoid: calling this “the protocol version”; reading wire compatibility out of a release number.

  • Discovery-layer versioning: The mechanism that keeps incompatible protocol versions apart — a distinct service name / port / CAN-ID prefix per protocol version — used instead of a per-frame version field.

  • Capability negotiation: Does not exist: receivers MUST accept every LL/CW/TF variant. Detail. Avoid: “per-peer capability discovery”, “feature negotiation handshake”.

Wire format (canonical per reference 01 and 05)

  • opt byte: The 1-byte options bitfield of every TLV, bits 7→0 R│PL│TS│CR│LL│CW│TF│R. Detail. Avoid: any VR (version) or FP (finite-pool) bit.

  • TLV header: A 4-byte header (type u8, opt u8, length u16 LE), or 6 bytes when opt.LL=1 (length u32 LE). Integrity and wire-time live in the optional trailer, never the header. Avoid: “8-byte header”, “crc in the header”, “length: varint”.

  • Length field: Fixed-width little-endian — u16 (default) or u32 (opt.LL=1). No u64; oversize payloads address-shift across ep[0..N]. Avoid: “LEB128”, “finite-pool length encoding” (both rejected, 01 §rejected designs).

  • Trailer: Optional bytes appended at egress and stripped at ingress, leaving the payload byte-identical across hops. Carries an optional wire-time timestamp (opt.TS) and/or CRC (opt.CR).

  • CRC: A trailer-resident bit-flip check gated by opt.CR: CRC-32C, or CRC-16-CCITT when opt.CW=1. Detail. Avoid: “XOR-16”, “CRC in the header”, “CRC always present”.

  • Structured TLV: A TLV with opt.PL=1 whose payload is only child TLVs; its type code says what they mean. Detail. Avoid: “LIST”, “type 0x05”.

  • Validation timing (lazy, per-level): Validity is checked where a level is consumed; ingress checks only the CRC and the top header. Detail. Avoid: “ingress rejects malformed frames”; “depth cap / kMaxDepth”; “validation is a separate pass”.

Graph, addressing & API

  • read / write / await: The entire data API — three calls, plus refcount management. There is no connect / disconnect / subscribe primitive. Avoid: “connect”, “disconnect”, “subscribe()” as API verbs.

  • Field-write (the : control plane — the vertex’s ioctl): The control surface: subscriptions, ACLs and settings are optional : fields of one vertex, its ioctl, beside the read/write data plane and the await readiness plane. Detail. Avoid: “control plane” for anything but the : plane; “control facets are sub-vertices” (control facet ⇒ :, distinct identity ⇒ /); “every vertex must implement the control fields”.

  • Application field / field descriptor table: An owner-defined property at :settings.app.<name>, declared in a per-vertex table through the local host API only. Detail. Avoid: “remote field declaration”; “app knobs flat in settings.*”; “app fields wake await”.

  • Schema (:schema) — exactly one per vertex, describing that vertex: A vertex’s self-description: a synthesized protocol part, the maker’s intent document when there is one (NAME "doc"; UTF-8, one normative key: the contract URI), then any owner part; a child’s schema is read from the child. Detail. Avoid: “:children.schema”; “a schema per field”; “:schema lists the children”; “:description” (retired); “the runtime parses the document”.

  • Node identity (:identity): The node’s public key, node-scoped and readable above the READ gate so a peer can pin it. Detail. Avoid: “per-vertex identity”; “identity is behind the ACL”.

  • Announce write: A field write wakes nothing; the owner follows an applied change with an ordinary write at the vertex. Detail. Avoid: “await on a :field”; “consumers poll fields for changes”.

  • Field promotion (notification by vertex-promotion): A : field has no subscribers; a datum that must be observed on its own is promoted to a / child vertex, by the producer. Detail. Avoid: “per-field subscriptions”; “every config knob is a vertex”; “the consumer can promote a producer’s field”.

  • Structural vertex: A vertex that only holds a position in the path tree, such as /net/<module>; only its minter can tell it apart. Detail. Avoid: “grouping vertex”; “the graph knows which vertices are structural”.

  • Path-as-route (a transport vertex mounts the peer’s graph): A remote vertex is addressed by its full path from the caller’s root, walking through transport vertices; replies retrace the link. Detail. Avoid: “each hop strips one NAME segment”; “a global device name”; “a reply correlation-id”; “the path is location-independent”.

  • Path element / path object: The unit an address is made of: a NAME (a segment record) or a PAIR, one node’s owner-issued (index, generation) (an escape record). The string path is the truth; a PAIR chain is a learned cache. A path object is the graph-owned name the host API takes: the canonical bytes, the local pair they last resolved to, and a soft inline chain cache sized at compile time; a stale pair falls back to the bytes. Detail, object. Avoid: “path segment” for the element; “bound path”, “vertex ref”, “path label”; bare “label”; “a PAIR authorizes”.

  • Chain delivery: A stream delivery from a producer to a remote subscriber is a FWD{WRITE} addressed by the subscription edge’s chain where the edge holds one (its canonical return route otherwise), with an empty src. Each hop consumes its own element, so the frame shrinks by one element per hop, and no hop holds per-flow state for the stream. The edge learns its chain at subscribe, with no flag: every forwarding hop prepends its PAIR (else its NAME run) to the subscribe’s reverse list (0x15), and the producer stores it behind its own PAIR. An edge with no chain (a direct subscriber, or a refused element 0) sends canonically. A request’s origin learns its own chain the same way, from the success reply’s src. BATCH (0x80) is the app’s optional choice for many samples in one frame. A per-link stream alias (the retired ADVERTISE / COMPACT route handles) is gone from the protocol and the router; only a transport may keep a link-local alias private to its two ends (CAN’s native-ID map). Detail. Avoid: “COMPACT plane”, “route handle”.

  • SUBSCRIBER direction (producer-holds): The edge lives on the source’s :subscribers[] and names one target; the source’s :acl gates subscribe (READ), the target’s gates fan-in (WRITE), and delivery terminates at the target. Detail. Avoid: “the subscriber stores its sources”; “the consumer’s ACL gates subscribe”; “the target knows which subscription wrote it”; “subscribing needs connect”; “a delivery relays onward”.

  • Graph (address) composition / composite subscription: The vertex tree as a composition axis: one subscription to a parent covers its subtree, and a read of it serves the composed branch. Detail. Avoid: “a SUBSCRIBER per leaf”; “the graph tree is the TLV tree”; “read('/x:[]')”.

  • Subtree subscription / vertical bubbling: A subscription observes writes to its vertex and every descendant; await does not. Detail. Avoid: “a subscription sees only its own vertex”; “bubbling path-tags the delivery”; “await wakes on descendant writes”.

  • Branch write / decomposition: A POINT-tree write that decomposes: each value lands at its descendant vertex as a zero-copy subview. Detail. Avoid: “stored opaquely at the parent”; “the branch is a transaction”; “a wire batch container”.

  • Write-creates: A local write to a missing vertex creates it, mkdir -p style, under the parent’s WRITE right; a remote one answers not_found. Detail. Avoid: “a remote write to an unknown path creates it”; “creation needs :children[]”; “field writes create”.

  • In-band vertex creation / creator endpoint: Creation is an ACL-gated write of a controller-spec to a device’s creator endpoint, selecting a device-known type. Detail. Avoid: “registered only out-of-band”; “creation is a create primitive”; one global creator path under /net.

  • Controller vertex / controller ports / binding / subscription selector: A device-known unit: create exposes its port vertices, and bind is a separate SUBSCRIBER wiring step. A subscription selector switches existing subscriptions among named options by suspending them in place. Detail, selector. Avoid: “creation wires the controller”; “a controller is one monolithic vertex”; “the orchestrator defines the type”; “the selector subscribes/unsubscribes”; bare “selector” (that is the FIELD address selector).

  • Transport vertex / connection vertex / link state: A transport and each connection in it are / vertices, created by a SPEC write to /net/<module>/conn; the module fixes transport and role. The vertex is persistent; the link under it self-heals, and its link state is one of six liveness values: DORMANT, DIALING, RECONNECTING, UP, LISTENING, BIND_FAILED (detail). Detail. Avoid: “transport config is a :settings field”; “reconfigure by writing :settings”; “an idle connection is torn down”; “a global connection catalog”; “link token”; a seventh link state; UP for a listener.

  • Peer / peer symmetry: Anything that speaks the wire format; peers are symmetric, and the only asymmetries are per-operation. Detail. Avoid: “satellite”, “main node”, “master/slave”, “the hub”, “the coordinator”.

  • Session: This node’s name for the link a remote subscription, or a :subscribers[N] replace, arrived over; or the caller context of a :subscribers[] field-write that no link carried. A subscription belongs to its session and is evicted with it when that link or bus peer departs. Two sessions of one subject are two sessions. Detail. Avoid: “session” for a subject; a bus peer’s session anchor (mount:peer), which names a vertex.

  • Peer record: A link’s one record per peer it serves or hears: the peer’s address with a generation, freed when the peer leaves, so a send to a departed peer’s reused address is refused. It is link state, not graph state: no vertex and no census. Detail. Avoid: a per-peer transport or “peer endpoint”; “the link expires a peer by silence” (the application sweeps, with its own now).

  • Naming authority / minting boundary: Where a name enters the graph; it must be addressable, checked by one shared predicate, and naming policy is the application’s. Detail. Avoid: “enumerable but not addressable”; “core derives the module name”; “/net is the network root” as a protocol fact.

  • Network formation / orchestrator (ephemeral admin peer): Cross-node wiring by ordinary writes: an orchestrator is a peer granted WRITE where it creates and binds and READ where it subscribes, then departs. Detail. Avoid: “the orchestrator needs its own protocol”; “the orchestrator proxies the data”; “the reconciler is protocol”.

  • Access control (ACL) / subject-token: Local authorization of subject → rights, where the subject is a pluggable token the transport authenticates. Detail. Avoid: “capabilities vs ACL”; “ACL authenticates”; “stronger identity means X.509 PKI”.

  • ACL entry (ACE, NFSv4-style) / inheritance: An NFSv4-style ALLOW/DENY entry with a subject and an access_mask of two rights, READ and WRITE; a : field answers its vertex’s ACL, :acl is written by the owner only, and INHERIT covers a subtree. Detail. Avoid: “admin is a right”; “a field has its own right”; “ACL is per-vertex only”; “MCU must implement DENY ordering”.

  • Per-subscriber delivery policy: A subscription’s QoS, carried per edge in its SUBSCRIBER and enforced producer-side; byte-agnostic. Detail. Avoid: “deadband is a QoS field”; “delivery policy is per-vertex”; “a magnitude in the policy bits”.

  • Owner-side storage declaration / copy-or-share hint: :settings has no core knobs; retention and the copy-or-share hint are owner-declared host-API parameters, never inherited. The hint is SHARE (keep a reference to the receive block), COPY, or default, which follows the memory backend’s build-time rule. Detail. Avoid: “the vertex’s QoS block”; “:settings resolves up the tree”; “store_ref_min_bytes” for the declaration; “pin ratio” / “K”; a byte threshold per vertex.

  • Retention (retention_t { NONE, LAST, N }): What a vertex keeps after delivery: nothing, its last value, or the last N; NONE is the pure relay. Detail. Avoid: “durability” for retention; “a relay role”.

  • Pin borrow (of the inbound RX segment): A pinned value holds its receive segment for its whole lifetime; the application owns that budget. Detail. Avoid: “pinning saves memory”; “the pin lasts for the callback”; “K bounds pool occupancy”.

  • Lazy / on-demand source (subscriber-gated production): A vertex that produces only while subscribed, observing its own subscriber count. Detail. Avoid: “a dedicated on-subscribe wire hook”; “the source always runs”.

  • Array-whole read / atomic multi-field write (the LIST replacement): An array-whole read like read('/x:subscribers[]') returns a PL=1 reply whose children are the element TLVs (SUBSCRIBER 0x04 for subscribers). An atomic multi-field write is a SETTINGS (0x0B) TLV. Neither uses a generic container. Avoid: “returns a LIST”, “write a single LIST TLV”.

  • Element addressing ([] appends, [n] addresses): [n] selects the n-th child of a field or value and [] appends one; indexing is structural, never temporal. Detail. Avoid: “[n] selects append-vs-overwrite”; “[n] reads the history ring”; “subscribe to element n”.

  • Addressed whole (a field with no member or slot surface): A field addressed as one unit (:acl, :subscribers, :children, :schema); a deeper selector answers not_found. Detail. Avoid: “extra selector steps are harmless”.

  • :subscribers[N] is the unsubscribe: An empty STATUS clears the slot, a SUBSCRIBER replaces it, anything else is TYPE_MISMATCH. Detail. Avoid: “write a SUBSCRIBER to [N] to install record N”.

  • Index mode (SCALAR / ELEMENT / WILDCARD): A FIELD level’s three forms: :name, :name[N] / :name[], and :name[*], which v1 encodes but no operation performs. Detail. Avoid: other names for the modes; a textual path wildcard.

  • Fixed-stride array: An array field of equal-size elements, indexed by offset; array-ness is a schema property, never a wire bit. Detail. Avoid: “array type code”, “opt.ARRAY bit”.

  • Address-shift slicing: A large payload split across ep[0..N] sharing one (origin_peer_id, ts); totality is opt-in. Detail. Avoid: grouping by ts alone; “fragmentation”.

  • origin_timestamp (per-producer monotonic) / coherent sampling: The per-producer, strictly increasing ts; one (origin, ts) marks one coherent sample. Wire, sample and playout time are separate clocks. Detail. Avoid: “origin_timestamp is wall-clock”; “two nodes’ timestamps are comparable”; “the trailer TS is the sample time”.

  • Batch convention / user-orchestrated batching: N samples folded into one written value with one TIME base, composed and pushed by the application. Detail. Avoid: “the graph batches”; “a batch is a new type/role”; “composing a batch copies the samples”.

  • Cycle termination: Both planes are loop-free by construction; no dedup set, hop counter or depth cap exists. Detail. Avoid: “a hop_count/dedup set”; “the dispatch-depth cap (32)”.

  • Wildcard delivery metadata: How a subtree subscriber learns a delivery’s concrete path; no wire tag carries it. Detail. Avoid: “remote delivery carries the matched concrete PATH”.

  • Framing modes: full-TLV (full caps) vs header-elided (non-interactive bindings): Self-describing full-TLV frames, or frames keyed on the transport’s native id with the header elided; they coexist. Detail. Avoid: “an either/or”; “the forwarder maps CAN IDs”; “the TLV header rides the CAN bus”.

  • Advertise + id-match → dynamic rope groups: An advertised manifest whose id-matched slices chain into one rope. Detail. Avoid: “it obviates the rope delivery seam”.

Errors

  • tr:: error namespace (two registers): Protocol error identities on the wire, tr::<concept>::<error>, keyed by the eight protocol concepts; the C++ namespaces of the reference implementation are a separate, layer-keyed register. Detail. Avoid: a flat byte registry; tr::<layer>::<module> for errors; a user-error range; a C++ namespace named for an error concept.

  • Registered code / string identity: An error’s on-wire identity is either a compact registered code (a u16 the frozen registry assigns to a built-in tr::… path) or the literal string path (for unbounded third-party stack extensions). Optional structured detail may attach to either. The split is the built-in-vs-extensible split.

  • Severity / disposition: Per-error properties of the registry entry, never on the wire: severity ∈ warn|error|critical; disposition ∈ transient (retry) | permanent (don’t retry this request) | fatal (tear down the peer). Derived at L4 on receipt.

  • Closed error boundary: Applications never emit a protocol error; there is no user error range. An application failure is ordinary data, self-described by the application’s schema — the same way the protocol defines no application data types (ADR-0010).

  • ERROR (0x08): The structured TLV carrying a tr:: error identity plus optional detail; its first child is the identity. Detail.

  • Flow gap (tr::flow::address_shift_gap — a discontinuity in an ordered flow): The one signal that in-order elements did not arrive, always accounted. Detail. Avoid: a new gap code per producer; “silent drop-oldest”; confusing it with tr::flow::backpressure.

  • tr::version::mismatch: A discovery/link-level error — “peer advertised an incompatible protocol version”. Not a frame-parse outcome, because there is no per-frame version field to read. It replaces a byte code (VERSION_MISMATCH 0x06) in a flat registry. Avoid: “opt.VR set higher than receiver supports”; the 0x06 byte code as an identity.

Modules & memory substrate

  • Required modules: The modules every conforming node links (frame codec, path resolver, view/refcount machinery, FWD forwarder/dispatcher with two or more connection vertices) — equivalently conformance profile P0. They are not architecturally privileged. Avoid: “Core” as a privileged unit or build; “Core” as a noun for a fixed privileged build (the core/ directory and “core type codes 0x01–0x1F” are unaffected).

  • io_dir_t: The cache-coherency direction enum: DEVICE_TO_CPU (invalidate) and CPU_TO_DEVICE (clean). Detail. Avoid: IO_DIR_READ/IO_DIR_WRITE, or the unscoped form.

  • Memory-binding spectrum / transparent byte router: Bytes bound as a snapshot, a shadow, or a live view; live, libtracer is a transparent byte router. Detail. Avoid: “endpoints must snapshot/copy”.

  • Module set (build-time-closed) / module ABI: The per-target set of module types at a seam, closed at build time; instances stay runtime. The contracts between modules (the module ABI) are implementation-defined; nodes interoperate over the wire only (detail). Detail. Avoid: “registry” (the type-code and error registries are the only registries); “registry”, “catalog” or “manifest” for this; “closing the set makes connections static”; “the protocol defines the module ABI”; “the L0 seam is a C vtable”.

  • Resource bound (no synthetic limits): Every limit is an injected resource or per-target configuration, never a magic constant; the addressing bounds are the named exception. Detail. Avoid: “nesting depth cap 32”; “a hardcoded max frame size”; “the runtime protects users from bad designs”.

  • Block source / failable allocation: The single seam every core allocation draws from: raw single-owner blocks, with exhaustion reported by value. Detail. Avoid: “control-plane allocation seam”; “only peer-provoked allocations use it”; “init allocates from the heap”; std::pmr or a throwing std allocator as the seam; “exhaustion throws”.

  • Placement module: The one owner of a block’s header, padding and the choice between one block and a split, decided against the configured size-class table. Detail. Avoid: “each backend lays out its own header”; “the header always shares the payload’s block”.

  • Store composition (folded / per-plane / per-thread): One injected root per graph by default; per-plane and per-thread are opt-in sub-pool layouts the library derives from it. Detail. Avoid: “NARROW / MID / WIDE composition”; “no composition is the default”; “per-plane is the default”; “the deployer wires one source per plane”; “per-plane avoids contention”.

  • Sub-pool: A per-purpose share of the graph’s root (values, tables, net) that the library derives so it can account and cap per purpose. Detail. Avoid: “a separately injected source”; “a sub-pool is a buffer the library owns”.

  • Static arena (MCU default root): Where kSlabPool is false, the default root is one .bss region of kArenaBytes carved into the size classes, with the same three sub-pools; it never trims and refuses when full. kArenaBytes = 0 compiles none, and the platform heap is then the default root (the heap-rooted build, #2090). Detail. Avoid: “the MCU default is the heap” (only the heap-rooted build’s is); “the arena grows”; “an arena block serves any class”.

  • Reclamation domain (hazard domain): Freeing a block a lock-free reader may still hold; the general hazard domain was refuted. The subscriber {fn, ctx} pair is freed after a QSBR grace period (reclaim_qsbr, the default on every target); the value seam by collect(); the LKV slot by its own hazard policy. Detail. Avoid: “the reclamation domain” as a thing that exists; “hazard pointers” as the general answer.

  • Seam park / collect: Retirement parks a vertex’s value seam; the embedder’s explicit collect frees it outside every graph lock. Detail. Avoid: “park until teardown”; “collect() is reclamation”.

  • Segment / view: A view windows a refcounted memory segment; a NAME segment is one path component, encoded as a segment record. Detail. Avoid: bare “segment” for a route segment (a hop strips the whole mount run); bare “segment” for a path component; “each PATH child is a NAME”.

  • Rope / assembly / rope delivery: A rope is a chain of views; assembly and reassembly chain views and never copy, and the owning receiver tier hands one over (a contiguous frame is one link). Detail. Avoid: “reassemble = copy into a contiguous buffer”; “a third receiver tier”; “a scattered frame must be flattened at ingress”.

  • Published value / value block (value_t) and value reference (value_ref_t): The refcounted block a vertex’s last-value slot holds, and the owning handle read and await return. Detail. Avoid: “the LKV shared_ptr”; “the value rope”; calling the block a segment.

  • Two compositions (memory vs TLV): Two orthogonal trees over the same bytes: memory (view → rope) and meaning (opaque → structured TLV). Detail. Avoid: “a rope is a list of TLVs”; “a memory split must align to a TLV boundary”.

  • Enqueue-then-write: How a one-record-at-a-time link serializes senders: the first writes, later ones queue and return, a full queue drops and counts. Detail. Avoid: “the queue makes the write asynchronous”; “a full queue blocks”.

  • Frame ingress / wait module (the peer path): Frame ingress is the one module every link reads frames through: header first, then the payload into a block drawn at its exact length from the link’s own source. The wait module is the one owner of every socket wait on a node, so links own no threads; per target it is an epoll set, lwIP callbacks that hand off to the app’s task, or a loop the app polls. Detail. Avoid: “a receive thread per link”; “a poll timeout to check for stop”; “graph code in the network stack’s task”.