Skip to content

Remove cash events logic from fund observability#12

Merged
brycedbjork merged 1 commit into
mainfrom
bryce/fix-fund-observability
Feb 23, 2026
Merged

Remove cash events logic from fund observability#12
brycedbjork merged 1 commit into
mainfrom
bryce/fix-fund-observability

Conversation

@brycedbjork
Copy link
Copy Markdown
Collaborator

Summary

Removed the flawed cash events inference system that was generating phantom interest entries. The _sync_interest_from_balance_locked() method was fundamentally broken—it ran after each fill sync, comparing a stale broker cash balance against incrementally-synced fill data, causing each fill's notional value to be misattributed as interest. This produced bogus entries like $1,033,369 on a $1M fund.

Changes

  • Removed _sync_interest_from_balance_locked() method and related helpers
  • Removed provider parameter from FundSyncService.__init__()
  • Removed cash_events.json file handling throughout
  • Updated tests to match
  • Cleaned up fund-zero data repo (deleted cash_events.json, removed cashInterestPolicy from config)

Testing

All 94 daemon tests pass. The service now only syncs decisions and fills.

🤖 Generated with Claude Code

The interest inference in _sync_interest_from_balance_locked() was fundamentally
flawed. It ran after each fill sync, comparing a stale broker cash balance
against incrementally-synced fill data. This caused each fill's notional value
to be misattributed as "interest", producing phantom entries like $1,033,369
on a $1M fund. There is no reliable way to infer interest from a point-in-time
balance snapshot against incrementally-synced data, so removing this entirely
is the correct fix.

- Remove _sync_interest_from_balance_locked() and related methods
- Remove provider parameter from FundSyncService
- Remove cash_events.json file handling
- Update tests to match

Co-authored-by: Bryce Bjork <brycedbjork@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
broker-cli Ready Ready Preview Feb 23, 2026 5:33pm

Request Review

@brycedbjork brycedbjork merged commit 91662e8 into main Feb 23, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant