prod2u_p4_normal_v3_final_gate_receipt.schema.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. "$schema": "https://json-schema.org/draft/2020-12/schema",
  3. "$id": "prod2u-p4-normal-v3-final-gate-v3",
  4. "type": "object",
  5. "additionalProperties": false,
  6. "required": [
  7. "schema", "status", "generated_at", "verification_run_id", "commit",
  8. "source_state", "child_receipts", "bitstream_sha256", "synthesis_input_hash",
  9. "failures", "safety", "authority_boundary"
  10. ],
  11. "properties": {
  12. "schema": {"const": "prod2u-p4-normal-v3-final-gate-v3"},
  13. "status": {"enum": ["pass", "fail"]},
  14. "generated_at": {"type": "string", "minLength": 1},
  15. "verification_run_id": {"type": "string", "pattern": "^[0-9a-f]{32}$"},
  16. "commit": {"type": "string", "pattern": "^[0-9a-f]{8}$"},
  17. "source_state": {"type": "object"},
  18. "child_receipts": {
  19. "type": "object",
  20. "required": ["offline", "td", "td_confirmation", "package"],
  21. "additionalProperties": {
  22. "type": "object",
  23. "required": ["path", "sha256"],
  24. "properties": {
  25. "path": {"type": "string", "minLength": 1},
  26. "sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
  27. }
  28. }
  29. },
  30. "bitstream_sha256": {"type": ["string", "null"], "pattern": "^[0-9a-f]{64}$"},
  31. "synthesis_input_hash": {"type": ["string", "null"], "pattern": "^[0-9a-f]{64}$"},
  32. "failures": {"type": "array", "items": {"type": "string"}},
  33. "safety": {"const": {"opens_serial": false, "programs_hardware": false, "installs_drivers": false}},
  34. "authority_boundary": {"type": "string", "minLength": 1}
  35. }
  36. }