Skip to content

Release and documentation pipeline

The custom-services-wire job (SDK 2.44.0) runs the same generated-client suite against launched Python and C++ NodeService hosts in the commit's SDK test image. It uses real runtime dependencies and MQTT, a local JWKS peer, and an in-memory database substitute. It covers custom-only/mixed hosts, reflection, registration failures, streaming, statuses, shutdown, Python JWT, and C++ mutual TLS. The ordinary coverage lane retains its ROS mocks; its success is not wire evidence. The test, example and documentation bootstraps also stub rosidl_parser descriptor imports so they work in plain Python without a ROS installation. tests/test_ros_free_imports.py hides any locally installed rosidl_parser in fresh subprocesses and checks each bootstrap can import NodeBase. These stubs support imports only; the real ROS wire lane verifies JSON decoding.

Dependency installation in the wire job is sequential: parallel package updates in the shared ROS Python environment can remove metadata while another pip process scans it, failing before the tests start.

Native and wire test image tags include CI_PIPELINE_ID. Each pipeline builds and consumes its own images, preventing a cached branch tag or an overlapping pipeline from substituting older native binaries.

The shared neuraverse-generate-protos script is shipped by the wheel console entry point and copied into the SDK image after native dependency provisioning. The C++ example/test builds and Python wire fixtures invoke it. CLI tests run the real Python compiler, while the native build and wire job validate generated C++ artifacts. Docker context filtering explicitly includes only that Python module alongside the shared application/test protos.

