CHALLENGE 5: Borrower covenant monitoring. Check borrower reports against loan requirements and flag exceptions.
Track: Investment Banking and Commercial Banking

THREE POSSIBLE MVPS — choose one first
1. Check leverage and debt-service covenants.
2. Track quarterly covenant headroom.
3. Link a breached calculation to the agreement definition.

STARTING DATA
loan_covenants.csv and documents/loan-policy.txt
Six dataset cases are supplied. Where fields are missing, create a small explicitly synthetic fixture; do not pretend that a source contains it.

BUILD PROMPT
Help our team build Challenge 5. First ask which of the three MVPs fits our intended user. Use the existing backend, CSV parser, exact-money utilities and Supabase team model. Work from the indicated data and identify any missing inputs. Create deterministic calculations and source-linked evidence before explanatory prose. Do not implement UI, an LLM provider or a reference app unless we explicitly request that extension. No app LLM service is included. Our coding assistant can still write and explain code.
Define three acceptance checks: one valid input, one missing/invalid input and one financial/source reconciliation. Preserve source rows, reporting periods, USD units and stated assumptions. Produce runnable changes, tests and a brief demo procedure. Use local data first; set up live APIs only when needed.
