Implement fill order based on bucket types and buffer #7

Open
opened 2026-03-19 20:09:41 +01:00 by myrmidex · 0 comments
Owner

Implement the allocation fill order logic that respects bucket types and buffer levels.

Default fill order:

  1. Fill all need buckets to their base amount (by priority)
  2. Fill all want buckets to their base amount (by priority)
  3. Fill all need buckets to their buffer amount (by priority)
  4. Fill all want buckets to their buffer amount (by priority)
  5. Remaining money goes to the overflow bucket

This is the core allocation engine that determines how income is distributed across buckets. Depends on bucket types (#4) and buffer (#5).

Implement the allocation fill order logic that respects bucket types and buffer levels. Default fill order: 1. Fill all `need` buckets to their base amount (by priority) 2. Fill all `want` buckets to their base amount (by priority) 3. Fill all `need` buckets to their buffer amount (by priority) 4. Fill all `want` buckets to their buffer amount (by priority) 5. Remaining money goes to the `overflow` bucket This is the core allocation engine that determines how income is distributed across buckets. Depends on bucket types (#4) and buffer (#5).
myrmidex added this to the v0.3.0 milestone 2026-03-19 20:09:41 +01:00
myrmidex added the
enhancement
label 2026-03-20 13:11:34 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lvl0/buckets#7
No description provided.