Proposal: show SRAC safety context beside SBOM vulnerability results

Author: devashridatta-dotcomCreated Sep 27, 2026Updated Sep 27, 2026

Proposal

Add an optional experimental input for Safety Relevance Assertion Capability (SRAC) records when OSV-Scanner analyzes an SPDX or CycloneDX SBOM, allowing externally authored safety context to appear beside vulnerability results.

An illustrative command could be:

bash
osv-scanner scan --sbom sbom.json --srac assertions.srac.json --format json

The exact interface is open to discussion. A minimal workflow would:

  1. validate the SRAC schema, integrity metadata, and internal references;
  2. correlate assertions with the SBOM packages OSV-Scanner analyzes using package URL, SBOM reference, version, or artifact digest;
  3. add externally authored safety relevance, assertion lifecycle/review state, and optional change-impact status to machine-readable output;
  4. expose unmatched, ambiguous, invalid, and stale assertions explicitly; and
  5. leave OSV vulnerability severity, matching, remediation, and exit behavior unchanged by default.

SRAC tooling validates and transports decisions from an authorized safety process. OSV-Scanner must not infer a safety classification, approve a decision, or interpret missing context as “not safety-related”.

Acceptance criteria

  • Context appears only for deterministically matched, validated assertions.
  • Output records which identifier established the match.
  • Unknown, invalid, stale, ambiguous, and unmatched states remain distinct.
  • Existing vulnerability results and default exit behavior are unchanged.
  • The assertion digest and provenance remain auditable.
  • A synthetic example and positive/negative tests document the behavior.

Context

The prototype demonstrates SPDX/CycloneDX correlation, integrity checks, enrichment reports, change-impact records, and fail-closed behavior. Its SPDX mapping follows current 3.1-development FunctionalSafety concepts; these are development/proposal references, not claims of released normative support.

Would maintainers consider a companion sidecar input useful, or should such enrichment remain a downstream post-processing concern?