{
  "schema_version": 2,
  "project": "phonev2",
  "revision": "rev-a-concept",
  "stock_policy": {
    "minimum_units": 100,
    "maximum_age_days": 7
  },
  "connector_protection": {
    "required": true,
    "scope": [
      "external connectors",
      "internal plug/socket connectors",
      "pogo contacts",
      "removable FPC connections"
    ],
    "placement": "at each board boundary, adjacent to the connector and before branches",
    "selection_requirements": [
      "working voltage",
      "clamp voltage and current",
      "leakage current",
      "parasitic capacitance",
      "package and footprint",
      "declared ESD test standard",
      "live LCSC stock of at least 100 units"
    ],
    "interface_rules": {
      "USB": "ultra-low-capacitance protection on D+, D-, CC1, CC2, and populated service pins; separate VBUS TVS/OVP",
      "SIM": "low-capacitance protection on SIM_IO, SIM_CLK, and SIM_RST beside the socket",
      "CAN FD": "bidirectional CAN FD suppressor compatible with transceiver common-mode and fault range",
      "SPI/I2C/I2S/UART/GPIO/FPC": "voltage-, leakage-, and capacitance-qualified ESD array",
      "TRRS/audio": "low-leakage audio ESD protection",
      "RF": "no generic data-line TVS; use only RF-qualified protection justified by reference design and measured loss"
    }
  },
  "boards": [
    {
      "id": "core-r",
      "name": "CORE-R",
      "kind": "rigid",
      "layers": 4,
      "outline_status": "unresolved",
      "outline_source": "../PhoneV2_concept.FCStd",
      "role": "ESP32-S31 HP/LP compute, memory, LoRa RF, GNSS, PhoneBus host, Ethernet MAC, and USB host",
      "stackup_intent": [
        "L1 components, RF, and high-speed",
        "L2 uninterrupted ground",
        "L3 power polygons and low-speed signals",
        "L4 signals and stitched ground"
      ]
    },
    {
      "id": "lte-power-r",
      "name": "LTE/POWER-R",
      "kind": "rigid",
      "layers": 4,
      "outline_status": "unresolved",
      "outline_source": "../PhoneV2_concept.FCStd",
      "role": "LTE, SIM, charging, power path, regulators, battery, and USB-C"
    },
    {
      "id": "ui-audio-r",
      "name": "UI/AUDIO-R",
      "kind": "rigid",
      "layers": 4,
      "outline_status": "unresolved",
      "outline_source": "../PhoneV2_concept.FCStd",
      "role": "audio codec and amplifier, controls, GPIO expansion, e-ink, and camera connectors"
    },
    {
      "id": "light-r",
      "name": "LIGHT-R",
      "kind": "aluminum-core",
      "layers": 2,
      "outline_status": "unresolved",
      "outline_source": "../PhoneV2_concept.FCStd",
      "role": "high-CRI flashlight LEDs and temperature sensing"
    },
    {
      "id": "phonebus-f",
      "name": "PHONEBUS-F",
      "kind": "static-flex",
      "layers": 2,
      "outline_status": "unresolved",
      "outline_source": "../PhoneV2_concept.FCStd",
      "role": "CAN FD trunk, protected module power, and direct inter-board signals"
    }
  ],
  "components": [
    {
      "ref": "U1",
      "board_id": "core-r",
      "manufacturer": "Espressif",
      "mpn": "ESP32-S31-WROOM-1-N16R32V",
      "lcsc": "UNRESOLVED",
      "status": "sourcing_blocked",
      "sourcing_gate": {
        "state": "SOURCE_GATE_LIVE_STOCK_UNVERIFIED",
        "minimum_units": 100,
        "checked_at": "2026-09-26",
        "result": "Exact PCB-antenna WROOM-1-N16R32V procurement is blocked until a live LCSC SKU with at least 100 units is verified. No -1U external-antenna variant is permitted.",
        "freeze_allowed": false,
        "purchase_allowed": false
      },
      "evidence": [
        {
          "type": "datasheet",
          "url": "https://documentation.espressif.com/esp32-s31-wroom-1_wroom-1u_datasheet_en.pdf",
          "revision": "v0.5 PRELIMINARY",
          "pages": "1, 3-4, 14, 64, 67-68",
          "retrieved_at": "2026-09-26T05:46:59Z",
          "sha256": "c4ac564837a878a2087863ebacf9e8e08e32109d67d3ffabd8dbe5892e5401e8"
        },
        {
          "type": "hardware_guide",
          "url": "https://docs.espressif.com/projects/esp-hardware-design-guidelines/en/latest/esp32s31/index.html",
          "revision": "v0.2",
          "pages": "27",
          "retrieved_at": "2026-09-26T05:37:40Z"
        }
      ]
    },
    {
      "ref": "U3",
      "board_id": "core-r",
      "manufacturer": "Semtech",
      "mpn": "LR1121IMLTRT",
      "lcsc": "C7498014",
      "status": "evidence_grounded",
      "stock": {
        "units": 1302,
        "checked_at": "2026-09-22",
        "source_url": "https://www.lcsc.com/product-detail/C7498014.html"
      },
      "evidence": [
        {
          "type": "datasheet",
          "url": "https://www.semtech.com/products/wireless-rf/lora-connect/lr1121"
        }
      ]
    },
    {
      "ref": "U4",
      "board_id": "lte-power-r",
      "manufacturer": "SIMCom",
      "mpn": "A7683E",
      "lcsc": "C20617360",
      "status": "evidence_grounded",
      "stock": {
        "units": 125,
        "checked_at": "2026-09-22",
        "source_url": "https://www.lcsc.com/product-detail/C20617360.html"
      },
      "evidence": [
        {
          "type": "hardware_guide",
          "url": "https://www.simcom.com/product/A7683E.html"
        }
      ]
    },
    {
      "ref": "U5",
      "board_id": "core-r",
      "manufacturer": "Zhongkewei",
      "mpn": "ATGM336H-F8N76",
      "lcsc": "C46955980",
      "status": "evidence_grounded",
      "stock": {
        "units": 186,
        "checked_at": "2026-09-22",
        "source_url": "https://www.lcsc.com/product-detail/C46955980.html"
      },
      "evidence": [
        {
          "type": "datasheet",
          "url": "https://www.icofchina.com/daohang/duopin/2513.html"
        }
      ]
    },
    {
      "ref": "U6",
      "board_id": "ui-audio-r",
      "manufacturer": "Everest Semiconductor",
      "mpn": "ES8389",
      "lcsc": "C22380673",
      "status": "evidence_grounded",
      "stock": {
        "units": 1849,
        "checked_at": "2026-09-22",
        "source_url": "https://www.lcsc.com/product-detail/C22380673.html"
      },
      "evidence": [
        {
          "type": "datasheet",
          "url": "http://www.everest-semi.com/pdf/ES8389%20PB.pdf"
        }
      ]
    },
    {
      "ref": "U7",
      "board_id": "ui-audio-r",
      "manufacturer": "Nsiway",
      "mpn": "NS4150B",
      "lcsc": "C189961",
      "status": "proposed",
      "stock": {
        "units": 144235,
        "checked_at": "2026-09-22",
        "source_url": "https://www.lcsc.com/product-detail/C189961.html"
      },
      "evidence": [
        {
          "type": "supplier_record",
          "url": "https://www.lcsc.com/product-detail/C189961.html"
        }
      ]
    },
    {
      "ref": "U8",
      "board_id": "core-r",
      "manufacturer": "Texas Instruments",
      "mpn": "TCA9555PWR",
      "lcsc": "C465732",
      "status": "evidence_grounded",
      "stock": {
        "units": 39487,
        "checked_at": "2026-09-25",
        "source_url": "https://www.lcsc.com/product-detail/C465732.html"
      },
      "evidence": [
        {
          "type": "datasheet",
          "url": "https://www.ti.com/lit/gpn/TCA9555"
        }
      ]
    },
    {
      "ref": "U9",
      "board_id": "core-r",
      "manufacturer": "Texas Instruments",
      "mpn": "TCAN3413DR",
      "lcsc": "C22433320",
      "status": "evidence_grounded",
      "stock": {
        "units": 13674,
        "checked_at": "2026-09-25",
        "source_url": "https://www.lcsc.com/product-detail/C22433320.html"
      },
      "evidence": [
        {
          "type": "datasheet",
          "url": "https://www.ti.com/lit/gpn/TCAN3413"
        }
      ]
    },
    {
      "ref": "U10",
      "board_id": "ui-audio-r",
      "manufacturer": "Texas Instruments",
      "mpn": "TCA9555PWR",
      "lcsc": "C465732",
      "status": "evidence_grounded",
      "stock": {
        "units": 39487,
        "checked_at": "2026-09-25",
        "source_url": "https://www.lcsc.com/product-detail/C465732.html"
      },
      "evidence": [
        {
          "type": "datasheet",
          "url": "https://www.ti.com/lit/gpn/TCA9555"
        }
      ]
    }
  ],
  "blocks": [
    {
      "id": "compute-and-storage",
      "board_id": "core-r",
      "status": "provisional_sourcing_blocked",
      "components": ["U1"],
      "interfaces": ["module-integrated 16 MB Quad-SPI flash", "module-integrated 32 MB Octal PSRAM", "on-board PCB antenna", "Wi-Fi 6 2.4 GHz", "Bluetooth 5.4 LE + Classic", "IEEE 802.15.4", "USB Serial/JTAG", "USB 2.0 HS OTG", "EMAC", "CAN FD"]
    },
    {
      "id": "mesh-radio",
      "board_id": "core-r",
      "status": "proposed",
      "components": ["U3"],
      "interfaces": ["SPI2", "DIO wake", "430-510 MHz RF", "780-930 MHz RF", "mandatory 1.55 GHz L-band RF", "mandatory 1.9-2.1 GHz S-band RF", "mandatory 2.4 GHz LoRa RF"]
    },
    {
      "id": "phonebus-host",
      "board_id": "core-r",
      "status": "proposed",
      "components": ["U8", "U9"],
      "interfaces": ["native CAN FD TX/RX", "CAN_H", "CAN_L", "standby/wake", "local slow-control expansion"]
    },
    {
      "id": "lte",
      "board_id": "lte-power-r",
      "status": "proposed",
      "components": ["U4"],
      "interfaces": ["UART RTS/CTS", "USB test", "SIM", "LTE RF", "3V8 switched power"]
    },
    {
      "id": "positioning",
      "board_id": "core-r",
      "status": "proposed",
      "components": ["U5"],
      "interfaces": ["UART", "PPS", "L1/L5 RF", "switched 3V3"]
    },
    {
      "id": "audio-and-controls",
      "board_id": "ui-audio-r",
      "status": "proposed",
      "components": ["U6", "U7", "U10"],
      "interfaces": ["I2S", "HP I2C", "GPIO interrupt", "eight-microphone array", "TRRS", "speaker", "ANO", "e-ink", "camera"],
      "microphone_array": {
        "count": 8,
        "beamforming": "LOCAL_ON_ESP32_S31",
        "status": "REQUIRED",
        "unresolved": [
          "exact microphone MPN",
          "array geometry and acoustic port placement",
          "digital or analog capture topology",
          "clocking and channel aggregation",
          "measured DSP compute, memory, latency, and power budget"
        ]
      }
    }
  ],
  "interfaces": [
    {
      "id": "phonebus-canfd",
      "transport": "CAN FD",
      "board_ids": ["core-r", "phonebus-f"],
      "signals": ["CAN_H", "CAN_L", "WAKE", "MODULE_EN", "MODULE_DETECT", "FAULT"],
      "connector_protection": "required_at_each_connector_boundary"
    },
    {
      "id": "core-ui-direct",
      "transport": "direct over PHONEBUS-F",
      "board_ids": ["core-r", "phonebus-f", "ui-audio-r"],
      "signals": ["SPI2", "HP I2C", "I2S", "UI_IRQ", "control power"],
      "connector_protection": "required_at_each_connector_boundary"
    },
    {
      "id": "core-lte-direct",
      "transport": "direct over PHONEBUS-F",
      "board_ids": ["core-r", "phonebus-f", "lte-power-r"],
      "signals": ["LTE UART RTS/CTS", "LTE power/status", "USB Serial/JTAG"],
      "connector_protection": "required_at_each_connector_boundary"
    },
    {
      "id": "light-power-control",
      "transport": "power and slow control",
      "board_ids": ["lte-power-r", "phonebus-f", "light-r"],
      "signals": ["LED power", "LED enable/PWM", "NTC sense"],
      "connector_protection": "required_at_each_connector_boundary"
    },
    {
      "id": "service-bay-ethernet",
      "transport": "external Ethernet through power-gated PHY and magnetics",
      "board_ids": ["core-r", "phonebus-f", "lte-power-r"],
      "signals": ["EMAC RGMII or RMII", "MDIO/MDC", "PHY reset/interrupt", "switched PHY rail", "8P8C magnetics", "shield/ESD return"],
      "connector_protection": "required_at_each_connector_boundary",
      "status": "UNRESOLVED_RGMII_VS_RMII"
    },
    {
      "id": "service-bay-usb-a-host",
      "transport": "USB 2.0 HS OTG host",
      "board_ids": ["core-r", "phonebus-f", "lte-power-r"],
      "signals": ["dedicated USB_DP", "dedicated USB_DM", "current-limited switched 5V VBUS", "VBUS discharge", "overcurrent/fault", "host-role detection"],
      "connector_protection": "required_at_each_connector_boundary",
      "status": "UNRESOLVED_EXACT_POWER_AND_PROTECTION_PARTS"
    }
  ],
  "system_resources": {
    "esp32_s31": {
      "ordering_code": "ESP32-S31-WROOM-1-N16R32V",
      "embedded_chip": "ESP32-S31NRV32",
      "datasheet_status": "PRELIMINARY v0.5",
      "module": "ESP32-S31-WROOM-1 with on-board PCB antenna; -1U/external-antenna variants forbidden",
      "dimensions_mm": [18.0, 25.5, 3.1],
      "programmable_gpio_total": 54,
      "lp_gpio_total": 8,
      "chip_programmable_gpio_total": 60,
      "hp_cpu": "dual RV32IMAFC up to 320 MHz with Sv32",
      "lp_cpu": "single RV32IMAC up to 40 MHz",
      "hp_sram_kb": 512,
      "lp_sram_kb": 32,
      "module_flash_mb": 16,
      "module_psram_mb": 32,
      "usb_hs_otg_module_pads": {"DM": 54, "DP": 55},
      "usb_serial_jtag_gpio": [33, 34],
      "controllers": {
        "general_purpose_spi": 2,
        "lp_spi": 1,
        "uart": 4,
        "lp_uart": 1,
        "i2c": 2,
        "lp_i2c": 1,
        "i2s": 2,
        "can_fd": 1,
        "usb_2_hs_otg": 1,
        "usb_serial_jtag": 1,
        "ethernet_mac_10_100_1000": 1,
        "sd_mmc_host_slots": 2,
        "lcd_camera_dvp": 1
      },
      "allocation_status": "unresolved",
      "notes": [
        "RGMII consumes designated GPIO8-GPIO19; RMII consumes designated GPIO8, GPIO9, GPIO12, GPIO13, GPIO15, GPIO18 and GPIO19",
        "GP-SPI2 eight-line IO MUX overlaps GPIO9-GPIO19 and therefore conflicts with EMAC high-speed allocations",
        "USB 2.0 HS OTG uses dedicated package pins 44/45; USB Serial/JTAG separately uses GPIO33/34",
        "exact pins remain UNRESOLVED pending complete strapping, boot, power-domain, RF, Ethernet, USB, camera, SD/MMC and sleep-state review"
      ],
      "rf_placement": {
        "preferred": "Place PCB-antenna end beyond host PCB edge",
        "recessed_exception": "Cut away host PCB below and on both sides of antenna; keep feed near board edge; never center module in a four-sided moat",
        "housing_clearance_mm_all_directions": 15,
        "external_antenna_connector": "FORBIDDEN"
      },
      "evaluation_only_fallback": {
        "mpn": "ESP32-S31-WROOM-3-N16R16V",
        "lcsc": "C55371223",
        "stock_units": 0,
        "stock_checked_at": "2026-09-26T05:46:59Z",
        "source_url": "https://www.lcsc.com/product-detail/C55371223.html",
        "status": "BUY_LINKED_EVALUATION_ONLY_NOT_FOOTPRINT_COMPATIBLE",
        "production_substitute_allowed": false
      }
    }
  },
  "software_domains": {
    "status": "PROVISIONAL_CONTRACT",
    "boot_profiles": ["LP_ONLY", "HP_ESP_IDF", "HP_LINUX_EXPERIMENTAL"],
    "lp_always_on": {
      "budget": "40 MHz RV32IMAC and 32 KB LP SRAM",
      "owns": ["PMU/deep sleep and wake policy", "RTC and watchdog", "battery/charger telemetry and safety", "buttons and ANO", "minimal e-ink status through LP-capable IO", "safe RGB/status", "fault handling", "LP-HP mailbox endpoint"],
      "must_work_with_hp_off": true,
      "full_radio_or_network_stacks": "NOT_ASSUMED"
    },
    "hp_esp_idf": {
      "support_state": "PRODUCT_BASELINE_TARGET_SUPPORT_PREVIEW",
      "evidence": "ESP-IDF v6.1 final identifies ESP32-S31 support as preview; no production-support claim",
      "owns": ["Wi-Fi/Bluetooth/802.15.4", "LoRa LR1121 bulk and timing-sensitive work", "PhoneBus CAN FD", "GNSS", "LTE UART/PPP", "audio", "full e-ink rendering", "camera", "storage", "Ethernet", "USB host"]
    },
    "hp_linux": {
      "support_state": "EXPERIMENTAL_BLOCKED",
      "role": "bounded on-demand POSIX jobs only; checkpoint and cleanly shut down afterward",
      "candidate_owners": ["Ethernet MAC/PHY", "USB host and storage", "SD/MMC filesystem", "camera/JPEG/PPA", "high-throughput TLS/networking", "optional compute jobs"],
      "release_gates": ["repeatable signed boot", "exact RAM and flash budget", "supported toolchain/kernel/BSP", "device tree", "required drivers", "LP-HP lifecycle", "suspend/resume/shutdown", "crash recovery", "measured energy budget"]
    },
    "simultaneous_linux_and_esp_idf_on_hp_cores": "UNRESOLVED_NO_SUPPORTED_AMP_EVIDENCE",
    "rpc": {
      "mailbox": "sixteen 32-bit control registers; never bulk transport",
      "protocol": "versioned commands/events with request ID, boot-generation ID, deadline, timeout, cancellation and explicit terminal status",
      "bulk_transport": "shared-memory rings with producer/consumer ownership, bounds, cache-coherency rules and crash reinitialization",
      "recovery": "LP watchdog rejects stale generations, revokes ownership and returns to a safe LP-only state after HP crash or timeout"
    }
  },
  "unresolved": [
    "Archive exact manufacturer PDFs and hashes for every selected part",
    "SOURCE GATE: qualify exact ESP32-S31-WROOM-1-N16R32V with a live LCSC SKU and at least 100 units; no PCB freeze or purchase before this gate; WROOM-3-N16R16V is evaluation-only and not footprint-compatible",
    "Freeze the complete ESP32-S31-WROOM-1-N16R32V module pin assignment after power, strapping, module flash/PSRAM, RF placement, RGMII/RMII, USB, camera, SD/MMC, LP-IO and sleep-state analysis",
    "Choose RGMII 1 Gb/s versus lower-power RMII 100 Mb/s after pin, power, thermal, PHY-stock and measured-workload comparison; select exact PHY, magnetics/RJ45, clocking, protection and power switch",
    "Select exact USB-A host receptacle, current-limited VBUS switch, discharge, overcurrent handling, ESD and role-detection circuitry; keep USB-C as separate charge/device/debug",
    "Prove the LP minimal e-ink path, IO reachability and 32 KB code/data budget with HP off",
    "Resolve the official-document inconsistency in LP-I2C GPIO6/GPIO7 SCL/SDA mapping before assigning those module pads",
    "Define and test LP-HP shared-memory cache coherency, ownership, timeout, cancellation, boot-generation and crash recovery semantics",
    "Keep HP Linux experimental until the signed-boot, BSP/toolchain, memory, DT, driver, lifecycle, recovery and measured-energy gates pass",
    "Treat simultaneous Linux and ESP-IDF on separate HP cores as unsupported and UNRESOLVED unless Espressif publishes a supported AMP design",
    "Verify ES8389 clocking without a dedicated MCLK and preserve an optional test path until proven",
    "Select charger, power-path, regulators, protection, and exact 18650",
    "Select interface-specific USB, SIM, CAN FD, audio, and low-capacitance digital ESD/TVS parts for every connector boundary",
    "Select e-ink, camera, microphones, speaker, antennas, and connectors",
    "Select the satellite NTN operator and freeze its exact L/S-band channels, RF filters, certification, and service requirements",
    "Re-evaluate CORE-R dimensions, placement, thermal and RF assumptions for the 18.0 x 25.5 x 3.1 mm WROOM-1 module and >=15 mm housing antenna clearance without editing concurrently owned mechanical artifacts",
    "Apply the captive gasketed service-bay cap, connector insertion/removal sweeps, retention, compression stops, drainage/water path and clearances in the follow-up mechanical task; do not claim an IP rating before tests",
    "Define reviewed reference-circuit patterns before generating RF, LTE, power, or analog-audio schematics"
  ]
}
