Report schema
The report schema describes the JSON report of witnyx check.
check writes the report to each file that --output json=PATH names, prints it on standard output in agent mode, and the MCP server’s check_sbom tool returns it.
Report formats shows a report.
Fields that a run could not fill are left out. Within version 1, changes only add optional fields; a change that would break a reader becomes version 2.
Its ID is https://witnyx.dev/schemas/report/v1.json, and every report names it in its schema field.
witnyx schema report prints the copy bundled with the tool, and witnyx schema without a name prints the same:
$ witnyx schema report "$id": "https://witnyx.dev/schemas/report/v1.json", "title": "Witnyx release security check report, version 1",See also: Use from an AI agent explains the fields an agent reads first.
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://witnyx.dev/schemas/report/v1.json", "title": "Witnyx release security check report, version 1", "description": "The JSON report of `witnyx check` (spec section 10.3). Fields that a run could not fill are left out. Changes within v1 only add optional fields; a breaking change becomes v2.", "type": "object", "additionalProperties": false, "required": ["schema", "tool", "checkedAt", "caller", "product", "sbom", "result", "summary", "findings", "dataSources", "nextActions", "agentNotes"], "properties": { "schema": { "const": "https://witnyx.dev/schemas/report/v1.json" }, "tool": { "type": "object", "additionalProperties": false, "required": ["name", "version"], "properties": { "name": { "const": "witnyx" }, "version": { "type": "string", "minLength": 1 } } }, "checkedAt": { "description": "When the check ran, as a UTC instant. Exploited findings record it as awareAt.", "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?Z$" }, "caller": { "description": "Who ran the check (spec section 12.1): human, ci or agent as the command line detected it, or unknown when a library caller did not say. An agent caller gets the agent-mode output and agentNotes.", "type": "object", "additionalProperties": false, "required": ["type"], "properties": { "type": { "enum": ["human", "ci", "agent", "unknown"] }, "name": { "description": "The agent or CI system, such as claude-code or github-actions; left out when unknown.", "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$", "maxLength": 64 }, "detectedBy": { "description": "The flag or environment variable that decided the type, such as flag:--agent, env:WITNYX_AGENT or env:CLAUDECODE; left out when nothing did.", "type": "string" } } }, "product": { "description": "The product the SBOM describes; flags and .witnyx.yml may replace the SBOM's values.", "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "version": { "type": "string" } } }, "sbom": { "type": "object", "additionalProperties": false, "required": ["format", "sha256", "componentCount", "notChecked"], "properties": { "path": { "description": "The SBOM path as given, or as found in --repo-dir; left out when the SBOM came from standard input.", "type": "string" }, "format": { "enum": ["cyclonedx", "spdx"] }, "specVersion": { "type": "string" }, "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" }, "componentCount": { "type": "integer", "minimum": 0 }, "notChecked": { "description": "Components that could not be checked: no package URL with a version, or a required data source failed.", "type": "integer", "minimum": 0 } } }, "result": { "type": "object", "additionalProperties": false, "required": ["status", "complete", "failOn", "triggeredBy", "exitCode"], "properties": { "status": { "description": "fail when a --fail-on rule triggered, else incomplete when not every component was checked, else pass. A --fail-on rule whose optional data source was unavailable (for example eol without end-of-life data) is not evaluated, so the run can still pass; dataSources then shows the failed source, with a note.", "enum": ["pass", "fail", "incomplete"] }, "complete": { "type": "boolean" }, "failOn": { "type": "array", "items": { "$ref": "#/$defs/rule" } }, "triggeredBy": { "type": "array", "items": { "$ref": "#/$defs/rule" } }, "exitCode": { "description": "0: no --fail-on rule triggered, and the check was complete or --strict was not set; 1: a --fail-on rule triggered, even when the check is incomplete; 2: the check was incomplete and --strict was set. An incomplete run under --strict still writes this report, with exitCode 2, not the error document. Offline runs are always incomplete, because OSV has no offline copy, so --offline --strict never gives 0.", "enum": [0, 1, 2] } } }, "summary": { "description": "Counts of unresolved findings. A count is left out when its check did not run.", "type": "object", "additionalProperties": false, "required": ["notAffected", "pendingReview"], "properties": { "exploited": { "type": "integer", "minimum": 0 }, "eol": { "description": "Components past end of life.", "type": "integer", "minimum": 0 }, "vulnerabilities": { "description": "Other known vulnerabilities by severity, not-affected ones excluded.", "type": "object", "additionalProperties": false, "required": ["critical", "high", "medium", "low", "unknown"], "properties": { "critical": { "type": "integer", "minimum": 0 }, "high": { "type": "integer", "minimum": 0 }, "medium": { "type": "integer", "minimum": 0 }, "low": { "type": "integer", "minimum": 0 }, "unknown": { "type": "integer", "minimum": 0 } } }, "notAffected": { "type": "integer", "minimum": 0 }, "pendingReview": { "type": "integer", "minimum": 0 } } }, "quality": { "description": "SBOM quality (spec section 7.3); left out when it was not assessed.", "type": "object", "additionalProperties": false, "required": ["euMinimum", "completeness"], "properties": { "euMinimum": { "type": "object", "additionalProperties": false, "required": ["pass", "note"], "properties": { "pass": { "type": "boolean" }, "reason": { "description": "Why the EU legal minimum failed.", "type": "string" }, "note": { "const": "Our reading of the EU Cyber Resilience Act; not legal advice." } } }, "completeness": { "type": "object", "additionalProperties": false, "required": ["profile", "score", "filled", "expected", "biggestGaps", "formatBelowBaseline", "containsVulnerabilityData", "fields", "notes"], "properties": { "profile": { "type": "string", "minLength": 1 }, "generator": { "description": "The tool that generated the SBOM, when Witnyx recognises it; left out otherwise. A recognised generator's own fix hints replace the generic ones in the quality findings.", "type": "object", "additionalProperties": false, "required": ["name"], "properties": { "name": { "enum": ["cdxgen", "syft", "cyclonedx-npm", "cyclonedx-gradle-plugin", "cyclonedx-maven-plugin"] }, "version": { "description": "The version the SBOM gives for the tool; left out when it is longer than 128 characters.", "type": "string", "minLength": 1, "maxLength": 128 } } }, "score": { "type": "integer", "minimum": 0, "maximum": 100 }, "filled": { "type": "integer", "minimum": 0 }, "expected": { "type": "integer", "minimum": 0 }, "biggestGaps": { "type": "array", "items": { "type": "string" } }, "formatBelowBaseline": { "type": "boolean" }, "containsVulnerabilityData": { "type": "boolean" }, "fields": { "type": "array", "items": { "$ref": "#/$defs/fieldCoverage" } }, "notes": { "type": "array", "items": { "type": "string" } } } } } }, "disclosure": { "description": "Disclosure readiness (spec section 7.4); left out when no repository was checked.", "type": "object", "additionalProperties": false, "required": ["securityMd", "securityTxt"], "properties": { "securityMd": { "enum": ["found", "no-contact", "missing", "unreadable"] }, "securityMdPath": { "type": "string" }, "securityTxt": { "enum": ["valid", "expiring", "expired", "invalid", "missing", "unreachable", "not-checked"] }, "securityTxtSource": { "description": "The repository path or the URL.", "type": "string" }, "securityTxtExpires": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?Z$" } } }, "findings": { "type": "array", "items": { "$ref": "#/$defs/finding" } }, "dataSources": { "type": "array", "items": { "$ref": "#/$defs/dataSource" } }, "nextActions": { "description": "What to do next, most important first.", "type": "array", "items": { "type": "string" } }, "regulatoryNote": { "description": "Present when an actively exploited vulnerability is unresolved (spec section 13.2).", "type": "object", "additionalProperties": false, "required": ["text", "relayVerbatim", "notLegalAdvice"], "properties": { "text": { "const": "An actively exploited vulnerability is in a component you ship. If it affects your product and the product is sold in the EU, reporting under the EU Cyber Resilience Act (Article 14) may apply. This check recorded when you were made aware. This is not legal advice." }, "relayVerbatim": { "const": true }, "notLegalAdvice": { "const": true } } }, "agentNotes": { "description": "Fixed instructions for an AI coding agent (spec section 12.3). When caller.type is agent, the four notes of the spec, always in the same order and words; otherwise empty.", "type": "array", "items": { "type": "string" } } }, "$defs": { "rule": { "description": "A --fail-on value.", "type": "string", "pattern": "^(exploited|critical|high|eol|none|quality:(100|[1-9]?[0-9]))$" }, "fieldCoverage": { "type": "object", "additionalProperties": false, "required": ["id", "label", "level", "filled", "expected"], "properties": { "id": { "type": "string", "minLength": 1 }, "label": { "type": "string", "minLength": 1 }, "level": { "enum": ["required", "additional", "optional"] }, "filled": { "type": "integer", "minimum": 0 }, "expected": { "type": "integer", "minimum": 0 } } }, "finding": { "type": "object", "additionalProperties": false, "required": ["id", "kind", "severity", "status", "details", "fix", "docsUrl"], "properties": { "id": { "type": "string", "minLength": 1 }, "kind": { "enum": ["exploited", "eol", "quality", "disclosure", "vulnerability"] }, "severity": { "enum": ["critical", "high", "medium", "low", "info", "unknown"] }, "status": { "enum": ["active", "not_affected", "pending_review"] }, "component": { "type": "object", "additionalProperties": false, "properties": { "purl": { "type": "string" }, "name": { "type": "string" }, "version": { "type": "string" } } }, "details": { "description": "Kind-specific details, such as euvdId and kevDateAdded for exploited findings, or the assessment of a not-affected finding.", "type": "object" }, "fix": { "description": "What to do about the finding; every finding has one (spec section 12.2). investigate means that no fixed version, or no supported release to move to, is known yet.", "type": "object", "additionalProperties": false, "required": ["action", "files"], "if": { "required": ["to"] }, "then": { "properties": { "action": { "const": "upgrade" } } }, "properties": { "action": { "enum": ["upgrade", "investigate", "improve-sbom", "add-file", "edit-file"] }, "to": { "description": "The version to upgrade to; only with upgrade.", "type": "string" }, "files": { "description": "Repository files the fix touches, relative to --repo-dir with / separators. For upgrade and investigate, the manifest files that likely declare the component.", "type": "array", "items": { "type": "string" } } } }, "docsUrl": { "description": "The page that explains this kind of finding; every finding has one.", "type": "string", "pattern": "^https://" } } }, "dataSource": { "type": "object", "additionalProperties": false, "required": ["name", "status", "required"], "properties": { "name": { "type": "string", "minLength": 1 }, "status": { "enum": ["ok", "cached", "error", "skipped"] }, "ageHours": { "description": "Age of the cached copy.", "type": "integer" }, "message": { "type": "string", "minLength": 1 }, "required": { "description": "Whether the run is incomplete when this source fails (OSV and CISA KEV). A source with required false, such as endoflife.date, can fail without making the run incomplete; a --fail-on rule that needs it is then not evaluated.", "type": "boolean" } } } }}Witnyx is a record-keeping and workflow tool. It does not certify compliance. Nothing on this site is legal advice.