Skip to content

Changelog

Release notes of the Python Node SDK, one ## vX.Y.Z section per release, newest first, written by hand in neuraverse-node-sdk-python/CHANGELOG.md before the releasing merge (see the release checklist). The same file is the reference for the guide's Since SDK admonitions: tests/test_docs_drift.py accepts only versions that appear as ## v... headers here. Entries are prose that names the classes and methods involved and explains root cause and migration impact, so read the section for a new tag rather than the git log when refreshing downstream documentation. The canonical copy is on GitLab: CHANGELOG.md.

v2.52.0

Feat: the base image ships neura_ai_stack_msg (amd64 and arm64) (NRV-13969). The AI team's message package (ai/neura_ai_stack generic package neura-ai-stack-msg 1.0.0-dev.27) is vendored in dependencies/ and installed in runtime-os, so final and builder both carry it. It adds neura_ai_stack_msg/msg/{Detection, DetectionArray, Grasp, GraspArray, GraspPose, GraspPoses, ObjectGraspPosesArray, ObjectPickPosesArray, Pick, PickArray, PickPose, PickPoses, RgbdFrame, Workspace} and neura_ai_stack_msg/action/GenerateGrasps.

  • The package installs a colcon tree under /opt/neura-ai-stack-msg, not /opt/ros/humble. The Dockerfile puts it on AMENT_PREFIX_PATH, CMAKE_PREFIX_PATH, LD_LIBRARY_PATH and PYTHONPATH; sourcing /opt/ros/humble/setup.bash prepends to those, so both prefixes resolve.
  • No file and no fully qualified type collides with the packages already vendored. PickPose, PickPoses, GraspPose, GraspPoses, ObjectPickPosesArray and GenerateGrasps share a short name with neura_grasp_planning_msgs, and Workspace with neura_ai_database_msgs. The SDK resolves by full rosType, so they stay distinct types, and ports of the two packages do not connect.

v2.51.0

Feat: get_frames(), get_robots() and get_paths() can read the scene from project-v2 (NRV-13694). Python and C++. Set project_service_v2_endpoint (dev cloud grpc-api.dev.neuraverse.com:443) and optionally project_service_v2_use_tls (default true); empty keeps the v1 scene builder.

  • The SDK reuses the authorization token the engine sends on Initialize, Configure and GetNodeConfiguration, so frames listed in on_get_configuration work on the first Initialize.
  • Data differs from v1: the project id is the project-v2 UUID, get_frames() also returns SCENE frames, and path segments carry action/action_param instead of jerk, via_frame_id and tool_frame_id.

C++ API change. getFrames(), getRobots() and getPaths() return plain structs from neuraverse_sdk/models/Scene.hpp (SceneFrame, ScenePath, PathSegment) instead of v1 protos: use frame.id instead of frame.id().

Internals: new dependency neuraverse-project-v2-apis 19.0.0; the C++ SDK generates the same stubs through the Conan recipe nv_project_v2_apis, which needs GITLAB_TOKEN or CI_JOB_TOKEN to build.

v2.50.2

Fix: configure rejects port names that would put a wildcard into an MQTT or Zenoh topic (NRV-13545). A port named + or # used to configure fine and then misbehave: a subscriber on <upstream id>/+ received every output of the upstream node, and a publish on such a topic was rejected by the client and never delivered. Both SDKs now check the topics at configure and raise a clear error:

Transport Rejected characters
MQTT #, +
Zenoh *, $, ?, #
  • The check covers output topics <entry.id>/<output> and every input sourceConnection topic. An upstream output named + therefore fails on the downstream subscriber as well. Message: Output '+' maps to MQTT topic 'uuid/node-0/+', which contains reserved character '+'; rename the port; for inputs Input '<name>' subscribes to ... ; rename the upstream output port.
  • The composite dataflow raises DataFlowException before it tears down or creates any adapter, so an invalid reconfigure keeps the running dataflow. The MQTT and Zenoh trigger adapters raise TriggerFlowException.
  • Rules and messages are identical in Python (utils/topic_validation.py) and C++ (utils/TopicValidation.hpp). Topic names do not change, so nodes on mixed SDK versions keep interoperating.
  • Keep port names to [A-Za-z][A-Za-z0-9_]*. It is the only rule that is valid on ROS, MQTT and Zenoh.

Fix: Python Zenoh dataflow and trigger adapters publish on <entry.id>/<port>. They used <entry.name>/<port>, while the C++ SDK, MQTT and the sourceConnection the engine sends all use the id, so Python Zenoh outputs never reached a subscriber. Python and C++ now agree. The visualization topic name of a Zenoh-routed Python output derives from <uuid>/<node id>/<port> instead of the display name.

v2.50.1

Fix: a node renamed to a name with spaces no longer fails at configure (NRV-13507). The ROS dataflow adapter named its ROS node <display name>_data_flow from the raw display name, so a name such as "Robot Cartesian State Publisher" made rcl raise InvalidNodeNameException. Both SDKs now build the name with _ros_safe_node_name (Python) and rosSafeNodeName (C++, utils/RosTopicSanitizer.hpp):

  • Each byte of the display name outside [A-Za-z0-9_] becomes _, and the result is cut to 128 characters.
  • The node id (last segment of entry.id) is appended, then _data_flow: <display>_<node id>_data_flow. The id keeps "Robot publisher" and "Robot_publisher" apart in the ROS graph.
  • A name that does not start with a letter gets an n_ prefix. The whole name is capped at 255 characters.

Topic names do not change for ASCII ids and port names. Python now sanitizes byte-wise over UTF-8, so a non-ASCII character becomes one _ per byte, as the C++ SDK already did; Python topic names change only for non-ASCII ids or port names, and both SDKs now agree. There is no node-author API change.

Fix: the ROS adapter rejects port names that cannot map to a ROS topic, with a clear message. Both SDKs now check the topics at configure, before the ROS node exists, and raise a DataFlowException (_validate_ros_topics in Python, validateRosTopics in utils/RosTopicSanitizer.hpp for C++) when:

  • Two output ports of one node map to the same topic after sanitizing, for example "pose out" and "pose_out": Outputs 'pose out' and 'pose_out' both map to ROS topic '<topic>'; rename one of them.
  • An output topic or an input's source topic has an empty segment, which a port name ending in / or containing // produces: ... has an empty segment; an output port name contains '/'. rcl used to fail with a cryptic error here.

The check runs in the composite dataflow before any adapter is torn down or created, so a failed configure or reconfigure leaves an already configured node with its running dataflow unchanged. Several inputs subscribing to the same source, absolute topics with a leading /, and names that collide across different transports (one port on ROS, the other on MQTT) stay allowed. Keep port names to [A-Za-z][A-Za-z0-9_]*: that is valid on every transport and never needs sanitizing.

v2.50.0

Feature: a node can ask the engine to end the graph run (NRV-9506). The status stream gains a control field. SubscribeNodeStatusStreamResponse.graphStopRequested (bool, field 6, entities 2.68.0) tells the engine that the node is asking for the current graph run to end; the reason rides in the existing resultMessage. The engine ends the run with one of the stops it already has, chosen by the mode below. ArmNodeForRunRequest.supportsGraphStopRequest (bool, field 3) is the engine's advertisement that it acts on the field.

The producer is NodeBase.request_graph_stop(reason). It is platform-internal, not a node-author API: it is listed in docs/public-api-exclusions.txt and described in Internals, and node authors end a run by placing node-misc's EndRunNode in the graph rather than by calling it. The request is edge-triggered and is never repeated: NodeController._record_last_status_snapshot() strips graphStopRequested before the snapshot buffer stores it, which keeps it out of the heartbeat's [resend] re-emit, out of the late-subscriber replay and out of the admin last-status view. A request made on an engine that did not advertise support is still sent, best effort, with a warning naming the missing advertisement.

request_graph_stop(reason, mode="hard") also carries graphStopMode. The default is hard: the engine stops every node and removes the graph, so a caller that only passes a reason ends the run outright. Only mode="soft" keeps the graph loaded and re-runnable without Configure, and an unset mode on the wire is read as hard. The snapshot strip drops the mode with the flag. Requires neuraverse_entities_apis_messages 2.69.0.

NodeBase.arm_for_run() takes a new optional supports_graph_stop_request keyword and NodeController.arm_node_for_run() a matching one; both default to False, so existing callers and configure()'s own arm are unchanged. Python NodeBase gains no author-facing API and the C++ SDK is unchanged.

v2.49.0

Feature: service liveness and readiness probes. Every NodeService, Python and C++, answers unauthenticated probes about the container process. Node health (GetHealthCheck, the health stream, on_health_check) is unchanged and is not part of them.

  • HTTP, on http.port: /health/live (alias /health) and /health/ready. 200 while the probe passes, 503 when it fails. The body is {"status": "ok"|"degraded"|"unavailable", "checks": {"<name>": {"ok": bool, "gating": bool}}} and nothing else. Before, every path except / answered 400.
  • gRPC: grpc.health.v1.Health/Check on grpc.port, without a token. "", NodeServiceApi and every hosted custom service answer readiness, "liveness" answers liveness, other names NOT_FOUND. Watch answers UNIMPLEMENTED. Custom services still cannot register grpc.health.v1.Health.
  • Readiness passes once the gRPC server has started and fails from the moment SIGTERM/SIGINT shutdown begins, before the server stops. Liveness fails when the Consul re-registration monitor has stopped (only when a registry endpoint is configured and a node registered).
  • MQTT and Zenoh in use but disconnected report degraded and never fail a probe. Probes never make network calls.
  • C++: the default gRPC health service (EnableDefaultHealthCheckService) is replaced by the SDK's Check-only service backed by the same checks; grpc/health/v1/health.proto is vendored for the stubs. Before, the C++ health service always answered SERVING and accepted Watch.
  • New contract fixture contracts/fixtures/service_health.json, asserted by both SDKs.
  • New dependency: grpcio-health-checking.

