Gated §21.4 chain for ASC 815 hedge accounting designation. Step 1 computes both the retrospective dollar-offset ratio test (must be 80–125%) and the OLS R² regression test (must be ≥0.8) using pure deterministic arithmetic. A §21.4 compliance gate on /is_effective fires when the hedge fails either test: the chain exits immediately with an INEFFECTIVE designation, preventing unqualified hedge accounting. If the hedge passes both tests, Step 2 scores AFP 2024 cash-flow forecast accuracy for prospective effectiveness documentation required by ASC 815-20-35. No personal data is processed.
/is_effectivetest_hedge_effectiveness{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "test_hedge_effectiveness",
"arguments": {
"hedge_type": "fair_value",
"hedging_instrument_changes": [
105, 98, 112, 95, 108, 102, 97, 115, 99, 103
],
"hedged_item_changes": [
-103, -96, -110, -93, -106, -100, -95, -113, -97, -101
],
"effectiveness_threshold_pct": 80,
"r_squared_threshold": 0.8,
"anchor_surface": {
"hedge_id": "HEDGE-2024-001",
"designation_date": "2024-01-15",
"hedged_item_description": "Fixed-rate note receivable 5.5% 2027"
}
}
},
"id": 1
}
score_cash_forecast_accuracy{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "score_cash_forecast_accuracy",
"arguments": {
"forecasts": [
{"actual_amount": 10300, "forecast_amount": 10290, "horizon_days": 30, "label": "Q1 coupon receipt"},
{"actual_amount": 10300, "forecast_amount": 10315, "horizon_days": 90, "label": "Q2 coupon receipt"},
{"actual_amount": 10300, "forecast_amount": 10280, "horizon_days": 180, "label": "Q3 coupon receipt"},
{"actual_amount": 10300, "forecast_amount": 10310, "horizon_days": 270, "label": "Q4 coupon receipt"}
]
}
},
"id": 2
}