Skip to content

feat(backend): integrate VOLT//15 as native Reaper runtime - #575

Open
Ivan-VHS wants to merge 30 commits into
mainfrom
backend/volt15-native-engine-v1
Open

Ivan-VHS wants to merge 30 commits into
mainfrom
backend/volt15-native-engine-v1

Conversation

@Ivan-VHS

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

Copy link
Copy Markdown
Owner

Summary

Reworks VOLT//15 at the native backend/runtime layer. This is not another .rpr standard-library implementation or CLI wrapper.

  • Adds the versioned, bounded C17 backend ABI in include/reaper/volt15.h.
  • Implements all fifteen handler functions and an immutable function-pointer registry in src/volt15.c.
  • Adds the intrinsic-gated runtime bridge in src/volt15_intrinsic.c: volt15.execute resolves target, effects and capability before dispatch.
  • Extends the intrinsic catalogue from 50 to 51 entries without changing existing IDs.
  • Adds caller-buffer JSON/HTML serialization, strict decimal parsing, version/size validation, atomic batch output and explicit error statuses.
  • Adds native tests for all handlers, determinism, IDs/slugs, filtering, malformed parameters, output bounds, escaping and intrinsic authorization.
  • Wires native CMake targets, install headers/libraries and documentation.
  • Removes the earlier high-level .rpr duplicate/CLI and its Python-only tests so the repository has one VOLT//15 execution owner.

Backend contract

The native API performs no CLI parsing, filesystem I/O, process access, hidden heap allocation or mutable global state. Contexts, results and output buffers are caller-owned. Direct C entry points are trusted-host APIs; the Reaper source/runtime boundary must use reaper_volt15_execute_authorized. FNV-1a and sine-out behavior from the supplied C11 source are preserved; FNV-1a is documented as non-cryptographic, and scores remain illustrative indices.

The new intrinsic requires a hosted target, memory.read + memory.write, and the memory.access capability. The runtime bridge calls the canonical intrinsic resolver before executing a module.

Compiler boundary

This PR does not claim that the current scalar native source compiler can compile all VOLT//15 logic from .rpr. The current native frontend lacks the general collection/string/function/control-flow lowering required for that claim. This PR ships the native backend service and the executable intrinsic/runtime boundary; a future typed-source lowering slice must bind source operands to this ABI without bypassing the same authority gate.

Build and verification

Focused CTest targets:

cmake -S . -B build -DREAPER_BUILD_TESTS=ON
cmake --build build --target reaper_volt15 reaper_intrinsics reaper-volt15-backend-tests reaper-intrinsic-tests --parallel
ctest --test-dir build --output-on-failure -R 'native-volt15-backend|native-intrinsic-backend'

The root build file also referenced reaper_ir_objects and reaper_division without defining/adding them; the PR restores those existing source owners. It also removes five duplicate native static-library declarations that had stopped CMake configuration before compilation.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-03T01:15:04.035636Z
We couldn’t complete this review. Comment @codex review to try again.
016f14f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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