Skip to content

feat: integrate FOF fees, interest and high-water-mark accounting - #16

Merged
PureSaber merged 1 commit into
mainfrom
codex/fof-economics
Oct 11, 2026
Merged

PureSaber merged 1 commit into
mainfrom
codex/fof-economics

Conversation

@PureSaber

Copy link
Copy Markdown
Owner

Scope

Integrate optional outer-FOF management/custody expenses, available-cash interest and reversible high-water-mark performance reserves directly into the existing account. Fixed investor capital only; no tax or external investor flows.

  • Explicit ACT/365F, previous close net-asset/cash bases, policy availability, crystallization dates and daily/explicit payment dates.
  • Unpaid fees remain liabilities and cannot be reused for subscriptions. Crystallization/payment never double-count expenses; failures roll back account and fee state together.
  • Existing run/HTML/platform snapshot/CSV and verify-run replay consume the economics; old zero-policy NAV semantics remain identical.
  • Add documented synthetic configuration and CI CLI/report verification.

Verification

  • Full existing plus first six economics tests: 153 passed.
  • Final economics suite: 8 passed, including unpaid crystallized fees and asset-exhaustion rollback.
  • Ruff check and format checks passed. Isolated locked Python 3.12 environment; pip check passed.
  • Actual demo → run → verify-run: 109 account days, 15 instructions; max asset/liability reconciliation error 2.33e-10 CNY.
  • Independent ACT/365F cash-only calculation, 100→110→95→120 HWM example (reserve 0,2,0,4; fee-paid HWM 116), insufficient cash/payables, explicit payment timing, and recomputed-hash tampering rejection.

Limits

Research-only fixed-capital CNY account. Rates are declared policy assumptions, not certified product contracts. Existing float ledger precision retained. No investor equalization, series shares, taxes, policy amendments or live trading. No private data or generated runs committed.

@PureSaber
PureSaber merged commit 31b032b into main Oct 11, 2026
2 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