pub const SOURCE_METADATA_SCHEMA_VERSION: u32 = 7;Expand description
The source-metadata sidecar schema version this module emits.
1 -> 2. Version 2 is ADDITIVE over version 1 and every
reader in the tree defaults the new fields, so a v1 sidecar still parses:
- every endpoint kind carries
qos(v1: publishers and subscribers only); the value is the profile the runtime was handed AFTER overrides, which is what the executor sizes for; - a
timers[]row carrieskind–wall/clock/oneshot/in_group– and a guard condition is a row of that array withkind: "guard_condition", so slot consumers that count the array keep counting one slot each while a census can tell the two apart; - a
parameters[]row carriestype.
2 -> 3, additive again, and every reader defaults the new
field:
- a
subscribers[]row may carryin_place– whether THAT registration’s delivery shape can dispatch out of the backend’s own receive slot (EntityMetadata::in_place_capable). An absent key is a refusal, not afalse: it is what a probe that declares without registering leaves behind, and a consumer that read it asfalsewould state a registration path nobody observed.
Version 4 is additive again:
- a
subscribers[]row may carrybuffered–"typed_bound"or"unbounded", the BUFFERED row that registration claimed (EntityMetadata::buffered_row): whether its receive slot is a bound the call site stated or the closure buffer (RX_BUF). Written besidein_placeby the same observation, and absent exactly when it is.
Version 5 is additive again:
- a
nodes[]row may carry"lifecycle": true– the node’s OWN code registered a lifecycle state machine while the probe ran it (NodeMetadata::code_managed). Observed at the executor’s lifecycle funnel, never declared. Absent means no registration was observed, and the node is plain, which is the run-time rule too.
Version 6 is additive again:
- top-level
"parameter_description_max_len": Nand"parameter_constraints_max_len": N– the longest parameterdescriptionandadditional_constraintsthe code set while the probe watched, in bytes, before any truncation;0for one it never set. They sizeNROS_PARAMS_MAX_DESCRIPTION_BYTESandNROS_PARAMS_MAX_CONSTRAINTS_BYTESrespectively. An absent key means nobody watched, never0: a producer that cannot observe prose leaves both out, and a consumer must refuse to derive either knob from that sidecar rather than read it as “no text”.
Version 7 is additive again:
- top-level
"parameter_declarations_watched": true | false– whether theparameterslist is the node’s WHOLE declaration set.trueonly when every declaration route the image links was observed, the recorder took every row, and no node opted into undeclared parameters.falsewhen the probe watched and one of those failed. An absent key means nobody watched: a consumer may read an emptyparameterslist as “this node declares none” only besidetrue.
Serialised in exactly one place (this module), as the census layer rule requires: the adapters that feed the recorder contain no JSON.
A key or version change re-blesses the golden sidecar the CLI parses
strictly: see the_golden_probe_sidecar_is_what_the_recorder_writes.