| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- {
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "$id": "uart_board_sram_receipt.schema.json",
- "title": "UART board SRAM receipt",
- "type": "object",
- "required": ["schema", "status", "counterparty", "programming", "serial", "transcript", "debug_evidence", "safety"],
- "properties": {
- "schema": { "const": "uart-board-sram-receipt-v1" },
- "status": { "type": "string" },
- "counterparty": { "enum": ["pc_emulator", "real_bmc"] },
- "programming": {
- "type": "object",
- "required": ["mode", "bitstream"],
- "properties": {
- "mode": { "const": "PROGRAM_SRAM" },
- "bitstream": { "$ref": "#/$defs/artifact" }
- },
- "additionalProperties": true
- },
- "serial": { "$ref": "#/$defs/serial" },
- "transcript": { "$ref": "#/$defs/artifact" },
- "debug_evidence": {
- "type": "object",
- "required": ["event_stream", "register_dump"],
- "properties": {
- "event_stream": { "type": "string" },
- "register_dump": { "type": "string" }
- },
- "additionalProperties": true
- },
- "safety": { "$ref": "#/$defs/safety" },
- "authority_boundary": { "type": "string" }
- },
- "additionalProperties": true,
- "$defs": {
- "serial": {
- "type": "object",
- "required": ["port", "baud", "format", "allowlisted"],
- "properties": {
- "port": { "type": "string" },
- "baud": { "const": 115200 },
- "format": { "const": "8N1" },
- "allowlisted": { "const": true },
- "dtr": { "type": "boolean" },
- "rts": { "type": "boolean" }
- },
- "additionalProperties": true
- },
- "artifact": {
- "type": "object",
- "required": ["path", "sha256"],
- "properties": {
- "path": { "type": "string" },
- "sha256": { "type": "string", "pattern": "^[0-9a-fA-F]{64}$" }
- },
- "additionalProperties": true
- },
- "safety": {
- "type": "object",
- "required": ["flash_attempted", "real_ptc_fan_bmc_action_attempted", "driver_install_attempted"],
- "properties": {
- "flash_attempted": { "const": false },
- "real_ptc_fan_bmc_action_attempted": { "const": false },
- "driver_install_attempted": { "const": false }
- },
- "additionalProperties": true
- }
- }
- }
|