MlosMarginSchedule + MarginScheduleResolver (Phase-2 Slice 5)

Featurekamo-shared-library
Shipped
June 26, 2026 at 6:54 PM UTC
Author
Kamo
Commit
2cda79c

The investor margin layer — the "+ margin_schedule" term of §8.1 step-4 price assembly. - MlosMarginSchedule (mlos_margin_schedule): rateSheetVersionId FK, productId (null=all), marginType, loanAmountLow/High band, value (raw BigDecimal), compBasis (BORROWER_PAID|LENDER_PAID). - CompBasis enum — the comp BASIS convention (how margin is paid), NOT an LO comp-plan amount; LO comp is never a scoring input (doc 13 §8.5). - MarginScheduleResolver (ungated @Component): applicable(schedules, loanAmount, compBasis) = band contains amount (inclusive, null=open) AND comp matches; totalMargin = Σ values (ZERO if none). 5 MarginScheduleResolverTest green. Pricing numbers raw BigDecimal (Slice-3 correction). NO KamoInitializer code change (catalog repo pkg registered Slice 1; indexes entity-declared) — re-run only.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing