vios-error-security

vios-error-security is a cursor rule for Cursor from NVIDIA-AI-Blueprints/video-search-and-summarization. It costs 0 tokens per session (367 once invoked), scanned A, original, Apache-2.0.

Rules for handling errors and protecting VIOS C++ code from security problems.

In plain words
What is it for?
Use them when writing error paths, validating inputs, managing failures, or reviewing security-sensitive C++ code.
Why use it?
They help changes report failures consistently and avoid introducing unsafe behaviour.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them when writing error paths, validating inputs, managing failures, or reviewing security-sensitive C++ code.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/nvidia-ai-blueprints/video-search-and-summarization/vios-error-security
About the project

NVIDIA AI Blueprint for Video Search and Summarization (VSS) is a reference architecture for applications that use AI to search, analyze, question, and summarize live or recorded video. It is intended for building video analytics agents with vision-language models, language models, retrieval-augmented generation, and NVIDIA NIM microservices. The catalogue entries provide coding-agent rules, skills, commands, agents, instructions, and settings associated with the project.

NVIDIA-AI-Blueprints/video-search-and-summarization · 1,945 stars · on GitHub · build.nvidia.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/NVIDIA-AI-Blueprints/video-search-and-summarization

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vios-error-security

README.md
[![agentmods](https://agentmods.dev/badge/rules/nvidia-ai-blueprints/video-search-and-summarization/vios-error-security/github.svg)](https://agentmods.dev/rules/nvidia-ai-blueprints/video-search-and-summarization/vios-error-security)
Your own site
<a href="https://agentmods.dev/rules/nvidia-ai-blueprints/video-search-and-summarization/vios-error-security"><img src="https://agentmods.dev/badge/rules/nvidia-ai-blueprints/video-search-and-summarization/vios-error-security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vios-error-security

Your own site · 80×15
<a href="https://agentmods.dev/rules/nvidia-ai-blueprints/video-search-and-summarization/vios-error-security"><img src="https://agentmods.dev/badge/rules/nvidia-ai-blueprints/video-search-and-summarization/vios-error-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 367 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00367
Opus 5.5 $0.00000 $0.00147
Sonnet 5.5 $0.00000 $0.00073
Haiku 4.5 $0.00000 $0.00037

Measured 1mo ago against content hash 45993b1dd573, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vios-error-security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

services/vios/.cursor/rules/vios-error-security.mdc · 40 lines

What it actually says

SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License");

you may not use this file except in compliance with the License.

You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an "AS IS" BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.

Error Handling

  • Log via logger.h using LOG(error) / LOG(info) (or appropriate LOG(level) macros), not std::cerr or printf
  • Prefer return codes / std::optional / callbacks over exceptions in hot paths
  • Media pipeline errors must degrade gracefully (reconnect, skip frame)

Threading

  • GStreamer pipeline callbacks run on GStreamer threads -- do not block them
  • civetweb HTTP/WebSocket handlers must be non-blocking
  • Protect shared state with std::mutex / std::shared_mutex; document lock ordering

Security

  • Validate all external inputs at REST API boundaries via SchemaValidator
  • Never log credentials, tokens, or PII
  • Do not bypass UserAuthHandler
  • Run /security-review before committing any change
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 40 lines · 0 tokens per session scan A 45993b1dd573

Subscribe to this mod's changes

vios-error-security is a cursor rule published in the GitHub repository NVIDIA-AI-Blueprints/video-search-and-summarization (1,945 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 367 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.