Skip to main content

SOURCE_METADATA_SCHEMA_VERSION

Constant SOURCE_METADATA_SCHEMA_VERSION 

Source
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 carries kind – wall / clock / oneshot / in_group – and a guard condition is a row of that array with kind: "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 carries type.

2 -> 3, additive again, and every reader defaults the new field:

  • a subscribers[] row may carry in_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 a false: it is what a probe that declares without registering leaves behind, and a consumer that read it as false would state a registration path nobody observed.

Version 4 is additive again:

  • a subscribers[] row may carry buffered – "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 beside in_place by 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": N and "parameter_constraints_max_len": N – the longest parameter description and additional_constraints the code set while the probe watched, in bytes, before any truncation; 0 for one it never set. They size NROS_PARAMS_MAX_DESCRIPTION_BYTES and NROS_PARAMS_MAX_CONSTRAINTS_BYTES respectively. An absent key means nobody watched, never 0: 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 the parameters list is the node’s WHOLE declaration set. true only when every declaration route the image links was observed, the recorder took every row, and no node opted into undeclared parameters. false when the probe watched and one of those failed. An absent key means nobody watched: a consumer may read an empty parameters list as “this node declares none” only beside true.

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.