External-input delivery evidence¶
NRV-12089 combines the tested author example with published artifact consumption. Local example tests, SDK conformance, full-system verification and released-artifact qualification are different evidence. This page records the required boundaries without claiming that publication or qualification has completed.
Source and artifact gates¶
Finish NRV-12087 compound input and NRV-12088 cleanup diagnostics before qualifying the example. The target SDK is 2.45.0; generated entities are 2.61.0. Confirm the final source commits and release preview through the owning workflows.
| Evidence | Required identity and result |
|---|---|
| Entities | Published Python wheel hash; C++ Conan recipe/package revisions per architecture |
| SDK | Published wheel hash, imported SDK path/version, C++ binary identity |
| Images | Immutable runtime and builder image digests for amd64 and arm64 |
| Author node images | Rebuilt image digest, loaded SDK version, included example source revision |
| Platform | Engine/proxy revisions and image digests, route and peer versions |
| Consumers | mock-nodegraph first, then node-template pins, vendored docs, supported checks |
A mounted SDK checkout is candidate evidence only. Release qualification must import the installed wheel, use rebuilt C++ author-node images, and record actual loaded identities. Neither a release tag nor a successful Mock Runner Execute proves deployed behavior.
Current 2.x baseline¶
The input candidate is SDK 2.45.0, rebased onto SDK 2.44.0 main with entities
2.61.0. It retains upstream typed errors, custom services, and lifecycle protocol 1
(ArmNodeForRun, StopExecutionNode, and StopAndCleanupNode). External input
Stop performs hard target teardown; native Stop triggers retain the upstream
choice of soft stop for migrated hooks and hard stop for legacy hooks.
Input and input-diagnostics-v1 negotiation remain independent of lifecycle
protocol negotiation. Rebuild bindings and record new artifact identities:
upstream now reserves stream field 45 for GetAuraInfo, so input trigger/data
use 46/47 and authenticated caller/organisation use 48/49. Earlier candidate
images and their results do not qualify these revised contracts.
Test wrapper shared with the engine scenario¶
wire_tests/start_external_input_server.py hosts the real author nodes behind NodeService.
wire_tests/external_input_nodes.py adds observations around public hooks and publications;
it does not use ConcreteTestNode or inspect private SDK state.
| Interface | Contract for both SDK languages |
|---|---|
| Echo class | VelocityEchoProbe; author implementation VelocityEchoNode |
| Long-running class | HeartbeatProbe; author implementation HeartbeatNode |
| Configuration | observation_role: a caller-chosen label; main's 89 scenario uses sender, downstream, unrelated, retained |
| Echo ports | velocity in, velocity_out out, start/stop inputs, normal start output |
| Heartbeat ports | heartbeat (std_msgs/msg/Int32) out, start/stop inputs |
| Observation endpoint | Loopback GET /events; append-only JSON array for this process |
| Every record | node_id (runtime ID), role, event, value |
| Events | execute, publish, stop, cleanup; publication also carries port |
| Values | Twist object with all six vector components, heartbeat integer, or null for hooks |
| Control | Only the normal engine/proxy APIs; HTTP has no mutating route |
The Python image entrypoint accepts --grpc-port, --events-port, --mqtt-port, and
--jwks-url, matching the existing system harness. Build from the SDK repository root:
docker build -f neuraverse-node-sdk-python/wire_tests/external-input.Dockerfile \
--build-arg BASE_IMAGE=nrv-12089-python-wheel-candidate \
--build-arg INSTALL_PUBLISHED_SDK=0 \
--build-arg SDK_VERSION=2.45.0 --build-arg ENTITIES_VERSION=2.61.0 \
-t nrv-12089-python-author-candidate .
docker run --rm nrv-12089-python-author-candidate --identity
The Dockerfile defaults to the SDK v2.45.0 base and installs the matching published Python
wheel plus the verified private-library pins. Private-index configuration can be supplied
with a BuildKit pip_config secret; it is not baked into the image. The local candidate
override contains hash-verified wheelhouse packages instead. Set INSTALL_PUBLISHED_SDK=0
to retain those packages. This mode installs nothing and fails the build if the loaded
SDK/entities versions differ from the explicit version arguments.
Prepare that base with wire_tests/candidate-wheel.Dockerfile, using the wheelhouse as
its build context. It accepts BASE_IMAGE, SDK_WHEEL, SDK_WHEEL_SHA256, ENTITIES_WHEEL,
and ENTITIES_WHEEL_SHA256. Both hashes are required. It verifies them and force-reinstalls
only those two wheels with --no-index --no-deps; same-version metadata updates are not
silently skipped. Then build the author image from the SDK repository context.
The Dockerfile-specific context allowlist copies only the two author modules and relevant
test wrappers into /opt/external-input; it includes no SDK source, test stubs, or checkout
test suite. The entrypoint discards inherited Python paths before sourcing ROS. Startup emits
an artifact_identity JSON record with installed package versions/paths and baked source
hashes. --identity emits that record and exits without starting services.
Run the image entrypoint with docker run --init --network host and the four launcher
arguments, with no SDK source bind mount. Run the broker separately. The focused
wire_tests/test_external_inputs.py supports this through EXTERNAL_INPUT_IMAGE and
EXTERNAL_INPUT_BROKER_IMAGE; main's engine harness owns full engine/proxy scenarios.
The local author image ID is
sha256:20b0fa54ac859f44a8ef7b3c2fd9fb02c9e448d3cd3a84b1655450df4e46b1a5.
The run without SDK bind mounts passed its NodeService/MQTT scenario, including teardown,
in 17.34 seconds. artifacts/external-inputs/baked-image-identity.json records both wheel
hashes, the exact common requirement, loaded
versions and the currently empty RepoDigests; python-author-image-wire.xml records the
test. Empty registry digests mean this is still local candidate evidence. Published
qualification requires registry digests and the loaded versions in rebuilt images.
Old Python peer¶
Use an actual pre-input SDK 2.x wheel and record its version, hash and source
revision before building the old-peer image. Verify that the existing Configure
and Run operations still work, then assert UNIMPLEMENTED for both input RPCs
without node observations. The previous SDK 3.1.0 peer has a different lifecycle
and is not the compatibility baseline for this port.
The old check is opt-in: select the image with EXTERNAL_INPUT_IMAGE, set
EXTERNAL_INPUT_OLD_PEER=1, and select unsupported_input in the wire module.
Do not run supported-input scenarios against that deliberately unsupported peer.
C++ and local source checks¶
Run the C++ author tests and retain their JUnit report, including real output
observations, automatic downstream Start and isolated heartbeat Stop.
The public C++ snippets are copied into the existing tutorial vendoring tree and checked
against the compiled header sources by tests/test_external_input_cpp_snippets.py.
The native observation wrapper matches the class, role, event and port contract above;
it observes actual typed MQTT publications because C++ publish<T> is nonvirtual.
For source-level diagnosis only, wire_tests/run_external_input_server.sh retains the
earlier /work launch mode; EXTERNAL_INPUT_SDK_SOURCE=1 explicitly enables source imports.
Do not use that mode as released-artifact evidence.
Configure echo and downstream as VelocityEchoProbe nodes, join both their data and
Start edges, and configure heartbeat separately. Assertions for the owning engine scenario:
- Start heartbeat and observe increasing publications.
- Inject compound JSON through
InjectNodeInputData. Await a successful acknowledgement; observe no echo/downstream execution yet. - Send
TriggerNodeInputtoecho.start. Observe the echo publication and a downstream publication with the complete expected Twist, caused by ordinary automatic Start dispatch. - Send
TriggerNodeInputtoecho.stopafter observing the output. Observe its Stop hook while the unrelated heartbeat continues. - Assert malformed input leaves prior values unchanged and never starts a handler/execution.
- Exercise NRV-12088 retained idle-removal diagnostics and replacement-run recovery.
Confirmed removal returns
NOT_FOUND/graph_removed_idle, retained for seven days by default. Expired or unverified history returnsgraph_not_configured; another owner receivesnot_session_owner. With persistence enabled, failed history lookup or durable replacement rejects Configure with retryablegraph_history_unavailable/UNAVAILABLE. Engine/proxyinput-diagnostics-v1capability enables diagnosis after proxy state loss. The node and graph lifecycle protocol remains the upstream version 1. Old proxies cannot recover that diagnosis after losing their own session state. Explicitly disabled persistence offers no restart retention.
Run the scenario with Python and C++ nodes on direct, cloud and edge routes. Observe actual native output in the downstream author node; do not substitute visualization JSON for typed ROS data. Native C++ push-only handler behavior remains its established contract.
Upgrade and rollback¶
Publish entities and SDK artifacts through their owning workflows, rebuild author-node images, validate compatible platform endpoints, then propagate the SDK release to mock-nodegraph and afterward node-template. Promotion to any environment is separately authorized; this work does not select a production or GitOps target.
New platform routing capability does not upgrade old node images. Scalar-only peers reject compound
messages with input_type_unsupported; a peer lacking the injection operation must reject
specifically rather than silently lose the command. Test actual old/new platform and SDK
images, including mixed proxy ownership/forwarding paths, not just fake unsupported replies.
On rollback, stop using unsupported operations and capability claims, replace affected runs
deliberately, and never replay an ambiguous request. A removed run requires a newly configured
run and deliberate input restoration.
No published wheel, image, downstream MR or deployed compatibility result is asserted by this page. Attach the final identities and test reports when qualification is complete.