fix: address vecdb compatibility and add unit tests

- Switch to vecdb 0.6.0 for compatibility with brk_types u8/i8
- Add proper trait imports (VecIndex, AnyVec, IterableVec, etc.)
- Add unit tests for Reserve Risk formula validation:
  - test_hodl_bank_formula: Verifies cumulative calculation
  - test_reserve_risk_formula: Verifies division formula
  - test_reserve_risk_interpretation: Documents metric semantics
  - test_hodl_bank_negative_contribution: Tests edge case

All 16 tests pass (12 existing + 4 new).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Collins
2026-01-20 11:15:30 -05:00
parent f494486e12
commit 5ecfd6cd42
3 changed files with 104 additions and 13 deletions
Generated
+9 -3
View File
@@ -2482,7 +2482,9 @@ dependencies = [
[[package]]
name = "rawdb"
version = "0.5.11"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fdd8290a282cf2ea860ee2e787b3229731db7dac73a16c9240c545e20e91b302"
dependencies = [
"libc",
"log",
@@ -3363,7 +3365,9 @@ checksum = "8f54a172d0620933a27a4360d3db3e2ae0dd6cceae9730751a036bbf182c4b23"
[[package]]
name = "vecdb"
version = "0.5.11"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81910b96a48ea197d1871259164b957c05f3e94d94cd107c4b87cf24e7f2968f"
dependencies = [
"ctrlc",
"log",
@@ -3382,7 +3386,9 @@ dependencies = [
[[package]]
name = "vecdb_derive"
version = "0.5.11"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3ab7250822f3caf8795728690804d39ab5c72c51f5558b90788a79bc99776d55"
dependencies = [
"quote",
"syn",