v2.48.0

Feature: C++ parity hardening. Four additive changes to the C++ SDK. Python nodes are unaffected and nothing changes on the wire.

  • Escalate unhealthy to ERROR. NodeServiceConfig.escalate_unhealthy_to_error (default false) and unhealthy_escalate_after_s (default 7.0) port the Python behaviour. A RUNNING node that stays unhealthy that long moves to ERROR and fires its Error trigger with err_type HealthFaultEscalation. A healthy sample cancels a pending escalation, and an onExecute() that returns after the escalation does not move the node back to CONFIGURED. C++ has no YAML or generic environment for these fields; set them in the struct in main().
  • Health results are logged only when they change, as in Python. A node that stays healthy no longer writes a line per check.
  • Typed errors for C++ node authors. <neuraverse_sdk/utils/NodeErrors.hpp> adds NodeError, NodeDataError and NodeDependencyError with the Python factories, error codes, user messages and gRPC status table, plus the builders withErrorCode, withUserMessage, retryable, withRetryHintMinWaitMs and asPublic. <neuraverse_sdk/utils/Retry.hpp> adds autoRetry(fn, max_attempts = 3). Errors are private by default: the caller gets the user message and the full message is logged. NodeError derives NodeSdkError, so existing catches keep working, and the existing exceptions are unchanged on the wire. Only errors thrown from onConfigure() reach the caller typed; the SDKError family is not ported. Difference from Python: the generic private message reads "An error occurred while processing. See the node logs." and does not quote a transaction id.
  • Listener addresses from the environment. grpc__address and http__address override the gRPC and HTTP bind addresses, with the Python names. The environment wins over the struct, an empty value is ignored, and the defaults stay 0.0.0.0. The address a node registers in Consul follows grpc__address.
  • No stall from a slow log sink. The state machine writes its transition log lines after it released its lock, so isPaused() and getState() on a dataflow thread no longer wait for the logger. Status messages are still pushed in order.
  • LiveKit C++ client SDK updated from 1.12.0 to 1.12.2. The base image ships the new client. Both releases are patch-only with no API change: 1.12.1 fixes an unknown SID from a local track, and 1.12.2 pulls livekit-ffi v0.12.82, which fixes a critical memory leak when the server closes a room and a deadlock on room disconnect when many data tracks are published at once. Rebuild C++ nodes on the new base image; nothing else to do.

v2.47.0

Feature: the C++ SDK validates a bearer JWT on every NodeService call. Before, a C++ node accepted configure, execute and stop from anyone who could reach its gRPC port.

  • Every NodeServiceApi RPC on a C++ node requires a valid authorization: Bearer <token>, with no switch to turn it off. Missing or invalid tokens return UNAUTHENTICATED; an unreachable JWKS endpoint with no cached keys returns UNAVAILABLE. With no application configured every call is rejected and startup logs a warning.
  • Configuration is NodeServiceConfig.jwt plus jwt__* environment variables with the Python names (jwt__domain, jwt__applications__<app>__audience, ...). The environment overrides code; there is no YAML in C++. A C++ node that runs behind the engine needs at least jwt__domain and an audience for spa and m2m_default.
  • Differences from Python: only RS, PS and ES algorithms (HS* is rejected at startup), kid is required, exp is required and checked exactly, nbf has 60 s leeway, and aud is required whenever an audience is configured. A service_id claim selects the application of that name.
  • Source-incompatible for custom gRPC services (since 2.44.0): GrpcServiceRegistration::create<Svc>(factory) is now create<Svc>(Authentication, factory). Pass neuraverse::sdk::Authentication::InHandlers and start every handler with neuraverse::sdk::authenticate(context), or pass Authentication::None to leave the service open (startup logs a warning). The SDK cannot gate synchronous handlers itself.
  • Breaking for C++ admin callers: the admin HTTP routes (/admin/whoami, /admin/node/status, /admin/nodes, /admin/nodes/{id}/state, /admin/nodes/{id}/diag) require Authorization: Bearer <JWT>, validated against the same jwt / jwt__* configuration as the gRPC calls. The token's sub, or email (https://neuraverse.com/email, falling back to email), is matched against the unchanged YAML allowlist. Status codes: 401 for a missing or invalid token, 503 when the JWKS is unreachable, 403 for an allowlist miss.
  • The warning for an insecure gRPC listener now says bearer tokens travel unencrypted without TLS.

v2.46.2

Fix: every hard stop waits for on_execute before it tears down.

  • NodeBase.stop() (Python _stop_lifecycle, C++ stopForGeneration) now waits up to stop_execution_join_timeout_s (default 5 s) for on_execute / onExecute to return before any SDK teardown, on_stop or on_cleanup. Before, only StopAndCleanup waited. This covers the deprecated StopNode, Initialize or Configure of a running node, service shutdown and StopAndCleanup.
  • on_cleanup no longer overlaps a returning on_execute, unless the timeout expires: the SDK then logs a warning and tears down anyway. A stop called from inside on_execute does not wait on itself.
  • Fixes a C++ hang or crash for nodes that join their own worker thread both when onExecute exits and in onCleanup. With a deprecated StopNode or a re-initialisation of a running graph the SDK ran onCleanup while onExecute was still returning, a double std::thread::join that showed up as an engine DEADLINE_EXCEEDED or a crashed node container.
  • A hard stop fences the late completion of the run: the node does not go RUNNING to CONFIGURED before STOPPED, and an on_execute that raises on its way out sets no ERROR state and fires no Error trigger.
  • Legacy nodes whose blocking on_execute is only released by the deprecated on_stop now wait the full timeout, with a warning, on every hard stop. Move the release into on_stop_execution.
  • Service shutdown waits up to the timeout for each node that is still running. Reconfiguring a node whose on_execute ignores the stop takes up to the timeout longer; the engine deadlines (Init and Configure 30 s, StopAndCleanup 20 s) leave room.

v2.46.1

Fix: C++ SDK dependency bumps. - Paho MQTT C++ 1.4.1 to 1.6.0. Fixes a potential thread_queue deadlock, a wrong default retain in the will options constructor and undefined behaviour on empty topic matching. It requires C++17 and Paho C 1.3.14 or newer. - Zenoh (zenoh-c, zenoh-cpp) 1.9.0 to 1.10.1, no API change. The Python eclipse-zenoh floor is now >=1.10.1,<2.0.0. - cpp-httplib 0.52.0 to 0.58.0 with server-side security fixes: regex-route stack overflow on long paths, payload_max_length enforced on decompressed bodies, chunked-encoding request smuggling. Regex routes no longer match request paths over 256 characters, so the C++ /admin/nodes/<id>/state and /diag routes return 404 for node IDs longer than about 230 characters. The Python admin API has no such limit.

v2.46.0

Feature: C++ NodeBase author boundary. The C++ NodeBase now enforces, at compile time, which members a node author calls and which are the SDK's own. Public members are the ones you call: publish/getData/publishAny/getDataAny/waitForMessage/registerHandler, fireTrigger, the log* methods, getNodeId/getNodeName/getNodeClassName, getConnectedPorts/getInputTopics/getOutputTopics, isRunActive, isPaused, sendHealthUpdate, getProjectId/getFrames/getRobots/getPaths, pushBackgroundFrame, hasVizSink, getState, and the type aliases. Protected members are the hooks you override (every on* method) plus getNodeVersion, setHealthCheckMessage, registerTriggerHandler and setProjectId, which a hook calls into. Everything else, including the lifecycle methods NodeController and NodesRegistry drive (registerNode, initialize, configure, execute, stop, pause, getSchema, ...) and every data member (state_machine_, trigger_, node_id_, ...), is now private; NodeController and NodesRegistry are the only friends.

Test suites that need to drive the runtime entry points directly (unit tests exercising NodeBase without a NodeController) use the new test-only NodeBaseTestPeer (neuraverse-node-sdk-cpp/tests/NodeBaseTestPeer.hpp, internals(node) helper), which is declared a friend and forwards to the private surface. It ships with the SDK's own test suite, not with the installed package.

Python's NodeBase is unchanged; this is a C++-only compile-time boundary, not a wire or contract change.

