Docs · Model reference
salary-jump
Verified · spec v1.0.1Inputs
| Field | Type | Valid domain |
|---|---|---|
| currentSalary | float | 30,000 – 500,000 |
| newSalary | float | 30,000 – 500,000 |
| currentAge | int | 22 – 60 |
| retirementAge | int | 45 – 75 |
| currentSavings | float | 0 – 1,000,000 |
| currentSavingsRate | float | 0.01 – 0.5 |
| newSavingsRate | float | 0.01 – 0.5 |
| annualReturn | float | 0.02 – 0.15 |
| marginalTaxRate | float | 0.1 – 0.5 |
- retirementAge must exceed currentAge
All fields required. Out-of-domain values are rejected with per-field errors — never clamped. Unknown fields are rejected.
Sentinel values
currentFireYears=50→ FIRE not reached within the 600-month loop (intermediate; clamps fireYearsGained)newFireYears=50→ FIRE not reached within the 600-month loop (intermediate; clamps fireYearsGained)
Responses annotate these in a sentinels array with a triggered flag per run.
Live example — generated from the real engine
Request
POST /api/v1/models/salary-jump
{
"currentSalary": 265000,
"newSalary": 265000,
"currentAge": 41,
"retirementAge": 60,
"currentSavings": 500000,
"currentSavingsRate": 0.26,
"newSavingsRate": 0.26,
"annualReturn": 0.09,
"marginalTaxRate": 0.3
}Response (chart arrays compacted)
{
"ok": true,
"model": "salary-jump",
"specVersion": "1.0.1",
"contractUrl": "/api/v1/models/salary-jump",
"specUrl": "/api/v1/models/salary-jump/spec",
"inputs": {
"currentSalary": 265000,
"newSalary": 265000,
"currentAge": 41,
"retirementAge": 60,
"currentSavings": 500000,
"currentSavingsRate": 0.26,
"newSavingsRate": 0.26,
"annualReturn": 0.09,
"marginalTaxRate": 0.3
},
"outputs": {
"currentFIRENumber": 3431750,
"newFIRENumber": 3431750,
"currentRetirementBalance": 4979005.759769895,
"newRetirementBalance": 4979005.759769895,
"additionalWealth": 0,
"fireYearsGained": 0,
"yearlyData": [
{
"year": 41,
"currentPath": 500000,
"newPath": 500000
},
{
"year": 42,
"currentPath": 595270.0741630172,
"newPath": 595270.0741630172
},
"… 18 more"
]
},
"sentinels": [
{
"field": "currentFireYears",
"value": 50,
"meaning": "FIRE not reached within the 600-month loop (intermediate; clamps fireYearsGained)",
"triggered": false
},
{
"field": "newFireYears",
"value": 50,
"meaning": "FIRE not reached within the 600-month loop (intermediate; clamps fireYearsGained)",
"triggered": false
}
],
"assumptions": [
"Implements model spec salary-jump v1.0.1 (dual-implementation verified).",
"retirementAge must exceed currentAge"
],
"facts": [],
"record": {
"sha256": "fbaa90f3538bfedf0560883ce59c58a34ae31cdd176ad6b57e135e0208d122d1",
"fields": [
"model",
"specVersion",
"inputs",
"outputs"
],
"howToVerify": "Store this record with any advice or agent output built on these numbers. To verify later: build {model, specVersion, inputs, outputs} from the stored response, serialize as JSON with object keys sorted recursively (no whitespace), and SHA-256 it — a match proves the numbers came from this spec version with these inputs, unaltered."
},
"disclaimer": "Illustrative planning model, not financial advice. Outputs follow the published model spec exactly; read the spec for assumptions and exclusions before relying on any number."
}This example is executed against the production engine when the page builds — it cannot drift from the API's real behavior.