Skip to content

Forward-port the donation planner (#3696) and fake endpoint (#3700) to develop #4310

Done

Description

@pithead-architect

What's the problem

Part of #2476. Owner ruling, 2026-11-20: "we can dark release it ahead so we can spot issues in logs before making a proper ui for it". The donation planner (#3696) and the fake donation endpoint for tests (#3700) were closed on develop-v2.1.0 and never landed on develop. #3701 (route the project slice through the switching controller) and #3706 (the routing smoke phase) need them, and both are planned for v2.0.8 on develop.

Port to develop the code, tests and docs that closed #3696 and #3700 on develop-v2.1.0: the planner that turns the opted-in percent into segments (XvB slice, P2Pool remainder, project slice) with its debt and trim rules, and the fake endpoint used by tests and the smoke phase. Find the merged PRs from those two issues first and port exactly their diffs.

What it impacts

#3701 and #3706 are blocked by this issue. No behavior change by itself: the planner and the fake endpoint have no caller until #3701.

How I found it

Grooming on 2026-11-20 after the owner ruling above. #3696 and #3700 are closed with milestone v2.1.0 and their work is only on develop-v2.1.0. Unknown: the exact PR numbers and whether they depend on files that exist only on develop-v2.1.0; the first step of this issue is to list them.

How important is it

High for the donation lane: #3701 cannot start without the planner. Low risk: additive and unused until #3701.

Acceptance criteria

  • The planner and fake endpoint exist on develop with the tests that came with them, passing unchanged in substance.
  • The planner has no caller outside tests, so /api/state and the proxy payloads are unchanged.
  • This issue is blocked by the config-keys forward-port issue and the code uses only config names that exist on develop.
  • make test, make test-patch-coverage and make lint-file-budget pass with no ceiling raised. No new explanatory code comments.

Possible solutions

Metadata

Metadata

Assignees

No one assigned

    Labels

    dashboardenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions