Heuristic:AI4Finance Foundation FinRobot IRR Hurdle Gate Override
| Knowledge Sources | |
|---|---|
| Domains | Private_Equity, Decision_Gate, Debugging |
| Last Updated | 2026-10-19 00:00 GMT |
Overview
Override the LLM's qualitative IC recommendation to PASS when the deterministic LBO IRR falls below the 15% sponsor hurdle (or is undefined), so the code gate — not the narrative — is the final authority on deal feasibility.
Description
In an AI-assisted investment memo, the LLM writes the recommendation narrative, but the code enforces a non-negotiable gate: if `lbo_result.irr < SPONSOR_IRR_HURDLE` (15%), the recommendation is overridden to PASS regardless of what the LLM wrote. The gate prepends a mandatory `[CODE GATE: LBO IRR X% is below the 15% minimum hurdle. Recommendation overridden to: PASS]` prefix to the LLM's output.
An undefined IRR (`None` — impossible capital structure, entry equity ≤ 0) cannot clear the hurdle, so it falls through the same PASS gate. The hurdle is a shared leaf constant (`SPONSOR_IRR_HURDLE = 0.15`) consumed by two LBO consumers that must speak the same bar: the IC-memo recommendation gate and the valuation aggregator's LBO ability-to-pay band (which discounts exit equity back to today at this rate).
Usage
Use this heuristic whenever you produce an IC recommendation from an LLM on top of a deterministic LBO result. Apply it when:
- The LLM might recommend a deal (BUY/PASS) based on qualitative reasoning.
- The LBO IRR is below 15% (or undefined due to an impossible capital structure).
- You need the final recommendation to reflect the sponsor's non-negotiable return bar.
The Insight (Rule of Thumb)
- Action: In `_execute_recommendation`, after the LLM produces its recommendation, check `ic_financials.lbo_result.irr`:
- `irr is None` → override to PASS (undefined IRR = impossible structure)
- `irr < _IRR_HURDLE` (0.15) → override to PASS
- `irr >= _IRR_HURDLE` → let the LLM's recommendation stand
- Value: `SPONSOR_IRR_HURDLE = 0.15` (15%). The project's long-standing IC bar. Textbook sponsor hurdles run 20–25% (Rosenbaum & Pearl Ch.8); 15% is calibrated to the project's bar and shared by the ability-to-pay band.
- Trade-off: A borderline deal at 15.1% passes the gate even though the LLM might have flagged qualitative risks. The gate is a floor, not a ceiling — it only forces PASS down, never forces BUY up.
- Shared constant: Lives in `valuation_thresholds.py` (a leaf) so the IC gate and the football-field ability-to-pay band speak the same hurdle. Raising it tightens both consumers together.
Reasoning
In private equity, the IRR hurdle is non-negotiable — a sponsor will not pursue a deal returning 8% when their hurdle is 15%, regardless of how compelling the narrative is. An LLM reasoning qualitatively may miss or under-weight the quantitative bar; the code gate ensures the deterministic IRR is the final authority. An undefined IRR (entry equity ≤ 0 — impossible capital structure) is treated as a fail because returns are undefined there, not a total loss: forcing `moic=0/irr=-1` would read as "total wipeout" when exit equity may even be positive — the opposite signal. The gate treats `None` the same as `< hurdle`: the deal does not clear.
The 15% bar is shared with the valuation aggregator's LBO ability-to-pay band, which discounts the t+N exit equity back to today at this rate (`PV = exit_equity/(1+r)^N`). Undiscounted exit equity is a future value — plotting it next to PV methods (DCF) overstates the LBO row ~2× over a 5y hold.
Code Evidence
Shared hurdle constant from `valuation_thresholds.py:129`:
SPONSOR_IRR_HURDLE = 0.15
Gate wiring from `ic_memo.py:61-62`:
# IC gate and the football field speak the same hurdle.
_IRR_HURDLE = SPONSOR_IRR_HURDLE
Code-level override from `ic_memo.py:178-190`:
if isinstance(ic_financials, ICFinancials):
irr = ic_financials.lbo_result.irr
# An undefined IRR (None — impossible capital structure, entry equity ≤ 0)
# cannot clear the hurdle, so it falls through the same PASS gate.
if irr is None or irr < _IRR_HURDLE:
irr_label = f"{irr:.1%}" if irr is not None else "undefined (entry equity ≤ 0)"
gate_text = (
f"[CODE GATE: LBO IRR {irr_label} is below the {_IRR_HURDLE:.0%} minimum hurdle. "
f"Recommendation overridden to: PASS]\n\n"
)
return StepOutput(text=gate_text + step_result.output, structured=None)