{
  "schema": "oss-pce-cd-bios/write-path-inventory/v1",
  "issue": 173,
  "scope": "slot-1e (EX_GETVER candidate) in-core write guard; pinned core only",
  "pinned_core_revision": "b49ae82a012eade566d72e9d61c9d95a5caa4da3",
  "gate_ledger": "spec/reference_jsr_gate.json",
  "gate_status_default": "BLOCKED",
  "monitor_status_values": [
    "PREVENTED_MEASURED",
    "PREVENTED_STATIC",
    "PREVENTED_BY_REACHABILITY",
    "DETECTED_AT_INSTRUCTION_BOUNDARY",
    "DETECTED_AFTER_SIDE_EFFECT",
    "PERMITTED_UNISOLATED",
    "UNMONITORED",
    "UNKNOWN"
  ],
  "prevents_before_side_effect_values": ["YES", "PER_WRITE", "KNOWN_PC_ONLY", "NO", "UNKNOWN"],
  "measurement_values": ["REAL_CORE_SYNTHETIC", "STATIC_SOURCE_REFERENCE", "NOT_MEASURED"],
  "categories": ["MPR", "ST", "MMIO", "IRQ", "RAM", "DEVICE", "CPU"],
  "rows": [
    {
      "id": "W01",
      "path": "CPU store to page 0 via a physical bank shared with an allowlisted page (MPR0 == MPR1 == $F8)",
      "category": "MPR",
      "monitor_status": "UNKNOWN",
      "prevents_before_side_effect": "UNKNOWN",
      "detection_point": "BEFORE_RUN",
      "measurement": "REAL_CORE_SYNTHETIC",
      "evidence": ["tests/integration/geargrafx_reference_jsr.cpp", "tests/integration/geargrafx_reference_guard.py"],
      "gate_status": "BLOCKED",
      "notes": "No content-validated run identifier is recorded for this claim, so the prevention claim is withdrawn. Alias configuration is refused with exit 8 before any guest instruction runs. Only the slot-1e configuration is covered; the probe fixes MPR0 to ROM bank 0 by default."
    },
    {
      "id": "W02",
      "path": "CPU store to non-allowlisted CPU addresses $0000, $1FFF and $4000 (measured subset only)",
      "category": "RAM",
      "monitor_status": "UNKNOWN",
      "prevents_before_side_effect": "UNKNOWN",
      "detection_point": "BEFORE_STORE",
      "measurement": "REAL_CORE_SYNTHETIC",
      "evidence": ["tests/integration/geargrafx_reference_jsr.cpp", "tests/integration/geargrafx_reference_guard.py"],
      "gate_status": "BLOCKED",
      "notes": "No content-validated run identifier is recorded for this claim, so the prevention claim is withdrawn. Measured only for CPU addresses $0000, $1FFF and $4000 (neg-write). map_write denies by physical bank; CPU-address write breakpoints cover [0,$2000) and [$4000,$FFFF]. Other addresses, banks and stores that span pages are not measured."
    },
    {
      "id": "W03",
      "path": "Dynamic MPR change during execution (TAM, any MPR write)",
      "category": "MPR",
      "monitor_status": "DETECTED_AT_INSTRUCTION_BOUNDARY",
      "prevents_before_side_effect": "UNKNOWN",
      "detection_point": "INSTRUCTION_BOUNDARY",
      "measurement": "REAL_CORE_SYNTHETIC",
      "evidence": ["tests/integration/geargrafx_reference_jsr.cpp", "tests/integration/geargrafx_reference_guard.py"],
      "gate_status": "BLOCKED",
      "notes": "No content-validated run identifier is recorded for this claim, so the prevention claim is withdrawn. The MPR change itself has no device side effect. All MPRs are compared after every stepped instruction and the next instruction is not run. Measured for TAM only. Assumes one instruction per step, which the instructions_executed=2 measurement supports but does not prove for every opcode."
    },
    {
      "id": "W04",
      "path": "Hardware Page ($1800-$1BFF and other I/O) reached by mapping any MPR to $FF",
      "category": "MMIO",
      "monitor_status": "UNKNOWN",
      "prevents_before_side_effect": "UNKNOWN",
      "detection_point": "INSTRUCTION_BOUNDARY",
      "measurement": "STATIC_SOURCE_REFERENCE",
      "evidence": ["tests/integration/geargrafx_reference_jsr.cpp"],
      "gate_status": "BLOCKED",
      "notes": "No content-validated run identifier is recorded for this claim, so the prevention claim is withdrawn. Reachability is a static check in the probe source (the hardware-page branch was not reached in any measurement). Slot-1e mode rejects any run where an MPR holds $FF. This denies I/O reachability through MPR only. It does not cover the ST path (W05-W07), which ignores MPR."
    },
    {
      "id": "W05",
      "path": "ST0 ($03): VDC address-register write through m_huc6202->WriteFromCPU()",
      "category": "ST",
      "monitor_status": "UNMONITORED",
      "prevents_before_side_effect": "NO",
      "detection_point": "NONE",
      "measurement": "REAL_CORE_SYNTHETIC",
      "evidence": ["tests/integration/geargrafx_st_bypass.py", "docs/cd-reset-contract.md", "docs/173-safety-monitor-limits.md"],
      "gate_status": "BLOCKED",
      "notes": "Bypasses Memory::Write, map_write and CPU-address breakpoints. No CheckMemoryBreakpoints call site exists for the address register, so no detection is possible."
    },
    {
      "id": "W06",
      "path": "ST1 ($13): VDC data-low write through WriteFromCPU()",
      "category": "ST",
      "monitor_status": "DETECTED_AFTER_SIDE_EFFECT",
      "prevents_before_side_effect": "NO",
      "detection_point": "AFTER_SIDE_EFFECT",
      "measurement": "REAL_CORE_SYNTHETIC",
      "evidence": ["tests/integration/geargrafx_st_bypass.py", "tests/integration/geargrafx_reference_jsr.cpp"],
      "gate_status": "BLOCKED",
      "notes": "HUC6270_REGISTER write breakpoint is raised after the VDC write completes. The side effect lands."
    },
    {
      "id": "W07",
      "path": "ST2 ($23): VDC data-high write through WriteFromCPU()",
      "category": "ST",
      "monitor_status": "DETECTED_AFTER_SIDE_EFFECT",
      "prevents_before_side_effect": "NO",
      "detection_point": "AFTER_SIDE_EFFECT",
      "measurement": "REAL_CORE_SYNTHETIC",
      "evidence": ["tests/integration/geargrafx_st_bypass.py", "tests/integration/geargrafx_reference_jsr.cpp"],
      "gate_status": "BLOCKED",
      "notes": "Same as W06 for the high data byte."
    },
    {
      "id": "W08",
      "path": "$1802 IRQ enable write (Hardware Page, reached only when MPR maps $FF)",
      "category": "IRQ",
      "monitor_status": "DETECTED_AFTER_SIDE_EFFECT",
      "prevents_before_side_effect": "NO",
      "detection_point": "AFTER_SIDE_EFFECT",
      "measurement": "REAL_CORE_SYNTHETIC",
      "evidence": ["tests/integration/geargrafx_irq_register.py", "tests/integration/geargrafx_reference_jsr.cpp"],
      "gate_status": "BLOCKED",
      "notes": "Detected through the CPU-address breakpoint. The register write completes. Slot-1e mode does not map $FF, so this path is unreachable there; it is listed because the mmio/irqreg probes reach it."
    },
    {
      "id": "W09",
      "path": "$1402 IRQ mask write",
      "category": "IRQ",
      "monitor_status": "UNKNOWN",
      "prevents_before_side_effect": "NO",
      "detection_point": "UNKNOWN",
      "measurement": "REAL_CORE_SYNTHETIC",
      "evidence": ["tests/integration/geargrafx_irq_register.py", "tests/integration/geargrafx_reference_jsr.cpp"],
      "gate_status": "BLOCKED",
      "notes": "No detection point recorded. The only CPU-address detection in the irqreg probe is the $1802 store (W08). The $1402 write was observed as landed (d1402_after_mask) through Memory::Write, not through a recorded detection."
    },
    {
      "id": "W10",
      "path": "$1403 TIQ acknowledge write",
      "category": "IRQ",
      "monitor_status": "UNKNOWN",
      "prevents_before_side_effect": "NO",
      "detection_point": "UNKNOWN",
      "measurement": "REAL_CORE_SYNTHETIC",
      "evidence": ["tests/integration/geargrafx_irq_register.py", "tests/integration/geargrafx_reference_jsr.cpp"],
      "gate_status": "BLOCKED",
      "notes": "No detection point recorded (same as W09). Landed write observed: bit2 is cleared and bit0 (IRQ2) is unchanged in the measured case."
    },
    {
      "id": "W11",
      "path": "$1400 / $1401 invalid interrupt-register writes",
      "category": "IRQ",
      "monitor_status": "UNKNOWN",
      "prevents_before_side_effect": "UNKNOWN",
      "detection_point": "UNKNOWN",
      "measurement": "REAL_CORE_SYNTHETIC",
      "evidence": ["tests/integration/geargrafx_reference_jsr.cpp"],
      "gate_status": "BLOCKED",
      "notes": "A no-side-effect readback was measured for $1402/$1403 only. Detection for these addresses was not separately recorded."
    },
    {
      "id": "W12",
      "path": "$1804 CD-ROM / SCSI RST store",
      "category": "MMIO",
      "monitor_status": "DETECTED_AFTER_SIDE_EFFECT",
      "prevents_before_side_effect": "NO",
      "detection_point": "AFTER_SIDE_EFFECT",
      "measurement": "REAL_CORE_SYNTHETIC",
      "evidence": ["tests/integration/geargrafx_mmio1804_trap.py", "tests/integration/geargrafx_mmio1804_preblock.py"],
      "gate_status": "BLOCKED",
      "notes": "A CPU-address write breakpoint fires but the store lands. Pre-block works only with an EXECUTE breakpoint on the known PC of the STA opcode (synthetic code only). Not a general MMIO interceptor. Recorded as NO: detection is after the side effect, so the known-PC partial block is not claimed as prevention."
    },
    {
      "id": "W13",
      "path": "Other memory-mapped I/O: VDC/VCE/PSG/timer/joypad and other CD-ROM registers",
      "category": "MMIO",
      "monitor_status": "UNKNOWN",
      "prevents_before_side_effect": "UNKNOWN",
      "detection_point": "INSTRUCTION_BOUNDARY",
      "measurement": "STATIC_SOURCE_REFERENCE",
      "evidence": ["tests/integration/geargrafx_reference_jsr.cpp"],
      "gate_status": "BLOCKED",
      "notes": "No content-validated run identifier is recorded for this claim, so the prevention claim is withdrawn. Unreachable through MPR in slot-1e mode while W03/W04 hold (reachability check in the probe source, not measured per register). Each register is not separately measured. VDC is also reachable through ST (W05-W07), which this row does not cover."
    },
    {
      "id": "W14",
      "path": "IRQ/TIQ/timer entry while the callee runs (callee executes CLI, vector fetched from ROM bank 0)",
      "category": "IRQ",
      "monitor_status": "UNMONITORED",
      "prevents_before_side_effect": "NO",
      "detection_point": "NONE",
      "measurement": "NOT_MEASURED",
      "evidence": ["tests/integration/geargrafx_reference_jsr.cpp"],
      "gate_status": "BLOCKED",
      "notes": "The probe sets P=$04 (I=1) and stop_on_irq=false. Nothing stops or observes an interrupt entry, and the handler code is not checked. The observation schema records IRQ state as UNKNOWN."
    },
    {
      "id": "W15",
      "path": "Block-move instructions (TII/TIN/TDD/TIA/TAI): many writes inside one instruction",
      "category": "CPU",
      "monitor_status": "UNKNOWN",
      "prevents_before_side_effect": "UNKNOWN",
      "detection_point": "UNKNOWN",
      "measurement": "NOT_MEASURED",
      "evidence": ["tests/integration/geargrafx_reference_jsr.cpp"],
      "gate_status": "BLOCKED",
      "notes": "Per-write stop is not measured: map_write denies each write, but the MPR and hardware-page checks run only at instruction boundaries, and whether the core stops mid-instruction after a breakpoint hit is unknown. Writes to the Hardware Page within one block move are unverified."
    },
    {
      "id": "W16",
      "path": "Writes inside the allowlist [$2000,$4000): zero page, stack, guest stub, callee data",
      "category": "RAM",
      "monitor_status": "PERMITTED_UNISOLATED",
      "prevents_before_side_effect": "NO",
      "detection_point": "NONE",
      "measurement": "REAL_CORE_SYNTHETIC",
      "evidence": ["tests/integration/geargrafx_reference_jsr.cpp"],
      "gate_status": "BLOCKED",
      "notes": "Permitted by design because the stack and zero page live there. Only the guest stub is post-checked (stub_ok) and changes are reported by ram_diff after the run. The callee can change any byte in this window."
    },
    {
      "id": "W17",
      "path": "Device-initiated RAM writes: CD/ADPCM transfer (unaudited)",
      "category": "DEVICE",
      "monitor_status": "UNKNOWN",
      "prevents_before_side_effect": "UNKNOWN",
      "detection_point": "UNKNOWN",
      "measurement": "NOT_MEASURED",
      "evidence": ["docs/cd-reset-contract.md"],
      "gate_status": "BLOCKED",
      "notes": "No source audit of device-to-RAM transfer paths was done for this inventory. Not measured. Treat as unmonitored until audited."
    },
    {
      "id": "W18",
      "path": "CPU store to non-allowlisted CPU addresses other than $0000, $1FFF and $4000 (pages 3-7 and the rest of page 2)",
      "category": "RAM",
      "monitor_status": "UNKNOWN",
      "prevents_before_side_effect": "UNKNOWN",
      "detection_point": "UNKNOWN",
      "measurement": "NOT_MEASURED",
      "evidence": ["tests/integration/geargrafx_reference_jsr.cpp"],
      "gate_status": "BLOCKED",
      "notes": "Split from W02. The probe sets CPU-address breakpoints over these ranges, but no store there was measured, so the stop before the side effect is not established."
    }
  ]
}