How an SDK release actually happens, from a merge to main through the semantic-release tag, the tag pipeline that publishes the image and the wheel, and the bot merge requests that carry the new version and the vendored node-author guide into mock-nodegraph and node-template (the DevKit) and into node-creator (the Create with AI authoring bundle). The second half covers the documentation gates that run on every change, the vendoring contract, the authoring rules for docs/src/guide/, how to fix each red job, the local preview and the per-release checklist. Every statement below is taken from .gitlab-ci.yml (root and neuraverse-node-sdk-python/), ci/*.sh, scripts/gen_docs_tables.py, tests/test_docs_drift.py and the consumers' scripts/bump-sdk.sh and scripts/check-sdk-pins.sh.

The flow at a glance

flowchart TD
    MR[MR merged to main] --> TAG[shared template: tag job<br/>semantic-release cuts vX.Y.Z + GitLab Release]
    TAG --> TP[tag pipeline]
    TP --> COV[coverage]
    TP --> DC[docs-check]
    TP --> PREP[release-prepare-tag] --> MULTI[release-publish-multiarch<br/>ECR X.Y.Z, GitLab CR vX.Y.Z, latest for finals]
    TP --> WHEEL[release-publish-wheel<br/>fails unless pyproject == tag]
    WHEEL --> N1[release-notify-mock-nodegraph]
    MULTI --> N1
    WHEEL --> N2[release-notify-node-template]
    MULTI --> N2
    WHEEL --> N3[release-notify-node-creator]
    MULTI -- SDK_IMAGE_DIGEST --> N3
    N1 --> M1[MR chore/sdk-vX.Y.Z in mock-nodegraph<br/>pins, wheels, vendored guide]
    N2 --> M2[MR chore/sdk-vX.Y.Z in node-template<br/>pins, wheels, README block]
    N3 --> M3[MR chore/sdk-vX.Y.Z in node-creator<br/>sdk.py, wheels, reference guide]
    M3 --> H3{{human review + merge, no ordering}}
    M1 --> H1{{human review + merge}} --> MP[mock main pipeline pushes<br/>mock-backend, mock-frontend, docs<br/>:latest and :sdk-X.Y.Z]
    MP --> M2
    M2 --> H2{{human review + merge}} --> BD[node-template main: bundle-devkit<br/>nodegraph-devkit.tar + DEVKIT_MANIFEST.txt]
    MR --> PAGES[pages job, main only<br/>mkdocs --strict to GitLab Pages]

Part A: the release flow

Trigger and version

NRV-11816 targets SDK 2.45.0 on top of the SDK 2.44.0 main branch. It retains the upstream stop-execution lifecycle, typed error vocabulary and custom gRPC service support. The temporary rollback .releaserc overrides have been removed upstream; this branch uses the shared release rules and fresh CI checkouts. Confirm the actual MR preview before merging and update the candidate version if another feature releases first.

The monorepo root .gitlab-ci.yml flattens neuraverse-node-sdk-python/.gitlab-ci.yml and the C++ fragment in via include: (not as child pipelines) and declares the stages test, build, version_preview, tag, build_and_push, update_manifest, rollback_manifest, cpp_contract, cpp_test. The Python fragment includes the shared template neuraverse/neuraverse-pipelines file /SAST_TAG_BUILDKIT_UPDATE_MANIFEST.gitlab-ci.yml; that template, which lives outside this repository, provides the version_preview and tag stages.

  • A merge to main runs the template's tag job, which cuts a semantic-release tag vX.Y.Z and a GitLab Release from the conventional commit types, acting as the group bot: fix and patch bump the patch version, feat the minor, breaking the major; doc and ci release nothing. Docs-only merges therefore redeploy Pages but do not propagate to the DevKit repositories, by design.
  • The wheel version comes only from pyproject.toml. release-publish-wheel compares ${CI_COMMIT_TAG#v} with poetry version --short and fails with Bump pyproject.toml and re-tag when they differ, so the team pre-bumps version in pyproject.toml and adds the CHANGELOG.md entry in the same MR that will release. The version_preview stage is where the MR learns which version the tag job would cut; the template source is in neuraverse-pipelines.

Both release jobs set GIT_STRATEGY: clone and GIT_DEPTH: "0". A reused runner checkout can retain tags that were deleted remotely during a rollback; semantic-release can then select and push those stale tags again. A fresh checkout supplies the current remote tags and complete commit history. Conventional versioning remains unchanged, including future major releases.

The images built on main are what the tag pipeline ships. build_container and build_container-arm64 (root file, hand-rolled buildkit jobs) run on merge-request and main pipelines (manual on other branches, never on tags) and push SHA-pinned tags $CI_REGISTRY_IMAGE/ci:<sha>-amd64 and ...-arm64 (plus latest-amd64/latest-arm64 on main) to the /ci staging repository, so a later tag can point at any commit.

Tag pipeline jobs

Branch and merge-request pipelines also run sdk-compatibility-check after Python coverage and cpp-test. It requires ROS and Mosquitto, then runs the Python ROS contracts and the real NodeService Start-input suite. Start admission, context preservation and rejection behavior share contracts/fixtures/start_input.json with the C++ StartInputWire suite. The compatibility check combines Python coverage JUnit, CTest and GoogleTest reports with artifacts/python-ros/junit.xml and artifacts/python-ros/start-input.xml. Both ROS reports are retained as CI artifacts; missing, skipped or failed declared contract suites fail conformance.

Job Stage Rule What it does
coverage test MR, branch, tag pytest with coverage over tests examples (see Specifications).
docs-check test MR, branch, tag Documentation gates (Part B). needs: [], so it starts at once.
release-prepare-tag (template) $CI_COMMIT_TAG extends: .prepare_build_and_push_container from the shared template; its artifacts feed the multiarch job.
release-publish-multiarch build_and_push $CI_COMMIT_TAG regctl index create merges the SHA-pinned /ci images of the tagged commit into ECR $AWS_ARTIFACTS_ECR_NAME/$PROJECT_NAME/neuraverse-node-sdk:$AWS_ECR_TAG (the tag without v) and GitLab CR $CI_REGISTRY_IMAGE:vX.Y.Z; skips a manifest that already exists (idempotent retry). For a final tag on main (^v[0-9]+\.[0-9]+\.[0-9]+$ and git merge-base --is-ancestor) it also repoints $CI_REGISTRY_IMAGE:latest and sweeps the /ci staging tags of the commits and merged branches since the previous final tag through the GitLab API. Exports SDK_IMAGE_DIGEST (the ECR index digest, regctl image digest) as a dotenv report for the notify jobs.
release-publish-wheel build_and_push $CI_COMMIT_TAG Version guard, poetry build, poetry publish --repository gitlab-project --skip-existing to the project PyPI registry with CI_JOB_TOKEN; artifact neuraverse-node-sdk-python/dist/ for one week. Sibling of the multiarch job so one failure does not block the other.
release-notify-mock-nodegraph, release-notify-node-template, release-notify-node-creator update_manifest $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/ Extend .release-downstream-mr; see below.

The shared template's own tagged-release, update_manifest_* and rollback_manifest_* jobs are all set to when: never in the Python fragment: the SDK is a base image other repositories build FROM, not a deployed workload, so there is no GitOps manifest to edit.

The downstream MR jobs

.release-downstream-mr (hidden template in the Python fragment):

Key Value
stage update_manifest (declared by the root file, otherwise unused)
image python:3.12
rules final tags only, ^v[0-9]+\.[0-9]+\.[0-9]+$; pre-releases such as v2.39.0a0 never propagate
needs release-publish-wheel with artifacts (the wheel), release-publish-multiarch without (the image must exist)
retry 2, on runner_system_failure, api_failure, stuck_or_timeout_failure
variables DRY_RUN: "false", DOWNSTREAM_BRANCH_PREFIX: "chore/sdk-"
before_script installs git jq curl
script bash neuraverse-node-sdk-python/ci/release-downstream-mr.sh
artifacts downstream-*.patch, always, two weeks

release-notify-mock-nodegraph sets DOWNSTREAM_REPO: neuraverse/node-studio/mock-nodegraph and DOWNSTREAM_NEEDS_DOCS: "true"; release-notify-node-template sets neuraverse/node-studio/node-template and "false". release-notify-node-creator sets neuraverse/neuraverse-node-creator, "true", DOWNSTREAM_PASS_IMAGE_DIGEST: "true" (node-creator pins the image by digest, not by tag) and its own DOWNSTREAM_MR_NOTE. The template needs: release-publish-multiarch with artifacts: true so the dotenv SDK_IMAGE_DIGEST reaches every notify job; only the one that asks for it passes it on. None has allow_failure, so a broken propagation is red on the release pipeline even though the image and wheel are already published. The script never runs with set -x because the clone URL carries the token.

ci/release-downstream-mr.sh (bash, set -euo pipefail) needs CI_COMMIT_TAG, PYTHON_SDK_DIR, DOWNSTREAM_REPO, GITLAB_TOKEN (group CI variable, api scope), CI_SERVER_HOST, CI_API_V4_URL and CI_JOB_TOKEN, and does the following:

  1. Wheelhouse. Requires dist/lib_python_neuraverse_node_sdk-X.Y.Z-py3-none-any.whl from the wheel job. Reads every [tool.poetry.dependencies] entry with source = "gitlab-hrg" (the private libraries, currently six) from pyproject.toml, never from poetry.lock, converts a caret spec to >=a.b.c,<(a+1).0.0 and an exact version to ==, and runs pip download --no-deps --only-binary=:all: against the group 2997 PyPI index with gitlab-ci-token:$CI_JOB_TOKEN, falling back to __token__:$GITLAB_TOKEN. Asserts the SDK wheel plus one wheel per private dependency, and writes SHA256SUMS.
  2. Clone. git clone --depth 50 over HTTPS with oauth2:$GITLAB_TOKEN, identity neuraverse-node-sdk release bot <sdk-release-bot@neura-robotics.com>. Branch chore/sdk-vX.Y.Z: fetched with an explicit refspec and checked out if it already exists on origin, which works from the shallow clone (re-runs and human fix-ups build on top; no force-push), otherwise created from origin/main.
  3. The consumer's own scripts. bash scripts/bump-sdk.sh --version X.Y.Z --wheels <wheelhouse> --release-url <release URL>, plus --sdk-docs <SDK python root> --docs-ref vX.Y.Z when DOWNSTREAM_NEEDS_DOCS=true and --image-digest $SDK_IMAGE_DIGEST when DOWNSTREAM_PASS_IMAGE_DIGEST=true (the job fails if the digest is missing or malformed); then sh scripts/check-sdk-pins.sh, so a bump that misses a pin fails before anything is pushed. Lines the checker prints as check-sdk-pins: WARN: are kept for the MR description. git add -A; an empty diff logs nothing to change and exits 0, which keeps a re-run after the MR was merged green.
  4. Dry run. With DRY_RUN=true the staged diff is saved as downstream-<repo>-vX.Y.Z.patch (a job artifact) and the script exits 0 without pushing. This is the bootstrap and catch-up path: run the tag pipeline from the GitLab UI with DRY_RUN=true, inspect both patches, then run it again without.
  5. Commit and push. Message chore(sdk): bump Neuraverse Node SDK to vX.Y.Z with the release and pipeline URLs in the body; push with a rebase-and-retry loop (GIT_PUSH_RETRY_MAX_ATTEMPTS, default 6, GIT_PUSH_RETRY_SLEEP_SECONDS, default 3), mirroring the shared update_manifest job.
  6. Merge request. Resolves the project id from the URL-encoded path, looks up an opened MR with the same source branch. If one exists it posts a note Refreshed by <pipeline> for vX.Y.Z and prints its URL. Otherwise it creates one: target main, title chore(sdk): bump Neuraverse Node SDK to vX.Y.Z, remove_source_branch=true, squash=true, labels sdk-release,automated, optional reviewers from DOWNSTREAM_MR_REVIEWER_IDS (comma-separated user ids). The description links the release and pipeline, states the merge order (below) or the job's DOWNSTREAM_MR_NOTE when it sets one, lists any check-sdk-pins warnings and the wheels with SHA-256 prefixes. It never auto-merges.

Merge order and what each consumer does

node-creator is not part of the DevKit and has no ordering with the other two; its MR is merged on its own. The mock-nodegraph MR is merged first. Its description says so: the main pipeline then pushes the :sdk-X.Y.Z mock images that node-template pins. The node-template MR description says its test-devkit job stays red until that push has happened. The order is enforced by construction rather than by discipline: node-template's compose file references mock-nodegraph/{mock-backend,mock-frontend,docs}:sdk-X.Y.Z, and only mock-nodegraph's main pipeline pushes those tags.

mock-nodegraph (scripts/bump-sdk.sh, then CI):

Step Effect
SDK_VERSION Plain file with X.Y.Z; CI reads it with SDK_VERSION=$(cat SDK_VERSION).
Image pins sed regex (neuraverse-node-sdk:)(v?)[0-9]+\.[0-9]+\.[0-9]+ over mock-backend/Dockerfile and docker-compose.yml, keeping the v for GitLab CR refs and none for ECR refs; asserts the Dockerfile now pins :vX.Y.Z.
Wheels Exactly one wheel per distribution required; replaces mock-backend/wheels/*.whl, writes a sorted SHA256SUMS, rewrites each path = "wheels/<dist>-...whl" line in mock-backend/pyproject.toml and asserts each new filename appears exactly once.
Docs (with --sdk-docs) See "Vendoring the guide" in Part B.
CI gates on the MR check-sdk-pins (sh scripts/check-sdk-pins.sh), test-mock-backend (ros:humble), build-mock-backend (FROM ECR neuraverse-node-sdk:$SDK_VERSION), build-mock-frontend, build-docs (the docs image runs mkdocs build --strict inside docs/Dockerfile), test-docker-* (one compose project per job, no host ports).
After merge, main only push-mock-backend, push-mock-frontend, push-docs push :latest and re-tag it as :sdk-$SDK_VERSION. A branch pipeline never pushes, so the bot branch cannot repoint :latest before review.

node-template (scripts/bump-sdk.sh, then CI):

Step Effect
SDK_VERSION Same plain file.
Image pins Same regex over node-template/Dockerfile, node-template/docker-compose.yml and node-template-cpp/Dockerfile; a second regex moves mock-nodegraph/(mock-backend|mock-frontend|docs):sdk-X.Y.Z in the compose file; asserts the Dockerfile pin and at least three sdk-X.Y.Z occurrences.
Wheels Same procedure into node-template/wheels/ and node-template/pyproject.toml.
README Replaces the block between <!-- BEGIN sdk-version --> and <!-- END sdk-version --> with the bundled version, release-notes link and mock tag. --sdk-docs and --docs-ref are accepted and ignored: the guide reaches DevKit users through the mock docs image.
CI gates on the MR check-sdk-pins (also checks that the Dockerfile and compose HEALTHCHECK use http.port from config/service_config.yaml and that no mock-nodegraph/*:latest remains), test-node-schemas, test-devkit (docker compose --profile mock up --wait; red until the mock images exist).
After merge, main only (manual on MRs) bundle-devkit pulls the three :sdk-X.Y.Z mock images and neuraverse-node-sdk:vX.Y.Z, docker saves them to nodegraph-devkit.tar, writes DEVKIT_MANIFEST.txt (refs, digests, SHA256SUMS, commit) and ships the template directory as a fresh git repository.

node-creator (scripts/bump-sdk.sh, then CI):

Step Effect
SDK_VERSION Same plain file.
authoring/sdk.py Rewrites VERSION, the digest in IMAGE (--image-digest, required whenever the version changes, so the bundle never pins the previous image) and WHEELS. Rendered to a temporary file first, so a layout mismatch fails before any wheel is replaced.
Wheels Same procedure into authoring/resources/sdk/, which the authoring bundle copies into every generated node's source archive.
Guide With --sdk-docs, the public-nav.yml pages (with the sync banner) and the assets: directories go to authoring/resources/sdk-guide/. A reference copy: the run prompt reads only the top-level authoring/resources/*.md, and the folder is excluded from the wheel and from pytest collection.
Hand-written guidance sdk-api.md and the other top-level guidance files are distilled by hand and keep the SDK version they were written against. check-sdk-pins prints a WARN: when their first line names an older SDK; the warning appears in the MR description so the reviewer updates them against the vendored reference/whats-new.md.
CI gates on the MR check-sdk-pins (alpine:3.20) and the service's own test suite; tests/authoring/test_bundle.py reads the pins from sdk.py.

All three check-sdk-pins.sh scripts are POSIX sh so they run in docker:cli or alpine. Beyond the pins they verify sha256sum -c SHA256SUMS, that every wheel is referenced by pyproject.toml and vice versa, and that no other neuraverse-node-sdk:v?X.Y.Z literal exists in the repository's own files (the vendored guide is excluded because it may legitimately name other releases).

Failure modes

Symptom Cause What to do
release-publish-wheel red: Tag vX.Y.Z expects version ..., but pyproject.toml is at ... pyproject.toml was not bumped before the releasing merge. The image already shipped under the tag. Bump pyproject.toml, merge, let the next tag carry it. The notify jobs never ran for the broken tag.
notify job red during pip download Group PyPI refused CI_JOB_TOKEN and the GITLAB_TOKEN fallback Check the library project's job-token allowlist or the group token's scope; re-run the single job.
notify job red on push or MR API Branch protection on chore/sdk-*, token permissions, transient API error Fix the setting, re-run the job. The branch and MR are reused; nothing is duplicated or force-pushed.
bot MR red in build-docs A vendored guide page has a broken link, missing snippet or bad anchor Fix the page in the SDK (source of truth) and re-run the notify job, or push a fix-up commit to the bot branch. docs-check in the SDK should have caught it first.
bot MR red in check-sdk-pins A pin the bump script does not know about Fix the consumer's scripts/bump-sdk.sh, re-run the notify job.
release-notify-node-creator red: SDK_IMAGE_DIGEST missing or malformed release-publish-multiarch did not export its dotenv (failed, or re-run from an older pipeline definition) Re-run release-publish-multiarch (it skips existing manifests and exports the digest), then the notify job.
node-template MR red in test-devkit mock-nodegraph MR not merged yet, or its main pipeline has not pushed :sdk-X.Y.Z Expected; re-run after the push.
A human edits one pin by hand check-sdk-pins red in that MR Run scripts/bump-sdk.sh instead of editing pins.
Re-run of the tag pipeline after the MRs merged Nothing left to change The jobs exit 0 with nothing to change; image and wheel jobs take their skip-existing paths.
Pre-release tag Rule regex Notify jobs are not created; latest and :sdk-* are untouched.

Part B: the documentation pipeline

Gates on every change: docs-check

docs-check (stage test, python:3.12, needs: [], rules merge request, branch and tag) installs docs/requirements.txt and runs three checks; it needs no SDK runtime because mkdocstrings' Python handler (griffe) parses src/ statically.

  1. cd docs && mkdocs build --strict -d "$CI_PROJECT_DIR/docs-site": the full site, so a broken link or anchor, an orphan page or a missing snippet fails.
  2. A grep of the rendered reference/api/index.html for fire_trigger, is_paused, send_health_update and on_configure: guards the silent empty API reference you get when the paths: [../src] of mkdocstrings stops resolving.
  3. bash ci/public-docs-check.sh, the leak gate for the node-author subset:
    • Bijection. Every path in docs/public-nav.yml must match sdk/**.md; the set of paths minus the sdk/ prefix must equal the set of docs/src/guide/**/*.md on disk (excluding _generated); every assets: directory must exist.
    • Scratch build in the vendored shape. Copies guide/ to $TMP/docs/src/sdk, the asset directories next to the docs dir, the markdown_extensions block from docs/mkdocs.yml (between markdown_extensions: and # END sdk-mdext) with base_path rewritten to ["."], and the nav: block from public-nav.yml; plugins: [search]; then mkdocs build --strict. A link into internals/ or reference/ fails structurally because those directories do not exist in the scratch site.
    • Denylist. grep -rnEi -f docs/public-denylist.txt over guide/ and the asset directories. Patterns: node-engine-proxy, \brelay\b, dkr\.ecr, -prerelease, gitlab\.hrg\.systems, localstack, Kreya, specifications/prompts, nodectl, /admin/, and \]\((\.\./)*internals/.

The rendered site is kept as an artifact for three days when the job fails.

Publishing: the pages job

pages (stage build, python:3.12) runs only when $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH: mkdocs build --strict, then mv site "$CI_PROJECT_DIR/public", the directory GitLab Pages publishes. The site is https://neuraverse.pages.neura-robotics.com/neuraverse-node-sdk (private; site_url in docs/mkdocs.yml). Everything under docs/src/ is published there, including internals/.

Generated tables: scripts/gen_docs_tables.py

The tables the guide includes with --8<-- are rendered from the source so they cannot drift:

Output Rendered from
docs/_generated/version.md pyproject.toml version
docs/_generated/hooks.md every on_* function on NodeBase (signature, first docstring line, required or optional)
docs/_generated/exceptions.md classes in utils/exceptions.py with base and error_code
docs/_generated/trigger_types.md TriggerType members
docs/_generated/node_config.md NodeConfigEntry fields and NodeConfigValue.value branches from the proto descriptors
docs/_generated/service_config.md NodeServiceConfig and its nested models (pydantic model_fields)
docs/_generated/non_visualizable_types.md NodeBase._NON_VISUALIZABLE_TYPES
docs/_generated/visualization_types.md the streamer's _IMAGE_TYPES, _IMAGE_CONVERTIBLE_TYPES, _AUDIO_TYPES
the Node Author Guide nav block in docs/mkdocs.yml docs/public-nav.yml with sdk/ rewritten to guide/, between # BEGIN generated-from-public-nav and # END generated-from-public-nav

Four hand-maintained dictionaries (HOOK_WHEN, TRIGGER_ROUTES, CONFIG_VALUE_WIDGET, VIZ_RENDERING) supply the prose column; the generator exits with an error naming the missing key when a new hook, trigger type or config branch appears, so whoever adds one has to describe it. ROS, Zenoh and LiveKit are stubbed the same way tests/conftest.py does, so the script runs in the plain docs environment. --check prints a unified diff and exits 1 on drift. It is not a separate CI step: tests/test_docs_drift.py::test_generated_tables_fresh calls the same expected_outputs() inside the coverage job.

Drift tests: tests/test_docs_drift.py

Runs in the coverage job with the SDK importable. Every check, and what makes it fail:

Test Fails when
test_generated_tables_fresh any _generated/*.md or the nav block in mkdocs.yml differs from a fresh render
test_public_nav_bijection a public-nav.yml path lacks the sdk/ prefix or .md, a guide page is not listed, a listed page is missing, or an assets: directory does not exist
test_guide_links_stay_public a relative link in guide/** resolves outside guide/, or a --8<-- path does not start with one of the assets: directories
test_since_versions_valid a Since SDK x.y.z anywhere under docs/src/ names a version newer than pyproject.toml, absent from the ## v... headers of CHANGELOG.md, or at or below SDK_MIN_DOCUMENTED_PIN (currently (2, 37, 0))
test_public_hooks_documented a public NodeBase method or property, NodeServiceBase.on_prepare_node_dependencies, run, set_node_classes, set_node_service_class, TriggerType, TriggerContext, ErrorInformation, trigger_handler, get_config_value, an exception class, or a neuraverse-node* console script is not mentioned (as `name or name() in guide/** plus _generated/; names in docs/public-api-exclusions.txt are exempt
test_excluded_api_documented_in_internals an exempted name is not mentioned in docs/src/internals/** (marked xfail(strict=True) until the internals pages land; removing the marker is a visible review act)
test_no_handwritten_hook_code a Python fence in guide/** contains def on_configure( without dynamic_config, or contains class X(NodeBase), or is longer than 25 lines instead of being a --8<-- snippet
test_anti_patterns guide/** matches get_data\([^)]*timeout=, from neuraverse_sdk import, topics=\[, requirements\.txt, \bNODE_CLASS\b, dataFlowCommunicationType or "Stop":\s*\{
test_trigger_and_viz_coverage a TriggerType value, is_triggered_by_error, a _NON_VISUALIZABLE_TYPES member, a NodeConfigValue branch or a NodeConfigEntry field is absent from the guide corpus
test_whats_new_has_current_version guide/reference/whats-new.md has no ## SDK <pyproject version> heading

The contract files

File Role
docs/public-nav.yml The node-author documentation contract: nav: is both the allowlist of external-safe pages (paths prefixed sdk/, the vendored location) and the exact block mock-nodegraph injects between its # BEGIN sdk-sync / # END sdk-sync markers; assets: lists the directories outside docs_dir that pages include with snippets (docs/_generated, examples/_testing, examples/tests, examples/quickstart, examples/tutorials, examples/custom_triggers). The SDK site's own guide nav is generated from it.
docs/public-denylist.txt Extended regexes (case-insensitive) that must not appear in the public subset; checked by ci/public-docs-check.sh.
docs/public-api-exclusions.txt Platform entry points (initialize, configure, execute, execute_background, stop, pause, resume, toggle_simulation_mode, register_node, get_configuration, get_schema, get_health_check, get_data_visualizations_topics, supports_argument, trigger_handlers) and controller-layer exceptions (NodeNotFoundError, InvalidEndpointError, RobotException, NodeRegisteryError) that node authors never call; exempt from the guide requirement, required in internals/.
docs/mkdocs.yml Two marker blocks: # BEGIN sdk-mdext / # END sdk-mdext around markdown_extensions (copied verbatim into mock-nodegraph, only base_path differs) and the generated nav block. pymdownx.snippets has base_path: [".."] and check_paths: true, so examples/**, docs/_generated/** and CHANGELOG.md resolve from the project root.
docs/requirements.txt Exact pins (mkdocs, mkdocs-material, pymdown-extensions, mkdocstrings, mkdocstrings-python) shared by docs-check, pages, the local container and mock-nodegraph's docs image, which copies the file.

Vendoring the guide into mock-nodegraph

With --sdk-docs <SDK python root> --docs-ref <label> (the release job passes vX.Y.Z; the default is v<version>), mock-nodegraph's scripts/bump-sdk.sh:

  1. rm -rf docs/src/sdk, then for every sdk/**.md listed in public-nav.yml copies docs/src/guide/<rest> to docs/src/sdk/<rest>, prefixed with the banner <!-- Synced from neuraverse-node-sdk <ref>: neuraverse-node-sdk-python/docs/src/guide/<rest>. Runtime pin vX.Y.Z. Edit there, not here. -->. A listed page missing in the SDK aborts.
  2. Copies every assets: directory to docs/<asset> (next to the docs dir, outside docs_dir, so no .py or README.md becomes a page) and strips __pycache__.
  3. Replaces the block between # BEGIN sdk-sync and # END sdk-sync in docs/mkdocs.yml with the nav: list of public-nav.yml, indented two more spaces under - SDK Guides:.
  4. Replaces the block between # BEGIN sdk-mdext and # END sdk-mdext with the SDK's markdown_extensions block, dropping SDK-side comments and rewriting base_path to ["."].
  5. Rewrites the footer line to copyright: "Neuraverse Node SDK vX.Y.Z (guides: <ref>)" (Material renders it on every page) and copies docs/requirements.txt.

mock-nodegraph's check-sdk-pins.sh then asserts that docs/src/sdk/index.md carries Runtime pin vX.Y.Z. and that the copyright line starts with Neuraverse Node SDK vX.Y.Z. Until the first release after this programme, both consumers pin 2.37.0 while the guide was vendored from main, so the banner reads Synced from neuraverse-node-sdk main@<sha>: ... Runtime pin v2.37.0. and the footer Neuraverse Node SDK v2.37.0 (guides: main@<sha>); the first bot MR replaces both with the tag.

The mock docs image (docs/Dockerfile) runs mkdocs build --strict at build time, so a vendored page that breaks turns the bot MR red in build-docs. mock-nodegraph's own pages may link into sdk/**, which is why renaming a guide page is a breaking change for the consumer and shows up in that MR.

Part C: authoring rules for docs/src/guide/ and how to fix a red gate

Rule Why Red gate and fix
Relative links only to pages inside guide/; absolute https:// URLs are fine; never link internals/ or reference/ (use the Pages URL if you must point there) The subset is built alone in the vendored shape test_guide_links_stay_public, scratch build, denylist. Replace the link.
Every fence that shows def on_configure( shows dynamic_config configure() always passes two arguments same test. Add the parameter.
Snippet paths start with one of the assets: directories Only those are vendored test_guide_links_stay_public, check_paths: true. Add the directory to public-nav.yml or move the file.
Include generated tables with --8<-- "docs/_generated/<name>.md"; never retype them Completeness by construction test_generated_tables_fresh after poetry run python scripts/gen_docs_tables.py.
Behaviour newer than SDK_MIN_DOCUMENTED_PIN gets !!! info "Since SDK x.y.z" with the exact CHANGELOG version; behaviour at or below the pin gets no admonition and no "Since SDK" phrase The DevKit runs the pinned version; the docs describe main test_since_versions_valid. Use a version that is a ## v... header in CHANGELOG.md, at most the pyproject version and above the pin; delete admonitions at or below the pin when the pin moves.
A new guide page is added to public-nav.yml in the same commit The nav is the allowlist bijection (docs-check and test_public_nav_bijection); regenerate the SDK nav block with the generator.
The words on the denylist do not appear (proxy, relay, ECR, hrg hosts, localstack, Kreya, spec prompts, nodectl, admin paths) Partner-facing text denylist step of docs-check. Reword or move the statement to internals/.
No get_data(..., timeout=), from neuraverse_sdk import ..., topics=[...], requirements.txt, NODE_CLASS, dataFlowCommunicationType, capitalised "Stop": { outputs Known wrong or legacy patterns test_anti_patterns.
One # Title per page, a one-paragraph summary, no em dashes, short paragraphs, tables for reference material House style; pages are read in two sites Review only; not machine-checked except for the H1 that mkdocs derives the title from.
Every public NodeBase symbol is mentioned somewhere in the guide, exempted names in internals/ Nothing ships undocumented test_public_hooks_documented, test_excluded_api_documented_in_internals. Mention it as `name` or name(.
guide/reference/whats-new.md gets a ## SDK X.Y.Z section for the version in pyproject.toml Release notes for node authors test_whats_new_has_current_version.

Part D: local preview and the release checklist

Local preview

From neuraverse-node-sdk-python/docs/, with Docker and no SDK install:

docker compose up               # http://localhost:8088, live reload (container port 8000)
docker compose run --rm build   # one-shot mkdocs build --strict, the same command as docs-check and pages

The compose file bind-mounts docs/, ../src (read by mkdocstrings), ../examples and ../CHANGELOG.md (snippet sources). Without Docker: pip install -r docs/requirements.txt, then mkdocs serve or mkdocs build --strict in docs/. Run bash ci/public-docs-check.sh from the project root for the leak gate and poetry run python scripts/gen_docs_tables.py --check for the tables; tests/test_docs_drift.py runs with the rest of the suite.

Release checklist

Before merging the change that should release:

  1. Set version in pyproject.toml to the version semantic-release will cut for the commit types in the MR (fix/patch, feat, breaking). Use doc: or ci: for work that must not release.
  2. Add the ## vX.Y.Z section to CHANGELOG.md by hand; nothing in this repository's CI generates it, and the drift test only accepts Since SDK versions that appear there.
  3. Add the ## SDK X.Y.Z section to docs/src/guide/reference/whats-new.md.
  4. Add !!! info "Since SDK X.Y.Z" admonitions to the guide pages whose behaviour changed; internals pages may reference CHANGELOG versions in plain text.
  5. Regenerate the tables (poetry run python scripts/gen_docs_tables.py) if a hook, config field, exception or type set changed, and add the annotation the generator asks for.
  6. Run the gates locally: mkdocs build --strict, bash ci/public-docs-check.sh, the coverage command with tests/test_docs_drift.py included.

After the tag:

  1. Watch release-publish-wheel (version guard) and the two release-notify-* jobs on the tag pipeline; re-run a single job on a transient failure.
  2. Review and merge the mock-nodegraph MR (chore/sdk-vX.Y.Z, labels sdk-release, automated); check the vendored diff under docs/src/sdk/, the banner and the footer version. Wait for its main pipeline to push :sdk-X.Y.Z.
  3. Re-run test-devkit on the node-template MR if it ran too early, review, merge; download the nodegraph-devkit artifact from its main pipeline when a DevKit hand-over is due.
  4. When the DevKit pin moves past the current SDK_MIN_DOCUMENTED_PIN, bump the constant in tests/test_docs_drift.py and prune the admonitions at or below it in one docs MR (doc: commit).

See also

  • AGENTS.md at the repository root: the same cycle as step-by-step skills for coding agents (/sdk-change, /docs-gates, /release, /downstream, /guide-page, /example).
  • Specifications for the coverage job and the spec layer.
  • Changelog for the release notes the checklist refers to.
  • Deploying on an engine for the image references node authors consume.

Scalar input conformance fixtures

The compatibility job uses the C++ test image so both language lanes can load ros_input_test_msgs. The Docker test stage builds that package into /opt/ros-input-fixtures; it is excluded from the released runtime and builder images. Source its package local_setup.bash before the ROS conformance tests. Both the Docker C++ build and /sdk/build.sh also include /opt/ros-input-fixtures in CMAKE_PREFIX_PATH: the package setup populates AMENT_PREFIX_PATH, which is insufficient for this CMake lookup. With BUILD_TESTING=ON, missing fixtures fail CMake configuration rather than silently compiling the scalar/compound suite without custom type registrations. The Python scalar-input lane uses the Zenoh service alongside its loopback MQTT broker and real ROS runtime. These results feed the shared contract checker.

Compound input conformance (SDK 2.45.0) extends the shared fixture package with nested defaults and fixed/bounded arrays. The SDK compatibility lane runs wire_tests/test_compound_input.py and checks its JUnit report against contracts/fixtures/compound_input.json and the C++ CompoundInputWire suite. Rebuild consumer node images; an updated engine alone does not replace their SDK.