v2.45.0

  • Add external Start, Stop, built-in and registered custom input events to declared Python/C++ ports, including disconnected ports. Preserve context and wired dispatch. Acknowledgement means accepted for dispatch, not completed execution.
  • Input Stop performs the existing 2.x target teardown, including cleanup and stop hooks. Other graph branches continue. The stopped target rejects further input until reconfiguration; upstream StopExecution/StopAndCleanup/ArmNodeForRun and native trigger behavior remain available.
  • Inject typed ROS JSON into existing reads and handlers without starting execution. Support scalars, nested messages and arrays with generated defaults, strict shapes, bounded strings/sequences, finite floats and decimal strings for 64-bit integers. Binary arrays use integers, not base64. Reject invalid payloads atomically.
  • Serialize native and external Stop with reconfiguration, and prevent old execution completion or failure from changing replacement-run state or emitting downstream triggers.
  • Wait for broker acknowledgement when configuring Python MQTT inputs, and finish shutting down the previous MQTT network loop before reconnecting after Stop. Immediate native triggers are no longer lost during subscription setup.
  • Preserve native ROS, MQTT and Zenoh input behavior. Reject unknown nodes, invalid ports, inactive/error states and unavailable types with structured input reasons; cancel stale queued work across reconfiguration.
  • Add tested Python/C++ author examples showing acknowledged injection, explicit Start, typed downstream output and target-only Stop. Python is_run_active() exposes the input activity latch; C++ examples use cancellation flags set by onStopExecution() for cooperative execution.
  • Use the prefixed NodeServiceTriggerNodeInputRequest/Response and NodeServiceInjectNodeInputDataRequest/Response generated types from entities 2.61.0. RPC method names and field numbers are unchanged.
  • Align Python and C++ entities pins at 2.61.0 and require common 2.9.0. Rebuild node images before using these operations. Previous 3.x candidate qualification does not qualify this 2.x port.
  • Keep the plain-Python coverage, example and documentation bootstraps importable without ROS by including the JSON-input descriptor dependency in their import stubs. JSON decoding remains verified against real ROS in the wire lane.
  • Make the C++ test image discover its installed ROS input fixtures explicitly and require them at CMake configuration, so scalar/compound conformance includes custom messages on both architectures.

We follow Semantic versioning in the code. And in this file you can find detailed info about changes we made version to version.

v2.44.1

Fix: LiveKit C++ client SDK updated from 1.10.2 to 1.12.0. The base image ships LiveKit C++ client SDK 1.12.0. The 1.11.x series moved to livekit-ffi v0.12.80, which changes reconnect, resume and disconnect handling inside the library. The SDK's LiveKitRuntime relies on the room's reconnecting, reconnected and disconnected events; reconnect behaviour on a dropped connection may differ slightly from 1.10.2.

v2.44.0

Feature: custom gRPC services (NRV-12177). Python and C++ NodeService hosts accept application-owned generated servicers, including a custom-only process with no graph nodes. Startup registrations pair a configured factory with generated bindings and descriptors. Multiple services share the listener and are discoverable through reflection at a known endpoint.

Factories run once per host; custom service state survives node stop execution, stop and cleanup, and the deprecated Stop. Duplicate or reserved names, unusable descriptors, and factory or binding failures abort startup. All four RPC shapes retain native gRPC behavior and the host's existing authentication/transport policy. Python public-method exceptions use fully qualified protobuf paths.

Whole-host shutdown drains gRPC for five seconds before cancellation, while retaining servicer ownership. Existing node-only startup remains supported. Application handlers must cooperate with cancellation.

Python's optional NodeServiceBase.on_shutdown() now releases service-owned ROS nodes, watches and devices before forced exit. It runs once after server shutdown and before asyncio joins its workers, including on SIGTERM, Ctrl+C and startup failure. Hook exceptions are logged and produce exit status 1; further SIGTERMs do not interrupt cleanup. Node stop/cleanup RPCs do not call this synchronous service hook. The example uses an ExitStack for resources.

Includes Python and C++ CRUD examples with an injected in-memory database substitute, generated-client instructions, and a shared real-process wire suite. No additional NodeServiceApi or entities contract changes; this release inherits the entities 2.58.0 contract introduced by SDK 2.43.0.

Build tooling: neuraverse-generate-protos generates Python and/or C++ messages and gRPC bindings from application-owned proto directories. It ships in the Python wheel and SDK image, supports nested schemas and additional import roots, and reports missing tools or compiler failures. The native example, acceptance host, and Python wire fixtures use the same script. C++ generation uses the application's matching native protobuf/gRPC tools.

Release tooling: version preview and publication use fresh checkouts so tags removed during a rollback cannot be restored from a runner's cached repository. Conventional versioning is unchanged. Native and wire tests use pipeline-specific image tags so cached images from an earlier branch revision cannot substitute for the binaries just built.

v2.43.0

Feature: stop execution (soft stop) and the stop/cleanup split (NRV-10590). New StopExecutionNode, StopAndCleanupNode and ArmNodeForRun RPCs (entities 2.58.0) and a new optional author hook on_stop_execution(trigger_context) / onStopExecution(): end the current run but keep configured resources, so the next Run needs no Initialize and no Configure. InitializeNodeResponse.lifecycleProtocolVersion is now 1.

Deprecated: StopNode and the on_stop / onStop hook. Both keep working: StopNode runs the same hard-stop chain as StopAndCleanupNode, and on_stop (no longer abstract) is still called once per lifecycle; overriding it without on_stop_execution logs one warning at service start. C++ onStopRequested() is removed (rename to onStopExecution()).

Behaviour: the hard-stop chain is stop_execution() → SDK teardown → on_stop() (deprecated) → on_cleanup(), so on_cleanup() now runs after the dataflow and trigger adapters are gone. stop_and_cleanup() waits up to the new stop_execution_join_timeout_s (default 5.0 s) for on_execute to return. Each hook runs once per run or lifecycle. An MQTT Stop trigger soft-stops a node that overrides on_stop_execution and hard-stops one that still relies on on_stop. Migration guide: guide/reference/migration-stop-execution.md.

v2.42.0

Feature: typed error vocabulary for node authors. Raise NodeDataError, NodeDependencyError or NodeError from a hook (always through a factory) and the gRPC error boundary maps the error code to a status, keeps or drops the message according to public versus private, and forwards retry advice. The older NodeSDKError family in utils.exceptions is still supported and nothing is removed. C++ is unchanged: nodes keep throwing the NodeSdkError family.

Behaviour: on_execute re-raises a NodeError unchanged, so the Error trigger's err_type is the class you raised. Anything else is still wrapped in NodeExecutionError. That path never goes through the boundary, so err_msg is still the exception text verbatim; keep secrets out of it.

Behaviour: @auto_retry retries only exceptions flagged retryable(). The default wait honours retry_hint_min_wait_ms. A retryable error from on_configure can make the router run configure a second time.

Internals: models/errors/ (NodeError, SDKError and factories), api/grpc/error_boundary.py (to_neura_grpc_error, status_for), _handle_rpc now converts through that boundary instead of stuffing the stringified exception into NeuraPublicRuntimeError. SDKError is the shape for later SDK-raised failures; internals still raise NodeSDKError in 2.42.0.

v2.41.0

Feature: optional unhealthy-to-error escalation. A node service can now turn a sustained health fault into a state-machine error. Set escalate_unhealthy_to_error: true in service_config.yaml and a node that is RUNNING and stays unhealthy for unhealthy_escalate_after_s (default 7.0 s) moves to ERROR and fires the Error trigger once with err_type=HealthFaultEscalation. The key defaults to false, so health stays telemetry-only for every node that does not opt in and no node code changes.

Behaviour: the first unhealthy sample of a fault period arms a one-shot waiter. A healthy sample cancels it and clears the latch, so one continuous unhealthy period escalates at most once, and a later fault can escalate again. configure() and stop() cancel a pending waiter. Escalation is driven by the periodic health monitor, so health_stream_check_interval_s has to stay above 0. An execution that succeeds after the waiter has already moved the node to ERROR no longer calls configure() and fires no Start or Stop trigger.

Behaviour: the health check no longer logs the same result twice in a row. Healthy check result: ... is written when the (is_healthy, message) pair changes, so a 1 s poll no longer writes one INFO line per second, while the first check after every configure() still logs. A hook that raises is logged at ERROR with its traceback instead of passing unnoticed.

Internals: NodeBase gained _health_check_lock, _health_escalation_lock, the one-shot unhealthy-escalation-<node_id> daemon thread and the _handle_health_sample() / _escalate_unhealthy() pair, plus _log_health_sample() and _last_logged_health behind the same lock. get_health_check() arms or cancels the waiter on every sample and _stop_health_monitor() cancels it. NodeServiceConfig gained escalate_unhealthy_to_error and unhealthy_escalate_after_s.

v2.40.1

Fix: a port the engine resolved to Zenoh is now actually served by Zenoh. CompositeDataFlow held two named adapters, _ros_adapter and _mqtt_adapter. _adapter_for() returned the ROS adapter for any transport that was not MQTT, and _split_entry() filed non-MQTT inputs under ROS — so a Zenoh port was quietly published on ROS topics, or served by nothing at all. Zenoh dataflow could therefore never work through the composite, only through a node pinned to a single adapter. The composite now keys adapters by communication type, splits the graph entry per transport, and routes each port to the adapter that transport owns.

Behaviour: unchanged for ROS and MQTT graphs, including the fan-out case where one output port publishes on several transports. Ports the engine leaves UNSPECIFIED still default to MQTT.

