harbor run -t openthoughts/tasktrove-exp-rpt-scaffold-v2-scaffold-2018harbor download openthoughts/tasktrove-exp-rpt-scaffold-v2-scaffold-2018You need to implement the missing functionality in the scaffolded module to manage a bucket of collateral allocations. The tests (run via pytest) will exercise these behaviors and invariants. Do not reveal or rely on any specific implementation details beyond what is described here.
What you will implement
Collateral class
Bucket class
sum_allocations(bucket)
bench_runner()
Behavioral and design notes
Files to modify
Testing
This task emphasizes correct behavior and invariants over micro-optimizations. Focus on correctness, clear validation, and deterministic rounding/resolution to ensure the final allocations always sum to MAX_BASIS_POINTS where applicable.