Skip to content

feat(hardware): add Reaper-native Hardware Workspace contracts v1 - #574

Merged
Ivan-VHS merged 7 commits into
mainfrom
feat/hardware-workspace-contracts
Dec 3, 2026
Merged

Ivan-VHS merged 7 commits into
mainfrom
feat/hardware-workspace-contracts

Conversation

@Ivan-VHS

@Ivan-VHS Ivan-VHS commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Summary

Implements the planned Hardware Workspace contract layer directly in Reaper source.

  • Adds versioned target profiles with architecture/triple/ABI/pointer-width checks, CPU features, toolchain fingerprint, linker-script identity and memory regions.
  • Adds typed peripheral/register manifest validation, including MMIO bounds, width, endian, reset value, alignment, access policy and capability requirements.
  • Adds non-overlapping Flash/SRAM/ROM/MMIO/reserved/DMA maps and checked section placement.
  • Adds stack/heap/static/interrupt-stack/DMA budget validation.
  • Adds typed inspection-IR interchange with effects, ownership, source spans, opcode validation and CFG block leaders; validates assembly/object artifact metadata.
  • Adds shell-free fake-bus/QEMU launch plans, captured register/memory debugger snapshots and per-project hardware authorization preflight/audit records.
  • Adds Reaper-language positive/negative conformance fixtures, a Python test harness, and updates hardware/IDE documentation.

Trust and capability boundary

This is a Reaper-native contract and validation milestone, not a privileged device adapter. It does not map physical MMIO, run a simulator, connect a vendor probe, flash firmware, register interrupts, transfer DMA, or enforce host OS/driver authorization. Existing native C MMIO adapter API and informational Studio hardware overview remain distinct and unchanged.

Verification

Adds tests.test_hardware_workspace, which executes both new .rpr files through the existing reference runtime. Full CI should verify Python and native C suites.

@Ivan-VHS
Ivan-VHS marked this pull request as ready for review December 3, 2026 01:21
@Ivan-VHS
Ivan-VHS merged commit 425c79b into main Dec 3, 2026
37 of 70 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant