Skip to content

refactor(budget): isolate deterministic planner from audio core - #261

Merged
Ivan-VHS merged 13 commits into
mainfrom
refactor/budget-planner-module-isolation-v2
Dec 2, 2026
Merged

Ivan-VHS merged 13 commits into
mainfrom
refactor/budget-planner-module-isolation-v2

Conversation

@Ivan-VHS

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

Copy link
Copy Markdown
Owner

What changed

  • Move the deterministic UAH budget planner implementation and API into modules/budget-planner/.
  • Add the independent C++20 static target ventusample_budget_planner.
  • Remove the planner implementation from ventusample_core; the aggregate publicly links the leaf for compatibility.
  • Link the budget regression test directly to the planner, independent of the audio core.
  • Update the Qt budget dialog and test to use <ventusample/budget_planner.hpp>.
  • Preserve src/budget_planner.hpp as a compatibility include.
  • Include the planner in the sanitizer target set.
  • Update the machine-readable module-boundaries and backend-engineering profiles plus the architecture guide.

Dependency evidence

The module implementation uses only its own public header and the C++ standard library. Its CMake target has no dependency on generator internals, DSP, plugin hosting, Reaper integration or Qt. The desktop consumes it through the aggregate public link, while its focused test links to the leaf directly.

Compatibility and scope

The allocation formulas, UAH limits, scenarios, validation rules and public C++ types/signatures are unchanged. This is a source/build ownership extraction, not a change to budget semantics or the audio-rendering path. Existing consumers linking ventusample_core retain the planner API, and the old source-tree header remains as a shim.

Verification

Static branch checks confirm the planner source is no longer part of ventusample_core, the leaf target is C++20, the core compatibility link and sanitizer list include the target, the focused test links directly, and the architecture manifest matches the source tree.

The full C++20 build, Qt-enabled/disabled build and native regression suite must complete on this exact PR head before merge. Local compilation was not available through the connected GitHub interface, so no local test pass is claimed.

@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-02T08:56:28.597819Z
We couldn’t complete this review. Comment @codex review to try again.
4911440 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.

@Ivan-VHS
Ivan-VHS merged commit bb22dd1 into main Dec 2, 2026
@Ivan-VHS
Ivan-VHS deleted the refactor/budget-planner-module-isolation-v2 branch December 2, 2026 13:06
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