Behaviour: one unreachable transport no longer takes the node with it. A transport that cannot be brought up — a Zenoh router that is down, say — is logged and skipped; ports on the other transports keep working, and the unroutable ones report as not connected. The guard covers the adapter's configure(), not only its construction, because that is where every adapter opens its connection.

Behaviour: a port carrying a communication type the SDK has no adapter for (DDS is the only one in the enum today) now falls back to MQTT, the same default UNSPECIFIED ports get. Previously such an input was served by the ROS adapter and such an output raised DataFlowException("Unknown output target") on publish. No graph in the field sets DDS.

Note for spec authors: the adapter classes stay imported at module scope on composite_dataflow and are constructed directly rather than through dataflow_factory, because the spec suite patches those names on this module. Routing them through the factory breaks ~108 tests.

v2.40.0

Feature: data visualization streams straight from the C++ node process (C++ SDK). Every visualizable output reaches LiveKit with no node-author code: images as video, nav_msgs/OccupancyGrid as a greyscale map, audio_common_msgs/AudioData as a waveform, segmentation as masks, boxes and labels over the node's source image, everything else as JSON. Topics the node does not publish itself are picked up by a ROS subscription, and the last value per port is cached so a viewer opening late still sees a frame.

Bugfix: C++ nodes ran on their compiled-in defaults instead of their configuration. A static abseil gave each module its own MixingHashState::kSeed, so protobuf map lookups missed across DSO boundaries and getConfigValue found nothing. Now pinned to abseil/*:shared=True.

Bugfix: a throwing onExecute() no longer takes down the node process. The exception escaped the detached executeBackground() thread and called std::terminate, killing every node in the process.

v2.39.1

Fix: node configurations are stored per namespace/container (Python + C++ SDK). Registration wrote the configuration blob to a flat capability/capability-<Class>/configurations key while the schema blob next to it was already keyed by available-nodes/<namespace>[/<container>]/…. Every device running the same node class therefore wrote the same config key, and the last registrant won — a race that stayed hidden only because overlapping node classes are rare in real setups. The key is now capability/<service_name>/<namespace>[/<container>]/configurations, mirroring the schema blob; un-namespaced registration keeps the flat key, since there is nothing to separate by. No production reader of this key exists in the engine, proxy or studio (they resolve nodes through the Consul service Meta, which was already namespaced), so nothing needs to migrate — but any external tooling that reads the blob directly must learn the namespaced path.

v2.39.0

Feature: pause is cooperative (Python + C++ SDK). Pausing marks the node paused and calls on_pause() (C++: onPause()) — nothing else. Triggers, dataflow and the execute worker keep running, so suspending real work is the node's own job: new is_paused() / isPaused() to poll, e.g. a publisher that sleeps its tick while paused. The hooks fire only on the call that actually transitions the node, so a repeated pause or resume does not re-fire them. StateMachine.pause() and resume() (and every State override, C++ included) now return whether they transitioned, under the machine's lock, and NodeBase fires the hook on that answer — reading the state either side of the call would let two concurrent pauses both run a hook that releases a device handle.

Pause and resume no longer error a node. pause() outside RUNNING used to raise NodeStateError, and the engine pauses every node of a graph, so a graph-wide pause errored healthy nodes. Now CONFIGURED/RUNNING pause to PAUSED and IDLE/STOPPED/ERROR are silent no-ops; resume on a node that is not paused is a no-op too. A throwing on_pause()/on_resume() also no longer parks the node in ERROR — it still raises NodePauseError/NodeResumeError to the caller. Nodes that relied on either to detect a bad pause need to read the state instead.

Resume returns to the state the node paused from, rather than always RUNNING; PAUSED remembers it. Resuming a node paused from CONFIGURED used to land it in RUNNING, a state it had never been in, leaving the graph reporting a running node that executed nothing. configure() and execute() while paused update that remembered state and stay PAUSED, so an incoming trigger cannot silently un-pause a node.

C++ only: StateMachine now takes a lock, which Python already had through its RLock — isPaused() makes state reads cross-thread by design while a transition deletes the old State object. With it, transitionTo() and sendStatusMessage() became private (no callers existed) and concrete states transition through a protected State::transition().

v2.38.0

Bugfix: a Consul agent that is not up yet no longer wedges the node process. After a cluster restart the node pod often wins the race against the Consul agent's listener. The first agent/service/register was refused, the exception escaped asyncio.run(bootstrap_service()) so the gRPC server never started, the process stayed alive anyway (non-daemon threads outlive a dead main thread) so Kubernetes never restarted it — and the health-check monitor, started even on that failed registration, kept re-registering a service whose port nothing served. Consul's TCP check failed, Consul deregistered after 1m, the monitor re-registered 30 s later: a 90-second loop advertising a dead endpoint until an operator deleted the pod.

Three changes:

  • Bootstrap registration retries. Errors meaning "the agent could not be reached" (requests transport errors, consul.ConsulException, OSError) are retried with exponential backoff for up to registry_config.registration_timeout_s (default 120 s), starting at registry_config.registration_retry_delay_s (default 2 s, doubling to a 60 s cap). Also settable via NEURAVERSE_CONSUL_REGISTRATION_TIMEOUT_S / NEURAVERSE_CONSUL_REGISTRATION_RETRY_DELAY_S. Rejections (falsey register response, malformed endpoint) still fail on the first attempt.
  • A registration that never succeeded is never advertised. On failure the registration is not recorded in _registrations and the health-check monitor is not started. Registrations after bootstrap keep the old behaviour — recorded first, healed by the monitor — since the servers are up by then.
  • A failed bootstrap ends the process. run() catches everything, logs, flushes logging and calls os._exit(1) (0 on a clean return or KeyboardInterrupt), so a bootstrap failure becomes a container restart instead of a zombie.

New spec area specifications/specs/service-registry/ (9 scenarios) with brief prompts/240-service-registry-resilience.md.

v2.37.0

Feature: user-defined custom trigger ports (Python + C++ SDK). Node schemas may now declare trigger ports of any type name beyond the built-ins (Start/Stop/Error/IfTrue/IfFalse/InLoop/BreakLoop), e.g. a TaskInterrupt output or a SpecialStart input, connectable in the graph like any trigger (Node1.TaskInterrupt → Node2.Start). New APIs: @trigger_handler("SpecialStart") decorator / register_trigger_handler() to bind a method to a custom input trigger (C++: registerTriggerHandler(name, cb) in the node constructor), and self.fire_trigger("TaskInterrupt") (C++: fireTrigger) to fire a custom output port by name. Custom handlers run on the transport callback thread (concurrent with on_execute); a declared custom input trigger with no bound handler fails ConfigureNode — even while unconnected. Built-in trigger names cannot be re-bound, and the implicit Start/Stop auto-fire after on_execute is unchanged.

Internals: outgoing triggers are now keyed by port name instead of TriggerType (two ports of the same type no longer silently collide — all now fire), the closed-enum whitelist in the MQTT/Zenoh adapters is gone, and payload building moved into ITrigger over a new abstract _publish_trigger(topic, payload) (C++: publishTrigger). Wire format is unchanged for existing graphs: same topics ({entry.id}/{port}), same payloads, same QoS, same publish ordering.

Bugfix: incoming Error triggers no longer crash configure. The Python adapters referenced a never-initialized _error_callback, so a connected Error input port raised AttributeError inside ConfigureNode. Incoming Error now routes to the execute callback (matching the C++ SDK); the handler node can check trigger_context.is_triggered_by_error().

New cross-SDK contract fixture custom_trigger_wire.json pins the custom-trigger topic/payload contract in both SDKs' CI.

Breaking for out-of-tree ITrigger subclasses (nodes only using NodeBase are unaffected): ITrigger gained an abstract _publish_trigger(topic: str, payload: str) -> bool (C++: pure virtual publishTrigger), trigger_next_node is now concrete in the base (C++: non-virtual), and the outgoing maps are name-keyed. Custom adapters — including copies of the mock-runner MockTrigger scaffold — must implement _publish_trigger and populate _outgoing_triggers[port] = topic / _outgoing_port_types[port] = type_name in configure() (see nodes/node-template/neuraverse-mock-runner-v2/src/mock_runner_v2/dataflow/mock_trigger.py for the migrated reference). Also note: @trigger_handler mistakes (built-in name, duplicate registration) raise NodeConfigurationError at node instantiation, which in a multi-node container happens at service startup — a bad decorator fails the whole node service fast rather than one node's ConfigureNode.

v2.36.1

Fix: a wire-id viz topic no longer kills the LiveKit streaming session (NRV-10542 follow-up). The engine mints viz topics as {uuid}:{node_id}/{port}, which cannot be a ROS name — the leading token starts with a digit whenever the UUID does, and a raw UUID's - separators are illegal outright. _subscribe_ros_topics handed that straight to create_subscription, so rcl raised InvalidTopicNameException: topic name token must not start with a number. Only _import_msg_type was guarded, so the raise aborted the whole subscribe loop, and on the start path it escaped _connect_and_stream into _run_event_loop — logged as LiveKit event loop error — which set _running = False and skipped everything after the subscribe call: initial-message replay, the cache republisher, the idle watchdog and the keepalive loop. The result was a room with published tracks and nothing re-emitting frames. Via add_topics the same raise was caught, so it merely logged add_topics: failed to extend streamer and silently dropped the remaining subscriptions.

These ports never needed a ROS subscription: frames reach the streamer through the controller's publish hook, which calls the _handle_* methods directly. So:

  • New _is_ros_subscribable() skips names rcl would reject (debug-logged, noting the hook feeds them). Already-sanitised wire ids ({uuid}_{node_id}/{port}, n_-prefixed) stay subscribable — they are legal names and are what the dataflow really publishes on.
  • create_subscription is now wrapped per topic, so one bad entry cannot cost the topics after it.
  • The start-path call is guarded, so a subscription problem can never again abort session setup.
  • Corrected the livekit_safe_viz_name docstring, which attributed this rcl error to LiveKit.

v2.36.0

  • New: Accept AWS Cognito access tokens from the Neura Gym partner system (NRV-10540 / NRV-10542). A neura_gym entry is added to jwt.applications, pointing at the Cognito user pool eu-central-1_kfAamIoaW via an explicit issuer / jwks_url instead of the shared Auth0 domain. It deliberately carries no audience: Cognito access tokens have no aud claim, so audience verification must stay off for this application. Requires the common-lib bump below, which adds the per-application algorithms override and non-Auth0 issuers.
  • Chore: Bump lib-python-neuraverse-common to ^2.9.0, lib-python-neuraverse-service-grpc to 2.6.0 and lib-python-neuraverse-service-http to 2.3.0.

v2.35.1

Fix: map ICE credential onto LiveKit's password proto field (NRV-7971). The relayed ephemeral TURN servers arrive as WebRTC RTCIceServer dicts (urls, username, credential), but LiveKit's rtc.IceServer protobuf names that field password. The viz publisher was passing credential=, which the SDK rejected at connect time with "Protocol message IceServer has no credential field", so an off-cluster node never applied the TURN servers. Now maps credential -> password.

v2.35.0

Feature: relay per-user ephemeral TURN ICE servers into the viz publisher (NRV-7971). The node engine proxy now forwards the publisher's per-identity ephemeral TURN credentials on StartNodeDataVisualizationRequest.iceServers. The data-visualization streamer feeds them into the LiveKit peer connection (RoomOptions.rtc_config) so an off-cluster node can reach LiveKit through Stunner TURN after the shared-TURN cutover. Empty/absent keeps the SDK's default ICE, so behavior is unchanged until the cutover. Bumps neuraverse_entities_apis_messages to 2.38.0 for the new proto field.

v2.34.0

Node schema self-registration now also available in C++ SDK, following the Python implementation from v2.27.0, plus the stop() monitor fix from v2.29.1. Same wire contract: namespaced service ID, extended service meta, and the schema envelope in KV at available-nodes/<namespace>/<container>/<name>/schema.

Three C++-specific points: - Schemas are located at runtime, since a compiled binary has no inspect.getfile() equivalent. The new SchemaProvider scans NodeServiceConfig.schema_dir at startup and indexes each *_schema.json by the executionContext.className the file declares, not by its filename. A missing or malformed schema degrades to a warning: the node still registers and runs, it just does not appear in the palette. - No service_config.yaml loader, so each repo's main.cpp reads NODE_NAMESPACE, CONTAINER_NAME, SERVICE_VERSION and NODE_SCHEMA_DIR from the environment. - The stale legacy capability-<Class> ID is deregistered at startup, but only once a lookup confirms it is there — Consul logs an agent-side error for an unknown ID, and having no legacy registration is the normal case. Python carries the same latent duplicate.

Consuming C++ node repos must ship normalized schema files and set the new environment variables; node-cpp-playground and node-servo have been migrated.

v2.33.1

Bugfix: PrepareNodeDependencies now passes the request's configuration map to the node service hook. NodeServiceBase.on_prepare_node_dependencies gained an optional configuration: Mapping[str, Any] | None parameter, and the gRPC router decodes the request's map<string, google.protobuf.Value> into plain Python values and forwards it through the controller. Existing subclasses overriding the hook must accept the new optional parameter.

v2.33.0

Feature: arm64 builds for three vendored message packages. neura-ai-database-msgs, neura-grasp-planning-msgs, and neura-common-msgs had no arm64 .deb at the version shipping on amd64, so arm64 images installed without them and those message types did not exist on ARM gateways at all. All three are now vendored for both architectures at matching versions.

The arm64 neura-common-msgs is stamped 0.2.3 while the source it was built from reads 0.2.2. That is deliberate: 0.2.3 was purely the architecture rebuild released in 2.32.1, and its .msg / .srv definitions are byte-identical to 0.2.2, so both architectures carry the same interfaces and now say so.

pose-estimation-ros-msgs and audio-common-msgs stay amd64-only. The only source available for the former is a breaking API change — it removes ObjectPoseWithCovariance, ObjectPoseWithCovarianceArray, DetectedObject.segmentation_index, and five services that three core-components call sites still import — so vendoring it would break node-grasp-manipulator and node-mvtec rather than extend them. It also still declares 2.2.0, the version already vendored, so the break carries no version signal.

Added dependencies/build_vendored_msgs.sh. The Neura message packages depend on each other, so it builds them in dependency order inside one container, installing each fresh .deb before the next compiles against it. It resolves prebuilt dependencies for the target architecture and asserts their real ELF machine type before starting, refuses a version dpkg would reject, and verifies everything it produces. neura-common-msgs is built only when named explicitly, since the AI team owns it.

Added dependencies/tests/test_deb_architecture.py. It reads the ELF machine type of every object in every vendored .deb and requires the filename, the Architecture field, and the objects themselves to agree. A mislabelled package installs without complaint — 2.32.1 fixed the second such case in this directory — and uname cannot detect it, because under QEMU emulation the environment reports the target architecture regardless of what was actually compiled.

No API or message-shape change for existing amd64 consumers.

SDK BaseImage Version: v2.33.0

v2.32.2

Security: bump vendored cpp-httplib 0.15.3 → 0.52.0 in the C++ SDK. Clears the reported yhirose/cpp-httplib vulnerabilities. No Python API impact.

v2.32.1

Fix: neura-common-msgs amd64 .deb shipped aarch64 binaries. The vendored ros-humble-neura-common-msgs_0.2.2-0jammy_amd64.deb in dependencies/ was mislabelled — its Architecture: amd64 metadata was correct but the compiled objects inside were aarch64, which surfaces downstream as an opaque "file in wrong format" link error rather than a packaging failure. Rebuilt genuinely for x86-64 and verified against the real ELF machine type (e_machine offset 18 = 0x3e); SHA256SUMS and dependencies/README.md updated to match. No API or message-shape change — packaging fix only.

SDK BaseImage Version: v2.32.1

v2.32.0

Build: gRPC/Paho/Zenoh are downloaded from Conan instead of compiled in the Dockerfile. No SDK API or runtime behaviour change — build infrastructure only, and the released image ships the same libraries built with the same flags. The minor bump to 2.32.0 is there as a reference point: nothing downstream is expected to break, but 2.31.1 is the last release built the old way, so that is the boundary to bisect against if something does.

Compiling those five from source cost ~30min per cold build, and concurrent pipelines evicting the buildkit cache made that recur. They are now prebuilt Conan packages (nv_*) in this project's own registry, built from neuraverse-node-sdk-cpp/conan/recipes/ only when the registry lacks them. versions.conf replaces conanfile.txt as the single source of truth for the pinned versions; gRPC stays at 1.73.0 against protobuf 31.0. See neuraverse-node-sdk-cpp/conan/README.md.

Perf: the C++ SDK build dropped from ~10min to ~4.5min. Type registrations are split into two translation units per message package, rclcpp is precompiled once, and make -j is a BUILD_JOBS build-arg set to a measured 4 (capped at 2 before, because nproc reports the host's CPUs rather than the pod's ~8GB limit). All 86 registrations unchanged; a deprecated rclcpp callback in TypeRegistry is fixed along the way.

v2.31.1

Fix: node services no longer flood Consul with concurrent connections (NRV-10272). Every NodeBase instance used to create its own ServiceRegistryClient — its own Consul HTTP session (keep-alive connections) and its own ConsulHealthCheck daemon thread — and instance churn on every graph stop → re-init cycle minted new ones without ever stopping the old (the monitor deliberately survives instance stop since v2.29.1, because the registration belongs to the service). On long-running pods the accumulated connections exceeded Consul's per-IP http_max_conns_per_client limit (default 200) and every request from the pod got 429 Your IP is issuing too many concurrent connections. Two changes:

  • One shared ServiceRegistryClient per (endpoint, token) per process. ServiceRegistryRepository now obtains its client from a process-level cache; the client tracks all of the process's registrations (_registrations, keyed by Consul service ID) and one monitor thread validates every one of them with a single agent.services() call per 30s cycle. Re-registering the same capability on instance churn is an idempotent overwrite.
  • Transport/HTTP errors are no longer treated as "not registered". The registration check is tristate now: Consul answering with the service missing triggers re-registration; a transport or HTTP error (Consul down, 429) only backs off (5s → 60s) — previously it triggered re-registration (3 more HTTP calls), which sustained the very rate limiting it was reacting to. The C++ SDK's checkServiceRegistered gets the same tristate semantics (std::optional<bool>, consulGet now surfaces the HTTP status code); its monitor skips re-registration on inconclusive checks. (The C++ SDK never had the connection leak — it joins monitor threads on instance stop and uses per-request curl connections.)

Drive-bys: removed a duplicate register_node definition in node_base.py that silently shadowed the first; corrected the stale stop() comment claiming the monitor is stopped in unregister_node() at service shutdown (no such path exists — the monitor lives for the process lifetime).

v2.31.0

Data repository client: CRUD access to the node-engine key/value store. Adds DataRepositoryClient (api/grpc/clients/data_repository_client.py), a gRPC client wrapping the node-engine NodeEngineApi CreateData/GetData/UpdateData/DeleteData RPCs. - NodeBase exposes create_data/read_data/update_data/delete_data passthroughs (records keyed by namespace + key, values are JSON). - Requires neuraverse_entities_apis_messages 2.33.0.

v2.30.0

Add list_paths / get_paths helpers for SceneBuilder in Python and C++ SDK. SceneBuilderClient.list_paths(project_id, target_robot_ids=None) wraps the new SceneBuilderService.ListPaths RPC and returns paths as plain dicts. NodeBase.get_paths(target_robot_ids=None) mirrors the existing get_frames / get_robots helpers so executor nodes (e.g. PathExecutor) can enumerate authored paths without speaking gRPC directly. Bumped neuraverse_entities_apis_messages to 2.16.0 to pick up Path / PathSegment / PathMotionType and the ListPaths RPC stubs.

v2.29.4

Fix: vendored instance-segmentation-ros-msgs bumped 2.4.0 -> 2.5.0. The 2.4.0 .deb predates MaskWithObjectName and SegmentationResult, so node-model-inference's converters.py could not import the types it publishes. Rebuilt for amd64 and arm64 from ai/interface_pkgs/instance_segmentation_ros_msgs @ b97e8a1 (feat/nodegraph_msgs, unmerged) — see dependencies/README.md for why the vendored version number is local. Also drops the BoxPrompt / EverythingPrompt / PointPrompt / TextPrompt services and their *Image variants, which nothing in core-components referenced. The previous 2.4.0 *_amd64.deb was mislabelled and shipped arm64 binaries; both new packages were verified to contain their declared architecture.

Also includes the second half of the /sdk suffix removal started in 2.29.3: the release image publish step still wrote the old …/neuraverse-node-sdk/sdk path, and it merged after v2.29.3 was tagged, so it ships here.

v2.29.3

Removed the trailing /sdk suffix from images pushed to the node-sdk GitLab container registry. Images now publish to registry.gitlab.neura-robotics.com/neuraverse/neuraverse-node-sdk instead of registry.gitlab.neura-robotics.com/neuraverse/neuraverse-node-sdk/sdk — so the latest tag is …/neuraverse-node-sdk:latest, not …/neuraverse-node-sdk/sdk:latest. Anything pulling the old path must be updated.

v2.29.2

Fix: node service no longer wedges after engine restarts / reconfigures (NRV-9903). Three related leaks let a long-running node service stop answering InitializeNode (client-side DEADLINE_EXCEEDED while Consul resolution kept working):

  • Status/health stream generators now release their gRPC worker on client disconnect. Each server-streaming subscription pins one worker thread; the generators blocked forever on their subscriber queue, so streams abandoned by a dead engine pod pinned workers until the pool (hard-coded at 10) was exhausted and every unary RPC queued past its deadline. The RPC's termination callback now injects the end-of-stream sentinel, plus a periodic is_active() liveness check (5s) as a fallback.
  • grpc_server_max_workers config (default 50, was a hard-coded 10) — the engine opens two streams per initialized node, so 10 workers capped one service at ~5 nodes.
  • Stale node generations are released on re-init. The engine mints a fresh "{uuid}:{node_id}" wire id per configure cycle and forgets old ones on restart, so no StopNode ever arrived for the previous generation — each cycle leaked a full instance (health-monitor thread, execute pool, MQTT trigger, ROS data flow). Initializing a node now stops and removes all older generations of the same logical node; re-binding the same wire id (engine retry) no longer appends a duplicate registry row.

v2.29.1

Fix: node stop() no longer kills Consul registration monitoring. The per-instance stop chain (also triggered when a graph re-initializes a node) stopped the shared, class-level registration monitor — after that, a Consul restart or a transiently failing health check deregistered the capability service permanently (no monitor left to re-register it), and graph configure failed with "No 'capability-X' instance registered". The registration represents the running node service, not one instance; its monitor now lives until service shutdown (unregister_node()).

v2.29.0

Health stream now also available in C++ SDK, following the Python implementation from v2.23.0. getHealthCheck() returns (isHealthy, message); NodeBase gains sendHealthUpdate() and a periodic health monitor (health_stream_check_interval_s), with per-subscriber fan-out and replay in NodeController.

v2.28.0

Error trigger now also available in C++ SDK, following the Python implementation from v2.25.0.

v2.27.1

Build gRPC against system OpenSSL in the C++ SDK image (gRPC_SSL_PROVIDER=package) instead of its bundled BoringSSL, fixing outbound TLS — every call was failing with Peer name <host> is not in peer certificate because the two stacks export overlapping symbols and gRPC's certificate check ran the wrong one. With a single SSL stack the clash is gone, so the neuraverse_link_openssl_first() CMake helper is removed; C++ node projects must drop that call from their CMakeLists.txt or the build fails at configure time.

v2.27.0

Register full node schemas in the (central) service registry for discovery. NodeBase gains get_schema() — the static sibling <module>_schema.json (name, inputs, outputs); dynamic configuration is intentionally not included since the class is not initialized at registration time (it stays runtime-only via InitializeNode/on_get_configuration()) — plus an optional node_version class attribute with get_node_version() falling back to the service descriptor version. Nodes are identified by their schema name; the class name's only place is schema.executionContext.className (it still drives the capability-<Class> service name the engine resolves at configure time). On startup each node now registers with a namespaced Consul service ID (capability-<Class>-<namespace>-<container>, from the new registry_config.node_namespace (default "gateway") and the existing container_name), extended service meta (namespace, container, name, version) and a schema envelope in KV at available-nodes/<namespace>/<container>/<name>/schema, so the same node deployed on the gateway and on edge devices — or shipped by two different node containers on one host — no longer collides in a central registry and GetAvailableNodes (node-engine) can enumerate it. The Consul health check targets node_external_target when set (how Consul reaches a remote node; node_cluster_target is the non-remote path). Registration monitoring/deregistration is keyed by service ID (fixes re-register loop for non-default IDs). Legacy registration shape (service name, KV capability/<name>/configurations) is unchanged. Depends on neuraverse_entities_apis_messages 2.30.1.

v2.26.0

PrepareNodeDependencies: a service-level, post-deployment dependency step. Lets a node prepare what it needs (download model files, fetch remote config) before any node is initialized — distinct from per-node lifecycle.

  • New NodeServiceBase with on_prepare_node_dependencies(); developers subclass it and register via set_node_service_class(...). Optional — defaults to a no-op, so existing nodes are unaffected.
  • The hook is a class method (runs before any node instance exists); NodeServiceApi.PrepareNodeDependencies returns SUCCESS on completion.
  • Requires a neuraverse_entities_apis_messages build that includes the PrepareNodeDependencies stubs.

v2.25.1

Bump gRPC version used in C++ SDK from v1.60.0 to v1.73.0 to closer align with Python SDK.

v2.25.0

Error trigger: propagate trigger context and error information through the node graph. Nodes can now receive and forward a TriggerContext containing source node, timestamp, and optional ErrorInformation through every trigger hop, enabling downstream nodes to know why and by whom they were triggered.

For this purpose two new Pydantic models are introduced in i_trigger.py: ErrorInformation (fields: err_type, err_msg, transaction_id) and TriggerContext (fields: source_node, timestamp, err_info), with a convenience method is_triggered_by_error() on the latter.

The on_execute and on_stop functions now accept an optional trigger_context: TriggerContext keyword argument. The SDK detects via inspect.signature whether a subclass declares the parameter and passes it only when it does, so that existing nodes that define on_execute(self) or on_stop(self) methods without the trigger_context argument continue to work without changes. In other words, this change is backwards compatible with Nodes built on previous versions of the NodeSDK.

ITrigger.trigger_next_node and MQTTTriggerAdapter are updated to serialize the context as JSON into the MQTT payload, falling back to the legacy "triggered" string when no context is present. The incoming context is deserialized on the receiving side and passed to the execute or stop callbacks.

v2.24.1

Graduate the per-node memory-leak profiler to stable (NRV-7920). Promotes 2.24.0b1 — the neuraverse_sdk.utilities.mem_profiler + neuraverse-node-profiler console script — to a stable release. No code change from the beta; drops the pre-release tag so nodes can pin a stable 2.24.1. (Supersedes the incomplete 2.24.0, which was image-only — no matching pip package.)

v2.24.0b1 (beta)

Add a generic per-node memory-leak profiler (neuraverse_sdk.utilities.mem_profiler) — NRV-7920. Drives N configure→stop cycles against any NodeBase subclass, samples /proc RSS + thread count per cycle, writes a CSV trend, and exits non-zero if growth exceeds per-node thresholds (catches the DEC-014 leak family). Exposed as the neuraverse-node-profiler console script; driven by a per-node config JSON (_module/_class + the node's on_configure config + thresholds). Pre-release: opt-in by pinning 2.24.0b1 explicitly — not pulled by default. Verified in-pod on maira-camera + node-misc (PASS) and against an injected thread leak (FAIL).

v2.23.6

Multi-arch Docker image in Gitlab registry. Tagged releases now also publish the merged multi-arch manifest to GitLab Container Registry under the version tag (sdk:X.Y.Z), not just ECR. Developers without AWS/ECR access can docker pull a released SDK image directly from Gitlab, instead of building the image locally (slow). sdk:latest on GitLab CR is now repointed at each new release too, so it always reflects the latest published version rather than the newest (possibly unreleased) main build.

v2.23.0 - v2.23.5

Add push-based node health streaming (SubscribeNodeHealthStream) and periodic health monitoring. Nodes can now push (isHealthy, message) updates to subscribers via a dedicated health queue and fan-out path in NodeController, exposed as SubscribeNodeHealthStream on node-service (entities 2.23.0). NodeBase gains send_health_update(), an optional health_queue at initialize, and a background health monitor controlled by health_stream_check_interval_s (default 10s). get_health_check() now returns tuple[bool, str] and GetHealthCheck surfaces the real message. Late subscribers receive a replay of the last-known health snapshot. Depends on neuraverse_entities_apis_messages 2.23.0.

First version of C++ SDK. Node authors can now build Neuraverse Nodes in C++in addition to Python. Most++ NodeBase ++functionality has been ported: lifecycle hooks (++on_configure++,++ on_execute++,++ on_pause++,++ on_resume++,++ on_stop++,++ on_get_configuration++), the state machine, ROS/MQTT dataflow adapters, the MQTT trigger adapter, and the HTTP/gRPC service surface via++ NodeController++/++NodesRegistry++, mirroring the Python SDK's architecture. The C++ and Python SDKs now ship from a single combined base image (multi-stage Dockerfile at the repo root): the C++ toolchain and dependencies (gRPC, Paho MQTT, Zenoh) are built and installed in early, rarely-changing layers, and only compiled libraries, headers, and CMake package config land in the final, slim image alongside the Python runtime — node authors build FROM this same image regardless of language. Native linux/amd64 and linux/arm64 support.

v2.22.0

Multi-architecture SDK base image (amd64 + arm64) from a single Dockerfile. The SDK base image now builds for both linux/amd64 and linux/arm64 from one Dockerfile, retiring the separately maintained Dockerfile.arm. The custom Neura ROS 2 message .deb packages are now installed per target architecture via Docker buildx's TARGETARCH build arg (dpkg -i *_${TARGETARCH}.deb), and any package lacking a matching-arch build is logged rather than silently skipped. Added arm64 builds of neura-common-msgs and instance-segmentation-ros-msgs alongside the existing amd64 debs and refreshed SHA256SUMS. CI (.gitlab-ci.yml) passes --opt platform=linux/amd64,linux/arm64 to the shared BuildKit build so a single multi-arch image tag is produced. No Python package code changed. Enables running the SDK (and nodes built on it) on ARM gateways such as NVIDIA Jetson Thor.

v2.21.7

Revamp NodeBase.stop() so teardown is fault-isolated and on_stop() always runs exactly once. Previously stop() wrapped the whole destroy chain in a single try/except: the first step that raised (e.g. state_machine.stop, data_flow.destroy, trigger.destroy, executor shutdown, Consul stop_monitoring, _scene_builder_client.close) aborted the rest, leaking every remaining resource, and—because on_stop() was the last statement in the try—skipped the node's own cleanup hook entirely. stop() now runs each teardown step independently via an internal _step(label, fn) helper that catches and logs failures and records the step label instead of bailing out, so a failure in one step can no longer skip the others. on_stop() is invoked from a finally block through the new _invoke_on_stop_once() helper, guarded by _on_stop_called, guaranteeing node resource-release hooks (e.g. dropping a shared robot connection) fire exactly once per lifecycle even if the destroy chain raised; a failure inside on_stop() is logged and never propagated. After the chain completes, if any steps failed they are aggregated into a single NodeStopError ("steps failed: …") and the state machine is moved to error, instead of surfacing only the first failure. The early-return idempotence guard (_stop_completed) and the immediate _auto_trigger = False are preserved. initialize() and configure() now reset _on_stop_called (alongside the existing _stop_completed re-arm) so each fresh lifecycle re-arms the once-guard and on_stop() fires again on the next stop. Backward-compatible. Note - These changes are also in v2.21.6. Tag was created but no changelog was added. This version will have both tag and changelog

v2.21.5

Remove the ~10 Hz ROS dataflow throttle, expose ros_node on the composite dataflow, and make ROS teardown deadline-/leak-safe. ROSDataFlowAdapter._spin() previously ran executor.spin_once(timeout_sec=0.1) followed by time.sleep(0.1), dispatching at most one subscription callback per ~100 ms — so every ROS input on a node was capped at ~10 messages/second aggregate and the rest were dropped at the RMW queue. It now uses executor.spin() (no cap; blocks efficiently while idle, returns on shutdown()). destroy() now tears the executor down safely: it calls executor.shutdown(timeout_sec=2.0) (bounded — an unbounded shutdown blocks until any in-flight subscription callback returns, which could push a node's StopNode past the engine's 10 s deadline and surface as DEADLINE_EXCEEDED), joins the spin thread with a 2.0 s timeout, and only if that thread has actually exited calls executor.remove_node() then ros_node.destroy_node(), nulling the executor/thread/node references so reconfigure cycles release the node, executor, and DDS entities instead of leaking them. The spin thread is now a daemon so a wedged callback can never block process exit, and shutdown/remove_node/destroy_node are each wrapped so one failure can't strand the others. Known limitation: if a single subscription callback blocks longer than the timeouts, the spin thread won't exit and node destruction is deliberately skipped (destroying a node still owned by a live executor would deadlock rclpy), leaving a bounded, attributable leak until process exit; the real cure is non-blocking subscription callbacks, which is out of scope here. Separately, CompositeDataFlow now exposes a ros_node property, so NodeBase.get_ros_node() returns the real node instead of None for composite-backed nodes (previously any node attaching its own ROS subscriptions silently got nothing). Both changes are backward-compatible. Added dataflow teardown regression tests (still-spinning skip-destroy and cleanly-exited release+null paths); the mock executor's shutdown now accepts timeout_sec and gained a remove_node no-op.

v2.21.3

NRV-7809: Fix Consul re-registration dropping service meta (node_external_target). The health-check monitor's re-register path (ServiceRegistryClient._do_register) registered the service WITHOUT meta, while initial registration (register_node) included meta={"node_external_target": ...}. Consul's agent.service.register is a full upsert, so every monitor re-registration (after a Consul restart, or a TCP health-check deregister after >1m unreachable) erased the meta. NES reads node_external_target from that meta to route to the node, so it then fell back to the internal endpoint and the node "did not connect back" until a full node restart re-ran register_node. Both register paths now build meta via a shared _build_meta() helper so they cannot drift again. Added TestReRegisterMeta regression tests asserting the re-register call sends meta identical to the initial register.

v2.21.3

Remove the ~10 Hz ROS dataflow throttle and expose ros_node on the composite dataflow. ROSDataFlowAdapter._spin() previously ran executor.spin_once(timeout_sec=0.1) followed by time.sleep(0.1), dispatching at most one subscription callback per ~100 ms — so every ROS input on a node was capped at ~10 messages/second aggregate and the rest were dropped at the RMW queue. It now uses executor.spin() (no cap; blocks efficiently while idle, returns on shutdown()), and destroy() shuts the executor down and joins before destroying the node. Separately, CompositeDataFlow now exposes a ros_node property, so NodeBase.get_ros_node() returns the real node instead of None for composite-backed nodes (previously any node attaching its own ROS subscriptions silently got nothing). Both changes are backward-compatible. Added dataflow tests and a spin() no-op to the mock executor.

v2.21.3

Remove the ~10 Hz ROS dataflow throttle and expose ros_node on the composite dataflow. ROSDataFlowAdapter._spin() previously ran executor.spin_once(timeout_sec=0.1) followed by time.sleep(0.1), dispatching at most one subscription callback per ~100 ms — so every ROS input on a node was capped at ~10 messages/second aggregate and the rest were dropped at the RMW queue. It now uses executor.spin() (no cap; blocks efficiently while idle, returns on shutdown()), and destroy() shuts the executor down and joins before destroying the node. Separately, CompositeDataFlow now exposes a ros_node property, so NodeBase.get_ros_node() returns the real node instead of None for composite-backed nodes (previously any node attaching its own ROS subscriptions silently got nothing). Both changes are backward-compatible. Added dataflow tests and a spin() no-op to the mock executor.

v2.21.0

NRV-7743: Fix log_error silently dropping the message when no exception is passed. Operator precedence bug in NodeBase.log_error() caused LOGGER.error("") (empty string) when called without an exception= argument — the most common usage in node code. The ternary msg + " " + str(exc) if exc else "" was parsed as the whole expression being conditional, so exception=None logged nothing. Fixed by parenthesising the suffix: msg + (" " + str(exc) if exc else ""). Added tests/test_node_base_logging.py with regression tests for all four logging methods (log_error, log_info, log_warning, log_debug).

v2.20.0

NRV-7648: Fix Consul health-check monitor stop blocking for 5s per node. stop_monitoring() now signals the health-check worker thread via threading.Event.set() before calling join(). The worker uses Event.wait(interval) instead of time.sleep(interval), so it wakes immediately when stopped. Previously the thread was parked in time.sleep(30) and the join(timeout=5) always exhausted its full 5s per node, causing ~5s × N node init cost on every stop→re-init cycle. Updated 4 tests in test_service_registry_full.py to mock _stop_event.wait instead of time.sleep.

v2.19.0

NRV-7619: Add process-wide ConnectionPool utility. Introduces neuraverse_sdk/utils/connection_pool.py — a generic, factory-based, thread-safe singleton pool. get_or_create(key, factory) returns (connection, created) so callers run one-time setup once per process instead of once per node init. Fixes slow cold-start that instance-level caching could not solve (e.g. robot connections surviving node stop/re-init).

v2.18.0

NRV-7238: Add Zenoh transport adapter (dataflow + trigger). Introduces ZenohDataFlowAdapter, ZenohTriggerAdapter, ZenohHandler (session singleton), and ZenohConfig. Adds eclipse-zenoh >=1.9.0 dependency. Enables Zenoh as a communication backend alongside MQTT and ROS2.

v2.16.0

NRV-7440: Add GetHealthCheck RPC support. Nodes now handle health check requests from NES. NodeBase exposes on_health_check() -> bool as an optional lifecycle hook for node developers. Returns True by default.

v2.15.0 Reconfigure bug fix (production-critical). Stop → Configure → Run now correctly delivers incoming Start triggers to the downstream node's execute(). Previously the per-node ThreadPoolExecutor was shut down on stop() but never recreated on configure(), so every incoming Start trigger after a reconfigure was silently dropped by _submit_execute ("Ignoring trigger — node executor is shut down"). Downstream nodes appeared inert after the second Run despite the start node publishing correctly. node_base.configure() now recreates the executor when the previous one was shut down. Pinned by the new tests/specs/test_lifecycle_specs.py::test_after_reconfigure_an_incoming_start_message_reaches_the_nodes_execute_path scenario in specifications/specs/lifecycle/020-subscriber-side-reconfigure.feature.

Defensive cleanup on reconfigure. CompositeDataFlow.configure() now destroy()s the previous ROS/MQTT adapters before creating new ones; without this, repeated configures leaked one MQTT connect-ref each, drifting the singleton refcount and preventing later destroy() calls from actually closing the broker connection.

Trigger publish failures surface. MQTTTriggerAdapter.trigger_next_node now checks the publish() return value and logs a WARNING when a publish is dropped (e.g. singleton transiently disconnected). Previously a dropped publish logged a regular "Triggering next node..." line indistinguishable from success.

Resend marker on status heartbeats. The heartbeat re-emit path in node_controller._heartbeat_worker now prepends a stable marker "[resend] " to resultMessage so the UI can distinguish heartbeat re-emits from real state transitions (and suppress duplicate ERROR popups without dropping real transitions). Idempotent: a second re-emit over the same snapshot does NOT double-prefix. See specifications/prompts/170-status-resend.md for the rollout plan — a future is_resend bool proto field in neuraverse-entities will supersede the prefix once every consumer (engine, proxy, UI) has shipped a version that reads it.

Spec-driven dev framework. Added pytest-bdd scaffold under specifications/ (matching the engine + proxy convention). Four prompts under prompts/; six spec scenarios under specs/lifecycle/ and specs/status-resend/. The reconfigure bug above was caught by the new scenarios.

SDK BaseImage Version: v2.15.0

v2.14.0 NRV-7238: Add Zenoh as a third transport layer alongside MQTT and ROS2. Introduces ZenohDataFlowAdapter, ZenohTriggerAdapter, ZenohHandler (session singleton), and ZenohConfig (Pydantic settings with locator, mode, and QoS fields). Adds eclipse-zenoh >=1.9.0 dependency. ZenohTriggerAdapter registered under TRIGGER_COMMUNICATION_TYPE_ZENOH in TriggerFactory.

v2.9.0 NRV-6632: Add SetToggleSimulationMode RPC support. Nodes now handle simulation mode toggle from NES. NodeBase exposes on_toggle_simulation_mode(is_simulation: bool) optional lifecycle hook for node developers. Bumped neuraverse_entities_apis_messages from 2.2.0 to 2.4.0.

v2.6.1 Updated instance-segmentation-ros-msgs debian package from 1.0.0 to 2.3.3. MaskWithObjectName.mask field changed from CompressedImage to Image type. SDK BaseImage Version: v2.6.1

v2.6.0 Added AI-related ROS2 dependencies to the base Docker image: vision-msgs, cv-bridge, and custom Neura ROS2 message packages (instance-segmentation, ai-database, common-msgs, grasp-planning, pose-estimation) with SHA256 checksum verification. Added offline wheel build support via generate.sh --build-from-wheels for building without network access. Bumped neuraverse_entities_apis_messages from 1.28.1 to 1.31.0. Significantly expanded test coverage with new test suites: test_config, test_dataflow, test_mqtt_singleton, test_node_router_full, test_service_registry_full, test_state_machine, and extended test_node_base and test_scene_builder_client. SDK BaseImage Version: v2.6.0

v2.5.0 SceneBuilderClient.list_frames accepts optional sources (FrameSource) mapped to ListFramesRequest.sources; omit for all sources (backward compatible). NodeBase.get_frames() uses ListFrames path/sensor/model sources only. NodeBase.get_robots() uses FRAME_SOURCE_ROBOT source only. Requires neuraverse_entities_apis_messages with FrameSource, ListFramesRequest.sources, and Frame.source.

v2.2.6 Allowed optional service registry: NodeBase.__register_service() now skips registration when registry_endpoint is empty, enabling local development without Consul. Changed RegistryConfig.registry_endpoint default from "[::]" to empty string. Updated private package dependencies to use GitLab source with pinned versions: neuraverse_entities_apis_messages 1.28.1, lib-python-neuraverse-common 2.5.1, lib-python-neuraverse-service-http 2.1.0, lib-python-neuraverse-service-grpc 2.1.0. Vendored latest dependency wheels for offline/local builds. SDK BaseImage Version: v2.2.6

v2.2.1 Moved node configurations from Consul service meta to Consul KV store under capability/{service_name}/configurations, preserving full NodeConfigEntry protobuf structure. Added static configuration entries (node_external_target, is_remote, node_deployment_host) via __add_static_configuraions() in NodeBase. Separated node registration from initialization: new register_node() method on NodeBase, initialize() no longer accepts node_service_config or register parameters. Updated ServiceRegistryClient.register_node() and _do_register() to accept protobuf NodeConfigEntry maps instead of Dict[str, str]. SDK BaseImage Version: v2.2.1

v2.2.0 Added get_frames() method to NodeBase for retrieving frame data from Scene Builder Backend. Introduced SceneBuilderClient gRPC client with metadata filtering support. Refactored node initialization lifecycle: split into InitializeNode (infrastructure wiring) and ConfigureNode (configuration only). Added backwards-compatible dynamic_config parameter to on_configure(). Added scene_builder_endpoint to NodeServiceConfig. IMPORTANT: this has to be added to the service_config in gitops Removed GetNodeStatus RPC. SDK BaseImage Version: v2.2.0

v2.1.0 Added external node url. This how you can access a node from outside the cluster

v2.0.0 Upgraded to latest libraries and base image ROS Humble with CycloneDDS support Build and tooling updates SDK BaseImage Version: v2.0.0

v1.1.4 Consul client re-registeration in case Consul crashes SDK BaseImage Version: v1.10.4

v1.1.3 Inputs and Outputs are now available before Configure SDK BaseImage Version: v1.10.3

v1.1.2 Inputs and Ouputs can now be extracted from the nodes SDK BaseImage Version: v1.10.0

v1.1.1 Node Outputs and Inputs can be connected to other nodes via MQTT or ROS. SDK BaseImage Version: v1.9.3

v1.1.0 Introduced MQTT as a communication protocol for dataflow between neuraverse nodes. Now the node can run in cloud, or on edge. In this version, the whole nodegraph is running on mqtt or ros. In later version, node outputs and inputs can be connected to other nodes via mqtt or ros instead of having 1 protocol for the whole graph dataflow.

https://neurarobotics.atlassian.net/browse/NRV-2383

v1.0.0 Initial release for neuraverse node sdk

Each released version should be documented in this file with some details regarding what has changed which are

  • Bugfixes
  • New features
  • or Breaking changes

Then

  • Each section has a list of entries. Please keep the entries shot and concise!
  • If you have related JIRA ticket(s) make sure in your entry they are quoted in!
  • Note: obviously a release entry (version) also clearly suggests which sub-sections (breaking / new / bugfix) should you expect under specific versions... ;-)