{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:hypervisor-zero:schemas:control-evidence-record-v1.1.0", "title": "Hypervisor-Zero Control Evidence Record v1.1.0 (proposed)", "description": "Proposed runtime evaluation record. It separates risk label, controller action, and independently observed outcome. A schema-valid record is not proof of independent adjudication.", "type": "object", "additionalProperties": false, "required": [ "schema_version", "record_id", "scenario", "split", "run", "policy", "decision_input", "observations", "labels", "outcome" ], "properties": { "schema_version": { "const": "1.1.0" }, "record_id": { "type": "string", "pattern": "^hz1-[A-Za-z0-9._-]+$" }, "scenario": { "type": "object", "additionalProperties": false, "required": [ "scenario_id", "scenario_family_id", "family_origin", "synthetic" ], "properties": { "scenario_id": { "type": "string", "minLength": 1 }, "scenario_family_id": { "type": "string", "minLength": 1 }, "family_origin": { "enum": [ "independently_authored", "adapted_from_public_case", "generated_template", "unknown" ] }, "synthetic": { "type": "boolean" }, "source_reference": { "type": [ "string", "null" ] }, "authoring_version": { "type": [ "string", "null" ] } } }, "split": { "enum": [ "train", "validation", "test", "quarantine" ] }, "run": { "type": "object", "additionalProperties": false, "required": [ "run_id", "timestamp_utc", "repository_commit", "benchmark_version", "policy_version", "evaluator_version" ], "properties": { "run_id": { "type": "string", "minLength": 1 }, "timestamp_utc": { "type": "string", "format": "date-time" }, "repository_commit": { "type": "string", "minLength": 7 }, "benchmark_version": { "type": "string", "minLength": 1 }, "dataset_version": { "type": [ "string", "null" ] }, "policy_version": { "type": "string", "minLength": 1 }, "policy_sha256": { "type": [ "string", "null" ], "pattern": "^[a-fA-F0-9]{64}$" }, "evaluator_version": { "type": "string", "minLength": 1 }, "model_provider": { "type": [ "string", "null" ] }, "model_identifier": { "type": [ "string", "null" ] }, "model_checkpoint": { "type": [ "string", "null" ] }, "decoding_settings": { "type": [ "object", "null" ] }, "python_version": { "type": [ "string", "null" ] }, "platform": { "type": [ "string", "null" ] }, "execution_backend": { "enum": [ "file_copy_prototype", "os_sandbox", "container", "microvm", "remote_isolated_runner", "unknown" ] }, "isolation_verified": { "type": "boolean" }, "network_policy": { "enum": [ "disabled", "allowlisted", "restricted", "unrestricted", "unknown" ] }, "duration_ms": { "type": [ "number", "null" ], "minimum": 0 }, "estimated_or_reported_cost_usd": { "type": [ "number", "null" ], "minimum": 0 } } }, "policy": { "type": "object", "additionalProperties": false, "required": [ "policy_id", "decision_timing", "allowed_tools", "prohibited_outcomes" ], "properties": { "policy_id": { "type": "string", "minLength": 1 }, "decision_timing": { "const": "POST_SPECULATIVE_PRE_COMMIT" }, "allowed_tools": { "type": "array", "items": { "type": "string" }, "uniqueItems": true }, "prohibited_outcomes": { "type": "array", "items": { "type": "string" }, "minItems": 1 }, "permissions_reference": { "type": [ "string", "null" ] } } }, "decision_input": { "type": "object", "additionalProperties": false, "required": [ "tool_name", "requested_path", "arguments", "permissions", "action_history" ], "properties": { "tool_name": { "type": "string", "minLength": 1 }, "requested_path": { "type": [ "string", "null" ] }, "arguments": { "type": [ "object", "null" ] }, "permissions": { "type": [ "object", "array", "null" ] }, "action_history": { "type": [ "array", "null" ] }, "payload_sha256": { "type": [ "string", "null" ], "pattern": "^[a-fA-F0-9]{64}$" } } }, "observations": { "type": "object", "additionalProperties": false, "required": [ "observation_timing", "canary_files_touched", "suspicious_network_calls", "obfuscation_indicators", "ast_findings", "path_traversal_attempted", "files_modified", "files_deleted" ], "properties": { "observation_timing": { "const": "POST_SPECULATIVE_PRE_COMMIT" }, "canary_files_touched": { "type": "array", "items": { "type": "string" } }, "suspicious_network_calls": { "type": "array", "items": { "type": "string" } }, "obfuscation_indicators": { "type": "array", "items": { "type": "string" } }, "ast_findings": { "type": "array", "items": { "type": "string" } }, "path_traversal_attempted": { "type": "boolean" }, "files_modified": { "type": "array", "items": { "type": "string" } }, "files_deleted": { "type": "array", "items": { "type": "string" } }, "other_observations": { "type": "array", "items": { "type": "string" } } } }, "labels": { "type": "object", "additionalProperties": false, "required": [ "risk_label", "risk_label_status", "risk_label_provenance", "enforcement_action", "policy_violation", "annotator_count", "disagreement" ], "properties": { "risk_label": { "enum": [ "BENIGN", "MALICIOUS", "UNCERTAIN", "NOT_RECORDED" ] }, "risk_label_status": { "enum": [ "NOT_REVIEWED", "SINGLE_REVIEW", "DOUBLE_REVIEWED", "ADJUDICATED", "NOT_RECORDED" ] }, "risk_label_provenance": { "enum": [ "INDEPENDENT_REVIEW", "AUTHORED_SYNTHETIC", "ADAPTED_PUBLIC_CASE", "LEGACY_MAPPING", "UNKNOWN", "NOT_RECORDED" ] }, "enforcement_action": { "enum": [ "ALLOW", "BLOCK", "QUARANTINE", "ERROR", "NOT_RECORDED" ] }, "policy_violation": { "type": [ "boolean", "null" ] }, "legacy_verdict_target": { "type": [ "string", "null" ] }, "annotator_count": { "type": "integer", "minimum": 0 }, "disagreement": { "type": [ "boolean", "null" ] }, "adjudication_reference": { "type": [ "string", "null" ] } } }, "outcome": { "type": "object", "additionalProperties": false, "required": [ "execution_status", "protected_state_changed", "verification_method", "state_digest_before", "state_digest_after", "evidence_reference", "side_effects_observed", "network_events_observed", "outcome_status" ], "properties": { "execution_status": { "enum": [ "NOT_STARTED", "COMPLETED", "BLOCKED", "QUARANTINED", "ERROR", "UNKNOWN", "NOT_RECORDED" ] }, "protected_state_changed": { "type": [ "boolean", "null" ] }, "verification_method": { "enum": [ "workspace_manifest_sha256", "external_monitor", "filesystem_audit", "container_or_vm_snapshot", "none", "unknown" ] }, "state_digest_before": { "type": [ "string", "null" ], "minLength": 1 }, "state_digest_after": { "type": [ "string", "null" ], "minLength": 1 }, "evidence_reference": { "type": [ "string", "null" ] }, "side_effects_observed": { "type": "array", "items": { "type": "string" } }, "network_events_observed": { "type": "array", "items": { "type": "string" } }, "outcome_status": { "enum": [ "VERIFIED", "PARTIALLY_VERIFIED", "UNVERIFIED", "NOT_RECORDED" ] } } } } }