npx skills add ...
npx skills add nvidia/skills --skill vss-setup-behavior-analytics
Use to deploy the vss-behavior-analytics service standalone (entrypoint, config-source, optional calibration). Not for the full warehouse deploy.
npx skills add nvidia/skills --skill vss-setup-behavior-analytics
Deploy the behavior-analytics service standalone with the user's chosen entrypoint, config, and calibration.
Follow the routing tables and step-by-step workflows below. Each section that ends in workflow, quick start, or flow is intended to be executed top-to-bottom. Detailed reference material lives in references/.
Worked end-to-end examples are kept under evals/ (each *.json manifest
contains a runnable scenario). Run a Tier-3 evaluation to replay them:
A minimal standalone bring-up looks like:
Follow references/deploy-behavior-analytics-service.md for the full
workflow (entrypoint pick, config source, dynamic updates).
/docs or /health; redeploy via vss-deploy-profile or the matching vss-deploy-* skill.NGC_CLI_API_KEY. Solution: docker login nvcr.io and re-export the key before retrying.docker compose down.Deploy just the vss-behavior-analytics container (the spatial-AI analytics pipeline from the upstream behavior-analytics repo), not as part of the full warehouse blueprint stack.
The full operational walkthrough — entrypoint table, config-source options, calibration types, dynamic-update wire contract, troubleshooting — is references/deploy-behavior-analytics-service.md. This SKILL.md only handles routing and prerequisites.
$VSS_APPS_DIR pointing at <repo>/deploy/docker/. Required by the service compose's volume binds.$NGC_CLI_API_KEY set so docker can pull the image. See references/ngc-api-key-registry-login.md.docker --version and docker compose version.restart: always cycles the container. Status will show Restarting (N) in docker ps until a broker is reachable. With a broker, dynamic config / dynamic calibration over mdx-notification become available.If any required prerequisite fails, surface the gap before going further.
Hand the user references/deploy-behavior-analytics-service.md and walk them through its steps in order:
The compose-file edits, YAML diffs, deploy + verify commands, and troubleshooting table all live in that reference — don't duplicate them here.
Once the container is up and a broker is reachable, two runtime-update flows are available — neither requires redeploying:
Publish an upsert (per-key patch) or upsert-all (full snapshot) message to the mdx-notification topic with Kafka key behavior-analytics-config and headers:
event.type: upsert | upsert-all | request-config | ackreference-id: video-analytics-api-<uuid> (web-api originated), behavior-analytics-<uuid> (bootstrap reply), or the source-type literal (kafka / redis / mqtt) for direct-publisher upserts.Body: {"status": ..., "config": <patch>, "error": ...}.
The listener validates each message at the envelope layer (rejects unknown keys, missing config, malformed status/error) and at the per-payload layer (rejects forbidden sections, bad item shapes). Successful upserts are persisted to disk, applied to every worker, and ACK'd back over the topic.
Full wire contract + ack semantics: references/dynamic-config.md.
Publish to the same topic with Kafka key calibration and headers:
event.type: upsert-all (full snapshot) | upsert (per-sensor merge) | delete (per-sensor removal)timestamp: ISO-8601 UTC (YYYY-MM-DDTHH:MM:SS.fffZ).Body: JSON sensor list (and ROIs / tripwires / homographies for upsert-all).
The listener validates against the vendored AJV schema before persisting. Schema violations log a calibration schema violation warning and are dropped — the previously-good calibration stays loaded.
Full wire contract + per-action validation policy: references/dynamic-calibration.md.
Both flows live entirely on the broker — the producer can be video-analytics-api, your own script, or any Kafka client that mirrors the wire shape. They're the recommended way to change configuration after the container is running, so the operator doesn't have to redeploy.
vss-deploy-profile with profile warehouse (or alerts). Don't run this skill in parallel.references/configuration.md, references/dynamic-config.md, or references/dynamic-calibration.md before editing the JSON.bump:1