Calculation catalog

Every number the planner shows is an output family in a public census. This page counts how many of them are backed by a complete evidence chain, and links every link in each chain.

249 of 249 output families have a complete chain. Counted from the engine's calculation index at engine commit 2624dbdba9fd, committed 2026-10-11.

A family's chain is complete when two things hold for every calculation record whose number it is: the record passes all six of the engine's gates (its fixture registers an evidence test, its pins resolve, the families it names exist, its worksheet derived without running the engine exists, its executed mutation receipt exists, and its provenance is independent, with a reviewer of a different agent family than the deriver), and the record has been independently reviewed rather than left unreviewed. A record can pass all six gates and still await its review, and the family stays partial until it has one. The worksheets and receipts live in the engine repository's calculations directory at that commit.

This page renders a committed snapshot: 285 calculation records across 13 record files, and 249 families from the census. Copies drift, so the live index, record files and census in the public repository are linked for you to check against. Every worksheet, receipt, test and code link below is pinned to the snapshot's engine commit, so the links stay accurate after the code moves on.

Families, by group

Spending and withdrawals

  • Display guardrail balance thresholds

    The cut and raise balance thresholds of a risk-based guardrail policy in today's dollars, on the base the ledger acts on (today's investable balances, the ledger's first-year real portfolio).

    Field: Risk-based guardrail dollar thresholds Unit: US dollars Basis: today's dollars (real) Computed by: UI transformation Status: Complete chain

    Appears in: results-table (Risk-based guardrails callout "cut below $X / raise above $Y"); monte-carlo-page (Risk-based dollar guardrails note "cut below $X · raise above $Y"); assumptions-card (Spending card, risk-based guardrails callout "cut spending if the portfolio falls below $X; raise if it rises above $Y")

    • Risk-based guardrail thresholds in dollars Composition record, justified by derivation

      Purpose: The portfolio levels at which a risk-based guardrail policy cuts or raises spending, in today's dollars on the base the ledger acts on.

      Statement: montecarlo/riskBasedGuardrails.ts#guardrailThresholdDollars publishes, for a risk-based guardrail policy with persisted percents p_L and p_U, (p_L / 100) × B and (p_U / 100) × B in that association, with B = startingInvestableOf(plan), the ledger's first-year real portfolio (the same rows added in the same order, at an inflation factor of exactly 1). With no persisted percent the status is unsolved; with B = 0 the status is no-starting-portfolio and only the percents are published, because the ledger then anchors on the first year the portfolio has a balance; acts is false when both thresholds exist and the cut threshold is not below the raise threshold, where the ledger holds spending every year. The solver persists its fraction as balancePct = balanceThresholdPct(fraction) = round(fraction × 10,000) / 100 (BALANCE_THRESHOLD_PCT_DECIMALS is 2). For the solver's worked edges 1.403671875 and 1.901171875 on a $500,000 portfolio the percents are 140.37 and 190.12 and the thresholds $701,850 and $950,600. Units: today's dollars; percent. Rounding: the percents carry two decimals; the dollars none.

      Formula: lower = (p_L / 100) · B; upper = (p_U / 100) · B; p = round(f · 10000) / 100

      • p_L, p_U: Persisted cut and raise thresholds (unit: percent of the starting portfolio) (domain: > 0, two decimals)
      • B: Today's investable balances (startingInvestableOf), the ledger's first-year real portfolio (unit: today USD) (domain: >= 0)
      • f: The solver's balance fraction at a band edge (unit: 1) (domain: 0.02 to 4)

      Timing: from the plan; the same in every year of every path, because the anchor is fixed in the first year

      Rounding: the percents to 0.01 by balanceThresholdPct; the dollars none

      Limits:

      • The published base equals the ledger's anchor only because the ledger's first year has an inflation factor of exactly 1 and adds the same rows in the same order; an evidence case pins the ledger's first-year action on either side of B (a cut at 100.01 percent, a hold at 99.99).
      • At a zero starting balance the anchor is known only by simulating (and varies by path in Monte Carlo), so no dollars are published.
      • The percents were solved for the balances at the time of the solve; after a balance edit they still act, as percents of the new balance, until the thresholds are solved again.
      • The rounding is floating point: at three of the solver's 1,024 lattice points the product lands just below a half and rounds down (76.62 where the exact 76.625 rounds half up to 76.63), at most 0.01 percent of the balance, about a fortieth of the solver's own step.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-guardrail-balance-thresholds.md Mutation receipt: display-guardrail-balance-thresholds.mutation.md

      Evidence tests: riskBasedGuardrails.thresholdDollars.evidence.test.ts

      Implemented in: riskBasedGuardrails.ts

      Is the number of: display-guardrail-balance-thresholds

    Fed by: Risk-based guardrail: one year's cut, raise or hold against real-balance thresholds (model record, 6 of 6 gates pass); Risk-based guardrail thresholds and suggested adjustments by bisection (model record, 6 of 6 gates pass); Starting investable: sum of listed account balances (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Display total spending annual

    Expenses, taxes, and penalties plotted together as total spending for a projection year.

    Field: Displayed total spending Unit: US dollars Basis: as displayed Computed by: UI transformation Status: Complete chain

    Appears in: chart (spending); report (chart-data block spendingPlusTax (expenses.total + tax + penalties), and the printed report chart's spending series)

    • Total spending with tax and penalties Composition record, justified by derivation

      Purpose: Everything the year paid out, as the spending line of the balance chart and the report chart show it.

      Statement: projection/yearFigures.ts#spendingWithTaxAndPenalties publishes expenses.total + tax + penalties for the year, summed left to right: (expenses.total + tax) + penalties, the same composite the FI number's spending base uses. Units: nominal USD of the year. Rounding: none.

      Formula: spending = (expenses.total + tax) + penalties

      • expenses.total: Funded spending after guardrail cuts, net of the LTC benefit (unit: usd per year) (domain: nonnegative)
      • tax: Settled tax of the year (unit: usd per year) (domain: finite)
      • penalties: Early-withdrawal penalty plus IRC 4974 excise (unit: usd per year) (domain: nonnegative)

      Timing: annual

      Rounding: none

      Limits:

      • Gross of incomes: it is what the year paid out, not what the portfolio had to supply (portfolio-need-annual)
      • The association is part of the figure: expenses.total + (tax + penalties) differs in the last binary digit on some inputs (40,477.35, 18,353.95 and 539.21 give 59,370.51 left to right and 59,370.509999999995 grouped the other way)

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-total-spending-annual.md Mutation receipt: display-total-spending-annual.mutation.md

      Evidence tests: yearFigures.evidence.test.ts

      Implemented in: yearFigures.ts; compare.ts

      Is the number of: display-total-spending-annual

    Fed by: Today's dollars by the ledger's own inflation factor (formula record, 6 of 6 gates pass); Annual net expense total (composition record, 6 of 6 gates pass); Annual penalties: early withdrawal plus the IRC 4974 excise (composition record, 6 of 6 gates pass); Annual composed tax (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Display upside shortfall annual

    Ideal plus excess spending not funded.

    Field: Upside miss Unit: US dollars Basis: nominal dollars Computed by: UI transformation Status: Complete chain

    Appears in: results-table (Layer miss "Upside")

    • Upside miss: upside spending not funded Composition record, justified by derivation

      Purpose: The ideal and excess spending the year did not fund, as the Upside part of the Layer miss column shows it.

      Statement: projection/yearFigures.ts#upsideShortfall publishes idealShortfall + excessShortfall for the year. Units: nominal USD of the year. Rounding: none.

      Formula: upsideShortfall = idealShortfall + excessShortfall

      • idealShortfall: Ideal spending not funded (unit: usd per year) (domain: nonnegative)
      • excessShortfall: Excess spending not funded (unit: usd per year) (domain: nonnegative)

      Timing: annual

      Rounding: none

      Limits:

      • None beyond the layer attribution's own (spending-layer-shortfall-attribution); the page's show-or-blank test for the Layer miss cell reads the three engine figures separately rather than adding the four shortfalls, which renders the same cell in every case

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-upside-shortfall-annual.md Mutation receipt: display-upside-shortfall-annual.mutation.md

      Evidence tests: yearFigures.evidence.test.ts

      Implemented in: yearFigures.ts; result.ts

      Is the number of: display-upside-shortfall-annual

    Fed by: Today's dollars by the ledger's own inflation factor (formula record, 6 of 6 gates pass); Spending layer shortfall attribution (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Display upside spending annual

    Ideal plus excess spending intended above the target layer.

    Field: Upside spending Unit: US dollars Basis: nominal dollars Computed by: UI transformation Status: Complete chain

    Appears in: results-table (Upside column (layered spending))

    • Upside spending: intended spending above the target layer Composition record, justified by derivation

      Purpose: The ideal and excess spending a layered plan intended in the year, as the Upside column shows it.

      Statement: projection/yearFigures.ts#upsideSpending publishes expenses.idealSpending + expenses.excessSpending for the year: intended spending above the target layer. Units: nominal USD of the year. Rounding: none.

      Formula: upsideSpending = idealSpending + excessSpending

      • idealSpending: Ideal layer intended above target (unit: usd per year) (domain: nonnegative)
      • excessSpending: Excess layer intended above ideal (unit: usd per year) (domain: nonnegative)

      Timing: annual

      Rounding: none

      Limits:

      • Intended, not funded: a guardrail cut or a portfolio shortfall does not reduce it; the unfunded part is display-upside-shortfall-annual

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-upside-spending-annual.md Mutation receipt: display-upside-spending-annual.mutation.md

      Evidence tests: yearFigures.evidence.test.ts

      Implemented in: yearFigures.ts; yearLedger.ts

      Is the number of: display-upside-spending-annual

    Fed by: Today's dollars by the ledger's own inflation factor (formula record, 6 of 6 gates pass); Annual excess-layer requested spending (composition record, 6 of 6 gates pass); Annual ideal-layer requested spending (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Portfolio need annual

    The nonnegative annual amount that must be supplied by the portfolio after income.

    Field: Net portfolio need Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: results-table (Bucket lens need per year (BucketYearRow.need) and bucket sums); cash-flow-drilldown (needBasedPortfolioWithdrawal sizing)

    • Annual net portfolio need Composition record, justified by derivation

      Purpose: What the portfolio has to supply this year, floored so a surplus is never reported as a need.

      Statement: projection/internal/annualYearResultAssembly.ts#annualYearResultAssembly publishes projection/internal/types/result.ts#YearResult.netPortfolioNeed as Math.max(0, expenses.total + tax + penalties - incomes.total), computed from the committed ledger totals and the settled tax and penalty scalars at the end of the annual pass. It is what the year REQUIRED, not what the portfolio managed to supply: a year that cannot fund it still publishes the need and records the gap in shortfall. A year whose incomes cover every outflow publishes exactly 0. Units: nominal USD per year. Rounding: none.

      Formula: netPortfolioNeed = max(0, expenses.total + tax + penalties - incomes.total)

      • expenses.total: The year's net outflow (unit: usd/year) (domain: nonnegative)
      • tax, penalties: Settled tax and the penalty scalar, which is not inside tax (unit: usd/year) (domain: nonnegative)
      • incomes.total: The year's cash income (unit: usd/year) (domain: nonnegative)

      Timing: once per projection year, published last in the year-result assembly

      Rounding: none

      Limits:

      • Asserted at annualYearResultAssembly, the function that computes the field, with the worksheet's four year-row components, and separately on a real simulatePlan run where the published need equals its own row's published expenses, tax, penalties and incomes
      • The floor case the worksheet names (the same outflows against $120,000 of income) is asserted at the same function, because the published need must be exactly 0 rather than the negative surplus
      • Penalties are a separate term from tax and are not inside it; omitting them is the worksheet's first wrong reading

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: portfolio-need-annual.md Mutation receipt: portfolio-need-annual.mutation.md

      Evidence tests: annualYearResultAssembly.evidence.test.ts

      Implemented in: annualYearResultAssembly.ts; result.ts

      Is the number of: portfolio-need-annual

      Feeds: spending-shortfall-annual

    Fed by: Annual cash-income total (composition record, 6 of 6 gates pass); Annual net expense total (composition record, 6 of 6 gates pass); Annual penalties: early withdrawal plus the IRC 4974 excise (composition record, 6 of 6 gates pass); Annual composed tax (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • SEPP distribution annual

    Penalty-free 72(t) substantially-equal periodic payment distributed this year (included in traditional withdrawals).

    Field: SEPP distribution Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: cash-flow-drilldown (seppDistribution source line)

    • SEPP amortization-method annual amount Model record, justified by derivation

      Purpose: Fix the annual 72(t) payment from the first-year balance as an ordinary annuity over the Single Life term.

      Statement: strategies/sepp.ts#seppAnnualAmount fixes the amortization-method annual SEPP from the first-year balance as an ordinary-annuity payment over the Single Life Table term at the selected annual rate, with the module's default 5% carried by SEPP_AMORTIZATION_RATE_PCT to satisfy the Notice 2022-6 section 3.02(c) greater-of-5%-or-120%-mid-term ceiling in every rate environment. A zero rate degenerates to balance divided by the term. Units: nominal USD per year. Rounding: none; the result is a binary float compared to cents.

      Formula: A = B r / (1 - (1 + r)^(-n)), and B / n when r = 0

      • B: First SEPP year balance (unit: usd) (domain: positive; a nonpositive balance pays 0)
      • r: Annual rate as a fraction, ratePct / 100 (unit: 1) (domain: r >= 0)
      • n: Single Life Table term for the start age, year2026.rmd.singleLifeTable (unit: years) (domain: positive)

      Timing: fixed once at the first SEPP year and held for the series

      Rounding: none

      Limits:

      • The payment is FIXED at the first year: recomputing it from a later balance would make a supposedly fixed amortization payment vary
      • Single Life is the engine's stated convention among the three tables Notice 2022-6 permits, and it is the shortest at every age, so this sizes the largest payment any permitted table would allow rather than the smallest; no beneficiary-specific table election is claimed
      • The 5% rate is the module default and clears the statutory ceiling; a caller may pass a different permitted rate

      Provenance: derived by codex, implemented by claude.

      Independent review: orchestrator

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: sepp-amortization-method.md Mutation receipt: sepp-amortization-method.mutation.md

      Evidence tests: sepp.evidence.test.ts

      Implemented in: sepp.ts

      Is the number of: sepp-distribution-annual

    • SEPP RMD-method annual amount Composition record, justified by derivation

      Purpose: Recompute the annual 72(t) payment each year from the current balance and the Single Life divisor.

      Statement: strategies/sepp.ts#seppAnnualAmount computes the SEPP RMD-method annual payment as the current start-of-year balance divided by the Single Life Table entry for the attained age, recomputed every year. Because both the balance and the age are reread, the payment is not fixed. Units: nominal USD per year. Rounding: none.

      Formula: A = B / d, where d = singleLifeTable[floor(age)]

      • B: Current start-of-year balance (unit: usd) (domain: positive; a nonpositive balance pays 0)
      • d: Single Life Table divisor for the attained age (unit: years) (domain: positive)

      Timing: once per SEPP year

      Rounding: none

      Limits:

      • The Uniform Lifetime Table is not an alternative here: the published parameters carry no age-55 entry for it, and the module adopts Single Life for both supported methods
      • The published entry is taken as published; a fractional age is floored to the table's whole age rather than interpolated
      • Unlike the amortization method this payment varies year to year, so a test that holds it constant is asserting the wrong method

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: sepp-rmd-method.md Mutation receipt: sepp-rmd-method.mutation.md

      Evidence tests: sepp.evidence.test.ts

      Implemented in: sepp.ts

      Is the number of: sepp-distribution-annual

    Fed by: SEPP active in an attained-age year (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Solved initial withdrawal rate pct

    The published solved baseline spending (rounded down to the nearest $100, or the exact level that passed when a guardrail plan fails at the rounded one) as a percent of the starting investable assets of the plan the solve priced, shown beside the SWR rule rows.

    Field: Solved initial withdrawal rate Unit: percent Basis: no dollar basis Computed by: UI-native Status: Complete chain

    Appears in: solver-page (SWR comparison "Your solved plan" row rate)

    • Solved spending as an initial withdrawal rate Formula record, justified by derivation

      Purpose: The solver's published answer as a percent of today's investable balances, the base the published withdrawal rules apply their rates to.

      Statement: decisions/spendingSolver.ts#initialWithdrawalRatePct returns (annualSpend / startingInvestable) × 100 in that association, or null when startingInvestable is not positive, and refuses an argument that is not finite or a negative spend. The solver publishes initialWithdrawalRatePct for its published answer maxBaseAnnual over startingInvestableOf of the plan it solved (any base patch applied), so the rate never mixes one plan's answer with another plan's balances. $62,800 over $1,500,000 is 4.186666666666667 percent (printed 4.19); $41,200 over $800,000 is 5.1499999999999995 (printed 5.15); a zero balance gives no rate. Units: percent. Rounding: none; the page prints two decimals.

      Formula: rate = (M / B) · 100

      • M: The solver's published answer (maxBaseAnnual) (unit: today USD per year) (domain: nonnegative)
      • B: Starting investable balances of the solved plan (startingInvestableOf) (unit: today USD) (domain: B > 0; null rate otherwise)

      Timing: once per solve

      Rounding: none

      Limits:

      • The solved amount is base spending under the plan's own phases, taxes and horizon, while the published rules' rates are constant-real spending over the same base, so the row compares a plan-specific answer with rules of thumb, as the page says.
      • The other association, (M · 100) / B, differs in the last binary digit on some inputs (4.1866666666666665 against 4.186666666666667 at $62,800 over $1,500,000); the printed two decimals agree.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: solved-initial-withdrawal-rate-pct.md Mutation receipt: solved-initial-withdrawal-rate-pct.mutation.md

      Evidence tests: spendingSolver.withdrawalRate.evidence.test.ts

      Implemented in: spendingSolver.ts

      Is the number of: solved-initial-withdrawal-rate-pct

    Fed by: Sustainable spending rounded down to the hundred (formula record, 6 of 6 gates pass); Sustainable spending bisection (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Solved spending rounded to hundred

    Maximum sustainable baseline spending rounded down to the nearest $100: the amount the solver publishes and every surface shows, applies and measures slack from (the exact level that passed when a guardrail plan fails at the rounded one).

    Field: Solved spending rounded down Unit: US dollars Basis: today's dollars (real) Computed by: UI transformation Status: Complete chain

    Appears in: solver-page ("sustain about $X of baseline spending", Apply-to-Spending amount, per-shape "$X/yr")

    • Sustainable spending rounded down to the hundred Formula record, justified by derivation

      Purpose: The one amount every surface shows, applies and measures slack from once the spending solver has found the highest level that passed.

      Statement: decisions/spendingSolver.ts#roundSolvedSpending floors a nonnegative amount to a whole multiple of SOLVED_SPENDING_STEP_DOLLARS (100): floor(x / 100) × 100, refusing an amount that is negative or not finite. The solver publishes feasibleBaseAnnual, the highest level that passed (a whole number of dollars), and maxBaseAnnual, that level rounded down to $100, and measures spendingSlackDollars as maxBaseAnnual minus the current base (owner decision R4: one slack everywhere, from the amount shown). Under fixed-target spending the rounded amount is published without a run of its own, on the decision's assumption that a lower base does not fail where a higher one passed (measured, not proven; see the limits). Under withdrawal-rate or risk-based guardrails a lower base can fail, so the rounded amount is published only on a run at it that passed: the search's own probe at that level when it made one, else one more run after the search; otherwise the solver publishes feasibleBaseAnnual itself, sets maxBaseAnnualRounding to none and adds a sentence to its diagnostics saying why. A rounded amount below the plan's required spending is never published. Whether today's spending is sustained is sustainsCurrentBase, the verdict of the first probe (today's base rounded to a whole dollar, or the required floor rounded up when that is higher), never the sign of the slack. When the rounded amount is published, bestEvaluation and the unpriced premium-credit years still describe the run at feasibleBaseAnnual. For the worksheet's case A (levels up to $62,850 pass, current base $40,000) the probes end at $62,813, the published amount is $62,800 and the slack $22,800; under guardrails, with the rounded amount failing, it is $62,813 and $22,813. Units: today's dollars per year. Rounding: down to a whole $100.

      Formula: M = floor(F / 100) · 100 when that level is known to pass, else M = F; slack = M − current

      • F: feasibleBaseAnnual, the highest level that passed (unit: today USD per year) (domain: nonnegative whole number)
      • M: maxBaseAnnual, the published answer (unit: today USD per year) (domain: nonnegative; a multiple of 100 unless published as F)
      • current: The base spending the solve started from, after any base patch (unit: today USD per year) (domain: nonnegative)

      Timing: once per solve, after the search

      Rounding: down to a whole $100; the page prints whole dollars

      Limits:

      • Under fixed-target spending the rounded amount is not run on its own. That it passes is the decision's assumption, measured and not proven: every one of the 109 published amounts of the example plans and their shape solves re-simulates feasible, as do 210 fixed-target balance variants (0.70 to 1.30 times) of ten Marketplace-heavy or early-retirement examples, and a scan of every $10 level in the $3,000 below the answer on six Marketplace examples found none that fails. The mechanism it does not exclude is a lower spend dropping the household's income below 100 percent of the poverty line, where the premium tax credit is lost and the full premium is budgeted.
      • When the rounded amount is published, the evidence figures on the spending page and the unpriced premium-credit years describe the run at feasibleBaseAnnual, not a run at the published amount (under guardrails that run also passed, but its own evidence is not published).
      • Under guardrails a check of the rounded amount that the search did not already make is one more simulation after the search, outside maxSimulations, and it is counted in simulationCount.
      • A published amount under the current base by less than $100 can belong to a plan that sustains its own spending (the current base passed and is the answer, rounded down); the spending page judges that on feasibleBaseAnnual, and so should any other reader of the slack.
      • The search resolves to about $500, so answers less than $100 apart can publish the same amount, and a comparison of two plans can tie there.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: solved-spending-rounded-to-hundred.md Mutation receipt: solved-spending-rounded-to-hundred.mutation.md

      Evidence tests: spendingSolver.rounding.evidence.test.ts

      Implemented in: spendingSolver.ts

      Is the number of: solved-spending-rounded-to-hundred, sustainable-spending-result-max-base-annual

      Feeds: sustainable-spending-result-spending-slack-dollars, solved-initial-withdrawal-rate-pct, spending-shape-delta-vs-flat

    Fed by: Sustainable spending bisection (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Spending base annual

    Base living spending modeled for a projection year.

    Field: Base spending Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (base); csv (baseSpending); cash-flow-drilldown (requiredLifestyle / targetLifestyle use lines (layered))

    • Amortization-based withdrawal, growing annuity-due payment Formula record, justified by derivation

      Purpose: This year's ABW payment from a start-of-year balance over the remaining horizon.

      Statement: Given a start-of-year balance B, an expected return r and a planned payment growth g (both in percent per year, as abwAnnualPayment takes them, so the worksheet's 10% is passed as 10) and a remaining horizon in years including the current year, the function first truncates that horizon to whole years, n = floor(remainingYears), so a fractional horizon such as 4.5 years is amortized over 4. The beginning-of-period payment is P = B(1−x)/(1−x^n) where x = (1 + g/100)/(1 + r/100). P = B/n instead under either guard the code tests: `!Number.isFinite(x) || x <= 0` (x is not finite or not positive; r > −100 and g > −100 keep it finite and positive) and `Math.abs(x - 1) < 1e-9` (x = 1 within that tolerance). Payments are withdrawn before growth. Under the ABW spending policy P is the year's base spending before guardrail adjustments: annualLifestyleLayers writes it as baseAnnualNominal, which annualExpenseSummary publishes as YearResult.expenses.baseSpending. Domain: finite B > 0 (a non-finite or non-positive balance pays 0) and n ≥ 1; n ≤ 1 spends the whole balance. Rounding: the horizon is floored on input; the payment itself is not rounded (the production function returns a binary float).

      Formula: n = floor(remainingYears); x = (1 + g/100)/(1 + r/100); P = B(1-x)/(1-x^n), or P = B/n when x is not finite, x <= 0, or |x - 1| < 1e-9

      • P: This year's beginning-of-period payment (unit: usd) (domain: P ≥ 0)
      • B: Start-of-year portfolio balance (unit: usd) (domain: B > 0 and finite (otherwise the payment is 0))
      • r: Expected return over the period, in percent (10% is 10) (unit: percent) (domain: r > -100, so that 1 + r/100 > 0 and x is finite and positive)
      • g: Planned payment growth over the period, in percent (0% is 0) (unit: percent) (domain: g > -100, so that 1 + g/100 > 0 and x is positive)
      • n: Remaining periods including the current one, n = floor(remainingYears): a fractional horizon is truncated to its whole years before amortizing (unit: count) (domain: integer n ≥ 1 (the floored value); n ≤ 1 pays the whole balance)
      • x: Payment-growth ratio (1 + g/100)/(1 + r/100) (unit: 1) (domain: finite x > 0 with |x − 1| ≥ 1e-9 for the closed form; otherwise P = B/n)

      Timing: beginning of period, annual

      Rounding: none on the payment, a binary float; the horizon is truncated to whole years on input, n = floor(remainingYears)

      Limits:

      • The chosen expected return is an assumption, not proven by the identity
      • The payment is the ABW policy's base spending before guardrail adjustments, written by annualLifestyleLayers as baseAnnualNominal; under other spending policies baseSpending is not this formula

      Provenance: derived by claude-orchestrator, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: abw-annuity-due-payment.md Mutation receipt: abw-annuity-due-payment.mutation.md

      Evidence tests: abw.evidence.test.ts

      Implemented in: abw.ts; annualLifestyleLayers.ts

      Is the number of: spending-base-annual

    • Annual base spending after the guardrail cut Composition record, justified by derivation

      Purpose: Recurring lifestyle spending actually intended once the guardrail has rationed the target layer.

      Statement: projection/internal/annualGuardrailFunding.ts#annualGuardrailFundingPlan computes targetLifestyleFunded as targetLifestyle x min(1, discretionaryMultiplier) while guardrails are active, and the full targetLifestyle otherwise; projection/internal/annualExpenseSummary.ts#annualExpenseSummary then publishes projection/internal/types/yearLedger.ts#YearExpenses.baseSpending as requiredLifestyle + targetLifestyleFunded + idealLifestyleFunded + excessLifestyleFunded. The cap keeps a multiplier above one from inflating the target layer; upside instead reaches the separately funded ideal and excess layers. One-time goals and the system-computed costs are excluded; expenses.total adds them. The same multiplier is published unchanged as expenses.guardrailFactor. Units: nominal USD per year. Rounding: none.

      Formula: baseSpending = requiredLifestyle + targetLifestyle * min(1, guardrailFactor) + idealLifestyleFunded + excessLifestyleFunded

      • requiredLifestyle: Required-floor lifestyle layer, never cut (unit: usd/year) (domain: nonnegative)
      • targetLifestyle: Full target lifestyle layer before the cut (unit: usd/year) (domain: nonnegative)
      • guardrailFactor: This year's discretionary multiplier (unit: 1) (domain: nonnegative; capped at 1 for this term)
      • idealLifestyleFunded, excessLifestyleFunded: Upside layers funded this year (unit: usd/year) (domain: nonnegative)

      Timing: once per projection year, after the guardrail decision and before the funding fixed point

      Rounding: none

      Limits:

      • The same published field is also the output of abw-annuity-due-payment, which computes it under the ABW spending policy; this record is the guardrail-policy composition of the same field, so the family carries two records rather than one
      • The worksheet's two cases are states annualGuardrailFundingPlan produces, and the evidence runs the real phase for a live household: a cutting year holding an incoming 0.75 (its withdrawal rate at its starting rate, so the policy holds, as in any year after a cut), where the phase funds the target layer at the factor and no upside because the upside budget is max(0, multiplier - 1) x the guardrail step basis; and a year with no policy active, where the full target layer and both upside layers fund. The first derivation paired a 0.75 cut with $4,000 of funded ideal and $1,500 of funded excess, which the YearExpenses.baseSpending comment rules out; it was re-derived on 2026-09-22 and re-approved by the reviewer, and the min(1, factor) cap is also asserted at a held multiplier of 1.4
      • The $8,000 one-time goal is passed to annualExpenseSummary beside the phase's funded layers and asserted to be absent from baseSpending while present in expenses.total, which is the worksheet's second wrong reading

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-base-annual.md Mutation receipt: spending-base-annual.mutation.md

      Evidence tests: annualExpenseSummary.evidence.test.ts

      Implemented in: annualExpenseSummary.ts; annualGuardrailFunding.ts; yearLedger.ts

      Is the number of: spending-base-annual

      Feeds: spending-total-annual

    Fed by: ABW expected real return: fixed, TIPS yield, or CAPE-blended (model record, 6 of 6 gates pass); Joint (either-survives) percentile age on the primary's age clock (formula record, 6 of 6 gates pass); One-year death probability: SSA's published q(x) (formula record, 6 of 6 gates pass); Whose age the spending phases follow (model record, 6 of 6 gates pass); Annual real spending drift compiled to five-year phase rows (model record, 6 of 6 gates pass); Named spending shapes compiled to phase rows (model record, 6 of 6 gates pass); SSA period life table, 2023 (2026 Trustees Report) (data record, 6 of 6 gates pass); Survival-percentile planning age: oldest age reached with probability at least pct/100 (formula record, 6 of 6 gates pass); The survival curve: product of hazard-adjusted one-year survivals, and the 50/50 mixture for 'average' (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Spending shape delta vs flat

    How much more or less baseline spending each spending shape sustains than the flat shape.

    Field: Spending-shape solved delta versus flat Unit: US dollars Basis: today's dollars (real) Computed by: UI-native Status: Complete chain

    Appears in: solver-page (Per-shape table "vs. flat" column)

    • Spending shapes compared with constant-real spending Composition record, justified by derivation

      Purpose: Each spending shape's sustainable amount and its difference from the constant-real shape, as the spending page's shape table shows them.

      Statement: decisions/spendingShapes.ts#planWithSpendingShape builds the plan solved for each shape in SPENDING_SHAPE_COMPARISON (flat, smile, smirk): the plan's own phases replaced by the shape's rows on the retirement age of the person the phases follow (expenses.phasesAgeOf, the person listed first when a two-person plan names none, which the plan then names; 65 when unset), and amortized (ABW) spending removed; every other field, a guardrail policy included, is unchanged. spendingShapeRows publishes, for each shape, the solver's published maxBaseAnnual and deltaVsFlatDollars, that amount minus the flat shape's, null on the flat row and when either amount is null (owner decision R5), so the difference is always the gap between the two amounts shown. It refuses an input without exactly one flat row, a shape listed twice, and any amount that is not a published answer (a rounded amount that is not a whole multiple of $100, or an amount without its rounding). With passing levels of $50,050 (flat) and $50,149 (smile) the published amounts are $50,000 and $50,100 and the difference is +$100, where subtracting the passing levels printed +$99. Units: today's dollars per year. Rounding: none beyond the published amounts.

      Formula: delta_s = M_s − M_flat

      • M_s: The published answer of the solve for shape s (unit: today USD per year) (domain: nonnegative)
      • M_flat: The published answer of the constant-real (flat) solve (unit: today USD per year) (domain: nonnegative)

      Timing: once per comparison

      Rounding: none

      Limits:

      • Each shape is a separate solve that resolves to about $500, so a difference smaller than that is not meaningful.
      • Shapes use the retirement age of the person the phases follow (65 when unset); a plan with amortized spending is compared as fixed-target versions of itself.
      • Under guardrail spending a row can publish the exact amount that passed rather than the rounded one (see solved-spending-rounding); its difference is still taken between the amounts shown.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-shape-delta-vs-flat.md Mutation receipt: spending-shape-delta-vs-flat.mutation.md

      Evidence tests: spendingShapes.evidence.test.ts

      Implemented in: spendingShapes.ts

      Is the number of: spending-shape-delta-vs-flat

    Fed by: Sustainable spending rounded down to the hundred (formula record, 6 of 6 gates pass); Annual real spending drift compiled to five-year phase rows (model record, 6 of 6 gates pass); Named spending shapes compiled to phase rows (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Spending shortfall annual

    Unfunded total spending in a projection year.

    Field: Spending shortfall Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (shortfall); csv (shortfall); results-table (Shortfall column); scenarios-page (Annual "Total shortfall" and lifetime "Total spending shortfall"); mcp (run_projection.years[].shortfall)

    • Annual funding shortfall after the HECM backstop Composition record, justified by derivation

      Purpose: What the year could not fund once every withdrawal and any reverse-mortgage draw had been applied.

      Statement: projection/internal/annualHecmBackstop.ts#annualHecmBackstopPlan publishes shortfallAfterHecm = Math.max(0, portfolioShortfall - draw), the value the year publishes as projection/internal/types/result.ts#YearResult.shortfall: the funding gap that remains after every withdrawal AND any HECM backstop draw. projection/internal/types/result.ts#ProjectionResult.depletionYear is the first year this exceeds projection/moneyTolerance.ts#ANNUAL_FUNDING_TOLERANCE_PLAN_DOLLARS, the ledger's own half-cent residual budget; a residual at or below that budget is not depletion. Units: nominal USD per year. Rounding: none.

      Formula: shortfall = max(0, needAfterWithdrawals - hecmDraw); depletionYear = first year with shortfall > ANNUAL_FUNDING_TOLERANCE_PLAN_DOLLARS

      • needAfterWithdrawals: Funding gap left after every withdrawal (unit: usd/year) (domain: nonnegative)
      • hecmDraw: Tax-free HECM line-of-credit proceeds drawn as a backstop (unit: usd/year) (domain: nonnegative; 0 without a HECM)
      • ANNUAL_FUNDING_TOLERANCE_PLAN_DOLLARS: The ledger's accepted annual residual (unit: usd) (domain: half a cent)

      Timing: once per projection year, after the funding fixed point and the HECM backstop

      Rounding: none

      Limits:

      • Asserted on a real simulatePlan run that realizes the worksheet's four inputs: a $10,000 cash account, a $12,000 lifestyle need, and a last-resort HECM whose principal limit is exactly $1,500, leaving the worksheet's $500. Plan assumptions beyond the worksheet's inputs: a single 64-year-old filing single in KY with a zero state rate, zero inflation, zero account and property return, a zero pre-65 premium so healthcare charges nothing, a primary residence worth $30,000 carrying the HECM at the schema's minimum 5 percent principal limit with a zero growth rate, and no earlier projection year, so the worksheet's "earlier-year shortfalls 0" holds by construction
      • The worksheet declines to state the depletion tolerance numerically, so the test imports ANNUAL_FUNDING_TOLERANCE_PLAN_DOLLARS from production, confirms the $500 exceeds it, and only then asserts the run's depletionYear
      • The year's pre-HECM gap is asserted separately from the published figure, because publishing the pre-HECM gap is the worksheet's first wrong reading

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-shortfall-annual.md Mutation receipt: spending-shortfall-annual.mutation.md

      Evidence tests: annualHecmBackstop.evidence.test.ts

      Implemented in: annualHecmBackstop.ts; result.ts; moneyTolerance.ts

      Is the number of: spending-shortfall-annual

    Fed by: Annual HECM draw, including the last-resort backstop (formula record, 6 of 6 gates pass); Annual net portfolio need (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Spending total annual

    All modeled expenses for a projection year before tax and penalties.

    Field: Total expenses Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (totalExpenses); report (yearLedger); results-table (expenses); results-table (Expenses column); scenarios-page (Annual "Funded spending" and lifetime "Funded spending")

    • Annual net expense total Composition record, justified by derivation

      Purpose: The year's actual net outflow, and which expense members compose it.

      Statement: projection/internal/annualExpenseSummary.ts#annualExpenseSummary publishes projection/internal/types/yearLedger.ts#YearExpenses.total as baseSpending + oneTimeGoals + debtService + propertyCosts + healthcare + insurancePremiums + careCost - ltcBenefit, kept in that left-to-right association because regrouping the LTC pair can move the last bit. careCost is gross and ltcBenefit offsets it. guardrailFactor is descriptive: the cut is already inside baseSpending and is never multiplied in again. requiredSpending, targetSpending, idealSpending, excessSpending and intendedSpending are overlapping layer summaries, not additional members, and intendedSpending is the no-cut request and need not equal this total. Units: nominal USD per year. Rounding: none.

      Formula: total = baseSpending + oneTimeGoals + debtService + propertyCosts + healthcare + insurancePremiums + careCost - ltcBenefit

      • baseSpending: Recurring lifestyle spending already net of the guardrail cut (unit: usd/year) (domain: nonnegative)
      • oneTimeGoals: One-time goals funded this year (unit: usd/year) (domain: nonnegative)
      • careCost, ltcBenefit: Gross care-episode cost and the policy benefit offsetting it (unit: usd/year) (domain: nonnegative; the benefit is subtracted)
      • guardrailFactor: Discretionary multiplier already applied inside baseSpending (unit: 1) (domain: descriptive only)

      Timing: once per projection year, at the expense summary

      Rounding: none

      Limits:

      • Asserted at the annualExpenseSummary seam with the worksheet's eight member amounts, because the worksheet states them as published year-row components: a single real plan cannot present a chosen base spending, one-time goal, debt service, property cost, healthcare charge, insurance premium, gross care cost and LTC benefit at those exact values simultaneously
      • Cross-checked on a real simulatePlan run: the published total of that year row equals the same row's own eight published members in the same association
      • The guardrail factor and intended spending are asserted NOT to enter: the test drives the seam with a factor of 0.90 and an intended request of $100,000 and shows neither changes the total

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-total-annual.md Mutation receipt: spending-total-annual.mutation.md

      Evidence tests: annualExpenseSummary.evidence.test.ts

      Implemented in: annualExpenseSummary.ts; yearLedger.ts

      Is the number of: spending-total-annual

      Feeds: portfolio-need-annual, display-total-spending-annual

    Fed by: Annual base spending after the guardrail cut (composition record, 6 of 6 gates pass); Annual gross care cost and the LTC benefit against it (model record, 6 of 6 gates pass); Annual debt service under the grow-then-pay convention (formula record, 6 of 6 gates pass); Annual level insurance premiums (formula record, 6 of 6 gates pass); Annual funded one-time goals (formula record, 6 of 6 gates pass); Annual property carrying costs on owned properties (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Withdrawals by category annual

    Dollars withdrawn this year from cash, taxable, traditional, Roth and HSA accounts.

    Field: Withdrawals by account category Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: scenarios-page (Annual "Traditional withdrawals" / "Roth withdrawals" and lifetime withdrawals by category); cash-flow-drilldown (needBasedPortfolioWithdrawal and retirementActionWithdrawal source lines); mcp (run_projection.years[].withdrawals.cash / .taxable / .traditional / .roth / .hsa)

    • Annual withdrawals partitioned by source-account category Composition record, justified by derivation

      Purpose: Which bucket each withdrawn dollar is reported in, and which named amounts are subsets rather than extra categories.

      Statement: projection/internal/types/yearLedger.ts#YearWithdrawals partitions the year's draws by SOURCE ACCOUNT category in the sequential order cash, taxable, traditional, roth, hsa. projection/internal/annualFundingApplicationAndClosePhase.ts#annualFundingApplicationAndClosePhase assembles the reported vector: traditional carries the planned traditional draw plus the owner RMD total, the SEPP total and the forced dollars executed from inherited traditional accounts; roth carries the planned Roth draw plus forced inherited Roth dollars, taxable earnings included; cash and taxable carry the retirement-action cash, equity-compensation and taxable proceeds. The separately published rmd, sepp and inheritedDistribution are SUBSETS of those categories, not extra categories and not amounts to add again; inheritedTraditionalDistribution is the ordinary income from inherited accounts, whose traditional rows are inside traditional and whose non-qualified Roth earnings, if any, are inside roth (decision D-INHERITED-ROTH-SLICE, 2026-09-25). Units: nominal USD per year. Rounding: none.

      Formula: traditional = plannedTraditional + rmdTotal + seppTotal + inheritedTraditionalForced; roth = plannedRoth + inheritedRothForced; hsa = plannedHsa; cash and taxable add the retirement-action proceeds

      • plannedX: The withdrawal planner's draw from category X (unit: usd/year) (domain: nonnegative)
      • rmdTotal, seppTotal: Forced owner distributions, reported inside traditional (unit: usd/year) (domain: nonnegative subsets)
      • inheritedTraditionalForced, inheritedRothForced: Forced inherited dollars, split by the type of the inherited account they are withdrawn from (unit: usd/year) (domain: nonnegative subsets)

      Timing: once per projection year, at the funding-and-close phase

      Rounding: none

      Limits:

      • Asserted on a real simulatePlan run whose five accounts hold exactly the worksheet's five category amounts and whose spending exceeds their sum, so each account drains and its category equals its own opening balance. Plan assumptions beyond the worksheet's inputs: a single 76-year-old filing single in KY with a zero state rate, zero inflation, zero account return, no taxable yield, cost basis equal to balance, sequential withdrawal order, and a base lifestyle far above the portfolio
      • The worksheet's stated subset split ($8,000 of RMD, $3,000 of SEPP, $2,000 of forced inherited traditional inside $18,000 of traditional, and $1,000 of forced inherited Roth inside $7,000 of Roth) is NOT constructed. Those four amounts are each determined by the engine from age, balance and beneficiary facts, and no plan sets them to chosen values inside a traditional draw that must also equal $18,000. The run's own RMD is asserted instead to be a nonzero subset of the published traditional category, which is the claim the worksheet's first wrong reading denies
      • HSA is a withdrawal category like the other four, not a sixth non-withdrawal bucket

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: withdrawals-by-category-annual.md Mutation receipt: withdrawals-by-category-annual.mutation.md

      Evidence tests: annualFundingApplicationAndClosePhase.evidence.test.ts

      Implemented in: yearLedger.ts; annualFundingApplicationAndClosePhase.ts

      Is the number of: withdrawals-by-category-annual

      Feeds: withdrawals-total-annual

    Fed by: Annual forced inherited distribution (composition record, 6 of 6 gates pass); Executed inherited required distribution (formula record, 6 of 6 gates pass); Voluntary inherited-account draw (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Withdrawals total annual

    Total account withdrawals used in a projection year.

    Field: Total withdrawals Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: cash-flow-drilldown (uses/withdrawals); csv (withdrawals); results-table (Withdrawals column); report (year-ledger block withdrawals); scenarios-page (Annual "Total withdrawals"); mcp (run_projection.years[].withdrawals.total)

    • Annual withdrawal total Composition record, justified by derivation

      Purpose: The single figure for everything drawn from the portfolio this year.

      Statement: projection/internal/types/yearLedger.ts#YearWithdrawals.total is cash + taxable + traditional + roth + hsa for the published year row. projection/internal/annualWithdrawalPlanning.ts#annualWithdrawalPlan folds the planned categories into byCategory.total in that operand order, and projection/internal/annualFundingApplicationAndClosePhase.ts#annualFundingApplicationAndClosePhase publishes the reported total as that planned total plus the forced amounts each category also carries: the RMD and SEPP totals, the inherited distributions and the retirement-action proceeds. Each forced inherited dollar is in exactly one category, traditional for a traditional account and roth for a Roth account, the taxable earnings of a non-qualified inherited Roth distribution included (decision D-INHERITED-ROTH-SLICE, 2026-09-25; before it those earnings were also added to traditional, and the categories exceeded the total by them). Units: nominal USD per year. Rounding: none.

      Formula: total = cash + taxable + traditional + roth + hsa

      • cash, taxable, traditional, roth, hsa: Published withdrawal totals by source-account category (unit: usd/year) (domain: nonnegative)

      Timing: once per projection year, at the funding-and-close phase

      Rounding: none

      Limits:

      • Asserted on a real simulatePlan run whose five accounts hold exactly the worksheet's five category amounts and whose spending exceeds their sum, so sequential ordering drains every one of them and the published categories are the worksheet's. Plan assumptions beyond the worksheet's inputs: a single 76-year-old filing single in KY with a zero state rate, zero inflation, zero account return, no taxable yield, cost basis equal to balance, sequential withdrawal order, and a base lifestyle far above the portfolio, so the year also publishes a shortfall
      • The year's traditional draw includes an RMD, so the test also asserts that the published total is the five categories and not the five categories with the RMD added again
      • Roth dollars are a member like any other; subtracting them as a tax offset is the worksheet's second wrong reading
      • The worksheet's plan carries no inherited account. The identity in a year with a non-qualified inherited Roth distribution (two 100 Roth draws with 140 of taxable earnings beside a 100 traditional draw: traditional 100, roth 200, total 300) is held by a projection test that checks the five categories add to the total in that year (projection/simulate.inheritedRegimeExecution.test.ts), added with decision D-INHERITED-ROTH-SLICE on 2026-09-25, when traditional stopped carrying the Roth earnings

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: withdrawals-total-annual.md Mutation receipt: withdrawals-total-annual.mutation.md

      Evidence tests: annualFundingApplicationAndClosePhase.evidence.test.ts

      Implemented in: yearLedger.ts; annualWithdrawalPlanning.ts; annualFundingApplicationAndClosePhase.ts

      Is the number of: withdrawals-total-annual

    Fed by: Annual forced inherited distribution (composition record, 6 of 6 gates pass); Voluntary inherited-account draw (composition record, 6 of 6 gates pass); Annual withdrawals partitioned by source-account category (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Risk based guardrail solved balance thresholds

    The cut and raise portfolio levels the risk-based guardrail solver finds for the plan's success band, as a fraction of today's investable portfolio: for each band edge, the lowest point of the solver's ten-step bisection lattice on [0.02, 4] whose fixed-target Monte Carlo success on shared seeded paths is at or above that edge.

    Field: Solved risk-based guardrail balance thresholds Unit: factor Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: assumptions-card (Spending card, risk-based guardrails callout "cut spending if the portfolio falls below $X; raise if it rises above $Y" (SpendingPolicyRiskBased.tsx RiskBasedThresholdsCallout)); results-table (Risk-based spending guardrails callout "if the portfolio falls below $X ... above $Y"); monte-carlo-page (Risk-based dollar guardrails note "cut below $X · raise above $Y (today's dollars, solved on Spending)")

    • Risk-based guardrail thresholds and suggested adjustments by bisection Model record, justified by derivation

      Purpose: Finds the portfolio levels where the plan's Monte Carlo success meets each edge of its success band, and the spending change that brings success back to the middle of the band there.

      Statement: Let S(f, m) be the success rate of the plan with fixed target spending, with every investable balance scaled by f and target spending by m, on shared seeded Monte Carlo paths (or the value of the optional successProbe(f, m), which replaces that run). The band is L/U percent (the plan's policy, else 70/95) and the recovery target is (L + U)/200. For each edge p = L/100 and U/100: if S(0.02, 1) >= p the outcome is always-above-band; if S(4, 1) < p it is never-reaches-band; otherwise ten bisections on [0.02, 4] move hi to the midpoint when S(mid, 1) >= p and lo otherwise, and the edge is hi, a point 0.02 + k · 3.98/1024 with k a whole number from 1 to 1024 (the smallest such point meeting p), published with balancePct = round(hi · 10,000) / 100, the percent the planner persists. At a solved lower edge f_L the suggested cut bisects m eight times on [max(0.3, required/base), 1], moving lo when S(f_L, m) >= the recovery target, and returns lo, provided the best case S(f_L, lowest m) reaches the target; at a solved upper edge the raise does the same on [1, 2], and reports m = 2 when even S(f_U, 2) stays above the target. annualDollars = |1 − m| · base spending and monthlyDollars = annualDollars / 12. For S(f, m) = min(1, f/(2m)), one $500,000 taxable account, base spending $40,000, no required spending and a 70/95 band: successAtCurrent is 0.5; the edges are k = 356 and 484, balanceFrac 1.403671875 and 1.901171875, balancePct 140.37 and 190.12; the cut multiplier is 0.849609375 ($6,015.625 a year, $501.3020833333333 a month, success after 0.8260689655172412) and the raise multiplier 1.1484375 ($5,937.50 a year, $494.7916666666667 a month, success after 0.8277210884353741); the probe is called 40 times. Units: fractions of starting investable, multipliers, today's dollars. Rounding: none; absolute tolerance 1e-12 on fractions and multipliers and 1e-6 on dollars.

      Formula: edge(p) = min { 0.02 + k · 3.98/1024 : k = 1..1024, S(·, 1) >= p } by ten bisections; m_cut = max { m on the eight-step lattice of [m_min, 1] : S(f_L, m) >= (L + U)/200 }; m_raise likewise on [1, 2]; monthly = |1 − m| · base / 12

      • S(f, m): Fixed-target success rate at balance scale f and spending multiplier m (unit: 1) (domain: [0, 1], nondecreasing in f and nonincreasing in m; worksheet min(1, f/(2m)))
      • L, U: Success band edges (unit: percent) (domain: L < U; worksheet 70 and 95)
      • k: Lattice index of a solved edge (unit: 1) (domain: whole number 1 to 1024; worksheet 356 and 484)
      • m: Spending multiplier of a suggested adjustment (unit: 1) (domain: cut [max(0.3, required/base), 1], raise [1, 2]; worksheet 0.849609375 and 1.1484375)
      • base: Base annual target spending (unit: usd) (domain: > 0; worksheet 40,000)
      • B: Starting investable (risk-based-starting-investable) (unit: usd) (domain: worksheet 500,000)

      Timing: once per solve, on today's balances and today's spending

      Rounding: none

      Limits:

      • Monotonicity of success in f and m is assumed, not checked; with a curve that is not monotone the result is a lattice point but not a meaningful edge
      • The Spending card always solves under the lognormal model at 12 percent volatility around the plan's own expected returns (allocated accounts use their asset classes' volatilities), with 200 paths and the engine's default seed (monte-carlo-default-seed), whatever model the Monte Carlo page shows; the solve stores the seed beside the thresholds, and thresholds saved before schema v6 carry none and were solved on a seed taken from the plan id, which the card says
      • Successes are cached by the balance scale rounded to 1e-6; the lattice step is about 3.9e-3, so two lattice points never share a key. The spending phase is not cached, so successAfter re-evaluates a multiplier the bisection has usually tried already
      • With a single path S is 0 or 1, so the two band edges are the same test and return the same point
      • balancePct rounds in floating point: at three of the 1,024 lattice points (k = 192, 448 and 704) the product lands just below a half and rounds down, persisting 76.62, 176.12 and 275.62 where the exact values round half up to 76.63, 176.13 and 275.63; the callouts print the persisted percent of today's balances (guardrail-threshold-dollars)

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: risk-based-guardrail-threshold-solver.md Mutation receipt: risk-based-guardrail-threshold-solver.mutation.md

      Evidence tests: riskBasedGuardrails.evidence.test.ts

      Implemented in: riskBasedGuardrails.ts

      Is the number of: risk-based-guardrail-solved-balance-thresholds, risk-based-guardrail-suggested-adjustment-monthly

      Feeds: display-guardrail-balance-thresholds, spending-guardrail-factor-annual

    Fed by: Default Monte Carlo seed and the headline run's options (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Risk based guardrail suggested adjustment monthly

    The monthly spending cut at the solved cut threshold, or raise at the solved raise threshold, that brings fixed-target Monte Carlo success back to the middle of the band: |1 − m| × base annual spending / 12, with m the eight-step bisection result for the spending multiplier.

    Field: Suggested spending adjustment at a solved guardrail threshold Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: assumptions-card (Spending card, risk-based guardrails callout "trimming about $X/mo restores the middle of the band" / "roughly $Y/mo of extra spending" (SpendingPolicyRiskBased.tsx RiskBasedThresholdsCallout))

    • Risk-based guardrail thresholds and suggested adjustments by bisection Model record, justified by derivation

      Purpose: Finds the portfolio levels where the plan's Monte Carlo success meets each edge of its success band, and the spending change that brings success back to the middle of the band there.

      Statement: Let S(f, m) be the success rate of the plan with fixed target spending, with every investable balance scaled by f and target spending by m, on shared seeded Monte Carlo paths (or the value of the optional successProbe(f, m), which replaces that run). The band is L/U percent (the plan's policy, else 70/95) and the recovery target is (L + U)/200. For each edge p = L/100 and U/100: if S(0.02, 1) >= p the outcome is always-above-band; if S(4, 1) < p it is never-reaches-band; otherwise ten bisections on [0.02, 4] move hi to the midpoint when S(mid, 1) >= p and lo otherwise, and the edge is hi, a point 0.02 + k · 3.98/1024 with k a whole number from 1 to 1024 (the smallest such point meeting p), published with balancePct = round(hi · 10,000) / 100, the percent the planner persists. At a solved lower edge f_L the suggested cut bisects m eight times on [max(0.3, required/base), 1], moving lo when S(f_L, m) >= the recovery target, and returns lo, provided the best case S(f_L, lowest m) reaches the target; at a solved upper edge the raise does the same on [1, 2], and reports m = 2 when even S(f_U, 2) stays above the target. annualDollars = |1 − m| · base spending and monthlyDollars = annualDollars / 12. For S(f, m) = min(1, f/(2m)), one $500,000 taxable account, base spending $40,000, no required spending and a 70/95 band: successAtCurrent is 0.5; the edges are k = 356 and 484, balanceFrac 1.403671875 and 1.901171875, balancePct 140.37 and 190.12; the cut multiplier is 0.849609375 ($6,015.625 a year, $501.3020833333333 a month, success after 0.8260689655172412) and the raise multiplier 1.1484375 ($5,937.50 a year, $494.7916666666667 a month, success after 0.8277210884353741); the probe is called 40 times. Units: fractions of starting investable, multipliers, today's dollars. Rounding: none; absolute tolerance 1e-12 on fractions and multipliers and 1e-6 on dollars.

      Formula: edge(p) = min { 0.02 + k · 3.98/1024 : k = 1..1024, S(·, 1) >= p } by ten bisections; m_cut = max { m on the eight-step lattice of [m_min, 1] : S(f_L, m) >= (L + U)/200 }; m_raise likewise on [1, 2]; monthly = |1 − m| · base / 12

      • S(f, m): Fixed-target success rate at balance scale f and spending multiplier m (unit: 1) (domain: [0, 1], nondecreasing in f and nonincreasing in m; worksheet min(1, f/(2m)))
      • L, U: Success band edges (unit: percent) (domain: L < U; worksheet 70 and 95)
      • k: Lattice index of a solved edge (unit: 1) (domain: whole number 1 to 1024; worksheet 356 and 484)
      • m: Spending multiplier of a suggested adjustment (unit: 1) (domain: cut [max(0.3, required/base), 1], raise [1, 2]; worksheet 0.849609375 and 1.1484375)
      • base: Base annual target spending (unit: usd) (domain: > 0; worksheet 40,000)
      • B: Starting investable (risk-based-starting-investable) (unit: usd) (domain: worksheet 500,000)

      Timing: once per solve, on today's balances and today's spending

      Rounding: none

      Limits:

      • Monotonicity of success in f and m is assumed, not checked; with a curve that is not monotone the result is a lattice point but not a meaningful edge
      • The Spending card always solves under the lognormal model at 12 percent volatility around the plan's own expected returns (allocated accounts use their asset classes' volatilities), with 200 paths and the engine's default seed (monte-carlo-default-seed), whatever model the Monte Carlo page shows; the solve stores the seed beside the thresholds, and thresholds saved before schema v6 carry none and were solved on a seed taken from the plan id, which the card says
      • Successes are cached by the balance scale rounded to 1e-6; the lattice step is about 3.9e-3, so two lattice points never share a key. The spending phase is not cached, so successAfter re-evaluates a multiplier the bisection has usually tried already
      • With a single path S is 0 or 1, so the two band edges are the same test and return the same point
      • balancePct rounds in floating point: at three of the 1,024 lattice points (k = 192, 448 and 704) the product lands just below a half and rounds down, persisting 76.62, 176.12 and 275.62 where the exact values round half up to 76.63, 176.13 and 275.63; the callouts print the persisted percent of today's balances (guardrail-threshold-dollars)

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: risk-based-guardrail-threshold-solver.md Mutation receipt: risk-based-guardrail-threshold-solver.mutation.md

      Evidence tests: riskBasedGuardrails.evidence.test.ts

      Implemented in: riskBasedGuardrails.ts

      Is the number of: risk-based-guardrail-solved-balance-thresholds, risk-based-guardrail-suggested-adjustment-monthly

      Feeds: display-guardrail-balance-thresholds, spending-guardrail-factor-annual

Taxes

  • Display loss carryforward used annual

    Capital-loss carryforward applied this year against gains and against ordinary income, combined.

    Field: Loss carryforward used Unit: US dollars Basis: nominal dollars Computed by: UI transformation Status: Complete chain

    Appears in: csv (lossCarryforwardUsed)

    • Capital-loss carryforward used in the year Composition record, justified by derivation

      Purpose: How much of the capital-loss carryforward the year used, as the ledger download reports it.

      Statement: projection/yearFigures.ts#capitalLossCarryforwardUsed publishes capitalLossUsedAgainstGains + capitalLossUsedAgainstOrdinary for the year, both from one call of tax/federalTax.ts#applyCapitalLossCarryforward in the ledger (IRC 1211(b), 1212(b)). Units: nominal USD. Rounding: none; the ledger download rounds to whole dollars.

      Formula: used = usedAgainstGains + usedAgainstOrdinary; usedAgainstGains = min(P, G+); usedAgainstOrdinary = min(P - usedAgainstGains + G-, L)

      • P: Opening carryforward pool (unit: usd) (domain: nonnegative)
      • G+ / G-: The year's own realized gain / loss (unit: usd) (domain: nonnegative)
      • L: Annual loss offset limit (unit: usd) (domain: 3,000)

      Timing: annual

      Rounding: none

      Limits:

      • When the year also realizes a net loss of its own, the figure exceeds the fall in the carried balance by that loss, which joined the pool before the $3,000 offset
      • The single-pool, $3,000-for-every-filing-status and 1212(b)(2) limits of the carryforward itself are carried by the carryforward records

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-loss-carryforward-used-annual.md Mutation receipt: display-loss-carryforward-used-annual.mutation.md

      Evidence tests: yearFigures.evidence.test.ts

      Implemented in: yearFigures.ts; federalTax.ts

      Is the number of: display-loss-carryforward-used-annual

    Fed by: Capital-loss carryforward netting (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Display tax free gains room annual

    The largest additional long-term gain realizable this year without raising the year's federal income tax, as the engine's federal calculator computes it with the gain netted through any loss carryforward first.

    Field: Tax-free gains room Unit: US dollars Basis: nominal dollars Computed by: UI transformation Status: Complete chain

    Appears in: results-table (Tax-free gains room column)

    • Tax-free gains room: extra long-term gain at no extra federal tax Model record, justified by derivation

      Purpose: How much more long-term gain the year could realize without raising the year's federal income tax.

      Statement: projection/yearFigures.ts#taxFreeGainsRoom publishes the largest extra long-term capital gain whose realization, netted through the capital-loss carryforward by applyCapitalLossCarryforward and priced by computeFederalTax on the year's published advisory input, does not raise the year's federal income tax (regular tax, AMT and NIIT). The opening pool is rebuilt from the published netting. The search doubles an upper bound from $1 until tax rises by more than $0.000001, then bisects to a $0.01 bracket and returns its lower end. Null when the row carries no advisory federal tax input. premiumTaxCreditYear marks the years with a modeled ACA premium credit, which the room does not price. Units: nominal USD of additional gain. Rounding: the bisection's lower end.

      Formula: R = max{ g >= 0 : F(h) <= F(0) for every h in [0, g] }; F(g) = computeFederalTax({ ...I, capitalGains: N(g), realizedCapitalGainsBeforeCarryforward: G + g }).totalTax; N(g) = applyCapitalLossCarryforward(P, I.ordinaryIncome, G + g, L).netCapitalGain; P = remaining + usedAgainstOrdinary + usedAgainstGains - max(0, -G)

      • I: The year's advisory federal tax input (YearResult.advisoryFederalTax.input) (unit: tax input) (domain: published by every ledger row)
      • G: The year's signed realized gain before netting (unit: usd) (domain: finite)
      • P: Opening carryforward pool, rebuilt from the published netting (unit: usd) (domain: nonnegative up to binary rounding)
      • L: The year's capital loss offset limit (unit: usd) (domain: 3,000)
      • R: Published room (unit: usd of extra long-term gain) (domain: in [R - 0.01, R + 1e-6/m], m the marginal rate just past R)

      Timing: annual, on top of everything the year already realized

      Rounding: bisection to $0.01 with a $0.000001 tax tolerance; the lower end is published

      Limits:

      • Federal income tax only. State income tax on the gain is not included, nor a smaller ACA premium tax credit (the ledger books it as a higher net premium; if the credit was paid in advance, the part lost is paid back as federal tax at filing; the years with a modeled credit are marked), nor a Medicare premium surcharge two years later
      • This year only: gains the carryforward absorbs reduce what carries into later years
      • Everything else in the year is held fixed (withdrawals, the funding solve, state tax); the recomputation starts from the advisory input, whose federal tax can differ from the settled tax of the funding solve
      • Exact when federal tax does not fall as a gain is added, which holds for every input except an itemized charitable deduction bound by a percentage-of-AGI ceiling; there the search returns a gain at which tax has not risen, not necessarily the first point at which it would
      • The engine's carryforward limits apply: a single pool with no short- and long-term split, the $3,000 limit for every filing status, and no 1212(b)(2) preservation of a deduction unused in a zero-income year
      • The opening pool is rebuilt from the published netting; exact in real arithmetic, within a few units in the last binary place otherwise
      • Owner decision R2 (2026-09-25): before this record the page showed the 0% band room plus the remaining carryforward. That overstated the room at no tax whenever the gain would make Social Security taxable, use up the $3,000 loss deduction, shrink the senior deduction, or reach the net investment income tax threshold (the last two are not indexed while the 0% band is). year-result-ltcg-zero-headroom stays published as the 0% band room

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-tax-free-gains-room-annual.md Mutation receipt: display-tax-free-gains-room-annual.mutation.md

      Evidence tests: yearFigures.taxFreeGainsRoom.evidence.test.ts

      Implemented in: yearFigures.ts; federalTax.ts; result.ts

      Is the number of: display-tax-free-gains-room-annual

    Fed by: Capital-loss carryforward netting (composition record, 6 of 6 gates pass); Today's dollars by the ledger's own inflation factor (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Display tax plus penalties annual

    Settled tax plus early-withdrawal and RMD-shortfall penalties for the year, as the ledger surfaces print a single "Tax" figure.

    Field: Tax plus penalties Unit: US dollars Basis: nominal dollars Computed by: UI transformation Status: Complete chain

    Appears in: results-table (Tax column (y.tax + y.penalties)); report (year-ledger block taxAndPenalties and ReportPage year table); chart (Spending by category "Tax + penalties" series)

    • Tax plus penalties for the year Composition record, justified by derivation

      Purpose: The single Tax figure the year-by-year table, the spending chart and the report print.

      Statement: projection/yearFigures.ts#taxAndPenalties publishes YearResult.tax + YearResult.penalties for the year, in that order: the settled federal (regular, AMT and NIIT), state and any composed tax, plus the early-withdrawal penalty and the IRC 4974 excise. AMT is already inside tax. Units: nominal USD of the year. Rounding: none; the pages format to whole dollars.

      Formula: taxAndPenalties = tax + penalties

      • tax: Settled tax of the year (YearResult.tax) (unit: usd per year) (domain: finite)
      • penalties: Early-withdrawal penalty plus IRC 4974 excise (YearResult.penalties) (unit: usd per year) (domain: nonnegative)

      Timing: annual

      Rounding: none

      Limits:

      • None beyond those of tax and penalties, which their own records carry; the sum is written in the order the pages used, so the displayed figure did not change when it moved into the engine

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-tax-plus-penalties-annual.md Mutation receipt: display-tax-plus-penalties-annual.mutation.md

      Evidence tests: yearFigures.evidence.test.ts

      Implemented in: yearFigures.ts; result.ts

      Is the number of: display-tax-plus-penalties-annual

    Fed by: Today's dollars by the ledger's own inflation factor (formula record, 6 of 6 gates pass); Annual penalties: early withdrawal plus the IRC 4974 excise (composition record, 6 of 6 gates pass); Annual composed tax (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Estate heir income tax

    Total income tax heirs are assumed to owe on inherited pre-tax balances: per non-spouse traditional account, the taxable pre-tax base (gross net of allocated nondeductible basis) times the class heir rate, plus non-spouse HSA gross times its rate, net of charity carve-outs.

    Field: Heir income tax on the estate Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: scenarios-page (Estate table "Estimated heir income tax"); mcp (run_projection.summary.endingEstateHeirTax); mcp (compare_scenarios.a.endingEstateHeirTax); mcp (compare_scenarios.b.endingEstateHeirTax)

    • Projection summary estate heir tax Composition record, justified by derivation

      Purpose: Total the per-account heir income tax already resolved in the estate breakdown.

      Statement: projection/compare.ts#summarizeProjection publishes ending estate heir tax as the sum of every EstateAccountBreakdown.heirTax amount after each account's destination, charity carve-out, taxable pre-tax base and heir rate have been applied, in nominal horizon dollars with no stated rounding.

      Formula: endingEstateHeirTax = sum over accounts a of estateBreakdown[a].heirTax

      • estateBreakdown[a].heirTax: Per-account resolved heir income tax (unit: nominal USD) (domain: nonnegative)

      Timing: projection horizon, once per estate breakdown row

      Rounding: none stated

      Limits:

      • It sums the already resolved per-account tax rather than recomputing taxable bases or taxing gross balances a second time, and it must not subtract the charity amount again from the resolved total. The charity fraction reduces the taxable pre-tax base before the heir rate applies (240,000 x 0.9 x 0.22 = 47,520.00 on the worksheet's traditional row), and only a charity destination carries a nonzero fraction. The first derivation taxed the whole base (52,800.00) and was re-derived on that rule; the evidence pins both cases, 56,320.00 with the 10% charity bequest and 61,600.00 with no charity destination, and is green.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-summary-estate-heir-tax.md Mutation receipt: projection-summary-estate-heir-tax.mutation.md

      Evidence tests: compareSummary.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: estate-heir-income-tax

      Feeds: projection-summary-ending-after-tax-estate

    Fed by: Estate breakdown by account (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Estate heir income tax by account

    For each investable account with a positive ending balance, the income tax the plan assumes its heirs pay on it at the horizon: the non-charity slice of the account's taxable pre-tax base at the account class's heir rate, and nothing for a spouse destination. The amounts sum to estate-heir-income-tax.

    Field: Heir income tax by account Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: mcp (run_projection.summary.estateBreakdown[].heirTax); mcp (compare_scenarios.a.estateBreakdown[].heirTax); mcp (compare_scenarios.b.estateBreakdown[].heirTax)

    • Estate breakdown by account Formula record, justified by derivation

      Purpose: How each investable account's ending balance divides between charity, the heirs' assumed income tax and what passes on.

      Statement: projection/compare.ts#summarizeProjection publishes ProjectionSummary.estateBreakdown: one row for each logical balance account of the plan (cash, taxable, equity compensation, traditional, Roth and HSA, one row per account id, in the order the plan first lists them) whose balance G in the last ledger row is positive; an equity-compensation account is reported in the taxable category. The destination is the account's estateBeneficiary destination when set (with its charityPct, 0 when absent); otherwise nonSpouse for an HSA whose beneficiary field says nonSpouse, spouse for any other HSA, nonSpouse for a traditional account and spouse for any other account. The taxable pre-tax base B is, for a traditional account, projection/estateTraditionalBasis.ts#estateTraditionalTaxableBase: G less its basis share, floored at 0, where the share is min(N, T) × (G / T) when T is positive and 0 otherwise, T is the last row's traditional balances summed by category and N the projection's ending nondeductible IRA basis; for an HSA, projection/estateHsaIncome.ts#estateHsaIncomeBase: 0 for a spouse destination and G otherwise; for any other category 0. The heir rate r is the plan's heirTaxByClass rate for a traditional account or an HSA when that class is set, else heirTaxRatePct, divided by 100, and the row carries heirTaxRatePct = 100 × r. With f = min(1, charityPct / 100) for a charity destination and 0 otherwise: charityAmount = G × f; heirTax = 0 for a spouse destination, else B × (1 − f) × r; netToHeirs = G − charityAmount − heirTax. Units: nominal dollars of the projection's end year. Rounding: none. endingEstateHeirTax and endingEstateToCharity are the sums of the rows' heirTax and charityAmount.

      Formula: B = traditional: max(0, G − (T > 0 ? min(N, T) × (G / T) : 0)); hsa: (spouse ? 0 : G); otherwise 0. f = charity ? min(1, p / 100) : 0. charityAmount = G × f. heirTax = spouse ? 0 : B × (1 − f) × r. netToHeirs = G − charityAmount − heirTax

      • G: The account's balance in the last ledger row (grossBalance) (unit: nominal USD) (domain: positive; accounts at or below 0 have no row)
      • T: Traditional balances of the last ledger row, summed by category (unit: nominal USD) (domain: any; no basis is allocated when not positive)
      • N: The household's remaining nondeductible IRA basis at the end of the projection (unit: nominal USD) (domain: nonnegative)
      • p: The account's estate charity share (unit: percent) (domain: 0..100; 0 when not set)
      • r: Heir income-tax rate for the account class: heirTaxByClass for traditional or HSA when set, else heirTaxRatePct, over 100 (unit: fraction) (domain: 0..0.5 for a class rate)
      • f: Charity fraction of the account (unit: fraction) (domain: 0..1)
      • B: Taxable pre-tax base (taxablePretaxBase) (unit: nominal USD) (domain: 0..G)

      Timing: once per projection, on the last ledger row

      Rounding: none

      Limits:

      • The breakdown covers investable accounts only. Property, debts, insurance cash value, TIPS ladder value and a HECM loan reach the after-tax estate through net worth and have no row, so the rows' netToHeirs do not add up to endingAfterTaxEstate. A pension or an annuity has no row whatever its estateBeneficiary says: in the annuity-purchases-estate example the single-premium annuity's charity designation changes no figure here.
      • The basis share is the household's remaining nondeductible IRA basis spread over every traditional account by gross, employer plans and both spouses' accounts included (the registered approximation irc-408-d-2-estate-household-basis-allocation). A spouse destination keeps that base on its row although its heir tax is 0.
      • An HSA left to anyone but the spouse takes its whole ending balance as its taxable base, and heir tax falls on the part not left to charity (B × (1 − charityFraction) × r), without the 223(f)(8)(B)(ii)(I) reduction for the decedent's last medical expenses (irc-223-f-8-B-estate-predeath-expense-reduction). Taxable, equity-compensation, cash and Roth balances pass untaxed, the step-up convention irc-1014-a-1-basis-at-death-fair-market-value records.
      • heirTaxRatePct is the rate as the row applied it, 100 times the plan's percentage over 100, so it can differ from the plan's entry in the last binary digit: a 28% rate is carried as 28.000000000000004.
      • Evidence: summarizeProjection on the annuity-purchases-estate example as built (a spouse traditional IRA, a non-spouse 401(k), cash and Roth defaults, an annuity left to charity, a 28% heir rate) and varied to reach the branches the example does not (household basis of $49,000, class rates of 32% and 24%, the 401(k) 25% to charity, a non-spouse HSA, an equity-compensation account and a Roth IRA at a zero balance); a spouse-designated HSA and an HSA left partly to charity are not exercised, and follow the same formulas. Each case reads a one-row ledger at the example's opening balances: the breakdown reads only the last row, so how a projection reaches those balances does not enter it.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: estate-account-breakdown.md Mutation receipt: estate-account-breakdown.mutation.md

      Evidence tests: compareSummary.breakdowns.evidence.test.ts

      Implemented in: compare.ts; estateTraditionalBasis.ts; estateHsaIncome.ts

      Is the number of: estate-taxable-pretax-base-by-account, estate-heir-income-tax-by-account, estate-to-charity-by-account, estate-net-to-heirs-by-account

      Feeds: estate-heir-income-tax, estate-to-charity

  • Estate taxable pretax base by account

    For each investable account with a positive ending balance, the part of it the plan treats as exposed to heir income tax: a traditional account's gross less its share of the household's remaining nondeductible IRA basis (spread across traditional accounts by gross), an HSA's whole gross unless its destination is the spouse, and 0 for cash, taxable, equity-compensation and Roth accounts.

    Field: Taxable pre-tax estate base by account Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: mcp (run_projection.summary.estateBreakdown[].taxablePretaxBase); mcp (compare_scenarios.a.estateBreakdown[].taxablePretaxBase); mcp (compare_scenarios.b.estateBreakdown[].taxablePretaxBase)

    • Estate breakdown by account Formula record, justified by derivation

      Purpose: How each investable account's ending balance divides between charity, the heirs' assumed income tax and what passes on.

      Statement: projection/compare.ts#summarizeProjection publishes ProjectionSummary.estateBreakdown: one row for each logical balance account of the plan (cash, taxable, equity compensation, traditional, Roth and HSA, one row per account id, in the order the plan first lists them) whose balance G in the last ledger row is positive; an equity-compensation account is reported in the taxable category. The destination is the account's estateBeneficiary destination when set (with its charityPct, 0 when absent); otherwise nonSpouse for an HSA whose beneficiary field says nonSpouse, spouse for any other HSA, nonSpouse for a traditional account and spouse for any other account. The taxable pre-tax base B is, for a traditional account, projection/estateTraditionalBasis.ts#estateTraditionalTaxableBase: G less its basis share, floored at 0, where the share is min(N, T) × (G / T) when T is positive and 0 otherwise, T is the last row's traditional balances summed by category and N the projection's ending nondeductible IRA basis; for an HSA, projection/estateHsaIncome.ts#estateHsaIncomeBase: 0 for a spouse destination and G otherwise; for any other category 0. The heir rate r is the plan's heirTaxByClass rate for a traditional account or an HSA when that class is set, else heirTaxRatePct, divided by 100, and the row carries heirTaxRatePct = 100 × r. With f = min(1, charityPct / 100) for a charity destination and 0 otherwise: charityAmount = G × f; heirTax = 0 for a spouse destination, else B × (1 − f) × r; netToHeirs = G − charityAmount − heirTax. Units: nominal dollars of the projection's end year. Rounding: none. endingEstateHeirTax and endingEstateToCharity are the sums of the rows' heirTax and charityAmount.

      Formula: B = traditional: max(0, G − (T > 0 ? min(N, T) × (G / T) : 0)); hsa: (spouse ? 0 : G); otherwise 0. f = charity ? min(1, p / 100) : 0. charityAmount = G × f. heirTax = spouse ? 0 : B × (1 − f) × r. netToHeirs = G − charityAmount − heirTax

      • G: The account's balance in the last ledger row (grossBalance) (unit: nominal USD) (domain: positive; accounts at or below 0 have no row)
      • T: Traditional balances of the last ledger row, summed by category (unit: nominal USD) (domain: any; no basis is allocated when not positive)
      • N: The household's remaining nondeductible IRA basis at the end of the projection (unit: nominal USD) (domain: nonnegative)
      • p: The account's estate charity share (unit: percent) (domain: 0..100; 0 when not set)
      • r: Heir income-tax rate for the account class: heirTaxByClass for traditional or HSA when set, else heirTaxRatePct, over 100 (unit: fraction) (domain: 0..0.5 for a class rate)
      • f: Charity fraction of the account (unit: fraction) (domain: 0..1)
      • B: Taxable pre-tax base (taxablePretaxBase) (unit: nominal USD) (domain: 0..G)

      Timing: once per projection, on the last ledger row

      Rounding: none

      Limits:

      • The breakdown covers investable accounts only. Property, debts, insurance cash value, TIPS ladder value and a HECM loan reach the after-tax estate through net worth and have no row, so the rows' netToHeirs do not add up to endingAfterTaxEstate. A pension or an annuity has no row whatever its estateBeneficiary says: in the annuity-purchases-estate example the single-premium annuity's charity designation changes no figure here.
      • The basis share is the household's remaining nondeductible IRA basis spread over every traditional account by gross, employer plans and both spouses' accounts included (the registered approximation irc-408-d-2-estate-household-basis-allocation). A spouse destination keeps that base on its row although its heir tax is 0.
      • An HSA left to anyone but the spouse takes its whole ending balance as its taxable base, and heir tax falls on the part not left to charity (B × (1 − charityFraction) × r), without the 223(f)(8)(B)(ii)(I) reduction for the decedent's last medical expenses (irc-223-f-8-B-estate-predeath-expense-reduction). Taxable, equity-compensation, cash and Roth balances pass untaxed, the step-up convention irc-1014-a-1-basis-at-death-fair-market-value records.
      • heirTaxRatePct is the rate as the row applied it, 100 times the plan's percentage over 100, so it can differ from the plan's entry in the last binary digit: a 28% rate is carried as 28.000000000000004.
      • Evidence: summarizeProjection on the annuity-purchases-estate example as built (a spouse traditional IRA, a non-spouse 401(k), cash and Roth defaults, an annuity left to charity, a 28% heir rate) and varied to reach the branches the example does not (household basis of $49,000, class rates of 32% and 24%, the 401(k) 25% to charity, a non-spouse HSA, an equity-compensation account and a Roth IRA at a zero balance); a spouse-designated HSA and an HSA left partly to charity are not exercised, and follow the same formulas. Each case reads a one-row ledger at the example's opening balances: the breakdown reads only the last row, so how a projection reaches those balances does not enter it.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: estate-account-breakdown.md Mutation receipt: estate-account-breakdown.mutation.md

      Evidence tests: compareSummary.breakdowns.evidence.test.ts

      Implemented in: compare.ts; estateTraditionalBasis.ts; estateHsaIncome.ts

      Is the number of: estate-taxable-pretax-base-by-account, estate-heir-income-tax-by-account, estate-to-charity-by-account, estate-net-to-heirs-by-account

      Feeds: estate-heir-income-tax, estate-to-charity

  • Projection summary lifetime taxes and penalties

    Total taxes and withdrawal penalties paid across all projection years.

    Field: lifetimeTaxesAndPenalties Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: results-headline (Lifetime tax + penalties); results-headline (KpiBar "Lifetime tax"); report (headline-results block lifetimeTaxesAndPenalties); scenarios-page (Headline "Lifetime tax plus penalties"); compare-page (Lifetime tax row levels, in today's (start-year) dollars when the two plans end in different years (PlanHeadlineComparison)); solver-page (Evidence lifetime taxes and SWR rule rows); ss-page (Survivor and claim tables lifetime tax); relocation-page (Lifetime tax + penalties column); mcp (run_projection.summary.lifetimeTaxesAndPenalties); mcp (compare_scenarios.a.lifetimeTaxesAndPenalties); mcp (compare_scenarios.b.lifetimeTaxesAndPenalties)

    • Projection summary lifetime taxes and penalties Composition record, justified by derivation

      Purpose: Sum annual tax and annual penalties over the whole projection.

      Statement: projection/compare.ts#summarizeProjection sums nominal YearResult.tax + YearResult.penalties across every projection year to publish lifetime taxes and penalties, with no stated rounding.

      Formula: L = sum over years y of (tax_y + penalties_y)

      • tax_y: Year y published tax (unit: nominal USD) (domain: nonnegative)
      • penalties_y: Year y published penalties, separate from tax (unit: nominal USD) (domain: nonnegative)

      Timing: every projection year

      Rounding: none stated

      Limits:

      • Penalties are a separate ledger field from tax, so summing taxes only, or adding penalties in the final year alone, understates the published figure. The valid domain is a finite projection-year sequence with finite annual dollar fields.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-summary-lifetime-taxes-and-penalties.md Mutation receipt: projection-summary-lifetime-taxes-and-penalties.mutation.md

      Evidence tests: compareSummary.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: projection-summary-lifetime-taxes-and-penalties

      Feeds: swr-rule-result-lifetime-taxes-and-penalties, scenario-comparison-cell

  • Relocation lifetime state local tax

    Sum over projection years of state plus local income tax for a relocation candidate (or the baseline).

    Field: Lifetime state and local income tax Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: relocation-page (Candidate table "State+local tax" column and the drivers panel total); insights (state-relocation evaluate reads stateTaxByYear per candidate)

    • Relocation lifetime state local tax Composition record, justified by derivation

      Purpose: Total one candidate row's recorded annual state and local income tax.

      Statement: projection/relocation.ts#compareRelocationCandidates sums a row's recorded nominal per-year state-plus-local income-tax lines over the complete projection to publish that candidate's lifetime state and local tax, with no stated rounding.

      Formula: lifetimeStateLocalTax = sum over years y of stateTaxByYear[y].tax

      • stateTaxByYear[y].tax: Recorded state plus local income tax for year y (unit: nominal USD) (domain: nonnegative)

      Timing: every recorded projection year of the row

      Rounding: none stated

      Limits:

      • Scope is income tax only: federal tax, property tax, sales tax and cost of living are outside this quantity, the annual lines are nominal and are never discounted, and dropping the split or baseline year understates the total. The worksheet's per-year lines are supplied by a deterministic state-tax calculator injected at the createStateTaxCalculator seam, so the recording, the row assembly and the sum are the real code path while the per-state tax data itself is not exercised here. The published total is the driver sum over every recorded line, and the per-year series is that recording restricted to the run horizon; the two agree when every recorded line lies inside the horizon, which the test’s scenario satisfies and which no known code path violates.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: relocation-lifetime-state-local-tax.md Mutation receipt: relocation-lifetime-state-local-tax.mutation.md

      Evidence tests: relocation.evidence.test.ts

      Implemented in: relocation.ts

      Is the number of: relocation-lifetime-state-local-tax

      Feeds: insight-state-relocation-lifetime-state-tax-savings, scenario-comparison-cell

    Fed by: State income tax figures already enacted for 2027 and later (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Relocation state tax driver savings

    For a candidate state, tax with a feature neutralized minus tax as modeled: Social Security treatment, retirement-income exclusion, public-pension exclusion, capital-gains treatment.

    Field: State tax driver savings Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: relocation-page (Drivers panel rows)

    • Relocation state tax driver savings Composition record, justified by derivation

      Purpose: Attribute lifetime state-tax savings to one neutralized state feature at a time.

      Statement: projection/relocation.ts#computeDrivers publishes each destination-state driver saving in nominal lifetime dollars as the sum of state-plus-local tax with that one feature neutralized minus the sum actually modeled, with public-pension savings fixed at zero when the state uses one shared retirement rule.

      Formula: savings_d = sum over years y of (tax_neutralized(d, y) - tax_actual(y))

      • tax_neutralized(d, y): Year y tax re-priced with feature d neutralized (unit: nominal USD) (domain: nonnegative)
      • tax_actual(y): Year y tax the ledger actually charged (unit: nominal USD) (domain: nonnegative)

      Timing: every recorded tax year, one feature at a time

      Rounding: none stated; capital-gains savings may be negative

      Limits:

      • Changing one feature at a time makes this an attribution, not an additive decomposition: the four savings are not guaranteed to sum to total tax, and capital-gains savings are explicitly allowed to be negative. Reversing the counterfactual subtraction flips every sign. No result is claimed for unmodeled or flat-override rows, whose drivers are null. The pin is a non-exported function, so the evidence asserts it through the exported compareRelocationCandidates, with the worksheet's actual and neutralized year tables supplied by a calculator injected at the createStateTaxCalculator seam; any probe outside those tables is refused rather than guessed.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: relocation-state-tax-driver-savings.md Mutation receipt: relocation-state-tax-driver-savings.mutation.md

      Evidence tests: relocation.evidence.test.ts

      Implemented in: relocation.ts

      Is the number of: relocation-state-tax-driver-savings

  • Scenario lifetime penalties

    Sum of penalties over the projection.

    Field: Lifetime penalties Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: scenarios-page (Headline "Lifetime penalties")

    • Scenario lifetime tax and penalties Composition record, justified by derivation

      Purpose: Total each scenario side's annual tax and annual penalties as two separate channels.

      Statement: scenarios/comparison.ts#compareScenarioPlans separately sums nominal annual YearResult.tax and YearResult.penalties for each scenario side, then places each baseline/proposal total in its comparison cell without mixing the two channels.

      Formula: lifetimeTax_s = sum over years y of tax_{s,y}; lifetimePenalties_s = sum over years y of penalties_{s,y}

      • tax_{s,y}: Side s, year y published tax (unit: nominal USD) (domain: nonnegative)
      • penalties_{s,y}: Side s, year y published penalties (unit: nominal USD) (domain: nonnegative)

      Timing: every projection year of each side

      Rounding: none stated

      Limits:

      • Penalties are excluded from tax by the result-type contract, so folding them into the tax channel changes both totals, and the delta belongs to the separate comparison-cell identity rather than to these side totals. The worksheet's annual tax and penalty rows for both sides are supplied as ProjectionResult literals at the simulate seam; the aggregation and the comparison assembly are the real functions.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: scenario-lifetime-tax-and-penalties.md Mutation receipt: scenario-lifetime-tax-and-penalties.mutation.md

      Evidence tests: comparisonCells.evidence.test.ts

      Implemented in: comparison.ts

      Is the number of: scenario-lifetime-tax, scenario-lifetime-penalties

      Feeds: scenario-comparison-cell

    Fed by: Annual penalties: early withdrawal plus the IRC 4974 excise (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Scenario lifetime tax

    Sum of settled tax over the projection (penalties excluded).

    Field: Lifetime tax Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: scenarios-page (Headline "Lifetime tax")

    • Scenario lifetime tax and penalties Composition record, justified by derivation

      Purpose: Total each scenario side's annual tax and annual penalties as two separate channels.

      Statement: scenarios/comparison.ts#compareScenarioPlans separately sums nominal annual YearResult.tax and YearResult.penalties for each scenario side, then places each baseline/proposal total in its comparison cell without mixing the two channels.

      Formula: lifetimeTax_s = sum over years y of tax_{s,y}; lifetimePenalties_s = sum over years y of penalties_{s,y}

      • tax_{s,y}: Side s, year y published tax (unit: nominal USD) (domain: nonnegative)
      • penalties_{s,y}: Side s, year y published penalties (unit: nominal USD) (domain: nonnegative)

      Timing: every projection year of each side

      Rounding: none stated

      Limits:

      • Penalties are excluded from tax by the result-type contract, so folding them into the tax channel changes both totals, and the delta belongs to the separate comparison-cell identity rather than to these side totals. The worksheet's annual tax and penalty rows for both sides are supplied as ProjectionResult literals at the simulate seam; the aggregation and the comparison assembly are the real functions.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: scenario-lifetime-tax-and-penalties.md Mutation receipt: scenario-lifetime-tax-and-penalties.mutation.md

      Evidence tests: comparisonCells.evidence.test.ts

      Implemented in: comparison.ts

      Is the number of: scenario-lifetime-tax, scenario-lifetime-penalties

      Feeds: scenario-comparison-cell

  • Tax AMT annual

    Alternative minimum tax calculated for a projection year.

    Field: Alternative minimum tax Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (amt); results-table (AMT column when any year has AMT)

    • Federal AMT screen Composition record, justified by derivation

      Purpose: Price the planning-grade alternative minimum tax as tentative minimum tax less regular tax, floored at zero.

      Statement: tax/federalTax.ts#amtExemptionAmount, #amtOrdinaryRateTax, #tentativeMinimumTax and #computeFederalTax compute the 2026 single-filer AMT screen as tentative minimum tax on AMTI after its phased exemption, with preferential-rate awareness, less regular tax but not below zero. With no preferential income the tentative tax is 26% through the 28%-rate threshold and 28% above it. Units: nominal USD. Rounding: none stated.

      Formula: E' = max(0, E - q x max(0, A - P)); X = max(0, A - E'); TMT = 0.26 x min(X, T28) + 0.28 x max(0, X - T28); AMT = max(0, TMT - regularTax)

      • A: Alternative minimum taxable income (taxable income plus modeled add-backs) (unit: usd/year) (domain: nonnegative)
      • E: AMT exemption for the filing status, from the tax parameters (unit: usd/year) (domain: positive)
      • P: Exemption phase-out start, from the tax parameters (unit: usd/year) (domain: positive)
      • q: Exemption phase-out rate, from the tax parameters (unit: fraction) (domain: 0 <= q <= 1)
      • T28: 28%-rate threshold on taxable excess, from the tax parameters (unit: usd/year) (domain: positive)
      • regularTax: Ordinary bracket tax plus stacked preferential tax (unit: usd/year) (domain: nonnegative)

      Timing: one tax year

      Rounding: none stated

      Limits:

      • A planning screen, not a full Form 6251 claim: modeled add-backs are the section 63(c) standard deduction or itemized SALT plus the section 151 senior deduction, and the rest of the Form 6251 adjustments are out of scope
      • The pinned rate and exemption helpers are not exported, so the evidence asserts them through computeFederalTax. The worksheet's AMTI of 200,000 and regular tax of 20,000 are not themselves calculator inputs: the test reaches them from real inputs (130,275 of ordinary income, which after the 16,100 standard deduction leaves 114,175 of taxable income and exactly 20,000 of bracket tax, plus 69,725 of advanced amtPreferenceItems, which with the 16,100 standard-deduction add-back makes AMTI 200,000). Any other construction of the same two figures is a different set of inputs.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: federal-amt-screen.md Mutation receipt: federal-amt-screen.mutation.md

      Evidence tests: federalTax.evidence.test.ts

      Implemented in: federalTax.ts

      Is the number of: tax-amt-annual

      Feeds: tax-total-annual

  • Tax loss carryforward remaining annual

    Capital-loss carryforward still available after the projection year tax calculation.

    Field: capitalLossCarryforwardRemaining Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (lossCarryforwardRemaining); results-table (Loss carryf'd column and carryforward callout); report (ReportPage year table carryforward column)

    • Capital-loss carryforward netting Composition record, justified by derivation

      Purpose: Spend a capital-loss pool against current gains first, then report the annual ordinary-offset slice on the capital-gain line.

      Statement: tax/federalTax.ts#applyCapitalLossCarryforward applies an annual capital-loss pool first against current gains, then reports up to the annual ordinary-offset limit as a negative capital-gain-line amount without changing ordinary income, and carries the unused pool forward. The offset is not capped by ordinary income. Units: nominal USD. Rounding: none.

      Formula: usedAgainstGains = min(C, max(G, 0)); availableLoss = C - usedAgainstGains + max(-G, 0); usedAgainstOrdinary = min(availableLoss, L); netCapitalGain = max(G, 0) - usedAgainstGains - usedAgainstOrdinary; remaining = availableLoss - usedAgainstOrdinary

      • C: Opening carryforward pool (unit: usd) (domain: nonnegative after the max(0, .) floor)
      • G: Signed current capital result; a loss is negative (unit: usd) (domain: any finite number)
      • L: Annual ordinary-offset limit, year2026.federalTax.capitalLossOrdinaryOffsetLimit (unit: usd/year) (domain: nonnegative after the max(0, .) floor)

      Timing: one tax year; the projection threads the depleting pool year to year

      Rounding: none

      Limits:

      • Ordinary income is never reduced directly: the deductible loss rides the capital-gain line, so subtracting the offset from ordinary income instead publishes a different AGI cascade
      • One pool, no short-term / long-term split, and the section 1212 preservation of a deduction wasted in a year with no taxable income to absorb it is not modeled; both are stated planning simplifications on the function

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: capital-loss-carryforward-netting.md Mutation receipt: capital-loss-carryforward-netting.mutation.md

      Evidence tests: federalTax.evidence.test.ts

      Implemented in: federalTax.ts

      Is the number of: tax-loss-carryforward-remaining-annual, tax-loss-carryforward-used-against-gains-annual, tax-loss-carryforward-used-against-ordinary-annual

      Feeds: tax-total-annual, display-loss-carryforward-used-annual, display-tax-free-gains-room-annual

  • Tax loss carryforward used against gains annual

    Capital-loss carryforward applied against gains and ordinary income in the projection year.

    Field: capitalLossUsedAgainstGains Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: results-table (Capital-loss carryforward callout "offset $X of realized gains")

    • Capital-loss carryforward netting Composition record, justified by derivation

      Purpose: Spend a capital-loss pool against current gains first, then report the annual ordinary-offset slice on the capital-gain line.

      Statement: tax/federalTax.ts#applyCapitalLossCarryforward applies an annual capital-loss pool first against current gains, then reports up to the annual ordinary-offset limit as a negative capital-gain-line amount without changing ordinary income, and carries the unused pool forward. The offset is not capped by ordinary income. Units: nominal USD. Rounding: none.

      Formula: usedAgainstGains = min(C, max(G, 0)); availableLoss = C - usedAgainstGains + max(-G, 0); usedAgainstOrdinary = min(availableLoss, L); netCapitalGain = max(G, 0) - usedAgainstGains - usedAgainstOrdinary; remaining = availableLoss - usedAgainstOrdinary

      • C: Opening carryforward pool (unit: usd) (domain: nonnegative after the max(0, .) floor)
      • G: Signed current capital result; a loss is negative (unit: usd) (domain: any finite number)
      • L: Annual ordinary-offset limit, year2026.federalTax.capitalLossOrdinaryOffsetLimit (unit: usd/year) (domain: nonnegative after the max(0, .) floor)

      Timing: one tax year; the projection threads the depleting pool year to year

      Rounding: none

      Limits:

      • Ordinary income is never reduced directly: the deductible loss rides the capital-gain line, so subtracting the offset from ordinary income instead publishes a different AGI cascade
      • One pool, no short-term / long-term split, and the section 1212 preservation of a deduction wasted in a year with no taxable income to absorb it is not modeled; both are stated planning simplifications on the function

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: capital-loss-carryforward-netting.md Mutation receipt: capital-loss-carryforward-netting.mutation.md

      Evidence tests: federalTax.evidence.test.ts

      Implemented in: federalTax.ts

      Is the number of: tax-loss-carryforward-remaining-annual, tax-loss-carryforward-used-against-gains-annual, tax-loss-carryforward-used-against-ordinary-annual

      Feeds: tax-total-annual, display-loss-carryforward-used-annual, display-tax-free-gains-room-annual

  • Tax loss carryforward used against ordinary annual

    Capital-loss carryforward applied against ordinary income this year, up to the annual limit.

    Field: Loss carryforward used against ordinary income Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: results-table (Capital-loss carryforward callout "and $Y of ordinary income")

    • Capital-loss carryforward netting Composition record, justified by derivation

      Purpose: Spend a capital-loss pool against current gains first, then report the annual ordinary-offset slice on the capital-gain line.

      Statement: tax/federalTax.ts#applyCapitalLossCarryforward applies an annual capital-loss pool first against current gains, then reports up to the annual ordinary-offset limit as a negative capital-gain-line amount without changing ordinary income, and carries the unused pool forward. The offset is not capped by ordinary income. Units: nominal USD. Rounding: none.

      Formula: usedAgainstGains = min(C, max(G, 0)); availableLoss = C - usedAgainstGains + max(-G, 0); usedAgainstOrdinary = min(availableLoss, L); netCapitalGain = max(G, 0) - usedAgainstGains - usedAgainstOrdinary; remaining = availableLoss - usedAgainstOrdinary

      • C: Opening carryforward pool (unit: usd) (domain: nonnegative after the max(0, .) floor)
      • G: Signed current capital result; a loss is negative (unit: usd) (domain: any finite number)
      • L: Annual ordinary-offset limit, year2026.federalTax.capitalLossOrdinaryOffsetLimit (unit: usd/year) (domain: nonnegative after the max(0, .) floor)

      Timing: one tax year; the projection threads the depleting pool year to year

      Rounding: none

      Limits:

      • Ordinary income is never reduced directly: the deductible loss rides the capital-gain line, so subtracting the offset from ordinary income instead publishes a different AGI cascade
      • One pool, no short-term / long-term split, and the section 1212 preservation of a deduction wasted in a year with no taxable income to absorb it is not modeled; both are stated planning simplifications on the function

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: capital-loss-carryforward-netting.md Mutation receipt: capital-loss-carryforward-netting.mutation.md

      Evidence tests: federalTax.evidence.test.ts

      Implemented in: federalTax.ts

      Is the number of: tax-loss-carryforward-remaining-annual, tax-loss-carryforward-used-against-gains-annual, tax-loss-carryforward-used-against-ordinary-annual

      Feeds: tax-total-annual, display-loss-carryforward-used-annual, display-tax-free-gains-room-annual

  • Tax penalties annual

    Early-withdrawal penalties plus the IRC §4974 RMD-shortfall excise for the year; never part of tax, AGI or MAGI.

    Field: Penalties and excise tax Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (penalties); scenarios-page (Annual "Penalties" and lifetime "Lifetime penalties"); cash-flow-drilldown (earlyWithdrawalPenalty use line); mcp (run_projection.years[].penalties)

    • Annual penalties: early withdrawal plus the IRC 4974 excise Composition record, justified by derivation

      Purpose: The two penalty channels a year composes, and why neither is part of tax.

      Statement: projection/internal/types/result.ts#YearResult.penalties is composed by projection/internal/annualFundingCandidateEvaluation.ts#annualFundingCandidateEvaluation as projection/internal/annualFundingWithdrawalEffects.ts#annualFundingWithdrawalEffects reporting penaltyExcludingRmdShortfallExcise plus the IRC 4974 excise from rmd/rmdShortfallExcise.ts#computeRmdShortfallExcise. The early-withdrawal rate is 10 percent on pre-age-59-and-a-half taxable traditional withdrawals, inherited distributions are never subject to it, and the excise prices max(0, required - distributed by deadline) at the stated rate, whose post-SECURE-2 default is 25 percent, once for each obligation. In the calendar year a surviving spouse's election to treat an inherited IRA as her own takes effect, after the year of the owner's death, that IRA owes only its owner RMD (Treas. Reg. 1.408-8(c)(3)) and leaves the beneficiary's same-decedent group ((e)(2)(i)), so projection/internal/annualInheritedIraDistributions.ts#annualInheritedIraDistributions puts it in no beneficiary obligation. Penalties stay outside tax, AGI and MAGI. Units: nominal USD per year. Rounding: none.

      Formula: penalties = penaltyExcludingRmdShortfallExcise + rmdShortfallExciseTax; early = 0.10 x penalizable traditional; excise = rate x max(0, required - distributed)

      • penalizable traditional: Taxable pre-59.5 traditional withdrawal (unit: usd) (domain: nonnegative; 0 for inherited accounts)
      • required: Required minimum for the obligation (unit: usd) (domain: nonnegative)
      • distributed: Distributed by the statutory deadline (unit: usd) (domain: nonnegative)
      • rate: IRC 4974 rate (unit: 1) (domain: 0.25 default from 2023)

      Timing: once per accepted funding evaluation in the projection year

      Rounding: none

      Limits:

      • Asserted twice. At the two component producers: annualFundingWithdrawalEffects reports 2,000 of penaltyExcludingRmdShortfallExcise on the worksheet's 20,000 pre-59.5 taxable traditional withdrawal, and computeRmdShortfallExcise prices the worksheet's 12,000 required against 4,000 distributed as an 8,000 shortfall and a 2,000 excise at the default 25-percent rate with no relief elected. And as the published penalties of a real simulatePlan 2026 row that carries both channels at once: a 50-year-old whose only portfolio is a traditional IRA and whose 16,000 of required lifestyle plus the 2,000 excise drive a need-based withdrawal of exactly 20,000 under a zero-rate test calculator, alongside an inherited Roth account whose completed five-year deadline observation (opening benefit 12,000, 4,000 distributed by the 2026 deadline) prices the excise without replaying any cash
      • Plan assumptions beyond the worksheet's inputs for that ledger year: filing single in KY at a zero state rate with a zero-rate test tax calculator, so tax is 0 and the whole need is spending plus penalties; the test asserts the 10-percent rate relation W = S + excise + 0.10 W closes at exactly 20,000
      • The worksheet's fourth wrong reading is asserted as a rule: the same withdrawal-effects call on an inherited traditional account reports a zero penalty
      • Restated 2026-09-30 and reviewed by Grok the same day: in an election year the elected IRA enters no beneficiary obligation. Asserted in simulate.spousalElectionYearOwnerRmd.test.ts on a 75-year-old spouse whose mid-2026 election takes effect: the owner RMD of 4,065.04 (100,000 / 24.6) is paid by 1,000 before the election and 3,065.04 after and is the one obligation, and the beneficiary figure of 6,689.19 (99,000 / 14.8) stays on the account's evidence as the trigger only, so the excise is 0 and not the 1,672.30 a second, unpaid obligation would charge

      Provenance: derived by codex, implemented by claude.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: tax-penalties-annual.md Mutation receipt: tax-penalties-annual.mutation.md

      Evidence tests: annualFundingCandidateEvaluation.evidence.test.ts

      Implemented in: result.ts; annualFundingCandidateEvaluation.ts; annualFundingWithdrawalEffects.ts; rmdShortfallExcise.ts; annualInheritedIraDistributions.ts

      Is the number of: tax-penalties-annual

      Feeds: portfolio-need-annual, display-total-spending-annual, display-tax-plus-penalties-annual, scenario-lifetime-penalties

    Fed by: Civil date parse format and month shift (formula record, 6 of 6 gates pass); Exact cent pro rata half up (formula record, 6 of 6 gates pass); Annual inherited-account required amount (formula record, 6 of 6 gates pass); RMD shortfall excise at the default rate (formula record, 6 of 6 gates pass); Usd cent arithmetic (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Tax realized gains annual

    Taxable-account capital gains realized during the projection year.

    Field: realizedGains Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (realizedGains)

    • Annual realized gains, signed and composed Composition record, justified by derivation

      Purpose: The year's net realized capital result across its three signed sources.

      Statement: projection/internal/types/result.ts#YearResult.realizedGains, assembled by projection/internal/annualYearResultAssembly.ts#annualYearResultAssembly, is the signed sum, in stated order, of gain embedded in taxable withdrawals, gain from rebalancing sales, and gain from named retirement-action executions. Each component is signed, so a loss from one source offsets gains from the others rather than being floored separately. Units: nominal USD per year. Rounding: none.

      Formula: realizedGains = withdrawal + rebalance + retirementAction

      • withdrawal: Gain embedded in taxable-account withdrawals (unit: usd) (domain: signed)
      • rebalance: Gain realized by rebalancing sales (unit: usd) (domain: signed)
      • retirementAction: Gain or loss from named retirement-action executions (unit: usd) (domain: signed)

      Timing: once per projection year, at year-result assembly

      Rounding: none

      Limits:

      • Asserted at the exported assembly boundary with the worksheet's three signed components verbatim and every other assembly channel at zero, so nothing unstated can reach the published field. Plan assumptions beyond the worksheet's inputs: an empty balance-sheet snapshot and a zero ladder value, neither of which this field reads
      • The record covers the composition boundary only; each component's own arithmetic is evidenced by the withdrawal, rebalancing and retirement-action records

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: tax-realized-gains-annual.md Mutation receipt: tax-realized-gains-annual.mutation.md

      Evidence tests: annualYearResultAssembly.evidence.test.ts

      Implemented in: result.ts; annualYearResultAssembly.ts

      Is the number of: tax-realized-gains-annual

      Feeds: tax-total-annual

    Fed by: Rebalance turnover: the fraction sold to reach the target weights (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Tax total annual

    All tax charged for a projection year, excluding penalties.

    Field: Total tax Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (tax); csv (tax); report (yearLedger); results-table (tax); survivor-page (Tax around the transition cell "a → b" (death year and first survivor year)); scenarios-page (Annual "Tax" and lifetime "Lifetime tax"); cash-flow-drilldown (settledTax use line); mcp (run_projection.years[].tax)

    • Annual composed tax Composition record, justified by derivation

      Purpose: What the year's published tax figure is composed of, and what it excludes.

      Statement: projection/internal/types/result.ts#YearResult.tax is the amount produced by the composed calculator built by tax/federalTax.ts#combineTaxCalculators: the federal total of regular income tax plus AMT plus NIIT, plus the state calculator amount, plus any further composed calculator amounts. Penalties are excluded from it, from AGI and from MAGI. Units: nominal USD per year. Rounding: none; the composition is an ordered fold.

      Formula: tax = federalTotal + stateAmount + sum of further calculator amounts

      • federalTotal: Regular income tax + AMT + NIIT (unit: usd/year) (domain: nonnegative)
      • stateAmount: State calculator amount (unit: usd/year) (domain: nonnegative)
      • penalties: Early-withdrawal and IRC 4974 amounts (unit: usd/year) (domain: never a member of tax)

      Timing: once per accepted tax evaluation in the projection year

      Rounding: none

      Limits:

      • The worksheet treats the federal and state amounts as outputs independently evidenced by their own worksheets and checks only the annual composition boundary, so the test composes two calculators that report the worksheet's stated 12,000 federal total and 3,000 state amount and asserts the composed 15,000 through both compute and computeResult. Those two calculators are test doubles standing in for the evidenced federal and state records; this record makes no claim about federal or state tax arithmetic
      • The 500 of penalties is asserted as excluded by composing the same calculators and showing the amount is unchanged: penalties never enter the calculator chain at all

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: tax-total-annual.md Mutation receipt: tax-total-annual.mutation.md

      Evidence tests: federalTax.evidence.test.ts

      Implemented in: result.ts; federalTax.ts

      Is the number of: tax-total-annual

      Feeds: portfolio-need-annual, surplus-invested-annual, display-tax-plus-penalties-annual, display-total-spending-annual

    Fed by: Capital-loss carryforward netting (composition record, 6 of 6 gates pass); Cash-flow tax-character amount (composition record, 6 of 6 gates pass); Conversion tax funding gcd reduction (formula record, 6 of 6 gates pass); Exact cent rational half up (formula record, 6 of 6 gates pass); Federal AMT screen (composition record, 6 of 6 gates pass); Federal long-term capital gain stacking (formula record, 6 of 6 gates pass); Federal ordinary bracket tax (formula record, 6 of 6 gates pass); Federal standard deduction with the age-65 addition (composition record, 6 of 6 gates pass); Federal taxable Social Security tiers (formula record, 6 of 6 gates pass); Annual ordinary dividends distributed by a taxable account (formula record, 6 of 6 gates pass); Annual qualified dividends distributed by a taxable account (formula record, 6 of 6 gates pass); Annual taxable interest distributed by a taxable account (formula record, 6 of 6 gates pass); Parameter provenance catalog (data record, 6 of 6 gates pass); QCD income offset and qualified slice (composition record, 6 of 6 gates pass); QCD per-donor limit and age-70.5 annual proxy (data record, 6 of 6 gates pass); State income tax figures already enacted for 2027 and later (data record, 6 of 6 gates pass); Annual realized gains, signed and composed (composition record, 6 of 6 gates pass); Annual tax-exempt interest, and the ACA-year maximum (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • MCP batch cumulative tax objective

    Sum of each evaluated candidate projection's taxes and penalties, published as batch_evaluate's cumulative_tax objective.

    Field: Batch cumulative tax objective Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: mcp (batch_evaluate.results[].objective)

    • MCP batch cumulative tax objective Composition record, justified by derivation

      Purpose: The figure RetireGolden-MCP's batch_evaluate ranks candidates on under objective cumulative_tax: each candidate plan's lifetime tax plus penalties.

      Statement: For objective=cumulative_tax, RetireGolden-MCP's batch_evaluate reports, for each candidate plan it projects, projection/compare.ts#summarizeProjection's lifetimeTaxesAndPenalties: the sum over every projection year, in ledger order from 0, of that year's YearResult.tax plus YearResult.penalties, each in that year's nominal dollars, undiscounted. tax already holds the federal AMT, penalties (early-withdrawal penalties and the IRC 4974 excise) are not in tax, and Medicare premiums and their IRMAA surcharges are in neither. The engine publishes the figure and the adapter selects it, since RetireGolden-MCP 0.11.0 (#81) and so at b2c7f717 (0.12.0, the census's MCP pin until 2026-10-11); through mcp-v0.10.0 (3197d359) the adapter reduced the same two fields itself. On the worksheet's four-year ledger the objective is 67,191.52. Units: nominal USD. Rounding: none.

      Formula: objective = Σ_y (tax_y + penalties_y), added in ledger order from 0

      • tax_y: Year y published tax, AMT included (unit: nominal USD of year y) (domain: finite, nonnegative)
      • penalties_y: Year y early-withdrawal penalties and IRC 4974 excise, not in tax (unit: nominal USD of year y) (domain: finite, nonnegative)

      Timing: once per evaluated candidate, over every projection year

      Rounding: none

      Limits:

      • Nominal and undiscounted, as the name cumulative says: a tax dollar paid in the last year counts the same as one paid in the first, so candidates that shift tax in time are ranked on nominal totals, not present values.
      • The mcp-v0.10.0 adapter (3197d359) added each year's tax and then its penalties to the running total; the engine adds each year's tax plus penalties as one term. The two orders can differ in the last binary digit, never by a cent on ledger-sized figures; on the worksheet's ledger they give the same double, which the evidence asserts, and RetireGolden-MCP #81's parity test holds them within a cent on its plans.
      • The engine function is the figure; which objective name selects it is RetireGolden-MCP code, covered by that repository's wiring test, not by this record.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: mcp-batch-cumulative-tax-objective.md Mutation receipt: mcp-batch-cumulative-tax-objective.mutation.md

      Evidence tests: compareSummary.mcpObjectives.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: mcp-batch-cumulative-tax-objective

  • Cash flow tax character amount

    The dollar amount of one tax characterization attached to a cash-flow line or standing alone (ordinary income, capital gain or loss, QCD exclusion, phantom OID and the other closed kinds); metadata that is never summed into the money identities.

    Field: Cash-flow line tax character amount Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: cash-flow-drilldown (YearCashFlowDialog DetailTable 'Tax character' column (kind and amount per line) and the taxCharacter view rows); cash-flow-drilldown (detailCsv.ts taxCharacter column (kind:amount pairs))

    • Cash-flow tax-character amount Composition record, justified by derivation

      Purpose: Why a tax annotation on a cash line never becomes a second cash source or use.

      Statement: projection/internal/types/cashFlow.ts#YearCashFlowTaxCharacter.amountPlanDollars, whether attached to a source line, a transfer line or standalone metadata, is a nominal tax-only annotation that is excluded from every cash conservation identity and from every transfer debit and credit total. A capitalGain annotation may be negative for a realized loss; other character kinds are nonnegative. Units: nominal Plan USD. Rounding: none.

      Formula: sourceTotal counts physical amounts only; attached taxCharacter contributes 0 to every money total

      • amountPlanDollars: Characterized amount on the annotation (unit: usd) (domain: signed for capitalGain)
      • physical amount: The line the annotation is attached to (unit: usd) (domain: nonnegative)

      Timing: once per captured projection year

      Rounding: none

      Limits:

      • Asserted at the production reconciler with the worksheet's 100,000 physical taxable-account withdrawal carrying a 30,000 capital-gain character and 20,000 of other physical sources, so the published cash source total stays 120,000. Plan assumptions beyond the worksheet's inputs: the account identity the line ids carry, and a matching set of funded uses so the year's cash identity still balances
      • The worksheet's third wrong reading is asserted as a rule rather than a number: the same reconciliation is run with a negative capital-gain character to show a realized loss is accepted and still contributes nothing to the cash totals

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: cash-flow-tax-character-amount.md Mutation receipt: cash-flow-tax-character-amount.mutation.md

      Evidence tests: annualCashFlowReconciliation.evidence.test.ts

      Implemented in: cashFlow.ts; annualCashFlowReconciliation.ts

      Is the number of: cash-flow-tax-character-amount

      Feeds: tax-total-annual

Social Security

  • Claim age co optimization estate gain

    After-tax estate gained by the winning joint claim-age combination over the best result at the current claim ages, in nominal dollars of the plan's last year: 0 when no claim change won, more than $1,000 when one did.

    Field: Claim-age co-optimization estate gain Unit: US dollars Basis: nominal dollars Computed by: UI-native Status: Complete chain

    Appears in: optimize-page ("$X more projected after-tax estate, in YEAR dollars, than the best result at your current claim ages"); report (Downloadable report modeled findings "Claim-change estate gain (YEAR dollars)")

    • Claim-age co-optimization estate gain Composition record, justified by derivation

      Purpose: How much more projected after-tax estate the winning claim-age change leaves than the best result at the current claim ages.

      Statement: projection/optimizePlan.ts#optimizePlanCoOptimizingClaimAge publishes ClaimAgeCoOptimization.claimChangeEstateGain = compareScalars(currentClaimExactEstate, jointExactEstate).delta (settled decision R17: one value, which the Optimize page's claim card and the downloadable report both read), and estateYear, the plan's last projection year, whose nominal dollars all three estate figures are in. A claim candidate is kept only when its estate exceeds the current-claim estate by more than DEFAULT_CLAIM_SWITCH_MARGIN_DOLLARS, which is 1000 dollars, so the gain is 0 when no claim change won (the two estates are then one number) and more than 1000 dollars when one did; it is never negative. Estates of $1,000,000 at the current claim ages and $1,118,000 jointly give $118,000. Units: nominal USD of estateYear. Rounding: none.

      Formula: gain = J − C, where J = C unless a claim candidate's estate exceeds C + 1000

      • J: After-tax estate of the best claim and schedule pair (jointExactEstate) (unit: nominal USD of estateYear) (domain: finite)
      • C: After-tax estate of the optimum at the current claim ages (currentClaimExactEstate) (unit: nominal USD of estateYear) (domain: finite)

      Timing: once per co-optimized run

      Rounding: none; the page and the report print whole dollars

      Limits:

      • The gain is in nominal dollars of the plan's last year, like both estates beside it: for a plan ending in 2091 at 2.5 percent inflation from 2026, $193,083.87 is $38,787.76 in 2026 dollars. The card and the report row name the year.
      • The gain compares optima on after-tax estate whatever objective ranked the conversion schedules; the card says after-tax estate.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: claim-age-co-optimization-estate-gain.md Mutation receipt: claim-age-co-optimization-estate-gain.mutation.md

      Evidence tests: optimizePlan.claimGain.evidence.test.ts

      Implemented in: optimizePlan.ts; scalarComparison.ts

      Is the number of: claim-age-co-optimization-estate-gain

  • Social security benefit annual

    Social Security benefit income paid in a projection year.

    Field: Social Security benefit Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (socialSecurity); csv (socialSecurity); survivor-page (Household Social Security column: incomes.socialSecurity selected from the death year and the first survivor year); results-table (Income by source chart (socialSecurity series)); scenarios-page (Lifetime income "Social Security"); cash-flow-drilldown (socialSecurity source line)

    • Annual household Social Security benefit Composition record, justified by derivation

      Purpose: The Social Security cash the household is paid in one projection year, after the earnings test.

      Statement: YearResult.incomes.socialSecurity is the sum over living people of that person's benefit for the year, priced by socialSecurity/householdYear.ts#socialSecurityYear, which projection/internal/annualSocialSecurity.ts#annualSocialSecurity calls and the Social Security analysis models share. The year is composed month by month where a month can differ from the one before: a stream's first paying month (12 - claim months in the claim year, all 12 after), the months both spouses are paid, and each full-retirement-age and survivor-full-retirement-age month. In each month each own retirement stream is PIA x the claim-age factor; a divorced-spouse, current-spouse spousal (the claimant's own monthly PLUS the reduced excess of half the higher PIA over the claimant's own PIA, the dual-entitlement-composition record; for a current spouse half the higher PIA is first held to the family maximum less that PIA) or survivor candidate REPLACES the running amount when it is larger, rather than adding to it; the month's amounts are times the COLA factor and the haircut. A year with no such boundary is priced as one product per stream, monthly x payable months x COLA x haircut. The earnings test then charges each working person's excess earnings month by month from January, only to months the person is paid and that fall before the person's full-retirement-age month: half the wages above the lower exempt amount before the calendar year of that month, and in it a third of the wages of the months before that month above the higher amount, reduced to the next lower dollar. A worker's excess is charged first against the family benefit on his record, his benefits and the spouse benefit on his record, the rest of a partial month shared two to one; each other person's excess is then charged against what is left of that person's benefits. Each month of a benefit's reduction period with a deduction is a crediting month, and it raises that benefit from its full-retirement-age month (the survivor full-retirement-age month for a widow(er) benefit). Units: nominal dollars per year. Rounding: the excess earnings are reduced to the dollar; benefits and the partial-month shares are not rounded.

      Formula: benefit = sum over living people and months of max(own, marital candidate) x cola x haircut, less the months' deductions; excess = floor((wages - lower) / 2) before the FRA year, floor((wages x b / 12 - higher) / 3) in it, charged month by month from January to months before the FRA month

      • PIA: Primary insurance amount at FRA (unit: usd/month) (domain: nonnegative)
      • claim factor: Retirement factor for the claim age (early reduction or delayed credits), from the FRA month with the crediting months added to the claim age (unit: 1) (domain: 0.70 to 1.32)
      • payable months: 0, 12 minus the claim months, or 12: the last months of the year (unit: months) (domain: 0..12)
      • cola, haircut: COLA factor from the start year and 1 - cutPct/100 from ssHaircut.fromYear (unit: 1) (domain: positive)
      • lower, higher: Earnings-test exempt amounts from the published parameters, below-FRA and FRA-year, scaled for the year (unit: usd/year) (domain: positive)
      • b: Months of the FRA year before the FRA month (unit: months) (domain: 0..11)

      Timing: monthly within the year where a month can differ; the earnings test after the marital comparison

      Rounding: the excess earnings are reduced to the next lower dollar; benefits are not rounded

      Limits:

      • The own-claim-year case is constructible exactly as the worksheet now states it: a 1960 birth has FRA 67y0m, so a 64y3m claim is 33 months early and the factor is 1 - 33 x (5/9 of 1%) = 49/60, while the claim-age month of 3 pays 12 - 3 = 9 months in the claim year. The first derivation instead paired a 0.8 factor with those nine months (0.8 is exactly 36 months before FRA, whose claim-age month is 0 and which therefore pays all 12), and that was corrected on 2026-09-18; the incompatible pair is now the worksheet's first wrong reading, asserted as not matching
      • Beyond the worksheet's inputs the evidence plans fix, for the claim-year and later-year cases: a 1960-born single filer claiming at 64y3m on one plan whose projection starts in 2024, the year that birth attains 64, so the claim year is the first projection year and its COLA factor is exactly 1; zero inflation and zero return; a fixed 6%/year ssCola so the second projection year's factor is exactly 1.06; ssHaircut cutPct 5 from the start year; and a cash account to fund the year
      • The two-person case asserts the REPLACEMENT rule, so both people claim at their own FRA (claim and spousal factors 1) in the projection's first year, where the COLA factor is 1 and no haircut applies; the family maximum is left non-binding by the PIAs chosen
      • The earnings-test case is a separate 1962-born plan claiming at 64y0m, where the 0.8 factor and 12 payable months ARE the compatible pair, and is asserted in 2026 so the published parameters’ $24,480 below-FRA limit is unindexed; the wage row that drives it is ordinary income and is taxed, which does not enter this family
      • The family-charge cases (E5 and E7b) are a couple born in January 1964, both claiming at 62 in 2026 with no inflation, so every month of 2026 is in both reduction periods and the family maximum does not bind
      • The published field is the PAID benefit; the amount withheld is a separate field (ssEarningsTestWithheld), and the months withheld raise the benefit from its full-retirement-age month rather than being lost
      • Rounding: the excess earnings are reduced to the next lower dollar (42 U.S.C. 403(f)(3)); benefits and the partial-month shares are not rounded, where 20 CFR 404.304(f) reduces each monthly benefit, after all deductions, to the next lower multiple of $1, so a month can be up to a dollar above what SSA pays
      • Wages are the plan's wage rows, whole calendar years spread evenly over their months: there is no grace year and no non-service month (cfr-20-404-435-grace-year-monthly-earnings-test), only wage streams are earnings (usc-42-403-f-5-earnings-counted), and after the latest published year the exempt amounts grow at the plan's inflation (usc-42-403-f-8-earnings-test-exempt-amounts)
      • A claim at a whole age pays the whole calendar year it is attained (social-security-payable-months); the months before the claim month are paid and can be charged, but are not in the reduction period and are not credited
      • A worker's excess is charged against a household member's spouse benefit on his record; a former spouse's record carries no plan earnings, and a disability beneficiary is tested against substantial gainful activity instead of the earnings test
      • Restated 2026-09-27 (decision D-SS-LAW-2): the current-spouse candidate adds to the claimant’s own monthly benefit, held at the own PIA, the excess of half the higher PIA over the claimant’s own PIA reduced by the spousal factor (dual-entitlement-composition). Restated 2026-09-29 (decision D-SS-ANALYSIS-EARNINGS-TEST): the year is composed month by month where a month can differ, and the earnings test is charged month by month with the family charge, the FRA-year months, the dollar floor, reduction-period crediting and the adjustment from the FRA month, where it was one annual amount with rounded months and the adjustment from January. Both restatements were reviewed by Grok on 2026-09-29 (DOCS/calculations/reviews/REVIEW-2026-09-29-grok-3-after-769.md)
      • No discrepancy remains in the two-person case: the year function builds the current-spouse candidate as the claimant's own monthly benefit PLUS the capped spousal excess ($300 + $700 = $1,000) and replaces the running amount with that total, which is what a dually-entitled spouse is actually paid, so the household is $36,000 and the worksheet expects $36,000. The first derivation read the ledger comment's "replaces the running amount" as replacing the own benefit with the excess alone and expected $32,400; it was corrected on 2026-09-18, and $32,400 is now the worksheet's second wrong reading, asserted as not matching

      Provenance: derived by codex, implemented by claude.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: social-security-benefit-annual.md Mutation receipt: social-security-benefit-annual.mutation.md

      Evidence tests: annualSocialSecurity.benefitAnnual.evidence.test.ts

      Implemented in: annualSocialSecurity.ts; householdYear.ts; earningsTest.ts

      Is the number of: social-security-benefit-annual

    Fed by: Covered earnings counted up to each year's contribution and benefit base, from 1951 (composition record, 6 of 6 gates pass); Delayed retirement credit factor (formula record, 6 of 6 gates pass); Own benefit plus the separately reduced spouse excess (composition record, 6 of 6 gates pass); Early claim reduction factor (formula record, 6 of 6 gates pass); Retirement/survivor family maximum from PIA (formula record, 6 of 6 gates pass); Annual wage income for one stream (formula record, 6 of 6 gates pass); Normal retirement age endpoint (data record, 6 of 6 gates pass); An earnings-history PIA raised by the cost-of-living increases since eligibility (formula record, 6 of 6 gates pass); PIA from AIME across the bend points (formula record, 6 of 6 gates pass); Social Security COLA factor (model record, 6 of 6 gates pass); Social Security payable months (formula record, 6 of 6 gates pass); The PIA a Social Security stream is paid from (composition record, 6 of 6 gates pass); SSDI months paid in a year, from the onset month (formula record, 6 of 6 gates pass); Survivor benefit under RIB-LIM (composition record, 6 of 6 gates pass); Widow(er) reduction from the first month of widow(er) entitlement (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Social security break even

    Age at which the cumulative own retirement benefit of a later claim age overtakes an earlier one's, with the cumulative benefits by age in the plan's dollars for each year.

    Field: Claiming break-even age Unit: age in years Basis: no dollar basis Computed by: UI-native Status: Complete chain

    Appears in: ss-page (Break-even tab callout "waiting until L pulls ahead around age X" and the chart's cumulative benefit tooltips)

    • Claiming break-even ages and cumulative benefits Model record, justified by derivation

      Purpose: Chart one person's cumulative own benefit at a few claim ages in the plan's dollars, and the age each later claim catches up.

      Statement: socialSecurity/analysis/breakEven.ts#claimBreakEven accumulates, for each compared whole-year claim age c and each age a from 62 through the chart's last age, in calendar year y = birth year + a, the own benefit the ledger's year function (socialSecurity/householdYear.ts#socialSecurityYear) pays the person in y with the claim at c years and 0 months and nothing else on the record: 0 before c, otherwise the start-year PIA x the claim factor for c years and 0 months x 12 x socialSecurity/colaFactor.ts#socialSecurityColaFactor for y x #socialSecurityHaircutFactor for y, the two factors projection/simulate.ts#simulatePlan multiplies every benefit by, less what the earnings test withholds from it on the person's own wages (the plan's wage rows, analysis/expectedValue.ts#personWagesInYear), and from the full-retirement-age month at the claim age raised by the crediting months; it also names the claim ages at which the test withholds. The running total is B_c(a) = B_c(a - 1) x (1 + g) + benefit_c(a) at the chosen return g. For each pair of claim ages e < l it walks the ages at which B_e is positive and reports the first age a with D(a) = B_l(a) - B_e(a) >= 0, at a - 1 + (-D(a - 1)) / (D(a) - D(a - 1)) when the previous difference was negative, else at a; none when no age by the chart's end. #breakEvenClaimAges gives the page's comparison: 62, the full-retirement-age year and 70, each no earlier than the age reached in the start year; a claim age before it is refused. Units: nominal dollars of each year, ages in years. Rounding: none; the page prints the crossing to a tenth of a year and the dollars to whole dollars.

      Formula: B_c(a) = B_c(a - 1)(1 + g) + [a >= c] x (PIA x f_c(y) x 12 x cola(y) x cut(y) - withheld_c(y)); crossing(e, l) = a - 1 + (-D(a - 1))/(D(a) - D(a - 1)), D = B_l - B_e

      • PIA: The monthly PIA the projection pays from in its first year (unit: usd/month) (domain: nonnegative)
      • f_c(y): Claim factor for a claim at c years and 0 months, from the full-retirement-age month with the crediting months added (a year's months priced apart when that month falls in it) (unit: 1) (domain: 0.70 to 1.32)
      • withheld_c(y): What the earnings test withholds from the own benefit in year y on the person's own wages (unit: usd/year) (domain: nonnegative)
      • cola(y), cut(y): The projection's cost-of-living factor (1 in its first year) and trust-fund haircut for year y (unit: 1) (domain: positive)
      • g: Yearly return on benefits already received (unit: rate/year) (domain: 0, 3%, 5% or 7% on the page)
      • c, e, l: Whole-year claim ages (unit: years) (domain: 62 to 70, none before the age reached in the first year)

      Timing: annual, a whole year of benefits in the claim-age year

      Rounding: none; the page rounds for display

      Limits:

      • The person's own retirement benefit only: no spouse, survivor or divorced-spouse benefit, no taxes, and no mortality, since every charted age is taken as reached
      • The earnings test on the person's own wages is charged against the own benefit alone, as if nothing else were paid on the record: for a couple's worker whose wages also reach a spouse benefit on his record this withholds more from his own benefit than the family charge would
      • Wages are the plan's wage rows, whole calendar years spread evenly over their months, with no grace year; only wage streams are earnings (usc-42-403-f-5-earnings-counted)
      • Whole-year claim ages, paid for the whole claim-age year, as the ledger pays a claim at a whole age
      • The crossing interpolates linearly between yearly totals; within a year the true running total steps monthly
      • The dollars are each year's own dollars, as the projection pays them; the chart does not deflate them to today's dollars
      • A benefit paid as a disability benefit from its onset has no claim age to compare, and the page says so instead of charting it

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: social-security-claim-break-even.md Mutation receipt: social-security-claim-break-even.mutation.md

      Evidence tests: breakEven.evidence.test.ts

      Implemented in: breakEven.ts; colaFactor.ts; householdYear.ts; householdPaths.ts

      Is the number of: social-security-break-even

    Fed by: Social Security COLA factor (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Social security bridge sizing

    For a delaying claimant: the forgone age-62 monthly benefit (PIA × claim factor at 62), the annualized bridge amount, the bridge years, and the quoted TIPS-ladder cost on the embedded real-yield curve.

    Field: Social Security bridge sizing Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: ss-page (Bridge panel rows "$X/yr ($Y/mo, real)" and ladder cost); insights (ss-bridge-gap card via insight-ss-bridge-gap-total)

    • Social Security bridge: age-62 replacement sized as a TIPS ladder Formula record, justified by derivation

      Purpose: The real-dollar bridge that pays the forgone age-62 benefit from retirement until the chosen claim, quoted as a TIPS ladder bought this year.

      Statement: Monthly age-62 benefit M = PIA × f_62; annual real amount A = 12M. startYear = max(age-62 year, retirementYear, currentYear+1). For a January claim (months = 0), endYear = claimYear − 1; for a mid-year claim, endYear = claimYear. years N = endYear − startYear + 1. ladderCost is the TIPS-ladder price of N annual real payments of A purchased in the current year. On a zero real curve with unit present value, cost = N A. Returns null when the claim is at or before 62 or the window is empty. Units: today's dollars and calendar years. Rounding: none.

      Formula: M = PIA × f_62; A = 12M; N = endYear − startYear + 1; cost = price of N real payments of A

      • PIA: Primary insurance amount, monthly, today's dollars (unit: usd/month) (domain: > 0)
      • f_62: Claim factor at age 62, already resolved for the date of birth (unit: 1) (domain: 0 < f_62 <= 1)
      • startYear: First calendar year the bridge pays (unit: year) (domain: integer)
      • endYear: Last calendar year the bridge pays (unit: year) (domain: integer >= startYear)

      Timing: annual real payments from startYear through endYear inclusive; ladder purchased in currentYear

      Rounding: none

      Limits:

      • The date formula (January claim ends the year before the claim year; start is the later of age 62, retirement, and next year) is the comments' stated convention
      • Synthetic TIPS coupons are floored at 0.125% (ladderMath MIN_TIPS_COUPON_PCT). On the zero real curve the worksheet states, that floor is absorbed into the back-solved face amounts and the ladder cost equals N x A exactly, which the evidence asserts at 1e-9 (a passing check, not an assumption); on a nonzero curve the cost is the discounted ladder and differs from N x A, and the worksheet does not claim otherwise

      Provenance: derived by codex, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: ss-bridge-sizing.md Mutation receipt: ss-bridge-sizing.mutation.md

      Evidence tests: bridge.evidence.test.ts

      Implemented in: bridge.ts

      Is the number of: social-security-bridge-sizing

      Feeds: insight-ss-bridge-gap-total

  • Social security claiming sweep objective

    The signed change in ending after-tax estate of the sweep's winning whole-year claim against the plan as entered (claim months included), and of the month refinement against that winner, the refinement ranked on the same objective; nominal at the plan's last year.

    Field: Claim-age sweep: winner versus the plan as entered, and the month refinement versus the winner Unit: US dollars Basis: nominal dollars Computed by: UI-native Status: Complete chain

    Appears in: ss-page (In-your-plan verdict "(±$X)" against the current claim ages, in the plan's last-year dollars, and the refinement "(±$Y over the whole-year pick)"); ss-page (Claim-age heatmap and ranked table read engine candidateSummary.endingAfterTaxEstate directly)

    • Claim-age refinement to the month Model record, justified by derivation

      Purpose: Refine the sweep's whole-year winner to the month on the same objective, and publish its signed changes against the winner.

      Statement: decisions/claimAgeSweep.ts#refineClaimAgeMonthly prices, through #refineClaimMonths, for each open claim in the canonical people order (model/peopleOrder.ts, never list order), every claim from a year below the winner's age to a year above it (62 to 70, none below the age reached in the start year; months 0 to 11, and only 70y0m at 70), with the other claims at the running best, in whole passes repeated until one changes no claim, the windows staying around the starting whole years, and a combination priced once not priced again (decision D-PEOPLE-ORDER, rule R7); there is no pass cap, since a changing pass takes a strictly greater primary metric and a combination's row is fixed once priced, so no combination is the incumbent twice and the search always ends at a fixed point, within one more pass than the windows hold combinations, a bound kept only as a guard that throws, and #refineClaimMonths reports the passes it ran (round-one review of #765, issue 4), each month through decisions/evaluateCandidate.ts#evaluateCandidate against the plan as entered and ranked alone by the sweep's objective policy (decisions/tournament.ts#rankEvaluations, margin 0). A month replaces the incumbent only when its row is eligible under the objective's constraints and its primary metric is strictly greater; a greater but ineligible month is counted and rejected. It publishes estateChangeVsWinner, the refined ending after-tax estate minus the winner's, and primaryChangeVsWinner, the objective's own difference, both signed and unrounded. Units: nominal dollars of the plan's last year, and the objective's own units. Rounding: none.

      Formula: take month m over incumbent i <=> eligible(m) and primary(m) > primary(i); estateChangeVsWinner = estate(refined) - estate(winner); primaryChangeVsWinner = primary(refined) - primary(winner)

      • primary(m): The objective policy's metric of month m against the plan as entered (unit: the policy's own) (domain: finite)
      • eligible(m): Month m meets every hard constraint of the policy (money-lasts, the estate floor, a structural diagnostic) (unit: boolean) (domain: true or false)
      • estate(m): Ending after-tax estate of the plan with month m's claim (unit: nominal USD of the plan's last year) (domain: finite)

      Timing: one full ledger run per combination tried: up to 36 per claim per pass (the months from a year below the whole-year pick to a year above it: 36, or 24 for a pick of 62, 25 for 69 and 13 for 70, fewer when the age reached in the start year cuts the window), 13 to 72 in the first pass, and a later pass prices only the combinations not yet priced

      Rounding: none

      Limits:

      • Coordinate passes to a fixed point within a year of the whole-year winner: a month further away, or a combination that needs both claims moved at once, is not tried, and the page says "no month within a year of the whole-year pick ranks higher" rather than "optimal"
      • Bridge durability and survivor liquidity score a month that removes the bridge or survivor years on the estate change, as the sweep does, until the objective-policy change ranks them on one fixed window
      • Runs on request, 0.2 to 0.6 seconds on the example couples

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: social-security-claim-age-monthly-refinement.md Mutation receipt: social-security-claim-age-monthly-refinement.mutation.md

      Evidence tests: claimAgeSweep.refine.evidence.test.ts

      Implemented in: claimAgeSweep.ts

      Is the number of: social-security-claiming-sweep-objective

    • Whole-plan Social Security claim-age sweep Model record, justified by derivation

      Purpose: Rank every whole-year claim age of the plan's open claims on the full ledger by a chosen objective, and publish the winner's signed estate change against the plan as entered.

      Statement: decisions/claimAgeSweep.ts#sweepClaimAges takes the plan's open claims (socialSecurity/openClaims.ts#openClaims: of the first two Social Security streams with a positive entered PIA or an earnings history, those whose claim year, the birth year plus the claim age's whole years, is not before the start year; the others are already made and keep their own claim age in every row, #isClaimAlreadyMade, social-security-claim-already-made), holds an open claim that is paid as a disability benefit from its onset as the ledger pays it (decisions/generators.ts#claimAgeGridClaims), prices every combination of whole-year ages of the other open claims from #gridClaimAges (62 to 70, none below the age reached in the start year; decisions/generators.ts#socialSecurityClaimGridGenerator) with decisions/evaluateCandidate.ts#evaluateCandidate against the plan as entered, and ranks the rows with decisions/tournament.ts#rankEvaluations under the chosen objective policy with a margin of 0. The verdict (#claimAgeSweepVerdict) is empty with no claim, already-claimed when every claim is already made, disability when every open claim is paid as a disability benefit from its onset (those claims are published as disabilityPersonIds, and held in a ranked sweep), winner when an eligible row strictly improves the objective, otherwise aca-unpriced when no row is eligible and the plan as entered has a year whose premium tax credit cannot be priced (#unpricedAcaYears: each such year with its blocking support codes), ineligible when no row is eligible, flat when two or more eligible rows lie within 0.5 of the first and current-best otherwise. It publishes winnerEstateChangeVsCurrent, the winner's ending after-tax estate minus the plan as entered's (claim months included), signed and unrounded, each row's change the same way, a row as current only when every open claim is a whole year equal to it, and per row whether the objective ranked it on its own metric (objective) or on the estate fallback, because the plan as entered has no survivor or bridge years (estate-fallback-plan, then every row) or because this row has none (estate-fallback-row) (decisions/objectives.ts#rankedMetricBasis). Units: nominal dollars of the plan's last year, published as estateYear. Rounding: none.

      Formula: change(row) = estate(row) - estate(plan as entered); winner = the first eligible ranked row whose primary metric is above 0; verdict = claimAgeSweepVerdict(ranked, winner exists, unpriced credit years)

      • estate(row): Ending after-tax estate of the plan with the row's whole-year claim ages (unit: nominal USD of the plan's last year) (domain: finite)
      • estate(plan as entered): Ending after-tax estate of the plan with its own claims, months included (the decision context's baseline run) (unit: nominal USD of the plan's last year) (domain: finite)
      • primary: The objective policy's metric against the plan as entered, higher is better (unit: the policy's own (dollars or years)) (domain: finite)
      • claimYear: Birth year plus the claim age's whole years; before the start year means already made (unit: calendar year) (domain: integer)

      Timing: one full ledger run per grid row, from the start year

      Rounding: none; the page prints the sign of the printed magnitude, so a change that prints as $0 has neither

      Limits:

      • The plan's own conversion strategy is held fixed: a bracket fill resizes to each claim age, a fixed schedule does not. The Optimize page's co-optimization re-optimizes conversions but tries only 62, full retirement age and 70, one stream at a time, on the estate with a 1,000-dollar margin (claim-age-co-optimization), so the two searches can pick different ages, and a gain found here is measured with the plan's own conversions
      • Whole years only, and at most two streams
      • A claim counts as already made when its claim year is before the start year, the ledger's annual convention: the ledger ignores the birth month, so a claim in the start year whose month has passed is still treated as open; and a claim at or after full retirement age that was never filed can be paid up to six months back (20 CFR 404.621(a)(2)), which the test treats as made, the conservative side
      • Withdrawing an application within 12 months of the first month of entitlement, repaying every benefit (20 CFR 404.640(b)(3), (b)(4)), and voluntary suspension from full retirement age (42 U.S.C. 402(z)) are not modeled
      • Where the premium tax credit cannot be priced in a year of the plan as entered, no row is ranked: a claim age moves the income the credit depends on (26 U.S.C. 36B(d)(2)(B)(iii)); ranking only the rows that leave that income unchanged was measured and is not safe in either direction (an equal stand-in credit changed three of eleven such winners on the example plans)
      • Bridge durability and survivor liquidity rank a row on the estate change when that row or the plan has no bridge or survivor years, within one ranking; each row says which of the two lacked them, and ranking both on one fixed window in today's dollars is a separate objective-policy change
      • A disability benefit from its onset has no claim age to sweep: the sweep holds it as the ledger pays it and ranks the other claim, and refuses only when every open claim is one. The benefits-only ranking prices a couple's claims as pairs of claim ages and cannot place a disability benefit on that grid, so it ranks no claim age for either person

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: social-security-claim-age-sweep.md Mutation receipt: social-security-claim-age-sweep.mutation.md

      Evidence tests: claimAgeSweep.evidence.test.ts

      Implemented in: claimAgeSweep.ts; openClaims.ts; generators.ts

      Is the number of: social-security-claiming-sweep-objective

    Fed by: Social Security claim already made (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Social security computation summary counts

    How many years were averaged into AIME and how many of them are $0.

    Field: AIME computation year counts Unit: count Basis: no dollar basis Computed by: UI-native Status: Complete chain

    Appears in: ss-page (SocialSecuritySection "Averages your top N earning years ... M of those years are $0")

    • Zero years in the averaged earnings Formula record, justified by derivation

      Purpose: Count how many of the years averaged into a worker's AIME have no earnings.

      Statement: socialSecurity/piaFromEarnings.ts#computePiaFromEarnings publishes zeroYearsInAime, the number of entries of yearsUsedInAime, the indexed amounts it averaged into the AIME, that are 0, beside computationYearCount, the number of those years. Units: years. Rounding: none; integers.

      Formula: zeroYearsInAime = count of v in yearsUsedInAime with v = 0

      • yearsUsedInAime: Indexed earnings of the benefit computation years, the largest after the dropout (unit: usd/year) (domain: nonnegative)

      Timing: once per earnings history

      Rounding: none

      Limits:

      • Counts the years this computation averaged, so it follows its computation-year window: always 35 years for a worker whose window has 40, the base years from 22 to 61 (usc-42-415-b-2-b-ii-iii-initial-computation-base-window)

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: aime-zero-year-count.md Mutation receipt: aime-zero-year-count.mutation.md

      Evidence tests: piaFromEarnings.zeroYearCount.evidence.test.ts

      Implemented in: piaFromEarnings.ts

      Is the number of: social-security-computation-summary-counts

  • Social security credit estimate

    Estimated Social Security credits (max 40) from the earnings history when the user has not entered a count.

    Field: Covered-work credit estimate Unit: count Basis: no dollar basis Computed by: UI-native Status: Complete chain

    Appears in: ss-page (SocialSecuritySection credits hint "Estimated N of 40")

    • Covered-work credit estimate Formula record, justified by derivation

      Purpose: Estimate the Social Security credits an earnings history earns, against the 40 a retirement benefit generally needs.

      Statement: socialSecurity/analysis/credits.ts#estimateCredits returns the entered credit count when there is one; otherwise it adds the history's rows by calendar year and sums #creditsForYear: from 1978, min(4, floor(earnings / that year's quarter-of-coverage amount)) with SSA's amounts (socialSecurity/ssaWageData.ts#QUARTER_OF_COVERAGE_AMOUNT_BY_YEAR, $250 in 1978 to $1,890 in 2026, the latest for a later year); before 1978, min(4, floor(earnings / 50)); nothing before 1937; capped at 40 in total. Eligible means at least 40. Units: credits. Rounding: floor for each year.

      Formula: credits = min(40, sum_y min(4, floor(E(y) / QC(y)))), QC(y) = SSA amount from 1978, 50 before, no credit before 1937

      • E(y): Covered earnings in year y, the rows for the year added (unit: usd/year) (domain: nonnegative)
      • QC(y): Earnings that earn one quarter of coverage in year y (unit: usd) (domain: 50 before 1978; 250 to 1,890 from 1978)

      Timing: once per earnings history

      Rounding: floor for each year

      Limits:

      • Years before 1978 were credited by calendar quarter with $50 of wages in the quarter, which an annual amount cannot show; the estimate counts the most such a year could earn, one per $50 up to four
      • The $100 self-employment rule before 1978 is not applied separately
      • Not an insured-status determination: no quarter assignment, and no disability or survivor rules; the warning invites the user to enter the count
      • A year after 2026 uses the 2026 amount until SSA publishes its own

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: covered-work-credit-estimate.md Mutation receipt: covered-work-credit-estimate.mutation.md

      Evidence tests: credits.evidence.test.ts

      Implemented in: credits.ts; ssaWageData.ts

      Is the number of: social-security-credit-estimate

  • Social security expected present value

    Present value in today's dollars of expected Social Security benefits under a claiming strategy, each year priced by the ledger's Social Security rules, weighted by survival and discounted at a real rate.

    Field: Benefits-only expected present value Unit: US dollars Basis: today's dollars (real) Computed by: UI-native Status: Complete chain

    Appears in: ss-page (Benefits-only tab ranking "Expected PV" column and "Highest expected value" callout; paid-in panel "Expected lifetime benefits from YEAR (PV)")

    • Benefits-only expected present value of Social Security Model record, justified by derivation

      Purpose: Value a claiming strategy by its benefits alone: each year's benefits, priced by the ledger's rules, weighted by the chance of being alive and discounted.

      Statement: socialSecurity/analysis/expectedValue.ts values a claiming strategy as the survival-weighted, discounted sum of the benefits on each path the household can take, each year of each path priced by the ledger's own year function (socialSecurity/householdYear.ts#socialSecurityYear, through analysis/householdPaths.ts#priceHouseholdPaths) with the plan's wages and exempt amounts, so the earnings test, the crediting months and the former-spouse records are the ledger's. #expectedPvSingle sums, for each year t from the start year while the person is at most 119, S(t) x paid(t) x (1 + r)^-t, where S is montecarlo/survival.ts#survivalCurve from the current age and paid(t) the year's benefits in start-year dollars (nominal over the plan's inflation factor, which carries the ledger's COLA factor over its inflation factor times the haircut); a claimant in a couple is married while the given spouse lives and unmarried after the spouse's death, weighted by the spouse's survival. #expectedPvCouple sums, for independent lives, S_A(t) S_B(t) both(t) plus, for each earlier death year k of one spouse, the survivor's S(t) x the other's probability of dying in year k x alone(t, k): both(t) is the year on the path on which both are alive, from the start year with no crediting months, and alone(t, k) the survivor's year on the path on which the other died in December of year k, from the crediting months both had reached at the end of year k, the deceased's included. A path stops changing once every claim, full-retirement-age and former-spouse gate is past, and from then its benefits are priced once in today's dollars and carried by the real COLA drift and haircut. #benefitsOnlyRanking prices every whole-year claim-age combination from 62 to 70 (none before the age reached in the start year; 70 alone past it) for one or two claimants on the PIA the projection pays from, and ranks them highest first, on the plan's own household (a lone claimant in a couple is weighted by the spouse's survival), and names for each row the people whose excess earnings the test charges on the path on which everyone lives; the paths do not depend on the rate, so #priceBenefitsOnlyRanking prices them for a plan and start year and #weighBenefitsOnlyRanking weighs them at a rate, and #benefitsOnlyRanking does both on each call and keeps nothing between calls. A claim already made (its claim year, birth year plus claim years, before the start year: socialSecurity/openClaims.ts#isClaimAlreadyMade, the claim-age searches' one test) is held at its own claim age and named, and nothing is ranked when every claim is; a claimant whose benefit is paid as a disability benefit from its onset is named instead. Units: start-year dollars. Rounding: none in the model; the earnings test's excess is reduced to the dollar and benefits are not rounded, as in the ledger.

      Formula: single: sum_t S(t) paid(t) (1 + r)^-t; couple: sum_t (1 + r)^-t [S_A S_B both(t) + sum_{k<t} S_A(t) D_B(k) alone_A(t, k) + sum_{k<t} S_B(t) D_A(k) alone_B(t, k)]

      • S(t): Probability of being alive t years after the start year, from the engine's survival curve (unit: 1) (domain: [0, 1])
      • D(k): Probability of dying in year k, alive through it (unit: 1) (domain: [0, 1])
      • paid(t), both(t), alone(t, k): A path's benefits in year t after the earnings test, in start-year dollars: nominal over the inflation factor, so the COLA drift and haircut are in them (unit: usd/year) (domain: nonnegative)
      • r: Real discount rate (unit: rate/year) (domain: above -1; 0 to 8% on the page)

      Timing: annual survival weights, from the start year to age 119; each year priced month by month where a month can differ

      Rounding: none; the earnings test's excess is reduced to the dollar and benefits are not rounded, as in the ledger

      Limits:

      • Independent lifetimes on the SSA period table applied to the cohort
      • A person whose sex is 'average' has the 50/50 mixture of the two sexes' survival curves (survival-probability-product), so a single's value is exactly the mean of a man's and a woman's; a couple of two 'average' people is the average over the four equally likely sex pairings, not "an opposite-sex couple, order unknown", which would differ by up to 0.135 percent of a row on the examples' two such couples and change no top claim age at 0, 2 or 4 percent
      • Annual steps: a whole year of benefits in each year the survival weight reaches, and deaths in December of the death year, the ledger's convention
      • One claim age per person: a widow(er) is paid from the later of the year after the death and their own claim year, and cannot take the widow(er) benefit first and their own later, as in the ledger (usc-42-402-r-survivor-deemed-filing-exemption); the survivor switching analysis covers a widow(er) living alone
      • The earnings test is the ledger's, on the plan's wage rows: whole calendar years spread evenly over their months, with no grace year (cfr-20-404-435-grace-year-monthly-earnings-test); only wage streams are earnings (usc-42-403-f-5-earnings-counted); exempt amounts after the latest published year grow at the plan's inflation (usc-42-403-f-8-earnings-test-exempt-amounts)
      • Deterministic: the plan's flat inflation carries the wages, the exempt amounts and the COLA; Monte Carlo market paths are not priced here
      • A claim at a whole age pays the whole calendar year it is attained; its months before the first month of entitlement are paid in full and never charged, so never credited, since no excess is charged to a month for which the person is not entitled (42 U.S.C. 403(f)(1)(A); usc-42-403-f-1-earnings-test-month-charging, poms-rs-00615-482-arf-crediting-months)
      • No taxes, disability benefit, child benefit or lump-sum death payment
      • The family maximum is applied with the ledger's own helper (socialSecurity/familyMaximum.ts#currentSpouseMonthlyUnderFamilyMaximum): half the worker's PIA is held first to the maximum less that PIA (20 CFR 404.404), which is at least half the PIA less the rounding of the maximum to the dime, so with one spouse it binds by at most 10 cents a month
      • A death before 62 passes on the PIA as entered, as the survivor benefit calculation does
      • A couple member's former-spouse records are priced as the ledger prices them: a survivor record while married only after a remarriage at 60 or later, or with the remarriage age blank, which is read as no remarriage (cfr-20-404-335-ordinary-widow-eligibility); a remarriage before 60 is read as the current marriage and bars the benefit until the January after the current spouse's death; a living ex's record pays from that January (usc-42-402-b-1-C-divorced-spouse-after-widowhood); the plan holds no divorce date, so a divorce of two years or more is taken
      • Months withheld before the start year, for a claim already made, are not in the plan: every path starts with no crediting months
      • Benefits are scheduled in full unless the plan sets a haircut, and are worth their start-year amount in real terms unless the plan's COLA differs from its inflation
      • A claim already made is not re-ranked: withdrawal of an application within 12 months and voluntary suspension from full retirement age are not modeled, as in the claim-age sweep

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: social-security-expected-value.md Mutation receipt: social-security-expected-value.mutation.md

      Evidence tests: expectedValue.evidence.test.ts

      Implemented in: expectedValue.ts; householdPaths.ts; householdYear.ts; claimants.ts; familyMaximum.ts; survival.ts; openClaims.ts

      Is the number of: social-security-expected-present-value

      Feeds: social-security-fica-return-ratio

    Fed by: Own benefit plus the separately reduced spouse excess (composition record, 6 of 6 gates pass); One-year death probability: SSA's published q(x) (formula record, 6 of 6 gates pass); Social Security COLA factor (model record, 6 of 6 gates pass); SSA period life table, 2023 (2026 Trustees Report) (data record, 6 of 6 gates pass); The survival curve: product of hazard-adjusted one-year survivals, and the 50/50 mixture for 'average' (formula record, 6 of 6 gates pass); Survivor benefit under RIB-LIM (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Social security FICA return ratio

    The benefits a person is paid, on their own record or a former spouse's when larger (those already received plus the expected present value of the rest), divided by the OASDI tax their career pays (paid in so far and on the projected work the PIA counts), both in today's dollars.

    Field: Benefits-to-contributions ratio Unit: factor Basis: no dollar basis Computed by: UI-native Status: Complete chain

    Appears in: ss-page (Paid-in table "Ratio (get back ÷ paid in)" and "Benefits already received (YEAR dollars)")

    • Benefits received per dollar of Social Security tax paid Formula record, justified by derivation

      Purpose: Compare the benefits a person is paid, on their own record or a former spouse's when larger, with the Social Security tax their career pays, both in today's dollars.

      Statement: socialSecurity/analysis/oasdiReturn.ts#oasdiReturnForPerson takes, for a person with an earnings history and a PIA the projection can pay, the expected present value of their benefits from the start year (socialSecurity/analysis/expectedValue.ts#expectedPvSingle at the stream's claim age with its months, the former-spouse records and the earnings test on the person's wages; a person in a couple is married while the spouse lives, weighted by the spouse's survival), the benefits already received from the claim year to the year before the start at the start-year amount (#singleBenefitInYear for each of those years, with no discount), and the OASDI tax in today's dollars (#oasdiPaidIn): paid in so far, and on the projected work, the years socialSecurity/piaFromEarnings.ts#resolveStreamPiaMonthly's computation fills from the earnings projection, so the tax and the PIA cover the same career; #benefitsToContributionsRatio divides the sum of the first two by the sum of the last two, and gives no ratio when nothing is paid in. A benefit the ledger pays as a disability benefit from its onset (#disabilityReplacesClaimAge) gets no comparison, and the page says why. Units: a pure number. Rounding: none; the page prints two decimals and "x".

      Formula: ratio = (getBackPv + receivedBeforeStart) / (paidInToday + projectedToday), none when the sum <= 0

      • getBackPv: Expected present value of the benefits from the start year (unit: usd) (domain: nonnegative)
      • receivedBeforeStart: Benefits from the claim year to the year before the start, at the start-year amount (unit: usd) (domain: nonnegative)
      • paidInToday: OASDI tax paid so far, in start-year dollars (unit: usd) (domain: nonnegative)
      • projectedToday: OASDI tax on the projected work the PIA counts, in start-year dollars (unit: usd) (domain: nonnegative)

      Timing: once, at the start year

      Rounding: none

      Limits:

      • The tax paid is restated for prices only, with no interest, while the future benefits are discounted at the chosen real rate
      • The benefits the person is paid on their own record, or on a former spouse's when larger (a divorced spouse's while unmarried: in a single household, or in a couple after the spouse's death); the insurance value of disability and survivor benefits, benefits paid to others on the record and a current spouse's benefit are left out
      • The benefits from the start year carry the earnings test on the person's wages; the benefits already received are counted as paid in full, since the plan holds no record of what was withheld before it starts
      • A benefit paid as a disability benefit from its onset is not compared, since the claim age the get-back is priced at would not start it
      • Benefits already received are counted at the start-year amount, a constant real amount, not as they were paid
      • The employer's share is shown beside it as context, not counted in the tax paid

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: benefits-to-contributions-ratio.md Mutation receipt: benefits-to-contributions-ratio.mutation.md

      Evidence tests: oasdiReturn.ratio.evidence.test.ts

      Implemented in: oasdiReturn.ts; piaFromEarnings.ts

      Is the number of: social-security-fica-return-ratio

    Fed by: One-year death probability: SSA's published q(x) (formula record, 6 of 6 gates pass); Social Security tax paid in, in today's dollars (formula record, 6 of 6 gates pass); Benefits-only expected present value of Social Security (model record, 6 of 6 gates pass); SSA period life table, 2023 (2026 Trustees Report) (data record, 6 of 6 gates pass); The survival curve: product of hazard-adjusted one-year survivals, and the 50/50 mixture for 'average' (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Social security OASDI paid in

    Employee (or self-employed) OASDI payroll tax paid over the earnings history, and on the projected work the PIA counts, each year at that year's effective statutory rate and wage base, restated in today's dollars by CPI-U; the employer's share beside each as context.

    Field: OASDI paid in Unit: US dollars Basis: today's dollars (real) Computed by: UI-native Status: Complete chain

    Appears in: ss-page (Paid-in table "Paid in so far (OASDI, YEAR dollars)", "What your projected work will pay (FIRST–LAST, YEAR dollars)", "Employer paid so far (context)" and "Employer's share of the projected work (context)")

    • Social Security tax paid in, in today's dollars Formula record, justified by derivation

      Purpose: Sum the Social Security tax paid over an earnings history, and the tax the projected work the benefit estimate counts will pay, at each year's rate and wage base, restated in today's dollars by consumer prices.

      Statement: socialSecurity/analysis/oasdiReturn.ts#oasdiPaidIn adds the history's rows by calendar year, and for each year from 1937 to the start year taxes the year's earnings capped at its contribution and benefit base (socialSecurity/ssaWageData.ts#WAGE_BASE_BY_YEAR, the latest base for a later year) at the year's effective rate (socialSecurity/oasdiTaxRates.ts#OASDI_TAX_RATE_BY_YEAR: the employee's, or the self-employed rate; the 2026 row for a later year), and restates the tax by I(y) = CPI(L)/CPI(y) x (1 + i)^(start year - L) for a year up to L, the latest year with a published CPI-U annual average (socialSecurity/cpiU.ts), and (1 + i)^(start year - y) after it, with i the plan's inflation. An entered year through the start year is paid in so far; the projected work, the years the PIA computation's earnings projection fills (passed by #oasdiReturnForPerson from socialSecurity/piaFromEarnings.ts#computePiaFromEarnings) and any entered year after the start, is taxed the same way and restated from the start year at the latest, a factor of 1 after it, since the PIA computation counts a later year at its face amount on the latest base and wage index. It publishes the person's tax and the employer's on each part, the one paid so far also as paid, and names the years it did not count: before 1937, or self-employed before 1951. Units: start-year dollars and dollars as paid. Rounding: none.

      Formula: paidInToday = sum over entered y <= start of min(E(y), base(y)) x rate(y) / 100 x I(y); projectedToday = sum over projected y of min(E(y), base(y)) x rate(y) / 100 x I(min(y, start)); I(y) = CPI(L)/CPI(y) x (1 + i)^(start - L) for y <= L, else (1 + i)^(start - y)

      • E(y): Covered earnings in year y, the rows for the year added (unit: usd/year) (domain: nonnegative)
      • base(y): Contribution and benefit base for year y (unit: usd/year) (domain: positive from 1937)
      • rate(y): Effective OASDI rate for year y: the employee's, or the self-employed rate (unit: percent) (domain: 1 to 12.4)
      • CPI(y), L: CPI-U annual average for year y; the latest year published (unit: index, year) (domain: positive; 2025)
      • i: The plan's yearly inflation (unit: rate/year) (domain: above -1)

      Timing: calendar years from 1937 to the start year, and the projected years after it

      Rounding: none; the page prints whole dollars

      Limits:

      • Restated for prices only: no interest is credited on the tax paid, while the benefits it is compared with are discounted at a real rate
      • The self-employed credits of 2.7, 2.3 and 2.0 percent in 1984, 1985 and 1986 to 1989 were allowed against the combined OASDI and HI tax and are not allocated to OASDI by the source, so the self-employed figure for those years is high by at most those credits
      • The employer exemption of 2010 for certain new hires is employer-specific and not modeled
      • Years after the latest published CPI-U annual average, and the step from it to the start year, use the plan's inflation
      • The history is taken as taxed Social Security earnings: for a self-employed year, net earnings from self-employment, with no separate self-employment deduction
      • The projected work is the PIA computation's: its assumed earnings at their face amount on the latest published base and today's rates, and only the years its window counts, through the year the person turns 61; with an entered PIA there is no projected work

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: oasdi-paid-in-today-dollars.md Mutation receipt: oasdi-paid-in-today-dollars.mutation.md

      Evidence tests: oasdiReturn.paidIn.evidence.test.ts

      Implemented in: oasdiReturn.ts; oasdiTaxRates.ts; cpiU.ts; ssaWageData.ts

      Is the number of: social-security-oasdi-paid-in

      Feeds: social-security-fica-return-ratio

    Fed by: Consumer Price Index annual averages (data record, 6 of 6 gates pass); Social Security tax rates by year (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Social security PIA annualized

    A claimant's monthly primary insurance amount (the full-retirement-age benefit, in the plan's first year) times twelve, as the couple primer prints it.

    Field: PIA annualized Unit: US dollars Basis: today's dollars (real) Computed by: UI transformation Status: Complete chain

    Appears in: ss-page (CoupleStrategyPanel couple primer "full-retirement-age benefit (PIA): $X/yr against $Y/yr")

    • The PIA a Social Security stream is paid from Composition record, justified by derivation

      Purpose: Resolve a stream's monthly PIA once, for the projection, its insights and the Social Security pages.

      Statement: socialSecurity/piaFromEarnings.ts#resolveStreamPiaMonthly returns the entered PIA as entered; otherwise, for a stream with an earnings history, the PIA #computePiaFromEarnings gives on the history and its projection (#streamPiaFromEarningsInput, the projection defaulting to the person's retirement age), raised by #piaWithCostOfLivingIncreases from the eligibility year through the year before the projection starts, with the years whose increase SSA has not announced; otherwise no PIA, with the reason: no PIA and no earnings history, or the computation's error. projection/simulate.ts#simulatePlan, the claim-milestone insight and the planner's Social Security pages all call it. The couple primer prints the resolved PIA x 12. Units: dollars a month. Rounding: the PIA's own, to the dime.

      Limits:

      • An entered PIA is taken to be in the first year's dollars already, as a PIA shown on a current SSA statement is
      • The yearly figure the couple primer prints is PIA x 12, the benefit at full retirement age, not the benefit at the claim age

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: social-security-pia-resolution.md Mutation receipt: social-security-pia-resolution.mutation.md

      Evidence tests: piaFromEarnings.resolution.evidence.test.ts

      Implemented in: piaFromEarnings.ts; simulate.ts

      Is the number of: social-security-pia-annualized

      Feeds: social-security-benefit-annual

  • Social security survivor switch PV

    Expected present value of a widow(er)'s strategy that takes the survivor benefit and the own benefit at chosen ages and switches between them, with strategies paying the same benefits shown once.

    Field: Survivor switching expected PV Unit: US dollars Basis: today's dollars (real) Computed by: UI-native Status: Complete chain

    Appears in: ss-page (Survivor vs. personal timing table "Strategy" and "Expected PV")

    • Survivor and own benefit switching for a widow(er) Model record, justified by derivation

      Purpose: Rank the orders in which a widow(er) living alone can take the survivor benefit and their own, by expected value.

      Statement: socialSecurity/analysis/survivorSwitching.ts#survivorSwitchingInputs takes a single household's one claimant and, of the deceased or surviving-divorced former-spouse records that pass the ledger's modeled widow(er) gates, the one whose survivor benefit at the claimant's survivor full retirement age is largest (the first on a tie), with the deceased's benefit the PIA x the deceased's claim factor (full retirement age when none is entered); a claimant whose benefit is paid as a disability benefit from its onset gets none. #expectedPvSwitch values a strategy as the sum over ages from the current age to 119 of S x the larger claimed yearly benefit x s(y) x (1 + r)^-(age - current age); with the widow(er)'s wages (the plan's wage rows), each year before the full-retirement-age year is priced month by month and the ledger's earnings-test year (socialSecurity/earningsTest.ts#earningsTestYear) charges the excess against the benefits she is entitled to that month, a month it only partly covers in proportion to the own benefit and the survivor excess (POMS RS 02501.145 B.2), and a month the claim-year convention pays the own benefit before its entitlement against the survivor benefit alone; its crediting months raise the own benefit from the FRA month and the survivor benefit from the survivor FRA month, and the months withheld before 62 raise it from the month of 62 too (20 CFR 404.412(b)), each counting only months of its own reduction period, with s(y) the plan's COLA factor over its inflation factor times the haircut for the year the age is reached (socialSecurity/analysis/expectedValue.ts#realBenefitScale, the ranking's own), the survivor benefit from socialSecurity/survivorBenefit.ts#survivorBenefitMonthly at its whole-year age and the own benefit at its claim factor, S the engine's survival curve. #rankSwitchStrategies offers survivor ages (the current age, at least 60, and the survivor full retirement age's year) and own ages (the current age from 62 to 70, the full retirement age's year, 70), every pairing and each alone, keeps one strategy per distinct yearly stream (the one with fewer claims, then the earlier survivor age, then the earlier own age), and ranks them by value, ties in the same order. Units: start-year dollars. Rounding: none.

      Formula: EV(s, o) = sum_{a = x..119} S(a) x B(a) x s(y) x (1 + r)^-(a - x), B(a) = sum_{m = 1..12} (max([a >= s] W_m, [a >= o] O_m) - D_m); with no wages D_m = 0 and B(a) = 12 x max([a >= s] W(s), [a >= o] P f(o))

      • B(a): The year's benefits paid at age a, month by month, in start-year dollars before s(y) (unit: usd/year) (domain: nonnegative)
      • W_m: The survivor benefit in month m: survivorBenefitMonthly at survivor claim age s, held to the widow's limit, its reduction months cut from the month of 62 by the months withheld before 62 and from the survivor full-retirement-age month by every month withheld before it (20 CFR 404.412(b)); W(s) when nothing is withheld (unit: usd/month) (domain: nonnegative)
      • O_m: The own benefit in month m: the own PIA x the claim factor at own age o, its reduction months cut by the months withheld from the full-retirement-age month; P f(o) when nothing is withheld (unit: usd/month) (domain: nonnegative)
      • D_m: The month's earnings-test deduction: the year's excess earnings (42 U.S.C. 403(f)(3)), restated in start-year dollars at the year's COLA factor and haircut, charged from January, only before the full-retirement-age month and only against a benefit from its first month of entitlement (403(f)(1)), a month it only partly covers in proportion to the own benefit and the survivor excess (POMS RS 02501.145 B.2); 0 with no wages (unit: usd/month) (domain: nonnegative)
      • W(s): Monthly widow(er) benefit at survivor age s (unit: usd/month) (domain: nonnegative)
      • P f(o): Own PIA x the claim factor at own age o (unit: usd/month) (domain: nonnegative)
      • x: Age in the start year (unit: years) (domain: integer)
      • s(y): The COLA factor over the inflation factor, times the haircut, for the year y the age a is reached (unit: 1) (domain: positive)
      • r: Real discount rate (unit: rate/year) (domain: above -1)

      Timing: monthly in each year, annual weights, from the start year to age 119

      Rounding: none

      Limits:

      • Whole-year ages: the survivor benefit at the current age (at least 60) or the survivor full retirement age's year; the own benefit at the current age (62 to 70), the full retirement age's year or 70
      • The deceased's benefit is the claim age entered for the record, or full retirement age when none is; a death before the deceased claimed is priced only through the claim age entered
      • Single households only; no taxes or child benefits
      • The earnings test on the widow(er)'s wages is charged against the benefits paid each month, as the ledger charges it; wages are whole calendar years spread evenly over their months, with no grace year, and only wage streams are earnings (usc-42-403-f-5-earnings-counted)
      • A benefit paid as a disability benefit from its onset is not ranked, since no own claim age starts it
      • Survival on the engine's one curve, the SSA period table

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: survivor-switching-expected-value.md Mutation receipt: survivor-switching-expected-value.mutation.md

      Evidence tests: survivorSwitching.evidence.test.ts

      Implemented in: survivorSwitching.ts; expectedValue.ts; earningsTest.ts

      Is the number of: social-security-survivor-switch-pv

    Fed by: One-year death probability: SSA's published q(x) (formula record, 6 of 6 gates pass); SSA period life table, 2023 (2026 Trustees Report) (data record, 6 of 6 gates pass); The survival curve: product of hazard-adjusted one-year survivals, and the 50/50 mixture for 'average' (formula record, 6 of 6 gates pass); Survivor benefit under RIB-LIM (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Social security zero year replacement gain

    Monthly PIA gain from replacing the latest $0 base year with a year of the sample earnings, recomputed exactly through the benefit formula and given in the dollars of the PIA the step shows.

    Field: Zero-year replacement PIA gain Unit: US dollars Basis: today's dollars (real) Computed by: UI-native Status: Complete chain

    Appears in: ss-page (SocialSecuritySection PIA explainer "Replacing your $0 year in YEAR with about $X of earnings would add $Y/mo", or, for a year already past, "Had you earned about $X in YEAR, one of your $0 years, your benefit would be $Y/mo higher in START dollars")

    • PIA gain from replacing a year with no earnings Composition record, justified by derivation

      Purpose: Show how much one more year of earnings in place of a $0 year would add to the monthly benefit, computed exactly.

      Statement: socialSecurity/piaFromEarnings.ts#zeroYearReplacementGain re-runs #computePiaFromEarnings on the same input with the latest base year whose earnings, reported or projected, are $0 given the sample amount, the window, projection and indexing year unchanged (so the amount is capped at that year's base and indexed only if the year is at or before the indexing year), and publishes that year, the amount, the eligibility-year PIA before and after, their difference, and, given the projection's first year, the difference of the two PIAs each raised by the cost-of-living increases from the eligibility year through the year before it (#piaWithCostOfLivingIncreases, as the resolved PIA is), the gain in that year's dollars that the page prints; there is no gain when the history does not compute, no averaged year is $0, or the amount is not positive. #zeroYearSampleEarnings gives the explainer's sample: the projection's assumed earnings for its first projected year, else the latest reported year's amount. #bendTierForAime gives the explainer's tier line, the bend-point rate of the next dollar of AIME. Units: dollars a month at full retirement age, in the eligibility year's dollars and in the projection's first year's. Rounding: the PIA's own, to the dime; each difference is rounded to the dime against float error.

      Formula: gain = PIA(history with raw(Y) := amount) - PIA(history), Y = the latest base year with raw earnings 0

      • Y: The replaced base year (unit: year) (domain: a base year whose earnings are 0)
      • amount: Sample covered earnings put in year Y (unit: usd/year) (domain: positive)

      Timing: once per earnings history

      Rounding: each PIA floored to the dime; the difference rounded to the dime

      Limits:

      • Inherits the earnings computation's conventions and registered limits: indexing floored to the dollar, the computation-year window, and stand-in tables for years not yet published
      • The replaced year is the latest $0 base year; replacing an earlier one would index the sample, describing earnings that can no longer be earned. For a person 62 or older every base year has passed, so the page says what the year would have added had it been worked
      • A year worked after 61 is outside the computation's base window (usc-42-415-f-2-post-entitlement-pia-recomputation)

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: zero-year-replacement-gain.md Mutation receipt: zero-year-replacement-gain.mutation.md

      Evidence tests: piaFromEarnings.zeroYear.evidence.test.ts

      Implemented in: piaFromEarnings.ts

      Is the number of: social-security-zero-year-replacement-gain

  • Survivor scenario row estate delta

    Change in ending after-tax estate, for one death timing, from adding Roth conversions that fill the 12% bracket on top of the plan's own from the start year through the year of the first death; nominal at the timing's last year.

    Field: Convert-early lever: after-tax estate change Unit: US dollars Basis: nominal dollars Computed by: UI-native Status: Complete chain

    Appears in: survivor-page (Convert-early lever cell "±$X" after-tax estate, "in YEAR dollars", with its reason when the lever adds nothing)

    • Survivor convert-early lever Model record, justified by derivation

      Purpose: Price, for one death timing, adding Roth conversions that fill the 12% bracket to the plan's own conversions through the year of the first death.

      Statement: projection/survivorTransition.ts#survivorTransitionAnalysis runs each death timing twice through projection/simulate.ts#simulatePlan with the same death override and the plan's own SSA-44 setting: the base run, and the lever run with SimulateOptions.additionalBracketFill { bracketPct: 12, startYear: the start year, endYear: the death year }. In each window year the lever run's aggregate conversion target (projection/internal/annualAggregateRothConversionTargetPlan.ts#annualAggregateRothConversionTargetPlan) is the larger of the plan's own target and a fill of taxable income to the top of the 12% bracket for the year's filing status, both sized on the same state of the year, the fill capped first at the convertible traditional balance; outside the window, and in a year a named conversion action suppresses the aggregate strategy, the plan's own strategy runs unchanged. It publishes estateDelta, the lever run's ending after-tax estate minus the base run's, and lifetimeTaxDelta, the lever run's lifetime taxes and penalties minus the base run's, and, from the lever run's window rows (#leverYears), each window year's reason read from executed dollars (the ledger's rothConversion) against own (the plan's own target capped at the convertible balance) and the capped fill, in this order: named-conversions when a named conversion action suppressed the aggregate strategy, raised when it converted more than own, covered when it converted something and at least the fill, short when it converted less than the fill, and with no fill asked no-balance (no convertible balance), fill-limited (the fill's own sizing cut it to nothing) or no-room; with each year the ledger's own words (AdditionalBracketFillYear.fillNotes on a fill-limited year, and on any year ledgerNotes, the messages the ledger raised when it converted less than the year's target asked). raisedYears and coveredYears are the raised and covered years. Units: nominal dollars of the timing's last year (endYear) for the estate, an undiscounted sum of nominal dollars for the tax. Rounding: none.

      Formula: target(y) = max(own(y), min(fill12(y), convertible(y))) for y in [start, death year], own(y) otherwise; executed(y) = the lever run's rothConversion(y), which falls short of target(y) when the ledger cannot execute it; estateDelta = estate(lever) - estate(base); lifetimeTaxDelta = tax(lever) - tax(base)

      • target(y): The lever run's aggregate conversion target for year y, what the lever asks for (unit: nominal USD) (domain: nonnegative)
      • executed(y): The conversion the lever run's ledger executed in year y (YearResult.rothConversion): short of target(y) when a share cannot land, for instance 0 when the traditional balance's owner has no Roth account (worksheet case L-B, Roth IRA is Sam's) (unit: nominal USD) (domain: nonnegative)
      • own(y): The plan's own aggregate conversion target for year y (its schedule amount, its own fill, or 0) (unit: nominal USD) (domain: nonnegative)
      • fill12(y): The conversion that brings federal taxable income to the top of the 12% bracket for the year's filing status, sized on the same state of the year (unit: nominal USD) (domain: nonnegative)
      • convertible(y): The traditional balance convertible in year y (unit: nominal USD) (domain: nonnegative)
      • estate, tax: ProjectionSummary.endingAfterTaxEstate and .lifetimeTaxesAndPenalties of each run (unit: nominal USD) (domain: finite)

      Timing: annual, the window from the start year through the year of the first death

      Rounding: none

      Limits:

      • The window ends in the death year, the last joint return (26 U.S.C. 6013(a)(2)); a surviving spouse with a dependent child keeps joint rates for two more years (26 U.S.C. 2(a)), which the window does not extend into
      • A year with a named conversion action converts only that action, so the lever adds nothing in it
      • Marketplace years are priced as the ledger prices them: the added income moves a priced credit, and an unpriced year stays unpriced
      • The estate change is in dollars of the timing's last year, which differs between the two people's tables; the tax change is an undiscounted sum of nominal dollars and carries every later year's knock-on (required distributions, IRMAA, the survivor's single brackets), not only the added conversions' tax
      • The widows-penalty insight keeps its replacement patch (a 12% fill instead of the plan's strategy) because it fires only on plans that convert nothing, where replacing and adding coincide
      • A fill the ledger cannot execute is reported, not repaired: when an owner of the traditional balance has no Roth account (a conversion lands only in the same person's own Roth), the owner's share of every conversion is skipped and the year reads short with the ledger's message; on example-couple Sam has no Roth account, so when Alex dies at 90 the lever is short in 2033 to 2041 and adds nothing, and opening a Roth IRA for Sam is the change that would let it convert

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: survivor-convert-early-lever.md Mutation receipt: survivor-convert-early-lever.mutation.md

      Evidence tests: survivorTransition.lever.evidence.test.ts

      Implemented in: survivorTransition.ts; annualAggregateRothConversionTargetPlan.ts; annualAggregateRothConversionPhase.ts; simulate.ts

      Is the number of: survivor-scenario-row-estate-delta, survivor-scenario-row-lifetime-tax-delta

  • Survivor scenario row lifetime tax delta

    Lifetime taxes and penalties (undiscounted nominal sum) with the convert-early lever minus without it, for one death timing; the lever adds a 12%-bracket fill to the plan's own conversions through the year of the first death.

    Field: Convert-early lifetime tax delta Unit: US dollars Basis: nominal dollars Computed by: UI-native Status: Complete chain

    Appears in: survivor-page (Convert-early lever cell "(±$X lifetime tax)")

    • Survivor convert-early lever Model record, justified by derivation

      Purpose: Price, for one death timing, adding Roth conversions that fill the 12% bracket to the plan's own conversions through the year of the first death.

      Statement: projection/survivorTransition.ts#survivorTransitionAnalysis runs each death timing twice through projection/simulate.ts#simulatePlan with the same death override and the plan's own SSA-44 setting: the base run, and the lever run with SimulateOptions.additionalBracketFill { bracketPct: 12, startYear: the start year, endYear: the death year }. In each window year the lever run's aggregate conversion target (projection/internal/annualAggregateRothConversionTargetPlan.ts#annualAggregateRothConversionTargetPlan) is the larger of the plan's own target and a fill of taxable income to the top of the 12% bracket for the year's filing status, both sized on the same state of the year, the fill capped first at the convertible traditional balance; outside the window, and in a year a named conversion action suppresses the aggregate strategy, the plan's own strategy runs unchanged. It publishes estateDelta, the lever run's ending after-tax estate minus the base run's, and lifetimeTaxDelta, the lever run's lifetime taxes and penalties minus the base run's, and, from the lever run's window rows (#leverYears), each window year's reason read from executed dollars (the ledger's rothConversion) against own (the plan's own target capped at the convertible balance) and the capped fill, in this order: named-conversions when a named conversion action suppressed the aggregate strategy, raised when it converted more than own, covered when it converted something and at least the fill, short when it converted less than the fill, and with no fill asked no-balance (no convertible balance), fill-limited (the fill's own sizing cut it to nothing) or no-room; with each year the ledger's own words (AdditionalBracketFillYear.fillNotes on a fill-limited year, and on any year ledgerNotes, the messages the ledger raised when it converted less than the year's target asked). raisedYears and coveredYears are the raised and covered years. Units: nominal dollars of the timing's last year (endYear) for the estate, an undiscounted sum of nominal dollars for the tax. Rounding: none.

      Formula: target(y) = max(own(y), min(fill12(y), convertible(y))) for y in [start, death year], own(y) otherwise; executed(y) = the lever run's rothConversion(y), which falls short of target(y) when the ledger cannot execute it; estateDelta = estate(lever) - estate(base); lifetimeTaxDelta = tax(lever) - tax(base)

      • target(y): The lever run's aggregate conversion target for year y, what the lever asks for (unit: nominal USD) (domain: nonnegative)
      • executed(y): The conversion the lever run's ledger executed in year y (YearResult.rothConversion): short of target(y) when a share cannot land, for instance 0 when the traditional balance's owner has no Roth account (worksheet case L-B, Roth IRA is Sam's) (unit: nominal USD) (domain: nonnegative)
      • own(y): The plan's own aggregate conversion target for year y (its schedule amount, its own fill, or 0) (unit: nominal USD) (domain: nonnegative)
      • fill12(y): The conversion that brings federal taxable income to the top of the 12% bracket for the year's filing status, sized on the same state of the year (unit: nominal USD) (domain: nonnegative)
      • convertible(y): The traditional balance convertible in year y (unit: nominal USD) (domain: nonnegative)
      • estate, tax: ProjectionSummary.endingAfterTaxEstate and .lifetimeTaxesAndPenalties of each run (unit: nominal USD) (domain: finite)

      Timing: annual, the window from the start year through the year of the first death

      Rounding: none

      Limits:

      • The window ends in the death year, the last joint return (26 U.S.C. 6013(a)(2)); a surviving spouse with a dependent child keeps joint rates for two more years (26 U.S.C. 2(a)), which the window does not extend into
      • A year with a named conversion action converts only that action, so the lever adds nothing in it
      • Marketplace years are priced as the ledger prices them: the added income moves a priced credit, and an unpriced year stays unpriced
      • The estate change is in dollars of the timing's last year, which differs between the two people's tables; the tax change is an undiscounted sum of nominal dollars and carries every later year's knock-on (required distributions, IRMAA, the survivor's single brackets), not only the added conversions' tax
      • The widows-penalty insight keeps its replacement patch (a 12% fill instead of the plan's strategy) because it fires only on plans that convert nothing, where replacing and adding coincide
      • A fill the ledger cannot execute is reported, not repaired: when an owner of the traditional balance has no Roth account (a conversion lands only in the same person's own Roth), the owner's share of every conversion is skipped and the year reads short with the ledger's message; on example-couple Sam has no Roth account, so when Alex dies at 90 the lever is short in 2033 to 2041 and adds nothing, and opening a Roth IRA for Sam is the change that would let it convert

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: survivor-convert-early-lever.md Mutation receipt: survivor-convert-early-lever.mutation.md

      Evidence tests: survivorTransition.lever.evidence.test.ts

      Implemented in: survivorTransition.ts; annualAggregateRothConversionTargetPlan.ts; annualAggregateRothConversionPhase.ts; simulate.ts

      Is the number of: survivor-scenario-row-estate-delta, survivor-scenario-row-lifetime-tax-delta

  • Survivor scenario row ssa44premium savings

    For one death timing, Medicare premiums over the whole projection without SSA-44 survivor relief minus with it (nominal dollars summed across years): the two relief years plus any later knock-on, the relief-year part published beside it.

    Field: SSA-44 survivor premium difference Unit: US dollars Basis: nominal dollars Computed by: UI-native Status: Complete chain

    Appears in: survivor-page (IRMAA relief (SSA-44) cell "$X", with the relief years' tier changes and ", including $Y in later years")

    • SSA-44 survivor premium difference Formula record, justified by derivation

      Purpose: Show, for one death timing, what Medicare premiums SSA-44 survivor relief saves over the whole projection, and how much of that falls in the two relief years.

      Statement: projection/survivorTransition.ts#survivorTransitionAnalysis runs each death timing with SSA-44 survivor relief switched off and on (#withSurvivorSsa44: expenses.healthcare.ssa44.survivorYears, the retirement-years setting kept) and #ssa44PremiumDifference publishes ssa44PremiumSavings, the sum over every year of the run without relief (that the other run also has) of medicarePremiums without minus with, and ssa44ReliefYearSavings, the same sum over the death year + 1 and + 2 only. The relief years' MAGI is selected by the ledger's irmaa-lookback-selection. Units: nominal dollars summed across years. Rounding: none; the page prints whole dollars.

      Formula: total = sum_y (premiums_off(y) - premiums_on(y)); relief = sum over y in {death year + 1, death year + 2} of the same

      • premiums_off(y), premiums_on(y): YearResult.medicarePremiums of the run without and with SSA-44 survivor relief (unit: nominal USD) (domain: nonnegative)

      Timing: every projection year of the two runs

      Rounding: none

      Limits:

      • Two runs of the whole ledger: the total carries the later years' knock-on (lower premiums leave more money, which changes later withdrawals, MAGI and tiers), and the relief-year part is published beside it; the page says "no surcharge to relieve" only when the relief-year part is at most 50 cents
      • Nominal dollars of different years summed
      • The first relief year still looks back to the joint death year, as irmaa-lookback-selection states

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: survivor-ssa44-premium-difference.md Mutation receipt: survivor-ssa44-premium-difference.mutation.md

      Evidence tests: survivorTransition.ssa44.evidence.test.ts

      Implemented in: survivorTransition.ts

      Is the number of: survivor-scenario-row-ssa44premium-savings

    Fed by: IRMAA lookback MAGI selection (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Survivor scenario row survivor shortfall years

    Number of years after the year of the first death, with the survivor alive, whose required-spending shortfall exceeds the ledger's funding tolerance ($0.005).

    Field: Survivor shortfall years Unit: count Basis: no dollar basis Computed by: UI-native Status: Complete chain

    Appears in: survivor-page (Survivor spending cell "required spending covered" or "N shortfall yrs")

    • Survivor shortfall years Formula record, justified by derivation

      Purpose: Count the years after the first death in which the survivor's required spending is not covered.

      Statement: projection/survivorTransition.ts#survivorShortfallYearCount counts, in a death timing's base run, the years after the death year in which someone is alive and YearResult.requiredShortfall exceeds ANNUAL_FUNDING_TOLERANCE_PLAN_DOLLARS (0.005, projection/moneyTolerance.ts). The degenerate-timing test (#isDegenerateTiming) reads required spending on both sides of the death. Units: years. Rounding: none; a count.

      Formula: count = |{ y : y > death year, someone alive in y, requiredShortfall(y) > 0.005 }|

      • requiredShortfall(y): The ledger's required-spending shortfall in year y of the base run (unit: nominal USD) (domain: nonnegative)

      Timing: the base run's years after the death year

      Rounding: none

      Limits:

      • The base run only, at the plan's own SSA-44 setting; the lever run is not counted
      • Required spending only: under a guardrail policy discretionary spending can be cut with no required shortfall, so "required spending covered" says no more than that

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: survivor-shortfall-year-count.md Mutation receipt: survivor-shortfall-year-count.mutation.md

      Evidence tests: survivorTransition.shortfall.evidence.test.ts

      Implemented in: survivorTransition.ts

      Is the number of: survivor-scenario-row-survivor-shortfall-years

  • Social security bridge ladders total cost

    The combined quoted TIPS-ladder cost of every delaying claimant's Social Security bridge, printed on the Social Security page's add-ladders button.

    Field: Bridge ladders total cost Unit: US dollars Basis: today's dollars (real) Computed by: UI transformation Status: Complete chain

    Appears in: ss-page (Bridge panel button "Add bridge ladder(s) to plan ($X)")

    • Social Security bridge ladders: total cost Formula record, justified by derivation

      Purpose: What buying every offered Social Security bridge ladder costs together, printed on the Social Security page's add-ladders button.

      Statement: ladder/bridge.ts#bridgeLaddersTotalCost adds the quoted ladderCost of each bridge it is given, in the order given, from 0, and refuses a cost that is not finite with a RangeError. The Social Security page gives it the bridges its table lists: one per claimant who delays past 62 and whose window no ladder in the plan already covers, each sized by ladder/bridge.ts#sizeBridge on the embedded real yield curve for the plan's start year, and prints the total compactly on the button that adds them. Quotes of $85,000 and $55,216.54 cost $140,216.54 together; one quote costs itself; no bridge costs $0. Units: the start year's real dollars, the unit of every quote on the page. Rounding: none; the button prints the total compactly.

      Formula: total = ((0 + c_1) + c_2) + … + c_n

      • c_i: The quoted TIPS ladder cost of the i-th bridge the page lists (unit: usd, the start year's real dollars) (domain: finite, at least 0)

      Timing: once per rendering of the bridge panel

      Rounding: none

      Limits:

      • The total is of the bridges the page offers. If a plan already holds a ladder under a bridge's own id whose years no longer cover its window, the page lists that bridge and counts its cost, but the add button leaves it out rather than add the id twice.
      • The Insights card that suggests a bridge prints its own total, which sizes only claimants with an entered monthly PIA; the page also sizes a claimant whose PIA comes from an earnings record, so the two totals can differ.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: social-security-bridge-ladders-total-cost.md Mutation receipt: social-security-bridge-ladders-total-cost.mutation.md

      Evidence tests: bridge.totalCost.evidence.test.ts

      Implemented in: bridge.ts

      Is the number of: social-security-bridge-ladders-total-cost

Medicare and ACA

  • ACA applicable SLCSP premium annual

    Applicable second-lowest-cost silver plan premium for the year; null when not modeled.

    Field: ACA benchmark (SLCSP) premium Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: report (aca-ledger block and ReportPage ACA table "Benchmark premium")

    • ACA gross enrollment premium and applicable SLCSP benchmark Composition record, justified by derivation

      Purpose: The year's Marketplace premium actually enrolled for, and the benchmark premium the credit is measured against.

      Statement: YearAcaResult.grossEnrollmentPremium is the sum over all 12 months of every covered member's enrollment premium for that month (negatives floored at 0). YearAcaResult.applicableSlcspPremium sums that member's SLCSP benchmark premium only in months whose own enrollment premium is strictly above 0, so a benchmark quote in a month with no enrollment is excluded; it is null (not 0) when the year does not carry exactly one ACA contract (none, or duplicates). The monthly figures are the contract's as the run prices it (aca-contract-premium-basis): filled from the premium field for a premiumField contract, as written for a stated one with nothing for a member who has died. Units: nominal dollars per year, or null. Rounding: none.

      Formula: gross = sum_m sum_i max(0, E_i,m); applicable = sum_m sum_i [E_i,m > 0] max(0, B_i,m)

      • E_i,m: Covered member i's enrollment premium in month m (unit: usd/month) (domain: nonnegative)
      • B_i,m: Covered member i's SLCSP benchmark premium in month m (unit: usd/month) (domain: nonnegative)

      Timing: annual, from the year's 12 monthly quotes

      Rounding: none

      Limits:

      • Beyond the worksheet's inputs the evidence plan fixes: a single filer aged 63 in 2026 (pre-65, so Marketplace months exist and no Medicare month competes), applyAcaCredit on with one contract for the year, a tax family of one, zero inflation and zero return, and a cash account to fund the premium
      • The monthly gate is per MEMBER, not per household: a month can be applicable for one member and not another, which a household-level test would miss
      • The null case is asserted by turning the credit on with no contract for the year; the same null is produced by duplicate contracts, which the evidence does not construct. Before decision D-EXAMPLE-SOURCE-SWITCH (2026-09-28) an example contract whose premiums differed from the premium field at the run's inflation also gave null; that switch is deleted
      • These two totals are inputs to the credit, not the credit: the allowable PTC and the economic net premium are separate families with their own records
      • The monthly gate is applied where the per-member arrays are assembled, annualHealthcareExpenses.ts, and annualAcaResultPublication.ts sums the gated arrays onto YearAcaResult, which is what the test reads and what the receipt mutates; tax/aca.ts#acaEconomicPremiumByMonth repeats the gate for the credit and is the allowable-PTC record's site, not this one's

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: aca-enrollment-and-applicable-slcsp-premium-annual.md Mutation receipt: aca-enrollment-and-applicable-slcsp-premium-annual.mutation.md

      Evidence tests: aca.evidence.test.ts

      Implemented in: annualHealthcareExpenses.ts; annualAcaResultPublication.ts; aca.ts

      Is the number of: aca-gross-enrollment-premium-annual, aca-applicable-slcsp-premium-annual

    Fed by: Premium-credit contract as a run prices it: premium basis and deaths (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • ACA economic net premium annual

    Gross enrollment premium net of the modeled allowable credit.

    Field: ACA net premium Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: report (aca-ledger block and ReportPage ACA table "Net premium")

    • ACA economic net premium Formula record, justified by derivation

      Purpose: Publish what the household actually bears: gross enrollment premium less the modeled allowable credit.

      Statement: tax/aca.ts#acaEconomicPremiumByMonth computes annual economic net premium as gross enrollment premium minus modeled allowable PTC. The monthly credit is itself capped at that month's enrollment premium, so the difference cannot fall below zero. Units: nominal USD. Rounding: none; it inherits the credit's (aca-allowable-premium-tax-credit).

      Formula: N = E - P, where each month's P is capped at that month's E

      • E: Gross annual enrollment premium (unit: usd/year) (domain: nonnegative)
      • P: Modeled allowable premium tax credit (unit: usd/year) (domain: 0 <= P <= E)

      Timing: one coverage year

      Rounding: none; the difference is not rounded

      Limits:

      • Economic cost, not cash timing: advance payments of the credit are not modeled, so this is not what the household pays month to month
      • The zero floor the worksheet states is enforced by the per-month enrollment cap inside the credit, not by a second clamp on the difference

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: aca-economic-net-premium.md Mutation receipt: aca-economic-net-premium.mutation.md

      Evidence tests: aca.evidence.test.ts

      Implemented in: aca.ts

      Is the number of: aca-economic-net-premium-annual

      Feeds: spending-healthcare-annual

    Fed by: ACA 400% FPL cliff (data record, 6 of 6 gates pass); ACA modeled allowable premium tax credit (formula record, 6 of 6 gates pass); Premium-credit contract as a run prices it: premium basis and deaths (model record, 6 of 6 gates pass); ACA credit figures by coverage year (data record, 6 of 6 gates pass); ACA expected contribution (composition record, 6 of 6 gates pass); ACA household MAGI composition (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • ACA gross enrollment premium annual

    Gross Marketplace premium for the year before any premium tax credit.

    Field: ACA gross enrollment premium Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: report (aca-ledger block and ReportPage ACA table "Gross premium")

    • ACA gross enrollment premium and applicable SLCSP benchmark Composition record, justified by derivation

      Purpose: The year's Marketplace premium actually enrolled for, and the benchmark premium the credit is measured against.

      Statement: YearAcaResult.grossEnrollmentPremium is the sum over all 12 months of every covered member's enrollment premium for that month (negatives floored at 0). YearAcaResult.applicableSlcspPremium sums that member's SLCSP benchmark premium only in months whose own enrollment premium is strictly above 0, so a benchmark quote in a month with no enrollment is excluded; it is null (not 0) when the year does not carry exactly one ACA contract (none, or duplicates). The monthly figures are the contract's as the run prices it (aca-contract-premium-basis): filled from the premium field for a premiumField contract, as written for a stated one with nothing for a member who has died. Units: nominal dollars per year, or null. Rounding: none.

      Formula: gross = sum_m sum_i max(0, E_i,m); applicable = sum_m sum_i [E_i,m > 0] max(0, B_i,m)

      • E_i,m: Covered member i's enrollment premium in month m (unit: usd/month) (domain: nonnegative)
      • B_i,m: Covered member i's SLCSP benchmark premium in month m (unit: usd/month) (domain: nonnegative)

      Timing: annual, from the year's 12 monthly quotes

      Rounding: none

      Limits:

      • Beyond the worksheet's inputs the evidence plan fixes: a single filer aged 63 in 2026 (pre-65, so Marketplace months exist and no Medicare month competes), applyAcaCredit on with one contract for the year, a tax family of one, zero inflation and zero return, and a cash account to fund the premium
      • The monthly gate is per MEMBER, not per household: a month can be applicable for one member and not another, which a household-level test would miss
      • The null case is asserted by turning the credit on with no contract for the year; the same null is produced by duplicate contracts, which the evidence does not construct. Before decision D-EXAMPLE-SOURCE-SWITCH (2026-09-28) an example contract whose premiums differed from the premium field at the run's inflation also gave null; that switch is deleted
      • These two totals are inputs to the credit, not the credit: the allowable PTC and the economic net premium are separate families with their own records
      • The monthly gate is applied where the per-member arrays are assembled, annualHealthcareExpenses.ts, and annualAcaResultPublication.ts sums the gated arrays onto YearAcaResult, which is what the test reads and what the receipt mutates; tax/aca.ts#acaEconomicPremiumByMonth repeats the gate for the credit and is the allowable-PTC record's site, not this one's

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: aca-enrollment-and-applicable-slcsp-premium-annual.md Mutation receipt: aca-enrollment-and-applicable-slcsp-premium-annual.mutation.md

      Evidence tests: aca.evidence.test.ts

      Implemented in: annualHealthcareExpenses.ts; annualAcaResultPublication.ts; aca.ts

      Is the number of: aca-gross-enrollment-premium-annual, aca-applicable-slcsp-premium-annual

    Fed by: Premium-credit contract as a run prices it: premium basis and deaths (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • ACA modeled allowable PTC annual

    Modeled allowable premium tax credit for the year; null when not modeled.

    Field: ACA modeled premium tax credit Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: report (aca-ledger block and ReportPage ACA table "Modeled credit"); insights (aca-threshold-proximity card evidence "Modeled premium tax credit at stake" (evidence is not rendered at pin))

    • ACA modeled allowable premium tax credit Formula record, justified by derivation

      Purpose: Size the credit from the benchmark premium less the expected contribution, capped by what the household actually enrolled in.

      Statement: tax/aca.ts#acaEconomicPremiumByMonth computes current-year modeled allowable PTC from the SLCSP benchmark less the expected contribution, floored at zero and capped by the actual enrollment premium. The month loop applies both the floor and the enrollment cap on each month against a twelfth of the annual contribution, so the annual figure is the sum of twelve monthly credits. Units: nominal USD. Rounding: the contribution carries the applicable percentage's rounding (aca-expected-contribution); the monthly credit is then computed from the unrounded contribution, where Form 8962 rounds line 8b to a whole dollar (a stated limit).

      Formula: P = sum over months m of min(E_m, max(0, S_m - C/12))

      • E_m: Enrollment premium for month m (unit: usd/month) (domain: nonnegative)
      • S_m: Applicable SLCSP benchmark premium for month m (unit: usd/month) (domain: nonnegative)
      • C: Expected annual contribution toward the benchmark premium (unit: usd/year) (domain: nonnegative)

      Timing: twelve coverage months of one year

      Rounding: none beyond the applicable percentage rounded to 0.01% inside C (26 CFR 1.36B-3(g)(1)); C / 12 is not rounded to a whole dollar as Form 8962 line 8b rounds it

      Limits:

      • Annual planning math: APTC cash timing, refunds and balances due, and Form 8962 reconciliation are outside this module
      • A month with no enrollment premium contributes no benchmark and no credit, so the annual benchmark is the enrolled-month benchmark rather than a full-year figure
      • Form 8962 rounds the annual contribution (line 8a) and the monthly contribution (line 8b) to whole dollars; the engine keeps both unrounded, which moves the annual credit by at most about $0.50 on the annual path and about $6 on the monthly path

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: aca-allowable-premium-tax-credit.md Mutation receipt: aca-allowable-premium-tax-credit.mutation.md

      Evidence tests: aca.evidence.test.ts

      Implemented in: aca.ts

      Is the number of: aca-modeled-allowable-ptc-annual

      Feeds: aca-economic-net-premium-annual, spending-healthcare-annual

    Fed by: ACA 400% FPL cliff (data record, 6 of 6 gates pass); Premium-credit contract as a run prices it: premium basis and deaths (model record, 6 of 6 gates pass); ACA credit figures by coverage year (data record, 6 of 6 gates pass); ACA expected contribution (composition record, 6 of 6 gates pass); ACA household MAGI composition (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Display net care cost annual

    Long-term-care cost remaining after the modeled insurance benefit, floored at zero.

    Field: Displayed net care cost Unit: US dollars Basis: as displayed Computed by: UI transformation Status: Complete chain

    Appears in: chart (care)

    • Net long-term-care cost after the LTC benefit Formula record, justified by derivation

      Purpose: The year's long-term-care cost left after the modeled insurance benefit, as the spending chart shows it.

      Statement: projection/yearFigures.ts#netCareCost publishes max(0, expenses.careCost - expenses.ltcBenefit) for the year and refuses a difference below -$0.005 (ANNUAL_FUNDING_TOLERANCE_PLAN_DOLLARS). The ledger never pays more benefit than the cost in exact arithmetic; the floor absorbs only the last-binary-digit residue of a sum of per-policy payments. Units: nominal USD of the year. Rounding: none.

      Formula: netCareCost = max(0, careCost - ltcBenefit); refused when careCost - ltcBenefit < -0.005

      • careCost: Gross care-episode cost of the year (unit: usd per year) (domain: nonnegative)
      • ltcBenefit: Sum of the LTC policy payments against it (unit: usd per year) (domain: nonnegative; at most careCost up to a floating-point residue)

      Timing: annual

      Rounding: none

      Limits:

      • The floor removes only a floating-point residue: with two policies on one episode, the first paying under half the cost, the summed payments can exceed the summed cost by one unit in the last place (53,932.24 of cost against 6,020.16 plus the remainder differs by -7.3e-12). expenses.total subtracts the benefit unfloored, so the category chart can differ from expenses.total by that residue
      • A benefit above the cost by more than half a cent is a ledger error and is refused rather than hidden, so a display page that reads this figure fails loudly on it

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-net-care-cost-annual.md Mutation receipt: display-net-care-cost-annual.mutation.md

      Evidence tests: yearFigures.evidence.test.ts

      Implemented in: yearFigures.ts; yearLedger.ts

      Is the number of: display-net-care-cost-annual

    Fed by: Today's dollars by the ledger's own inflation factor (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • IRMAA surcharge annual

    Income-related Medicare premium surcharge charged during the projection year.

    Field: irmaaSurcharge Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: scenarios-page (IRMAA surcharge); scenarios-page (Annual ledger comparison "IRMAA surcharge" and lifetime "IRMAA surcharge" sum)

    • Medicare base Part B premium Data record, justified by derivation

      Purpose: Annualize the standard Part B premium for a covered person at tier 0.

      Statement: tax/medicare.ts#medicareAnnualPremiumPerPerson publishes the 2026 standard Part B premium per Medicare-covered person as year2026.medicare.partBStandardMonthly times twelve, with no Part D surcharge and no IRMAA surcharge at tier 0. Units: nominal USD per person per year. Rounding: none stated.

      Formula: partBAnnual = partBMonthly(tier) x premiumScale x 12; at tier 0 partBMonthly = base

      • base: year2026.medicare.partBStandardMonthly (unit: usd/person/month) (domain: positive)
      • partBMonthly(tier): The standard premium at tier 0; above it, CMS's published tier total (medicare-irmaa-first-tier-boundary) (unit: usd/person/month) (domain: positive)
      • premiumScale: Healthcare-inflation scale to the premium year, from the latest year CMS has published (unit: 1) (domain: positive; 1 in a year CMS has published)

      Timing: one premium year, per covered person

      Rounding: none stated

      Limits:

      • Per person, not per household: a two-person Medicare year charges this twice
      • The Part D out-of-pocket threshold the published parameters also carry is not a premium and never enters this figure
      • Restated 2026-09-28 under decision D-2027-ROLLOVER: the premium scale runs from the year of the latest CMS publication (params/index.ts#componentPackView), not the year of the whole set of published figures, so a year whose Medicare premiums CMS has published reads them at a scale of 1 while its other figures may still be projected. Until CMS publishes 2027 the scale from 2026 is exactly the one used before

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: medicare-base-part-b-premium.md Mutation receipt: medicare-base-part-b-premium.mutation.md

      Evidence tests: medicare.evidence.test.ts

      Implemented in: medicare.ts; index.ts

      Is the number of: medicare-premiums-annual, irmaa-surcharge-annual

      Feeds: spending-healthcare-annual

    • Medicare IRMAA tier premiums and the first-tier boundary Formula record, justified by derivation

      Purpose: Price each IRMAA tier at the premiums CMS publishes, and the cliff at the first threshold on both sides of the same dollar.

      Statement: tax/medicare.ts#medicareAnnualPremiumPerPerson applies the 2026 single-filer first IRMAA tier only when two-year-lookback MAGI is strictly greater than the tier's magiOver (the top tier when it is at or above its floor), then prices Part B at CMS's published total monthly premium for the tier (params/data/year2026.ts, irmaaTiers[i].partBTotalMonthly: 284.10, 405.80, 527.50, 649.20 and 689.90 dollars for 2026) and adds CMS's published monthly Part D amount (14.50, 37.50, 60.40, 83.30 and 91.00). The table is read as published, not re-derived as the standard premium times the applicable percentage over 25, which CMS applies to the unrounded actuarial rate and which misses four of the five totals by cents. The IRMAA-only surcharge is the Part B amount above standard plus the Part D amount. A year after the latest CMS publication grows the latest published figures by the Medicare component's projection factor (cmsMedicare), as the standard premium grows. At 109,001 of single MAGI Part B is 3,409.20 a year and the IRMAA-only surcharge 1,148.40. Units: nominal USD per person per year, and an integer tier. Rounding: none; the published figures are whole cents.

      Formula: tier = 1 when MAGI > magiOver (the top tier when MAGI >= its floor); partBMonthly = partBTotalMonthly(tier) x premiumScale, standard at tier 0; irmaaSurchargeAnnual = max(0, partBMonthly - base x premiumScale) x 12 + partDSurchargeMonthly x premiumScale x 12

      • MAGI: Two-year-lookback MAGI (unit: usd/year) (domain: nonnegative)
      • magiOver: First-tier floor, year2026.medicare.irmaaTiers[0].magiOver for the filing status (unit: usd/year) (domain: positive)
      • partBTotalMonthly(tier): CMS's published total monthly Part B premium for the tier, full Part B coverage (unit: usd/person/month) (domain: above base)
      • base: year2026.medicare.partBStandardMonthly (unit: usd/person/month) (domain: positive)
      • partDSurchargeMonthly: CMS's published Part D income-related monthly adjustment for the tier (unit: usd/person/month) (domain: nonnegative, or null when unverified)
      • premiumScale: Healthcare-inflation scale to the premium year from the latest year CMS has published (unit: 1) (domain: positive; 1 in a year CMS has published)

      Timing: one premium year, per covered person

      Rounding: none; the published figures are whole cents

      Limits:

      • The tier totals are CMS's published figures, not the standard premium times the applicable percentage over 25 (284.06 against 284.10 at the 2026 first tier); reading the percentage as a surcharge on the standard premium (35% as standard plus 35%) understates every tier further
      • A year after the latest CMS publication is projected: it grows the latest published totals and Part D amounts by the Medicare component's factor, a stand-in for CMS's next table, which re-derives every tier from a new actuarial rate
      • The lower tiers use a strict greater-than test and only the top tier is inclusive; that asymmetry is the module's own stated convention
      • A tier whose Part D surcharge is unpublished sets partDSurchargeUnverified rather than inventing a figure; every 2026 tier's is published
      • The table is the full-Part-B-coverage table for single and joint filers; the separate tables for married people filing separately who lived with their spouse, and for immunosuppressive-drug-only coverage, are not read

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: medicare-irmaa-first-tier-boundary.md Mutation receipt: medicare-irmaa-first-tier-boundary.mutation.md

      Evidence tests: medicare.evidence.test.ts

      Implemented in: medicare.ts; year2026.ts

      Is the number of: medicare-premiums-annual, irmaa-surcharge-annual

      Feeds: spending-healthcare-annual

    Fed by: IRMAA lookback MAGI selection (model record, 6 of 6 gates pass); Medicare IRMAA two-year lookback (data record, 6 of 6 gates pass); Ledger MAGI composition (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • MAGI annual

    MAGI realized in a projection year for tax, ACA, and later IRMAA decisions.

    Field: Modified adjusted gross income Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (magi); csv (magi); survivor-page (Tax around the transition cell "on MAGI a → b" (death year and first survivor year)); results-table (MAGI column); report (year-ledger block magi); scenarios-page (Annual "MAGI"); mcp (run_projection.years[].magi)

    • ACA household MAGI composition Composition record, justified by derivation

      Purpose: Assemble the program-specific household income the credit is measured against.

      Statement: tax/aca.ts#buildAcaHouseholdMagi computes current-year ACA household MAGI as federal AGI plus nontaxable Social Security (gross less taxable), plus known tax-exempt interest, plus the known foreign-exclusion addback, plus the MAGI of dependents required to file, floored at zero. Unknown tax-exempt interest, an unknown foreign addback or an unknown dependent filing status make the result non-actionable and publish a null MAGI with blockers instead. These addbacks change ACA MAGI evidence only and are never fed back into ordinary taxable income. Units: nominal USD. Rounding: none.

      Formula: MAGI = max(0, AGI + max(0, SSgross - SStaxable) + TEI + FEA + sum of required-filer dependent MAGI)

      • AGI: Federal adjusted gross income, carried signed until the household floor (unit: usd/year) (domain: any finite number)
      • SSgross: Gross Social Security benefits (unit: usd/year) (domain: nonnegative)
      • SStaxable: Taxable share of those benefits (unit: usd/year) (domain: nonnegative)
      • TEI: Tax-exempt interest, counted only when its state is known (unit: usd/year) (domain: nonnegative)
      • FEA: Foreign-exclusion addback, counted only when its state is known (unit: usd/year) (domain: nonnegative)

      Timing: one coverage year

      Rounding: none

      Limits:

      • Only dependents whose filing status is required contribute; a not-required dependent contributes zero and an unknown one blocks the whole result rather than being guessed
      • This is the ACA program MAGI, a different quantity from the IRMAA ledger MAGI on YearResult.magi even though both are catalogued under magi-annual

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: aca-household-magi-composition.md Mutation receipt: aca-household-magi-composition.mutation.md

      Evidence tests: aca.evidence.test.ts

      Implemented in: aca.ts

      Is the number of: magi-annual

      Feeds: aca-modeled-allowable-ptc-annual, aca-economic-net-premium-annual

    • Ledger MAGI composition Composition record, justified by derivation

      Purpose: Publish the five-term annual MAGI the IRMAA lookback and the ACA credit both read.

      Statement: projection/internal/types/result.ts#YearResult.magi publishes max(0, ordinary income realized + realized gains + qualified dividends + taxable Social Security + tax-exempt interest); projection/internal/annualFundingApplicationAndClosePhase.ts#annualFundingApplicationAndClosePhase is the site that computes it and writes the year into magiHistory. Untaxed Social Security is not a separate add-back, and foreign income enters only indirectly through taxable-Social-Security provisional income. Units: nominal USD. Rounding: none; the only transformation is the zero floor.

      Formula: magi = max(0, ordinaryRealized + gainsRealized + qualifiedDividends + taxableSs + taxExemptInterest)

      • ordinaryRealized: Ordinary income realized this year, the carryforward netting's ordinaryAfter (unit: usd/year) (domain: nonnegative; the netting floors it at zero)
      • gainsRealized: Signed net capital gain after carryforward netting (unit: usd/year) (domain: at or above minus the annual ordinary-offset limit)
      • qualifiedDividends: Qualified dividends realized this year (unit: usd/year) (domain: nonnegative)
      • taxableSs: Taxable share of Social Security under section 86 (unit: usd/year) (domain: nonnegative)
      • taxExemptInterest: Federally tax-exempt interest realized this year (unit: usd/year) (domain: nonnegative)

      Timing: once per projection year, in the funding-and-close phase

      Rounding: none

      Limits:

      • Asserted on real simulatePlan runs rather than at a seam. The positive case is a real plan whose single year realizes all five terms exactly as the worksheet states them (a recurring ordinary stream, a one-time capital-gain income, a taxable account whose wholly qualified dividend yield and municipal sleeve carry the third and fifth terms, and a Social Security benefit sized so that section 86 makes exactly the fourth taxable, with cost basis equal to balance so nothing else can realize a gain), and the published magi is checked against that year's own published components
      • The floor case is the only negative sum the ledger can reach: a deductible capital loss on the capital line with nothing else realized, because the ordinary-income term is applyCapitalLossCarryforward's ordinaryAfter and is floored at zero. The worksheet's first floor case gave ordinary income realized as minus 10,000, which that floor rules out; it was re-derived on the reachable path (a 20,000 carryforward carried into a year that realizes nothing else deducts the 3,000 annual limit on the capital line) and re-checked, and the test builds that year and checks each of the five terms and the published magi against the worksheet's inputs

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: medicare-magi-composition.md Mutation receipt: medicare-magi-composition.mutation.md

      Evidence tests: annualFundingApplicationAndClosePhase.evidence.test.ts

      Implemented in: result.ts; annualFundingApplicationAndClosePhase.ts

      Is the number of: magi-annual

      Feeds: irmaa-surcharge-annual, medicare-premiums-annual

    Fed by: Annual ordinary dividends distributed by a taxable account (formula record, 6 of 6 gates pass); Annual qualified dividends distributed by a taxable account (formula record, 6 of 6 gates pass); Annual taxable interest distributed by a taxable account (formula record, 6 of 6 gates pass); QCD income offset and qualified slice (composition record, 6 of 6 gates pass); QCD per-donor limit and age-70.5 annual proxy (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Medicare premiums annual

    Total Medicare premiums charged to the household during the projection year.

    Field: medicarePremiums Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: scenarios-page (Total Medicare premiums); scenarios-page (Annual ledger comparison "Medicare premiums" and lifetime "Total Medicare premiums" sum); survivor-page (SSA-44 premium savings column (difference of two runs of this value)); mcp (run_projection.years[].medicarePremiums)

    • Medicare base Part B premium Data record, justified by derivation

      Purpose: Annualize the standard Part B premium for a covered person at tier 0.

      Statement: tax/medicare.ts#medicareAnnualPremiumPerPerson publishes the 2026 standard Part B premium per Medicare-covered person as year2026.medicare.partBStandardMonthly times twelve, with no Part D surcharge and no IRMAA surcharge at tier 0. Units: nominal USD per person per year. Rounding: none stated.

      Formula: partBAnnual = partBMonthly(tier) x premiumScale x 12; at tier 0 partBMonthly = base

      • base: year2026.medicare.partBStandardMonthly (unit: usd/person/month) (domain: positive)
      • partBMonthly(tier): The standard premium at tier 0; above it, CMS's published tier total (medicare-irmaa-first-tier-boundary) (unit: usd/person/month) (domain: positive)
      • premiumScale: Healthcare-inflation scale to the premium year, from the latest year CMS has published (unit: 1) (domain: positive; 1 in a year CMS has published)

      Timing: one premium year, per covered person

      Rounding: none stated

      Limits:

      • Per person, not per household: a two-person Medicare year charges this twice
      • The Part D out-of-pocket threshold the published parameters also carry is not a premium and never enters this figure
      • Restated 2026-09-28 under decision D-2027-ROLLOVER: the premium scale runs from the year of the latest CMS publication (params/index.ts#componentPackView), not the year of the whole set of published figures, so a year whose Medicare premiums CMS has published reads them at a scale of 1 while its other figures may still be projected. Until CMS publishes 2027 the scale from 2026 is exactly the one used before

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: medicare-base-part-b-premium.md Mutation receipt: medicare-base-part-b-premium.mutation.md

      Evidence tests: medicare.evidence.test.ts

      Implemented in: medicare.ts; index.ts

      Is the number of: medicare-premiums-annual, irmaa-surcharge-annual

      Feeds: spending-healthcare-annual

    • Medicare IRMAA tier premiums and the first-tier boundary Formula record, justified by derivation

      Purpose: Price each IRMAA tier at the premiums CMS publishes, and the cliff at the first threshold on both sides of the same dollar.

      Statement: tax/medicare.ts#medicareAnnualPremiumPerPerson applies the 2026 single-filer first IRMAA tier only when two-year-lookback MAGI is strictly greater than the tier's magiOver (the top tier when it is at or above its floor), then prices Part B at CMS's published total monthly premium for the tier (params/data/year2026.ts, irmaaTiers[i].partBTotalMonthly: 284.10, 405.80, 527.50, 649.20 and 689.90 dollars for 2026) and adds CMS's published monthly Part D amount (14.50, 37.50, 60.40, 83.30 and 91.00). The table is read as published, not re-derived as the standard premium times the applicable percentage over 25, which CMS applies to the unrounded actuarial rate and which misses four of the five totals by cents. The IRMAA-only surcharge is the Part B amount above standard plus the Part D amount. A year after the latest CMS publication grows the latest published figures by the Medicare component's projection factor (cmsMedicare), as the standard premium grows. At 109,001 of single MAGI Part B is 3,409.20 a year and the IRMAA-only surcharge 1,148.40. Units: nominal USD per person per year, and an integer tier. Rounding: none; the published figures are whole cents.

      Formula: tier = 1 when MAGI > magiOver (the top tier when MAGI >= its floor); partBMonthly = partBTotalMonthly(tier) x premiumScale, standard at tier 0; irmaaSurchargeAnnual = max(0, partBMonthly - base x premiumScale) x 12 + partDSurchargeMonthly x premiumScale x 12

      • MAGI: Two-year-lookback MAGI (unit: usd/year) (domain: nonnegative)
      • magiOver: First-tier floor, year2026.medicare.irmaaTiers[0].magiOver for the filing status (unit: usd/year) (domain: positive)
      • partBTotalMonthly(tier): CMS's published total monthly Part B premium for the tier, full Part B coverage (unit: usd/person/month) (domain: above base)
      • base: year2026.medicare.partBStandardMonthly (unit: usd/person/month) (domain: positive)
      • partDSurchargeMonthly: CMS's published Part D income-related monthly adjustment for the tier (unit: usd/person/month) (domain: nonnegative, or null when unverified)
      • premiumScale: Healthcare-inflation scale to the premium year from the latest year CMS has published (unit: 1) (domain: positive; 1 in a year CMS has published)

      Timing: one premium year, per covered person

      Rounding: none; the published figures are whole cents

      Limits:

      • The tier totals are CMS's published figures, not the standard premium times the applicable percentage over 25 (284.06 against 284.10 at the 2026 first tier); reading the percentage as a surcharge on the standard premium (35% as standard plus 35%) understates every tier further
      • A year after the latest CMS publication is projected: it grows the latest published totals and Part D amounts by the Medicare component's factor, a stand-in for CMS's next table, which re-derives every tier from a new actuarial rate
      • The lower tiers use a strict greater-than test and only the top tier is inclusive; that asymmetry is the module's own stated convention
      • A tier whose Part D surcharge is unpublished sets partDSurchargeUnverified rather than inventing a figure; every 2026 tier's is published
      • The table is the full-Part-B-coverage table for single and joint filers; the separate tables for married people filing separately who lived with their spouse, and for immunosuppressive-drug-only coverage, are not read

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: medicare-irmaa-first-tier-boundary.md Mutation receipt: medicare-irmaa-first-tier-boundary.mutation.md

      Evidence tests: medicare.evidence.test.ts

      Implemented in: medicare.ts; year2026.ts

      Is the number of: medicare-premiums-annual, irmaa-surcharge-annual

      Feeds: spending-healthcare-annual

    Fed by: IRMAA lookback MAGI selection (model record, 6 of 6 gates pass); Medicare IRMAA two-year lookback (data record, 6 of 6 gates pass); Ledger MAGI composition (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Scenario IRMAA surcharge tier years

    Count of projection years whose IRMAA tier is above 0.

    Field: Years in an IRMAA surcharge tier Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: scenarios-page (Medicare table "Years in a surcharge tier")

    • Scenario comparison: years in an IRMAA surcharge tier Composition record, justified by derivation

      Purpose: How many projection years sit strictly above IRMAA tier 0, compared proposal-minus-baseline.

      Statement: For each side, surchargeTierYears = count of projection years whose published irmaaTier is strictly greater than 0 (tier 0 is the standard premium; tiers 1–5 are surcharge tiers). The comparison is the integer triple (baseline count, proposal count, proposal − baseline). Units: year counts. Rounding: none (exact integers).

      Formula: count = sum_y 1[irmaaTier_y > 0]; delta = count_proposal − count_baseline

      • irmaaTier_y: Published IRMAA tier classification for year y (unit: tier) (domain: integer 0..5)
      • count: Number of surcharge-tier years on one side (unit: years) (domain: integer >= 0)

      Timing: one count per side over that side's projection years

      Rounding: none

      Limits:

      • Medicare premium dollars and the maximum tier are different outputs; this record counts years only
      • The evidence constructs the stated irmaaTier rows rather than running two full simulations

      Provenance: derived by codex, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: scenario-irmaa-surcharge-tier-years.md Mutation receipt: scenario-irmaa-surcharge-tier-years.mutation.md

      Evidence tests: comparison.evidence.test.ts

      Implemented in: comparison.ts

      Is the number of: scenario-irmaa-surcharge-tier-years

      Feeds: scenario-comparison-cell

  • Spending healthcare annual

    Healthcare expense charged in a projection year, excluding the separately shown insurance premium channel.

    Field: Healthcare expense Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (healthcare); csv (healthcare); cash-flow-drilldown (healthcare use line)

    • Annual healthcare expense: Medicare, extras and marketplace premiums Composition record, justified by derivation

      Purpose: Everything the projection charges the household for health coverage in one year.

      Statement: YearResult.expenses.healthcare adds, for each LIVING person: the tier-priced annual Medicare premium (Part B plus any Part D IRMAA surcharge, itself scaled by the healthcare factor from the year of the published parameters to this year) prorated by Medicare months / 12, plus medicareExtrasMonthlyPerPerson x Medicare months x the healthcare inflation factor from the start year, plus (with the ACA credit OFF) pre65MonthlyPremiumPerPerson x marketplace months x that same factor. Medicare months are 12 minus marketplace months, and marketplace months are 12 below 65, birth month minus 1 in the year 65 is attained, and 0 after. With the credit ON the marketplace component instead enters the ACA gross enrollment premium during the solve, and when the year is published actionable (its coverage year has published figures, no support code blocks pricing, and the funding fixed point converges) healthcare is republished as healthcare excluding enrollment plus the economic net premium; every other year keeps the gross premium, by design in a year whose credit cannot be priced (no published coverage-year figures, or a blocking support code) and as a fallback in a year whose fixed point does not converge, which the engine marks fixed-point-nonconvergent and publishes non-actionable. Units: nominal dollars per year. Rounding: none.

      Formula: credit off: healthcare = sum_p [ P_tier(p) x M_p/12 + extras x M_p x h + premium x A_p x h ], M_p = 12 - A_p; credit on: healthcare = H_ex + N in an actionable year, H_ex + G in any other year, H_ex = sum_p [ P_tier(p) x M_p/12 + extras x M_p x h ]

      • P_tier(p): Annual Part B + Part D surcharge at the lookback MAGI tier for the year, from CMS's published tier table (medicare-irmaa-first-tier-boundary) (unit: usd/year) (domain: positive)
      • H_ex: Healthcare excluding the marketplace enrollment premium (unit: usd/year) (domain: nonnegative)
      • G: The year's gross marketplace enrollment premium (aca-contract-premium-basis) (unit: usd/year) (domain: nonnegative)
      • N: The economic net premium, the gross premium less the modeled allowable credit (aca-economic-net-premium) (unit: usd/year) (domain: nonnegative)
      • A_p, M_p: Marketplace and Medicare months for person p (unit: months) (domain: A_p + M_p = 12)
      • h: Cumulative healthcare inflation factor from the start year (general inflation plus the healthcare extra) (unit: 1) (domain: positive)

      Timing: annual; the Medicare tier reads the two-year lookback MAGI

      Rounding: none

      Limits:

      • The worksheet's household is constructible on one plan as it now stands: the second person's 4 marketplace months and 8 Medicare months partition that person's year, so a March-1958 birth (12 Medicare months) and a May-1961 birth (4 marketplace, 8 Medicare) are one household whose published healthcare is $8,832.00. The first derivation gave the second person the 4 marketplace months with no Medicare months and totalled $6,002.72 (on the old tier premium), an impossible annual partition; it was corrected on 2026-09-18, and the same reading, $6,003.20 on CMS's tier premium, is now the worksheet's third wrong reading, asserted as not matching
      • Beyond the worksheet's inputs the evidence plans fix: startYear 2025 with the asserted row in 2026, inflationPct 0 and healthcareExtraInflationPct 10, so the factor from the start year is 1.10 while the factor from the year of the published parameters (2026) to the asserted year is 1; this is what leaves the tier-priced premium unscaled while extras and the marketplace premium are scaled, the distinction the worksheet's first wrong reading names. Each person's own component is asserted on that person's own single-filer plan, and the household plan asserts the total and the 12 + 8 Medicare months behind it
      • Tier 1 is reached through assumptions.recentAnnualMagi, because the 2024 lookback year is before the projection and resolves to that plan fallback rather than to a projected MAGI. The two-person household files jointly, so it reaches the SAME tier 1 through the $218,000 joint threshold rather than the worksheet's $109,000 single threshold; the tier-priced premium is a function of the tier alone, so it is $3,583.20 either way: CMS's published $284.10 Part B total and $14.50 Part D amount, times 12
      • The second person's marketplace component is read as healthcare minus medicarePremiums minus that person's extras, since the phase result itself is not published on the year row; the extras rule it subtracts is pinned independently by the first person, whose zero marketplace months make healthcare minus medicarePremiums the extras exactly
      • The credit-on branch carries no numeric expectation: the worksheet states none without a complete ACA quote and a converged fixed point
      • With the credit on, the gross premium is the year's contract as the run prices it (aca-contract-premium-basis): a premiumField contract grows the premium field by the same healthcare factor as the credit-off branch, and a stated contract is held as written and charges nothing for a member who has died
      • A household funded just above 100% of the poverty line by need-driven withdrawals can have no self-consistent credit: the credit lowers the withdrawal need and with it MAGI, to below 100% where no credit is allowed, while the gross-funded MAGI is back above 100%. The fixed point then runs out its evaluations, publishes fixed-point-nonconvergent and budgets the gross premium (fixed-target-spending and brokerage-no-hsa in 2027, at 114.7% and 124.1% of the poverty line). That is the engine's model, not the law: 26 CFR 1.36B-2(b)(6) treats a household whose income ends below 100% as an applicable taxpayer when an Exchange estimated 100% to 400% at enrollment and advance credit was paid, and the engine does not model that exception (below-100-fpl-exception-unsupported), which is the truer reason such a year stays unpriced

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-healthcare-annual.md Mutation receipt: spending-healthcare-annual.mutation.md

      Evidence tests: annualHealthcareExpenses.spendingHealthcare.evidence.test.ts

      Implemented in: annualHealthcareExpenses.ts; medicare.ts

      Is the number of: spending-healthcare-annual

    Fed by: ACA 400% FPL cliff (data record, 6 of 6 gates pass); ACA modeled allowable premium tax credit (formula record, 6 of 6 gates pass); Premium-credit contract as a run prices it: premium basis and deaths (model record, 6 of 6 gates pass); ACA credit figures by coverage year (data record, 6 of 6 gates pass); ACA economic net premium (formula record, 6 of 6 gates pass); Medicare base Part B premium (data record, 6 of 6 gates pass); Medicare IRMAA tier premiums and the first-tier boundary (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

Accounts and growth

  • Accounts balance per account annual

    End-of-year balance of each plan account after flows and growth, keyed by account id.

    Field: End-of-year balance per account Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (Investable balances by account type (summed per category by display-balance-by-category-annual)); report (chart-data block per-category series (same category sum)); results-table (Inherited schedule and carryforward callouts read individual balances indirectly; no per-account column is printed); mcp (run_projection.summary.estateBreakdown[].grossBalance (the last projection year's balance, for each investable account whose balance is positive)); mcp (compare_scenarios.a.estateBreakdown[].grossBalance (the last projection year's balance, for each investable account whose balance is positive)); mcp (compare_scenarios.b.estateBreakdown[].grossBalance (the last projection year's balance, for each investable account whose balance is positive))

    • Year-end balance map: one entry per id, written channel by channel Composition record, justified by derivation

      Purpose: The per-account year-end balances the ledger publishes for every projection year.

      Statement: YearResult.balances, materialized by projection/internal/annualSnapshot.ts#annualSnapshot, is the year-end map written in exactly this order: logical investable balances, then property values, then ordinary debt balances, then permanent-life cash values. Object.fromEntries keeps the later-channel write, so when two channels share an id the LAST channel written wins. Each value is that channel's own full-year figure and no netting across channels happens: a debt appears as its positive outstanding balance, not as a negative asset. Units: nominal dollars per id. Rounding: none.

      Formula: balances = fromEntries([...investable, ...property, ...debt, ...insuranceCashValue]) ; last write wins per id

      • investable: One published row per logical investable account id, at its year-end balance (unit: usd) (domain: finite)
      • property, debt: Year-end property values and ordinary debt balances, in insertion order (unit: usd) (domain: nonnegative)
      • insuranceCashValue: Permanent-life cash values, written last (unit: usd) (domain: nonnegative)

      Timing: once per projection year, at the end of the annual pass

      Rounding: none

      Limits:

      • Beyond the worksheet's inputs the evidence plan fixes: a single filer aged 51 in 2026 (no Medicare month, no required distribution), the plan's inflationPct at 3 (the property grows at general inflation, see below), zero return on the investable account, wage and recurring income sized to fund the stated contribution and the $4,000 debt service, no spending other than that debt service and the $15,000 withdrawal realized as a one-time goal, a single-year horizon, and an interest-free debt whose scheduled payment is exactly the $4,000 of principal the worksheet amortizes
      • The withdrawal is realized as an uninflated one-time goal, which is what makes the investable close opening + contributions - withdrawals at a zero return
      • The worksheet names 3% as the PROPERTY's appreciation; internal/propertyEventsAndGrowth.ts grows a property at GENERAL inflation and ignores the property account's own annualReturnPct, so the evidence sets the plan's inflationPct to 3 instead. In the start year every cumulative factor is still 1, so nothing else in the row moves
      • The collision case is asserted by calling annualSnapshot directly with four channels on one id, because no valid plan can reach the snapshot with two channels on one id: the plan checks refuse every pair of rows that would publish a value under a shared id (model/sharedIdCollisions.ts). The overwrite order is a property of the snapshot, not of any plan
      • The map holds no HECM line: HECM debt is published separately and only enters net worth under its non-recourse cap
      • Until decision D-CASH-PROPERTY-ALIAS (2026-09-25, extended the next day) the plan checks accepted several pairs on a single id: a cash account and a property, a property and a debt, two properties, two debts, an account and a permanent-life policy, and two permanent-life policies. The later value then overwrote the earlier one in this map and in every figure read from it (a $300,000 home published as cash), and two properties, two debts or two permanent-life policies under one id counted only one of them in net worth. The checks now refuse every such pair, and a stored plan that has one gets new ids for the colliding rows when it is loaded (an investable account keeps the id), so no plan reaches the snapshot with one

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: accounts-balance-per-account-annual.md Mutation receipt: accounts-balance-per-account-annual.mutation.md

      Evidence tests: annualSnapshot.balances.evidence.test.ts

      Implemented in: annualSnapshot.ts; simulate.ts

      Is the number of: accounts-balance-per-account-annual

      Feeds: display-balance-by-category-annual

    Fed by: Glidepath compilation: linear interpolation with flat endpoints, staged as a step function (model record, 6 of 6 gates pass); Unrebalanced weights after one year of class returns (formula record, 6 of 6 gates pass); Allocation weights to a normalized fraction vector in class order (formula record, 6 of 6 gates pass); Asset-class parameters: assumption overrides laid over the sourced defaults (composition record, 6 of 6 gates pass); Annual surplus invested, floored at zero (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Accounts ending balance by category

    End-of-plan balance summed by account category (cash, taxable, traditional, roth, hsa) over the selected logical balance accounts.

    Field: Ending balance by category Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: results-headline (KpiBar "ending Roth $X" (endingByCategory.roth)); scenarios-page (Estate table Cash / Taxable / Traditional / Roth / HSA rows); mcp (run_projection.summary.endingByCategory); mcp (compare_scenarios.a.endingByCategory); mcp (compare_scenarios.b.endingByCategory)

    • Ending balances by logical account category Composition record, justified by derivation

      Purpose: How the last ledger year's account balances roll up into the five published categories.

      Statement: projection/compare.ts#summarizeProjection publishes endingByCategory as the sum of the LAST ledger year's published balances by the corresponding selected logical account type: cash, taxable, traditional, roth and hsa. Equity-compensation balances are not one of these five categories, and no property, debt, ladder or insurance value enters them. Units: nominal USD. Rounding: none.

      Formula: endingByCategory[c] = sum over selected accounts of type c of lastYear.balances[accountId]

      • lastYear: Final row of the ledger (unit: year row) (domain: empty ledger publishes five zeros)
      • c: Published category (unit: enum) (domain: cash | taxable | traditional | roth | hsa)

      Timing: once per projection, on the final ledger row

      Rounding: none

      Limits:

      • Asserted at summarizeProjection with the worksheet's six accounts, their plan types and their last-year balances verbatim, over a two-row ledger whose penultimate row carries a distinct sentinel balance on every account so a row mistake cannot pass. Plan assumptions beyond the worksheet's inputs: each account opens at a zero balance with zero returns, because the summary reads the ledger row rather than the plan; the owner-held accounts name the plan's single person
      • The test also asserts that the published object has exactly the five category keys, which is how the worksheet's third wrong reading (adding property or insurance categories) is discriminated
      • Since 2026-09-26 the roll-up is projection/yearFigures.ts#balancesByCategory read for the last row (the same sums in the same order, so the published figures did not move). That function refuses a plan in which an account id is also the id of a property, a debt or a permanent-life policy, so the summary now stops on such a plan instead of reporting the overwritten value as the account's; the plan checks refuse those plans and stored ones are repaired on load

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: accounts-ending-balance-by-category.md Mutation receipt: accounts-ending-balance-by-category.mutation.md

      Evidence tests: compareSummary.evidence.test.ts

      Implemented in: compare.ts; yearFigures.ts

      Is the number of: accounts-ending-balance-by-category

    Fed by: Annual employer match under the pay cap and the annual-additions limit (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Accounts investable total annual

    Cash + taxable + traditional + Roth + HSA (+ unassigned) balances at year end.

    Field: Investable total Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (investable); results-table (Investable column); report (year-ledger block investable and ReportPage year table); chart (Path to FI chart investable line); scenarios-page (Annual ledger comparison "Investable assets"); survivor-page (Survivor spending "low point" (minimum over survivor years)); results-table (Bucket lens investableTotal row and bucket sum); insights (spending-guardrails and hecm-buffer cards read year-one investableTotal)

    • Annual investable total Composition record, justified by derivation

      Purpose: The year-end balance a plan can actually spend from, and what is deliberately left out.

      Statement: projection/internal/annualSnapshot.ts#annualSnapshot opens the investable fold at unassignedCash and adds every investable balance in simulator order (cash, taxable, equity-compensation, traditional, Roth and HSA accounts), publishing the sum as projection/internal/types/result.ts#YearResult.investableTotal. Property values, ordinary debts, HECM loans and permanent-life cash values are folded into their own separate totals and are not members; the TIPS ladder value is computed outside the snapshot and is likewise not a member. netWorth adds those channels. Units: nominal USD at year end. Rounding: none; the additions are left in their original loop order because regrouping binary floats can move the last bit.

      Formula: investableTotal = unassignedCash + sum over investable balances of balance

      • unassignedCash: Cash with no modeled account to land in; opens the fold (unit: usd) (domain: nonnegative)
      • balance: One investable account's year-end balance (unit: usd) (domain: nonnegative)
      • insuranceCashValueTotal, propertyTotal, debtTotal, ladderValue: Separate channels, excluded here (unit: usd) (domain: nonnegative; members of netWorth only)

      Timing: once per projection year, at the end-of-pass snapshot

      Rounding: none

      Limits:

      • The worksheet's case is asserted at annualSnapshot, the function that computes the field, because unassigned cash and a cash or taxable account cannot coexist in a real plan: simulatePlan only tracks cash as unassigned when there is no cash or taxable account for surplus to land in, so the worksheet's $2,000 of unassigned cash alongside $15,000 of cash accounts and $120,000 of taxable accounts is not a state a plan produces
      • The member list is separately asserted on a real simulatePlan run carrying the worksheet's six account balances plus a permanent-life policy: the published investableTotal is the six balances and excludes the policy cash value and the property, both of which the same row publishes
      • Equity compensation is a member whether or not it has vested; the vesting mode gates spending, not the balance total

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: accounts-investable-total-annual.md Mutation receipt: accounts-investable-total-annual.mutation.md

      Evidence tests: annualSnapshot.evidence.test.ts

      Implemented in: annualSnapshot.ts; result.ts

      Is the number of: accounts-investable-total-annual

      Feeds: accounts-net-worth-annual, projection-result-ending-investable

    Fed by: Unrebalanced weights after one year of class returns (formula record, 6 of 6 gates pass); Allocation weights to a normalized fraction vector in class order (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Accounts net worth annual

    Modeled total net worth at the end of a projection year.

    Field: Net worth Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (netWorth); report (headlineResults); results-table (Net worth column); report (year-ledger block netWorth and ReportPage year table); scenarios-page (Annual "Net worth")

    • Annual net worth, with the non-recourse HECM cap Composition record, justified by derivation

      Purpose: The year-end balance sheet, including the homes and the debts the investable total leaves out.

      Statement: projection/internal/annualYearResultAssembly.ts#annualYearResultAssembly publishes projection/internal/types/result.ts#YearResult.netWorth as snapshot.investableTotal + snapshot.propertyTotal - snapshot.debtTotal + snapshot.insuranceCashValueTotal + ladderValue - snapshot.hecmEffectiveDebt, in that left-to-right association. projection/internal/annualSnapshot.ts#annualSnapshot supplies hecmEffectiveDebt as the sum over open HECM lines of min(loanBalance, the matching property value), the non-recourse limit; the uncapped loan total is published separately as hecmLoanBalance and is never the net-worth subtrahend. Units: nominal USD at year end. Rounding: none; the association is part of the contract.

      Formula: netWorth = investableTotal + propertyTotal - debtTotal + insuranceCashValueTotal + ladderValue - sum over HECM lines of min(loanBalance, propertyValue)

      • propertyTotal: Sum of owned property values at year end (unit: usd) (domain: nonnegative)
      • debtTotal: Sum of ordinary debt balances (unit: usd) (domain: nonnegative; subtracted)
      • insuranceCashValueTotal: Permanent-life cash values (unit: usd) (domain: nonnegative)
      • ladderValue: Remaining TIPS-ladder principal at nominal book value (unit: usd) (domain: nonnegative)
      • hecmEffectiveDebt: HECM loans capped line by line at the matching home value (unit: usd) (domain: nonnegative; subtracted)

      Timing: once per projection year, at the year-result assembly

      Rounding: none

      Limits:

      • The worksheet's case is asserted at annualSnapshot and annualYearResultAssembly, the two functions that compute the cap and the composition, because the worksheet states HECM loan balances of $420,000 and $50,000 as year-end facts: a HECM balance is an accrual of draws, interest and mortgage-insurance premium that no plan can set directly, so those two figures are not a state a plan produces
      • Only the cap is capped: a loan above its home's value is limited to that value, while a loan below it is subtracted in full, which is why the worksheet's two homes need two different branches of the same min
      • Ordinary debt is subtracted, not added; adding it is the worksheet's third wrong reading and moves the answer by twice the debt

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: accounts-net-worth-annual.md Mutation receipt: accounts-net-worth-annual.mutation.md

      Evidence tests: annualYearResultAssembly.evidence.test.ts

      Implemented in: annualYearResultAssembly.ts; annualSnapshot.ts; result.ts

      Is the number of: accounts-net-worth-annual

      Feeds: projection-result-ending-net-worth

    Fed by: Annual investable total (composition record, 6 of 6 gates pass); Annual HECM draw, including the last-resort backstop (formula record, 6 of 6 gates pass); Annual permanent-life cash value and death-year settlement (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Display balance by category annual

    Per year, the year-end balances of the plan's logical investable accounts (one per id) summed within each category (cash, taxable, equityComp, traditional, roth, hsa), with the unassigned cash the ledger holds outside every account published beside them.

    Field: Balances by account type Unit: US dollars Basis: nominal dollars Computed by: UI transformation Status: Complete chain

    Appears in: chart (Investable balances by account type stacked areas); report (chart-data block cash/taxable/equityComp/traditional/roth/hsa and chartDataCsv, and the printed report chart's stacked categories)

    • Balances by account type, one value per logical account Composition record, justified by derivation

      Purpose: How a year's account balances roll up into the six stacked categories of the balance chart, with the unassigned cash beside them.

      Statement: projection/yearFigures.ts#balancesByCategory publishes, for a ledger year, the sum of YearResult.balances[id] over the plan's selected logical balance accounts (one per id, model/plan.ts#selectedLogicalBalanceAccounts) by account type into cash, taxable, equityComp, traditional, roth and hsa, and refuses a plan in which an account id is also the id of a property, a debt or a permanent-life policy. projection/yearFigures.ts#unassignedCash reads YearResult.unassignedCash, the surplus the ledger holds outside every account, which is in investableTotal and in no category. Units: nominal USD at year end. Rounding: none.

      Formula: balance[c] = sum over logical balance accounts a of type c of balances[a.id]; investableTotal = sum over c of balance[c] + unassignedCash (up to binary association)

      • c: Category (unit: enum) (domain: cash | taxable | equityComp | traditional | roth | hsa)
      • balances[id]: The year's published aggregate balance of the logical account id (unit: usd) (domain: finite)
      • unassignedCash: Surplus with no cash or taxable account to land in (unit: usd) (domain: nonnegative; 0 in a plan with a cash or taxable account)

      Timing: annual, end of year after flows and growth

      Rounding: none

      Limits:

      • One value per logical account id: rows sharing an id are one account, whose aggregate the ledger publishes once. Owner decision R1 (2026-09-25): the pages used to add the aggregate once per physical row, so an account split across two 50,000 rows showed 200,000 instead of 100,000
      • Unassigned cash is in investableTotal and in no category; it is published beside the categories so the chart can draw it rather than stop short of investableTotal
      • Refuses, rather than reads, an id shared with a property, a debt or a permanent-life policy (decision D-CASH-PROPERTY-ALIAS): the plan checks refuse such plans and stored ones are repaired on load, so this fires only on a plan that did not go through them
      • endingByCategory in the projection summary is this roll-up read for the last row, without equity compensation

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-balance-by-category-annual.md Mutation receipt: display-balance-by-category-annual.mutation.md

      Evidence tests: yearFigures.evidence.test.ts

      Implemented in: yearFigures.ts; plan.ts; result.ts

      Is the number of: display-balance-by-category-annual

    Fed by: Year-end balance map: one entry per id, written channel by channel (composition record, 6 of 6 gates pass); Today's dollars by the ledger's own inflation factor (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Estate to charity

    Sum over accounts with a charity destination of gross balance times the charity share.

    Field: Estate passing to charity Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: scenarios-page (Estate table "Charitable destination"); mcp (run_projection.summary.endingEstateToCharity); mcp (compare_scenarios.a.endingEstateToCharity); mcp (compare_scenarios.b.endingEstateToCharity)

    • Ending estate passing to charity Formula record, justified by derivation

      Purpose: How much of the ending estate is carved out to charity, before any heir tax.

      Statement: projection/compare.ts#summarizeProjection publishes endingEstateToCharity as the sum, over accounts whose resolved estate destination is charity, of gross ending balance x min(1, charityPct/100). Non-charity destinations contribute zero. The share is applied to the pre-carveout gross model value and passes untaxed; the remainder follows the non-spouse-heir treatment and does not change this field. Units: nominal USD. Rounding: none.

      Formula: endingEstateToCharity = sum over charity accounts of G x min(1, p/100)

      • G: Gross ending balance of the account (unit: usd) (domain: positive rows only)
      • p: Charity share (unit: percent) (domain: 0..100, capped at 1 after division)

      Timing: once per projection, on the final ledger row

      Rounding: none

      Limits:

      • Asserted at summarizeProjection with the worksheet's three accounts, their destinations, charity percents and gross ending balances verbatim, and at the per-account charity amounts as well as the total, so a compensating pair of errors cannot pass. Plan assumptions beyond the worksheet's inputs: each account opens at a zero balance with zero returns, because the summary reads the final ledger row rather than the plan, and the default heir tax rate applies to the non-charity remainder without entering this field
      • The worksheet's third wrong reading (reading 25 as a decimal) is the reason the record states the min(1, p/100) cap rather than a bare multiplication

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: estate-to-charity.md Mutation receipt: estate-to-charity.mutation.md

      Evidence tests: compareSummary.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: estate-to-charity

    Fed by: Estate breakdown by account (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Estate to charity by account

    For each investable account with a positive ending balance whose estate destination is charity, its gross ending balance times the charity share (capped at 100%), passing untaxed; 0 for every other destination. The amounts sum to estate-to-charity.

    Field: Estate to charity by account Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: mcp (run_projection.summary.estateBreakdown[].charityAmount); mcp (compare_scenarios.a.estateBreakdown[].charityAmount); mcp (compare_scenarios.b.estateBreakdown[].charityAmount)

    • Estate breakdown by account Formula record, justified by derivation

      Purpose: How each investable account's ending balance divides between charity, the heirs' assumed income tax and what passes on.

      Statement: projection/compare.ts#summarizeProjection publishes ProjectionSummary.estateBreakdown: one row for each logical balance account of the plan (cash, taxable, equity compensation, traditional, Roth and HSA, one row per account id, in the order the plan first lists them) whose balance G in the last ledger row is positive; an equity-compensation account is reported in the taxable category. The destination is the account's estateBeneficiary destination when set (with its charityPct, 0 when absent); otherwise nonSpouse for an HSA whose beneficiary field says nonSpouse, spouse for any other HSA, nonSpouse for a traditional account and spouse for any other account. The taxable pre-tax base B is, for a traditional account, projection/estateTraditionalBasis.ts#estateTraditionalTaxableBase: G less its basis share, floored at 0, where the share is min(N, T) × (G / T) when T is positive and 0 otherwise, T is the last row's traditional balances summed by category and N the projection's ending nondeductible IRA basis; for an HSA, projection/estateHsaIncome.ts#estateHsaIncomeBase: 0 for a spouse destination and G otherwise; for any other category 0. The heir rate r is the plan's heirTaxByClass rate for a traditional account or an HSA when that class is set, else heirTaxRatePct, divided by 100, and the row carries heirTaxRatePct = 100 × r. With f = min(1, charityPct / 100) for a charity destination and 0 otherwise: charityAmount = G × f; heirTax = 0 for a spouse destination, else B × (1 − f) × r; netToHeirs = G − charityAmount − heirTax. Units: nominal dollars of the projection's end year. Rounding: none. endingEstateHeirTax and endingEstateToCharity are the sums of the rows' heirTax and charityAmount.

      Formula: B = traditional: max(0, G − (T > 0 ? min(N, T) × (G / T) : 0)); hsa: (spouse ? 0 : G); otherwise 0. f = charity ? min(1, p / 100) : 0. charityAmount = G × f. heirTax = spouse ? 0 : B × (1 − f) × r. netToHeirs = G − charityAmount − heirTax

      • G: The account's balance in the last ledger row (grossBalance) (unit: nominal USD) (domain: positive; accounts at or below 0 have no row)
      • T: Traditional balances of the last ledger row, summed by category (unit: nominal USD) (domain: any; no basis is allocated when not positive)
      • N: The household's remaining nondeductible IRA basis at the end of the projection (unit: nominal USD) (domain: nonnegative)
      • p: The account's estate charity share (unit: percent) (domain: 0..100; 0 when not set)
      • r: Heir income-tax rate for the account class: heirTaxByClass for traditional or HSA when set, else heirTaxRatePct, over 100 (unit: fraction) (domain: 0..0.5 for a class rate)
      • f: Charity fraction of the account (unit: fraction) (domain: 0..1)
      • B: Taxable pre-tax base (taxablePretaxBase) (unit: nominal USD) (domain: 0..G)

      Timing: once per projection, on the last ledger row

      Rounding: none

      Limits:

      • The breakdown covers investable accounts only. Property, debts, insurance cash value, TIPS ladder value and a HECM loan reach the after-tax estate through net worth and have no row, so the rows' netToHeirs do not add up to endingAfterTaxEstate. A pension or an annuity has no row whatever its estateBeneficiary says: in the annuity-purchases-estate example the single-premium annuity's charity designation changes no figure here.
      • The basis share is the household's remaining nondeductible IRA basis spread over every traditional account by gross, employer plans and both spouses' accounts included (the registered approximation irc-408-d-2-estate-household-basis-allocation). A spouse destination keeps that base on its row although its heir tax is 0.
      • An HSA left to anyone but the spouse takes its whole ending balance as its taxable base, and heir tax falls on the part not left to charity (B × (1 − charityFraction) × r), without the 223(f)(8)(B)(ii)(I) reduction for the decedent's last medical expenses (irc-223-f-8-B-estate-predeath-expense-reduction). Taxable, equity-compensation, cash and Roth balances pass untaxed, the step-up convention irc-1014-a-1-basis-at-death-fair-market-value records.
      • heirTaxRatePct is the rate as the row applied it, 100 times the plan's percentage over 100, so it can differ from the plan's entry in the last binary digit: a 28% rate is carried as 28.000000000000004.
      • Evidence: summarizeProjection on the annuity-purchases-estate example as built (a spouse traditional IRA, a non-spouse 401(k), cash and Roth defaults, an annuity left to charity, a 28% heir rate) and varied to reach the branches the example does not (household basis of $49,000, class rates of 32% and 24%, the 401(k) 25% to charity, a non-spouse HSA, an equity-compensation account and a Roth IRA at a zero balance); a spouse-designated HSA and an HSA left partly to charity are not exercised, and follow the same formulas. Each case reads a one-row ledger at the example's opening balances: the breakdown reads only the last row, so how a projection reaches those balances does not enter it.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: estate-account-breakdown.md Mutation receipt: estate-account-breakdown.mutation.md

      Evidence tests: compareSummary.breakdowns.evidence.test.ts

      Implemented in: compare.ts; estateTraditionalBasis.ts; estateHsaIncome.ts

      Is the number of: estate-taxable-pretax-base-by-account, estate-heir-income-tax-by-account, estate-to-charity-by-account, estate-net-to-heirs-by-account

      Feeds: estate-heir-income-tax, estate-to-charity

  • Estate net to heirs by account

    For each investable account with a positive ending balance, what passes on after its charity share and the assumed heir income tax: gross ending balance minus charity amount minus heir tax, in nominal dollars of the projection's end year. The breakdown covers investable accounts only, so these amounts do not add up to the after-tax estate, which also carries property, debts and the other net-worth items.

    Field: Net to heirs by account Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: mcp (run_projection.summary.estateBreakdown[].netToHeirs); mcp (compare_scenarios.a.estateBreakdown[].netToHeirs); mcp (compare_scenarios.b.estateBreakdown[].netToHeirs)

    • Estate breakdown by account Formula record, justified by derivation

      Purpose: How each investable account's ending balance divides between charity, the heirs' assumed income tax and what passes on.

      Statement: projection/compare.ts#summarizeProjection publishes ProjectionSummary.estateBreakdown: one row for each logical balance account of the plan (cash, taxable, equity compensation, traditional, Roth and HSA, one row per account id, in the order the plan first lists them) whose balance G in the last ledger row is positive; an equity-compensation account is reported in the taxable category. The destination is the account's estateBeneficiary destination when set (with its charityPct, 0 when absent); otherwise nonSpouse for an HSA whose beneficiary field says nonSpouse, spouse for any other HSA, nonSpouse for a traditional account and spouse for any other account. The taxable pre-tax base B is, for a traditional account, projection/estateTraditionalBasis.ts#estateTraditionalTaxableBase: G less its basis share, floored at 0, where the share is min(N, T) × (G / T) when T is positive and 0 otherwise, T is the last row's traditional balances summed by category and N the projection's ending nondeductible IRA basis; for an HSA, projection/estateHsaIncome.ts#estateHsaIncomeBase: 0 for a spouse destination and G otherwise; for any other category 0. The heir rate r is the plan's heirTaxByClass rate for a traditional account or an HSA when that class is set, else heirTaxRatePct, divided by 100, and the row carries heirTaxRatePct = 100 × r. With f = min(1, charityPct / 100) for a charity destination and 0 otherwise: charityAmount = G × f; heirTax = 0 for a spouse destination, else B × (1 − f) × r; netToHeirs = G − charityAmount − heirTax. Units: nominal dollars of the projection's end year. Rounding: none. endingEstateHeirTax and endingEstateToCharity are the sums of the rows' heirTax and charityAmount.

      Formula: B = traditional: max(0, G − (T > 0 ? min(N, T) × (G / T) : 0)); hsa: (spouse ? 0 : G); otherwise 0. f = charity ? min(1, p / 100) : 0. charityAmount = G × f. heirTax = spouse ? 0 : B × (1 − f) × r. netToHeirs = G − charityAmount − heirTax

      • G: The account's balance in the last ledger row (grossBalance) (unit: nominal USD) (domain: positive; accounts at or below 0 have no row)
      • T: Traditional balances of the last ledger row, summed by category (unit: nominal USD) (domain: any; no basis is allocated when not positive)
      • N: The household's remaining nondeductible IRA basis at the end of the projection (unit: nominal USD) (domain: nonnegative)
      • p: The account's estate charity share (unit: percent) (domain: 0..100; 0 when not set)
      • r: Heir income-tax rate for the account class: heirTaxByClass for traditional or HSA when set, else heirTaxRatePct, over 100 (unit: fraction) (domain: 0..0.5 for a class rate)
      • f: Charity fraction of the account (unit: fraction) (domain: 0..1)
      • B: Taxable pre-tax base (taxablePretaxBase) (unit: nominal USD) (domain: 0..G)

      Timing: once per projection, on the last ledger row

      Rounding: none

      Limits:

      • The breakdown covers investable accounts only. Property, debts, insurance cash value, TIPS ladder value and a HECM loan reach the after-tax estate through net worth and have no row, so the rows' netToHeirs do not add up to endingAfterTaxEstate. A pension or an annuity has no row whatever its estateBeneficiary says: in the annuity-purchases-estate example the single-premium annuity's charity designation changes no figure here.
      • The basis share is the household's remaining nondeductible IRA basis spread over every traditional account by gross, employer plans and both spouses' accounts included (the registered approximation irc-408-d-2-estate-household-basis-allocation). A spouse destination keeps that base on its row although its heir tax is 0.
      • An HSA left to anyone but the spouse takes its whole ending balance as its taxable base, and heir tax falls on the part not left to charity (B × (1 − charityFraction) × r), without the 223(f)(8)(B)(ii)(I) reduction for the decedent's last medical expenses (irc-223-f-8-B-estate-predeath-expense-reduction). Taxable, equity-compensation, cash and Roth balances pass untaxed, the step-up convention irc-1014-a-1-basis-at-death-fair-market-value records.
      • heirTaxRatePct is the rate as the row applied it, 100 times the plan's percentage over 100, so it can differ from the plan's entry in the last binary digit: a 28% rate is carried as 28.000000000000004.
      • Evidence: summarizeProjection on the annuity-purchases-estate example as built (a spouse traditional IRA, a non-spouse 401(k), cash and Roth defaults, an annuity left to charity, a 28% heir rate) and varied to reach the branches the example does not (household basis of $49,000, class rates of 32% and 24%, the 401(k) 25% to charity, a non-spouse HSA, an equity-compensation account and a Roth IRA at a zero balance); a spouse-designated HSA and an HSA left partly to charity are not exercised, and follow the same formulas. Each case reads a one-row ledger at the example's opening balances: the breakdown reads only the last row, so how a projection reaches those balances does not enter it.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: estate-account-breakdown.md Mutation receipt: estate-account-breakdown.mutation.md

      Evidence tests: compareSummary.breakdowns.evidence.test.ts

      Implemented in: compare.ts; estateTraditionalBasis.ts; estateHsaIncome.ts

      Is the number of: estate-taxable-pretax-base-by-account, estate-heir-income-tax-by-account, estate-to-charity-by-account, estate-net-to-heirs-by-account

      Feeds: estate-heir-income-tax, estate-to-charity

  • HECM draw annual

    Tax-free HECM line-of-credit proceeds drawn this year (coordinated draws after down years plus last-resort backstop draws).

    Field: HECM draw Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: cash-flow-drilldown (hecmCoordinatedDraw and hecmBackstopDraw source lines (YearCashFlow line identities))

    • Annual HECM draw, including the last-resort backstop Formula record, justified by derivation

      Purpose: What an open reverse-mortgage line actually lends the household this year.

      Statement: projection/internal/types/result.ts#YearResult.hecmDraw is the accepted coordinated draw plus any backstop draw planned by projection/internal/annualHecmBackstop.ts#annualHecmBackstopPlan against a true portfolio shortfall. With the coordinated draw zero, the backstop is min(true shortfall, available open line), where the available line is max(0, principalLimit - loanBalance); draw policy does not gate it, because every open line is a last backstop before the household is reported depleted. Units: nominal USD per year. Rounding: none.

      Formula: backstop = min(shortfall, max(0, principalLimit - loanBalance)); hecmDraw = coordinated + backstop; shortfallAfterHecm = max(0, shortfall - backstop)

      • shortfall: True portfolio shortfall before the backstop (unit: usd) (domain: above the annual funding tolerance)
      • principalLimit: HECM line principal limit (unit: usd) (domain: nonnegative)
      • loanBalance: Amount already drawn on the line (unit: usd) (domain: nonnegative)

      Timing: once per projection year, after the accepted withdrawal plan

      Rounding: none

      Limits:

      • Asserted twice: at the exported backstop planner with the worksheet's open line, 40,000 shortfall and 25,000 available line verbatim, and as the published hecmDraw of a real simulatePlan year built from the same inputs (a last-resort line on a 500,000 primary residence at the schema's minimum 5-percent principal limit and a zero growth rate, so the available line is exactly 25,000, against a 40,000 lifestyle need with no portfolio at all). Plan assumptions beyond the worksheet's inputs for that ledger year: a 64-year-old filing single in KY at a zero state rate, so no Medicare or marketplace premium can change the need, and no coordinated draw is possible because the policy is lastResort
      • The worksheet derives only the backstop case; the extract states no sizing formula for a coordinated draw, so this record makes no claim about one

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: hecm-draw-annual.md Mutation receipt: hecm-draw-annual.mutation.md

      Evidence tests: annualHecmBackstop.evidence.test.ts

      Implemented in: result.ts; annualHecmBackstop.ts

      Is the number of: hecm-draw-annual

      Feeds: spending-shortfall-annual, accounts-net-worth-annual

  • Income taxable yield annual

    Taxable account income recognized in a projection year.

    Field: Taxable investment yield Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (taxableYield); csv (taxableYield); scenarios-page (Lifetime income "Taxable yield"); cash-flow-drilldown (taxableAccountYield source line)

    • Annual taxable yield distributed by a taxable account Formula record, justified by derivation

      Purpose: Interest plus all dividends, the single taxable-yield figure the income total counts.

      Statement: projection/internal/distributedTaxableYieldRows.ts#distributedTaxableYieldRows computes, for each taxable account whose start-of-year balance is strictly positive, taxableGross = interest + dividends, and projection/internal/annualIncomeSetup.ts#annualIncomeSetup folds those rows into the published projection/internal/types/result.ts#YearResult.incomes.taxableYield. Qualified and ordinary dividends partition dividends and are not added again; federally tax-exempt interest is computed on the same balance from taxExemptInterestYieldPct but is a separate published member and never joins taxable yield. Units: nominal USD per year. Rounding: none.

      Formula: taxableYield = startBalance * interestYieldPct / 100 + startBalance * dividendYieldPct / 100

      • startBalance: Start-of-year balance, the prior year's close (unit: usd) (domain: strictly positive, else no row)
      • interestYieldPct, dividendYieldPct: Account yields in percent of the start balance (unit: percent/year) (domain: nonnegative)
      • taxExemptInterestYieldPct: Municipal sleeve yield, published separately (unit: percent/year) (domain: nonnegative; never in taxable yield)

      Timing: once per taxable account per projection year, before the wage pass

      Rounding: none

      Limits:

      • Asserted on two real simulatePlan runs of the projection's first year, where the start-of-year balance is the plan balance. Plan assumptions beyond the worksheet's inputs: a single 51-year-old filing single in KY with a zero state rate, zero inflation, zero account return and cost basis equal to balance; the account carries no allocation, so the defaults case exercises the no-blend fallback
      • The dividend partition is asserted alongside the total, because the worksheet's first wrong reading is adding the partition back on top of its own parent
      • Taxable yield joins the income total whether or not it is reinvested; reinvestment only decides whether the same dollars reach the household cash hub

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: income-taxable-yield-annual.md Mutation receipt: income-taxable-yield-annual.mutation.md

      Evidence tests: distributedTaxableYieldRows.evidence.test.ts

      Implemented in: distributedTaxableYieldRows.ts; annualIncomeSetup.ts; result.ts

      Is the number of: income-taxable-yield-annual

      Feeds: income-total-annual

    Fed by: Blended taxable yields and dividend-weighted qualified share (formula record, 6 of 6 gates pass); Glidepath compilation: linear interpolation with flat endpoints, staged as a step function (model record, 6 of 6 gates pass); Asset-class parameters: assumption overrides laid over the sourced defaults (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Pension election annuity present value

    Present value of the lifetime pension annuity to the planning age at the curve-anchored discount rate, compared with the lump-sum offer.

    Field: Pension annuity present value Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: insights (pension-election-pending card rationale "the annuity's discounted value (~$X)" and the discount rate)

    • Pension annuity present value at the curve-anchored discount rate Model record, justified by derivation

      Purpose: What the pension's lifetime payments are worth today, the number a lump-sum offer has to beat.

      Statement: decisions/pensionElection.ts#analyzePensionElections publishes curveRatePct = curveNominalDiscountRatePct(max(5, planning age - current age), plan inflation): the embedded TIPS real-yield curve linearly interpolated at that horizon (flat outside the 5-to-30-year anchors) plus the plan's inflation percentage. presentValueAtCurveRate is pensionAnnuityPresentValue at that rate: for each owner age from max(start age, current age) through the horizon age, the annual benefit (monthly x 12) grown by COLA from the start age, paid in full while the owner lives and at survivorPct while a survivor lives (only if the owner reached the start age), discounted by (1 + rate/100)^(owner age - current age). Units: percent per year; valuation-year dollars. Rounding: none.

      Formula: PV = sum_t paid_t / (1 + r/100)^t, t = owner age - current age; r = realYield(max(5, planningAge - currentAge)) + inflation

      • r: Curve-anchored nominal discount rate (unit: percent/year) (domain: finite)
      • paid_t: Benefit paid at offset t: full while the owner lives, survivorPct of it while a survivor does (unit: usd/year) (domain: nonnegative)
      • horizon age: max(owner death age, current age + the survivor's remaining years) (unit: years) (domain: integer)

      Timing: once per pension carrying a lump-sum offer, valued at the projection start year

      Rounding: none; the sensitivity table rounds its rate columns to 0.1 percentage points, the published curve rate is not rounded

      Limits:

      • One number drives both horizons: analyzePensionElections passes ownerDeathAge = the owner's planning age, so planning age 70 against current age 64 gives the 3.995% rate AND the six payments the published presentValueAtCurveRate discounts, $62,915.883021698835 (on the official 2026-06-30 curve row; $63,008.166010097986 at 3.95% on the row stored before decision D-TREASURY). The first derivation valued the published field over three payments to a death age of 67 while taking its rate from planning age 70, which reports the helper's figure in the field's place; it was corrected on 2026-09-18, and that mismatch is now the worksheet's first wrong reading, asserted as not matching
      • The three-payment stream is a SECOND case, taken explicitly at the helper pensionAnnuityPresentValue with ownerDeathAge 67 at the same 3.995% rate, and is $33,304.25282719482; the helper accepts any death age, so that case says nothing about the field's payment count
      • Beyond the worksheet's inputs the evidence plan fixes: a single household (so no survivor extends the horizon), a 1962-born owner so the 2026 current age is 64, a pension with a lump-sum offer in the start year (the analysis skips pensions without one), zero return, and inflationPct 2 as the rate's inflation term
      • The curve is the embedded 2026 TIPS real-yield snapshot; the rate is a planning anchor, not a quote, and a corporate-spread view is left to the user
      • The stream is discounted at annual offsets from the valuation year with no mid-year convention, and COLA compounds from the start age rather than the valuation year

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: pension-election-annuity-present-value.md Mutation receipt: pension-election-annuity-present-value.mutation.md

      Evidence tests: pensionElection.evidence.test.ts

      Implemented in: pensionElection.ts

      Is the number of: pension-election-annuity-present-value

  • Projection summary ending after tax estate

    Ending net worth after estimated income tax on inherited pre-tax accounts.

    Field: endingAfterTaxEstate Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: results-headline (ResultsPage / ReportPage KPI "After-tax estate"); report (headline-results block endingAfterTaxEstate); scenarios-page (Headline and estate table "Ending after-tax estate" / "After-tax estate to heirs"); compare-page (After-tax estate row levels, in today's (start-year) dollars when the two plans end in different years (PlanHeadlineComparison)); optimize-page (Objective the tournament ranks on; claim-age exact estates); solver-page (Evidence "Ending after-tax estate" and SWR rule rows); ss-page (Claim-age sweep, refinement, bridge comparison and survivor tables); relocation-page (Ending after-tax estate column (deflated for display)); monte-carlo-page (Historical stress windows "Estate" column); insights (spending-headroom card ending estate (deflated)); mcp (run_projection.summary.endingAfterTaxEstate); mcp (batch_evaluate.results[].objective); mcp (compare_scenarios.a.endingAfterTaxEstate); mcp (compare_scenarios.b.endingAfterTaxEstate); mcp (compare_scenarios.headline.endingAfterTaxEstate.baseline, in today's (start-year) dollars when the two plans end in different years (headline.moneyBasis)); mcp (compare_scenarios.headline.endingAfterTaxEstate.proposal, in today's (start-year) dollars when the two plans end in different years (headline.moneyBasis))

    • Projection summary ending after tax estate Composition record, justified by derivation

      Purpose: Net the horizon estate of charity carve-outs and assumed heir income tax.

      Statement: projection/compare.ts#summarizeProjection computes nominal ending after-tax estate as horizon net worth minus the amount passing to charity and minus the total assumed heir income tax on inherited pre-tax balances: endingAfterTaxEstate = endingNetWorth - endingEstateToCharity - endingEstateHeirTax.

      Formula: endingAfterTaxEstate = endingNetWorth - endingEstateToCharity - endingEstateHeirTax

      • endingNetWorth: Horizon net worth (unit: nominal USD) (domain: finite)
      • endingEstateToCharity: Amount passing to charity, untaxed (unit: nominal USD) (domain: nonnegative)
      • endingEstateHeirTax: Assumed heir income tax on inherited pre-tax balances (unit: nominal USD) (domain: nonnegative)

      Timing: projection horizon

      Rounding: none stated

      Limits:

      • Charity carve-outs pass untaxed rather than remaining in the heirs' estate, so they are subtracted here even though they are also reported separately in endingEstateToCharity; with no charity destination the identity collapses to net worth minus heir tax. Ignoring charity, adding heir tax instead of subtracting it, or subtracting charity a second time through the heir tax each name a different quantity. The figure is assumed terminal exposure at the horizon, not a death-year return.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-summary-ending-after-tax-estate.md Mutation receipt: projection-summary-ending-after-tax-estate.mutation.md

      Evidence tests: compareSummary.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: projection-summary-ending-after-tax-estate

      Feeds: swr-rule-result-ending-after-tax-estate, scenario-comparison-cell, insight-spending-headroom-rough-annual

    Fed by: Projection summary ending net worth (composition record, 6 of 6 gates pass); Projection summary estate heir tax (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • MCP batch ending traditional objective

    Ending traditional-account balance of each evaluated candidate, published as batch_evaluate's ending_trad objective.

    Field: Batch ending traditional balance objective Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: mcp (batch_evaluate.results[].objective)

    • MCP batch ending traditional balance objective Composition record, justified by derivation

      Purpose: The figure RetireGolden-MCP's batch_evaluate ranks candidates on under objective ending_trad: each candidate plan's ending traditional balance.

      Statement: For objective=ending_trad, RetireGolden-MCP's batch_evaluate reports, for each candidate plan it projects, projection/compare.ts#summarizeProjection's endingByCategory.traditional: the last ledger row's published balances summed over the plan's accounts of type traditional (kinds ira and employer, inherited accounts included), each logical account id once, by projection/yearFigures.ts#balancesByCategory. Roth, HSA, taxable, cash and equity-compensation balances are not in it, and it is the gross balance, before heir tax. The engine publishes the figure and the adapter selects it, since RetireGolden-MCP 0.11.0 (#81) and so at b2c7f717 (0.12.0, the census's MCP pin until 2026-10-11); through mcp-v0.10.0 (3197d359) the adapter walked the last row's balance entries and added those whose account type is traditional. On the worksheet's six accounts the objective is 550,750.75. Units: nominal USD of the projection's end year. Rounding: none.

      Formula: objective = Σ over the plan's logical accounts a with type traditional of lastYear.balances[a.id]

      • lastYear: The final ledger row (unit: year row) (domain: an empty ledger publishes 0)
      • lastYear.balances[a.id]: Account a's published year-end balance, 0 when absent (unit: nominal USD of the end year) (domain: finite)

      Timing: once per evaluated candidate, on the final ledger row

      Rounding: none

      Limits:

      • Gross: the objective ranks the pre-tax balance a candidate leaves, before the heir tax and before any nondeductible basis; what heirs keep is projection-summary-ending-after-tax-estate.
      • The mcp-v0.10.0 adapter (3197d359) added the balances in the order of the row's balance entries; the engine adds them in the order of the plan's accounts. The two orders can differ in the last binary digit, never by a cent; on the worksheet's accounts they give the same double, which the evidence asserts.
      • balancesByCategory refuses a plan whose account id is also the id of a property, a debt or a permanent-life policy, where the mcp-v0.10.0 adapter's walk would have added whatever the ledger published under that id; the plan checks refuse such plans before a projection runs.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: mcp-batch-ending-traditional-objective.md Mutation receipt: mcp-batch-ending-traditional-objective.mutation.md

      Evidence tests: compareSummary.mcpObjectives.evidence.test.ts

      Implemented in: compare.ts; yearFigures.ts

      Is the number of: mcp-batch-ending-traditional-objective

  • Household map entered totals

    The household map's "As entered" line: assets (the entered balances of investable accounts plus entered property values), debts (entered debt balances) and net (assets minus debts), for the whole household or for the accounts the map's person focus and group filters leave on screen.

    Field: Household map entered totals Unit: US dollars Basis: today's dollars (real) Computed by: UI-native Status: Complete chain

    Appears in: household-map (Map totals line "As entered: assets $X · debts $Y · net $Z" ("As entered for NAME" or "for the items shown" when the focus or group filters narrow the map), on screen and on the printed map)

    • Balance sheet as entered Formula record, justified by derivation

      Purpose: The assets, debts and net worth the household map prints from the figures the plan stores today, before any projection.

      Statement: model/enteredBalanceSheet.ts#enteredBalanceSheet adds, over the accounts it is given and in their order from 0, the entered balance of every cash, taxable, equity compensation, traditional, Roth and HSA account (investable), the entered value of every property (property) and the entered balance owed on every debt (liabilities), and publishes assets = investable + property and netWorth = assets − liabilities. Pensions and annuities carry a monthly amount, not a balance, and are not lines of the sheet. The household map prints assets, debts and net for the whole plan, and for the accounts a person focus or group filter leaves on screen. Cash $40,000, taxable $300,000, traditional $500,000, Roth $120,000, HSA $25,000, equity compensation $15,000, a $650,000 home and a $210,000 mortgage give assets $1,650,000, debts $210,000 and net $1,440,000, whatever pensions or annuities the plan also holds; a $10,000 account and a $200,000 property with a $350,000 debt give a net of −$140,000. Units: dollars as entered today, with no growth, year or deflation. Rounding: none; the map prints whole dollars. A figure that is not finite is refused.

      Formula: investable = Σ balance over the six investable types; property = Σ value; liabilities = Σ debt balance; assets = investable + property; netWorth = assets − liabilities

      • balance: The entered balance of a cash, taxable, equity compensation, traditional, Roth or HSA account (unit: usd, as entered) (domain: finite, at least 0)
      • value: The entered value of a property (unit: usd, as entered) (domain: finite, at least 0)
      • debt balance: The entered balance owed on a debt (unit: usd, as entered) (domain: finite, at least 0)

      Timing: once per reading of the plan, over the accounts shown

      Rounding: none

      Limits:

      • These are the figures as entered, not the projection: the projected net worth (accounts-net-worth-annual) is the same accounts at the end of a projected year, after growth, contributions and withdrawals.
      • A pension or annuity is income, not a balance, so it adds nothing to the sheet even when it has a lump-sum offer; a TIPS ladder and an insurance policy are not accounts and are not on it either.
      • The investable total is the same number, from the same accounts in the same order, as the ledger's first-year portfolio (montecarlo/riskBasedGuardrails.ts#startingInvestableOf).

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: household-map-entered-totals.md Mutation receipt: household-map-entered-totals.mutation.md

      Evidence tests: enteredBalanceSheet.evidence.test.ts

      Implemented in: enteredBalanceSheet.ts

      Is the number of: household-map-entered-totals

Required minimum distributions

  • Inherited distribution forced annual

    Sum of executed required amounts and final-sweep amounts across inherited accounts this year (traditional and Roth character); voluntary draws excluded.

    Field: Forced inherited-account distribution Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: cash-flow-drilldown (inheritedAccountDistribution source line)

    • Annual forced inherited distribution Composition record, justified by derivation

      Purpose: The gross forced cash every inherited account is required to distribute this year.

      Statement: projection/internal/types/result.ts#YearResult.inheritedDistribution publishes the sum of every inheritedAccounts[] row's executed required amount (annual, year-of-death and final-sweep alike) across traditional and Roth inherited accounts; voluntary amounts are excluded. #YearResult.inheritedTraditionalDistribution publishes the phase's ordinary-income total from projection/internal/annualInheritedIraDistributions.ts#AnnualInheritedIraDistributionsResult: each traditional row in full plus a non-qualified inherited Roth distribution's characterized taxable earnings, which are ordinary income under IRC 408A(d). It is the ordinary income from inherited accounts, not a withdrawal category: the Roth earnings in it are withdrawn from a Roth account and are counted in withdrawals.roth, not withdrawals.traditional. Units: nominal USD per year. Rounding: none.

      Formula: inheritedDistribution = sum of executed required amounts; inheritedTraditionalDistribution = traditional executed + characterized Roth ordinary income

      • executed: Executed required amount on one inherited row (unit: usd) (domain: nonnegative)
      • Roth taxable slice: Characterized ordinary income inside a Roth forced row (unit: usd) (domain: 0 <= slice <= that row's gross)

      Timing: once per projection year, over every inherited row

      Rounding: none

      Limits:

      • Decision D-INHERITED-ROTH-SLICE (2026-09-25) settled the meaning of inheritedTraditionalDistribution as the ordinary income from inherited accounts, the composition the code publishes: an earlier comment excluded Roth dollars outright, and the field comment now says what the figure is. The 8,600 is asserted, and separately the Roth row's 3,000 gross and 600 slice. The same decision moved the withdrawal categories so the 600 is counted in roth only
      • Asserted at the exported phase with the worksheet's three rows realized from plan facts: a traditional annual-RMD row whose 8,000 executed amount is min(required, live balance) at a live balance of exactly 8,000, a Roth final-sweep row executing its whole 3,000 live balance with an injected characterization returning the worksheet's 600 of ordinary income, and a traditional row inside a ten-year window with no annual requirement. Plan assumptions beyond the worksheet's inputs: each account is a sole designated-individual beneficiary IRA with asserted provenance and a 2026 owner death, and the voluntary amounts the worksheet lists belong to a later phase and are not supplied here; the test asserts that this phase writes zero voluntary on every row

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: inherited-distribution-forced-annual.md Mutation receipt: inherited-distribution-forced-annual.mutation.md

      Evidence tests: annualInheritedIraDistributions.evidence.test.ts

      Implemented in: result.ts; annualInheritedIraDistributions.ts

      Is the number of: inherited-distribution-forced-annual

      Feeds: withdrawals-by-category-annual, withdrawals-total-annual

    Fed by: Executed inherited required distribution (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • QCD annual

    Gross qualified charitable distribution physically made in a projection year.

    Field: Qualified charitable distribution Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: cash-flow-drilldown (QCD lines); csv (qcd); scenarios-page (Annual "QCD" and lifetime "QCDs")

    • QCD income offset and qualified slice Composition record, justified by derivation

      Purpose: Separate the physical charitable gift from the slice of it that is excluded from income.

      Statement: projection/internal/types/result.ts#YearResult.qcd publishes the gross physical gift while its excludable income offset is the qualified from-RMD slice less the remaining section 408(d)(8)(A) second-sentence offset; projection/internal/annualLegacyQcdOwnerCharacterPlan.ts#annualLegacyQcdOwnerCharacterPlan computes that character, with the qualification ceiling being the owner's aggregate includible IRA amount (pre-distribution owned-IRA balance less aggregate basis) rather than the taxable fraction of the RMD. Gift beyond the RMD carries no offset; gift beyond aggregate includible dollars is non-qualified ordinary distribution charged to the from-RMD portion first; rmd stays gross. Units: nominal USD. Rounding: none.

      Formula: qualified = min(gift, max(0, preDistribution - basis)); offsetApplied = min(qualified, max(0, section219 - alreadyTaken)); nonQualified = gift - qualified; nonQualifiedFromRmd = min(fromRmd, nonQualified); qualifiedFromRmd = fromRmd - nonQualifiedFromRmd; incomeOffsetDelta = min(qualifiedFromRmd, qualified - offsetApplied)

      • gift: Gross physical gift for the owner-year (unit: usd/year) (domain: nonnegative)
      • fromRmd: Part of the gift that satisfied the RMD (unit: usd/year) (domain: 0 <= fromRmd <= gift)
      • preDistribution: Pre-distribution aggregate owned-IRA balance (unit: usd) (domain: nonnegative)
      • basis: Aggregate nondeductible IRA basis (unit: usd) (domain: nonnegative)
      • section219: Post-70.5 deductible section 219 contributions, net of reductions already consumed (unit: usd) (domain: nonnegative)

      Timing: one owner-year

      Rounding: none; the cross-year donor-offset ledger is carried in integer cents

      Limits:

      • The qualification ceiling is statutory: section 408(d)(8)(B), last sentence, treats a distribution as a qualified charitable distribution only to the extent it would be includible in gross income, and section 408(d)(8)(D) measures that extent as if every IRA of the owner were one contract distributed in full, which is the aggregate includible amount (pre-distribution owned-IRA balance less aggregate basis) this record uses; the second sentence of section 408(d)(8)(A) supplies the post-70.5 section 219 reduction. The allocation of the non-qualified remainder between the from-RMD and beyond-RMD portions has no statutory text and is an engine convention: the remainder is charged to the from-RMD portion first. Either order gives the same total ordinary inclusion (25,000 on the worksheet inputs: 50,000 - 35,000 + 10,000 under a qualified-first allocation, 50,000 - 30,000 + 5,000 under the engine's), so tax-total-annual and magi-annual do not depend on the order; only the split between the two published character rows does. The worksheet was first derived on the qualified-first order and re-derived on the engine's; the evidence pins the re-derived 30,000 and 5,000 and is green. The gross gift (YearResult.qcd) and the gross RMD are written by the gift planner and the RMD phase, not by the character planner this test exercises, so they are not asserted here.
      • The evidence asserts the qualified slice through the exported plan builder rather than reading a private local: the slice is recovered from the published qualifiedFromRmd and nonQualifiedBeyondRmd rows
      • An unprovable or contradictory offset history falls back to a zero exclusion rather than guessing, and writes nothing to the cross-year ledger; this record is asserted on a provable history

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: qcd-income-offset-qualified-slice.md Mutation receipt: qcd-income-offset-qualified-slice.mutation.md

      Evidence tests: annualLegacyQcdOwnerCharacterPlan.evidence.test.ts

      Implemented in: result.ts; annualLegacyQcdOwnerCharacterPlan.ts; annualLegacyQcdGiftPlan.ts

      Is the number of: qcd-annual

      Feeds: tax-total-annual, magi-annual

    • QCD per-donor limit and age-70.5 annual proxy Data record, justified by derivation

      Purpose: Cap each donor at the indexed annual QCD limit and gate eligibility on the annual age proxy.

      Statement: projection/internal/types/result.ts#YearResult.qcd caps each donor at year2026.rmd.qcdAnnualLimit multiplied by the applicable limit-growth factor, and uses an annual proxy for age 70.5: eligible at attained age 71, or at attained age 70 when the birth month is June or earlier. projection/internal/annualLegacyQcdGiftPlan.ts#annualLegacyQcdGiftPlan applies both, with the household scalar capped at the sum of the per-donor caps and unused capacity never pooled into a donor who has already exhausted their own limit. Units: nominal USD per donor per year. Rounding: none; a full drain of a source publishes whole ledger cents.

      Formula: eligible(p) = alive(p) and (age(p) >= 71 or (age(p) = 70 and birthMonth(p) <= 6)); cap = qcdAnnualLimit x limitGrowth; requested = min(qcdAnnual x inflFactor, cap x donorCount)

      • qcdAnnualLimit: year2026.rmd.qcdAnnualLimit (unit: usd/donor/year) (domain: positive)
      • limitGrowth: Limit-growth factor to the projection year: 1 in a year whose QCD limit the IRS has published in its notice of retirement-plan limits, otherwise the inflation path from that limit's latest published year (unit: 1) (domain: positive)
      • age(p): Attained age of person p this year (unit: years) (domain: integer >= 0)
      • birthMonth(p): Birth month of person p (unit: month) (domain: integer 1..12)

      Timing: one projection year, per donor

      Rounding: none

      Limits:

      • The age gate is an annual proxy for 70.5, not a dated test: a July-born donor attaining 70 is refused for the whole year even though the statute would admit the second half of it
      • The cap is per donor, not per household: a two-donor plan carries twice the capacity, and the scalar arm never pools one donor's unused capacity into another
      • The evidence exercises the scalar arm (no named QCD request); a named request returns an empty plan from this helper and is a different path
      • Restated 2026-09-28 under decision D-2027-ROLLOVER: the growth factor and the named arm read the QCD limit's own publication (params/index.ts#componentScale, actions/annualQcdTaxCharacterPostPass.ts#qcdLimitPublishedFor), not the whole set of published figures. The named arm executes only in a tax year whose limit is published, so a gift dated in a year whose November notice has landed executes even while that year's brackets are projected; every year through 2026 reads exactly as before

      Provenance: derived by codex, implemented by claude.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: qcd-limit-and-age-proxy.md Mutation receipt: qcd-limit-and-age-proxy.mutation.md

      Evidence tests: annualLegacyQcdGiftPlan.evidence.test.ts

      Implemented in: result.ts; annualLegacyQcdGiftPlan.ts; index.ts; annualQcdTaxCharacterPostPass.ts

      Is the number of: qcd-annual

      Feeds: tax-total-annual, magi-annual

  • RMD required annual

    Required minimum distribution dollars taken during the projection year.

    Field: requiredAmount Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (rmd); report (year ledger RMD); results-table (RMD column); scenarios-page (Annual "RMD" and lifetime "RMDs"); cash-flow-drilldown (requiredMinimumDistribution source line)

    • RMD joint-life divisor Data record, justified by derivation

      Purpose: Use the Joint and Last Survivor table when a sole-beneficiary spouse is more than ten years younger.

      Statement: rmd/jointLifeTable.ts#jointLifeTableDivisor and rmd/rmd.ts#requiredMinimumDistribution use the Joint and Last Survivor table of 26 CFR 1.401(a)(9)-9(d) when the sole-beneficiary spouse is more than ten years younger, dividing the prior-year-end balance by the owner-age / spouse-age table entry. The qualifying-spouse exception replaces the Uniform Lifetime divisor with the larger of the two, so the RMD falls. Units: nominal USD. Rounding: none; the published figure is a binary float compared to cents. The table ships delta-packed (each owner-age row as its spouse-age-0 divisor in tenths, then one letter per later spouse age for the tenths the divisor falls) and is decoded once at module load. The encoding is lossless: rmd/jointLifeTable.test.ts compares the decoded table with the literal extract kept in rmd/jointLifeTable.literal.test-support.ts, every cell and the lookup on 67,081 owner and spouse age pairs, by Object.is.

      Formula: divisor = ownerAge - spouseAge > 10 ? max(uniform[ownerAge], jointLife[ownerAge][spouseAge]) : uniform[ownerAge]; rmd = priorYearEndBalance / divisor

      • ownerAge: Owner age attained in the distribution year (unit: years) (domain: integer)
      • spouseAge: Sole-beneficiary spouse age attained in the distribution year (unit: years) (domain: integer)
      • priorYearEndBalance: Traditional-account balance at the prior December 31 (unit: usd) (domain: positive; a nonpositive balance returns 0)

      Timing: one account-year

      Rounding: none

      Limits:

      • The gap test is strictly more than ten years: an exactly ten-year gap keeps the Uniform Lifetime divisor
      • The engine takes the larger of the two divisors, so a joint-life entry smaller than the uniform one could never raise the RMD; at the asserted ages the joint-life entry is the larger
      • The spouse must be the sole beneficiary; this record does not decide that fact, it prices the divisor once the caller asserts it

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: rmd-joint-life-divisor.md Mutation receipt: rmd-joint-life-divisor.mutation.md

      Evidence tests: rmd.evidence.test.ts

      Implemented in: jointLifeTable.ts; rmd.ts

      Is the number of: rmd-required-annual

    • RMD uniform lifetime divisor Data record, justified by derivation

      Purpose: Divide the prior December 31 balance by the Uniform Lifetime Table entry for the age attained.

      Statement: rmd/rmd.ts#requiredMinimumDistribution computes an owner RMD for the age-attained year as the prior December 31 traditional-account balance divided by the Uniform Lifetime Table divisor in the 2026 tax parameters, when no qualifying more-than-ten-years-younger sole-spouse beneficiary applies. Nothing is required before the owner attains the cohort applicable age. Units: nominal USD. Rounding: none.

      Formula: rmd = priorYearEndBalance / uniformLifetimeTable[ageAttained], and 0 when ageAttained < applicableAge

      • priorYearEndBalance: Traditional-account balance at the prior December 31 (unit: usd) (domain: positive; a nonpositive balance returns 0)
      • ageAttained: Owner age attained in the distribution year (unit: years) (domain: integer)
      • uniformLifetimeTable: year2026.rmd.uniformLifetimeTable, the tax parameters’ reproduction of IRS Pub. 590-B (unit: years) (domain: positive entries)

      Timing: one account-year

      Rounding: none

      Limits:

      • The balance is the PRIOR December 31 figure; using the current year-end balance publishes a different RMD from the same table
      • Inherited-account rules and the first-year April 1 deferral are separate phases: the RMD is taken in the age-attained year
      • A qualifying sole-beneficiary spouse more than ten years younger replaces this divisor, which is the sibling rmd-joint-life-divisor record
      • In the year a surviving spouse's treat-as-own election takes effect, each elected IRA's owner RMD is its own prior December 31 balance divided by this divisor, calculated separately for each IRA: Treas. Reg. 1.408-8(c)(3) determines that year's requirement under section 401(a)(9)(A) with the spouse as IRA owner, 1.408-8(b)(2) substitutes the IRA's balance as of the preceding December 31 for the 1.401(a)(9)-5(b) account balance, and 1.408-8(e)(1)(i) requires the minimum to be calculated separately for each IRA. A lone IRA's positive j(4) reference balance is that prior December 31 balance. Otherwise the balance is the IRA's opening balance plus the distributions accepted as taken from it earlier in the year: the projection never debits an accepted distribution, so the plan's balance is entered after it. The reference stands in only for an IRA alone in its payee/decedent/type pool; when the pool holds two or more IRAs, which the plan checks give identical election facts, the one reference cannot be each IRA's own balance. A 29,600 IRA pooled with a 100,000 one under a 100,000 reference owes 1,203.25 (29,600 / 24.6); until 2026-10-07 the engine charged it the reference's 4,065.04 (100,000 / 24.6). The requirements still aggregate into the owner's one owned-IRA section 4974 obligation. Pinned in simulate.spousalElectionYearOwnerRmd.test.ts
      • A distribution taken in the election year counts once toward the owner's total, whichever IRA it came from, because 1.408-8(e)(1)(i) lets the separately calculated requirements be totaled and distributed from any one or more of the IRAs. A completed current-year history row is credited to the IRA it names, and what that IRA does not need to the rest of the pool. The j(4) pre-election distribution is one figure in the pool's shared facts and names no IRA, so it is counted once for the pool: added back to the first IRA's balance and credited there first. The total requirement does not depend on which IRA carries it, since the IRAs share one owner and one divisor. With 99,000 and 29,600 IRAs, a 100,000 reference and 1,000 distributed before the election, the prior December 31 balances are 100,000 and 29,600, the requirements 4,065.04 and 1,203.25 (5,268.29), the 1,000 is credited once, 4,268.29 is forced, and the year distributes 5,268.29 with no shortfall. Until 2026-10-07 the engine credited the 1,000 to each IRA on the live balances, forced 3,227.64 and left 1,040.65 unmet while reporting no shortfall. Pinned in simulate.spousalElectionYearOwnerRmd.test.ts
      • Known limits, election year: the opening balance plus the accepted distributions omits any gain or loss between the prior December 31 and the date the balance was entered, which only a lone IRA's reference balance carries; when any IRA of a pool has a completed current-year history row, the pool's j(4) pre-election figure is not counted, which can overstate the forced distribution but never counts a dollar twice; and an election-year IRA whose live balance cannot cover its unpaid amount is not made up from another of the owner's IRAs, so the section 4974 shortfall can be overstated where another IRA could have paid it

      Provenance: derived by codex, implemented by claude.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: rmd-uniform-lifetime-divisor.md Mutation receipt: rmd-uniform-lifetime-divisor.mutation.md

      Evidence tests: rmd.evidence.test.ts

      Implemented in: rmd.ts; beneficiarySpousalElectionGateAdapter.ts; annualOwnedAccountDrawsPhase.ts

      Is the number of: rmd-required-annual

    Fed by: RMD applicable age and attain year (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

Roth

  • Optimizer recommended conversion annual

    Per-year Roth conversion dollars the optimizer recommends: the solver schedule, the full-projection tournament winner's conversions, and the post-processed (cleaned) executable schedule.

    Field: Recommended Roth conversion schedule Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: optimize-page (Conversion schedule chart bars and "N year(s)" schedule summary; post-processing adjustment list); report (modeled-findings winner conversions are summed into requested/executed totals); mcp (run_optimizer.schedule.conversions[].amount); mcp (run_optimizer.schedule.schedule[].conversion (every plan year; schedule.conversions[] lists the same amount for each year above $0.50)); mcp (run_optimizer.tournament.winnerConversions[].amount)

    • Full projection cleaned schedule Model record, justified by derivation

      Purpose: Trim a raw solver conversion schedule to what the full year-by-year projection actually executes.

      Statement: projection/optimizePlan.ts#postProcessExactLedgerSchedule publishes ExactLedgerPostProcessing.cleanedSchedule as the per-year minimum of the raw requested conversion and the ledger's executed conversion, taking that minimum only when execution exceeds the neutral tolerance and zero otherwise, and records each materially changed year as an ExactLedgerScheduleAdjustment whose reason is ledger-capped when the cleaned amount survives, dropped-zero when it does not, and estate-pruned when the trailing prune pass removes the year. Those three are the only members of the reason union.

      Formula: cleaned_y = executed_y > neutralTolerance ? min(requested_y, executed_y) : 0; reason_y = cleaned_y <= neutralTolerance ? dropped-zero : ledger-capped, or estate-pruned when the prune pass drops year y

      • requested_y: Raw solver schedule amount for year y (unit: nominal USD) (domain: nonnegative)
      • executed_y: max(0, the rerun ledger's rothConversion for year y) (unit: nominal USD) (domain: nonnegative)
      • neutralTolerance: DECISION_NEUTRAL_TOLERANCE_DOLLARS (unit: nominal USD) (domain: 1)

      Timing: raw request, full-projection execution, rerun, repeated to a fixed point within the stabilization budget

      Rounding: adjustment rows carry cents-rounded requested, executed and cleaned amounts; the dollar totals carry binary floating-point representation

      Limits:

      • Cleaned is the per-year minimum, not the request: keeping the request republishes 15000 dollars in a year the ledger funded with 5000, and summing the raw requests publishes 30000 dollars rather than the cleaned 20000. The reason on that year is ledger-capped. A fourth member, rounding, was once declared on the reason union and never assigned; decision D-ADJUSTMENT-ROUNDING-REASON removed it on 2026-09-25, and the evidence still asserts it is not among the reasons the run assigns. Of the worksheet's three live reasons only ledger-capped is realized by its stated inputs; dropped-zero and estate-pruned were NOT constructed from them, because each needs a different raw schedule and, for estate-pruned, a plan whose trailing conversion year harms the exact estate; the worksheet states neither, so the test asserts instead that the run's reasons lie inside the three live values and that rounding is not among them. Beyond the worksheet's inputs the test assumes a validated single-person plan with a 10000-dollar cash account and an empty Roth account beside the 20000-dollar traditional one, zero healthcare expenses, a planning age of 67 and the production federal tax calculator from start year 2026, so Y1 is 2026 and Y2 is 2027; the raw schedule is a full OptimizedSchedule literal whose per-year solver rows are zero apart from the conversion, which the entry requires and the worksheet does not name. The MILP-sourced winning schedule the worksheet mentions is a solver-run limit with no number and is not asserted here.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: exact-ledger-cleaned-schedule.md Mutation receipt: exact-ledger-cleaned-schedule.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts

      Is the number of: optimizer-recommended-conversion-annual

      Feeds: exact-ledger-tournament-margin-over-milp-dollars

    • Optimizer's per-year solution Model record, justified by derivation

      Purpose: What the conversion optimizer's solver plans for each year: its conversion, its withdrawal from each bucket, the gain and taxable income it books, and its year-end balances.

      Statement: strategies/optimizer.ts#optimizeSchedule publishes OptimizedSchedule.schedule, one OptimizedYear per plan year in order, from the solution HiGHS returns for the model #buildOptimizerModel writes, when the solve has one (the raw solution's primal status Feasible: an optimum, or the incumbent a node or time limit stopped at), and no rows when it has none (an infeasible model, or a limit reached before any incumbent). conversion, withdrawTraditional (the required-distribution floor included), withdrawInheritedTraditional, withdrawOther (from the tax-free bucket of Roth, cash and HSA), withdrawTaxable and taxableOrdinary are the solution's values of the year's conversion, withdrawal, sale and taxable-income columns; endTrad, endInheritedTrad, endOther and endTaxable are the four buckets' balances at the start of the next year, after the year's flows and growth, endTaxable 0 when the plan has no taxable bucket; taxableGainRealized is the published withdrawTaxable times the gain fraction min(1, max(0, 1 − the taxable basis ratio)); irmaaTier is the highest tier whose binary is above one half, 0 for none. The engine reads each value from HiGHS's raw solution, which HiGHS writes to 16 significant digits, through a wrapper around the highs package's solution writer (not the package's six-digit parse of the pretty print); each is then rounded to cents, and a column the solution does not carry reads 0. In the model, taxable ordinary income is at least the year's ordinary income base plus the taxable part of its conversion and its traditional and inherited withdrawals, less the standard deduction with the age-65 addition (and the senior deduction net of its phase-out when the solve prices it), and at least 0; minimizing tax holds it there. The tax-free withdrawal enters the model only as a difference with the surplus the year saves, which is not published, so a solution sets one of the two to 0; and a reward of one millionth of a dollar per converted dollar reports traditional drainage as a conversion, leaving withdrawTraditional at its floor unless the year needs the cash. OptimizedSchedule.conversions lists each year whose conversion is above $0.50, with the same amount, and is empty with no solution. Units: each year's nominal dollars.

      Formula: with a solution: v_t = round2(column_t); taxableGainRealized_t = round2(withdrawTaxable_t × gf), gf = min(1, max(0, 1 − basisRatio)); irmaaTier_t = max{k : b_{t,k} > 0.5}, else 0; endBucket_t = bucket_{t+1}; conversions = [(t, conversion_t) : conversion_t > 0.5]; with no solution: schedule = [], conversions = []

      • column_t: The raw solution's value of year t's conversion, withdrawal, sale, taxable-income or next-year balance column, as HiGHS writes it (16 significant digits) (unit: nominal USD) (domain: nonnegative; 0 when the solution carries none)
      • basisRatio: The opening taxable balance's cost basis over the balance, one ratio for the whole plan (unit: fraction) (domain: 0..1; 1 when not given)
      • b_{t,k}: The solution's value of year t's IRMAA tier k binary (unit: none) (domain: 0 or 1)

      Timing: every plan year of one solve

      Rounding: cents of the raw solution's value

      Limits:

      • Cents of the solution: a planned conversion of $107,028.8775 is published as $107,028.88, in schedule[] and in schedule.conversions[] alike. Which solution HiGHS returns where more than one is optimal belongs to the highs package the engine pins (1.15.2), and so does the format of its raw solution: a solve whose raw solution the engine cannot read throws an error rather than publish; an upgrade that puts any figure the evidence compares more than half a cent from the value stated here fails it.
      • A node-limit or timeout status publishes the rows of the incumbent HiGHS held when it stopped, which is not a proven optimum (optimizer-schedule-objective-and-lifetime-tax states the two limits); a solve with no solution publishes no rows, and the status says whether the model was infeasible or a limit came first.
      • The solver's plan, not what the projection of the same conversions does. The projection executes each conversion only up to what the owners' accounts hold (the cleaned schedule), funds spending in the plan's own withdrawal order and taxes each account by its own basis and rules, so its withdrawals, realized gains, taxable income and balances (withdrawals-by-category-annual, tax-realized-gains-annual, accounts-balance-per-account-annual) can differ from these in every year. The solver's buckets grow at one blended rate a year and its sale realizes one gain fraction for the whole plan.
      • withdrawOther is the net draw on the tax-free bucket when the year needs one and 0 when the year saves; the saving itself is not published and shows only in the next year-end balance (in the evidence's two-year case, $7,057.25 saved in 2027 ends as $7,410.11).
      • irmaaTier is a classification, a census exclusion; its surcharges enter the solver's lifetime tax.
      • Evidence: the two cases of optimizer-schedule-objective-and-lifetime-tax, derived by hand from the library example rmd-irmaa's facts without its qualified charitable distribution: the one-year case's conversion through the 24% bracket, required distribution, tax-free draw and year-end balances, and the two-year case's required distributions, inherited draws, sale and its gain, two tiers and saved surplus; and its two infeasible inputs, which publish no rows. A year with both a conversion and a sale, and an inherited distribution set by a divisor, are not exercised; they follow the same readout.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: optimizer-schedule-year-solution.md Mutation receipt: optimizer-schedule-year-solution.mutation.md

      Evidence tests: optimizer.schedule.evidence.test.ts

      Implemented in: optimizer.ts

      Is the number of: optimizer-recommended-conversion-annual, optimizer-schedule-withdrawal-by-bucket-annual, optimizer-schedule-taxable-gain-realized-annual, optimizer-schedule-taxable-ordinary-income-annual, optimizer-schedule-ending-balance-by-bucket-annual

      Feeds: optimizer-schedule-lifetime-tax, optimizer-schedule-ending-after-tax-objective, optimizer-schedule-conversion-total

    Fed by: Expected return for an account: allocation blend, else account rate, else plan default (composition record, 6 of 6 gates pass); Blended expected nominal return of a weight vector (formula record, 6 of 6 gates pass); Claim age co-optimization (model record, 6 of 6 gates pass); Conversion coordinate descent search (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Optimizer schedule conversion total

    Total dollars in a conversion schedule, summed across years in nominal dollars: the raw solver request, the cleaned schedule, the displayed recommendation, the tournament winner, a promotion's schedules, or the installed optimized schedule.

    Field: Optimizer conversion schedule total Unit: US dollars Basis: nominal dollars Computed by: UI transformation Status: Complete chain

    Appears in: optimize-page ("$X of conversions across N years", "Raw optimizer request", "Cleaned executable schedule"); optimize-page (Incumbent card "Your current schedule ($X of conversions across N years)"); optimize-page (Repriced promotion note: named and aggregate schedule totals); optimize-page (Strategy section callout "This N-year schedule ($X total) was produced by the Optimize tab"); assumptions-card (Strategy group "optimized schedule (N years, $X total)"); mcp (run_optimizer.schedule.conversionTotal)

    • Conversion schedule total Formula record, justified by derivation

      Purpose: The one sum of a Roth conversion schedule, as every surface that prints a schedule total shows it.

      Statement: strategies/conversionScheduleTotal.ts#conversionScheduleTotal (re-exported by strategies/optimizer.ts) adds a conversion schedule's amounts left to right from 0, the order every surface used, so one schedule always gives one double (floating-point addition is not associative), and refuses a non-finite amount with a RangeError. OptimizedSchedule.conversionTotal publishes it on the raw solve (optimizeSchedule, whatever its status) and on each cleaned schedule (projection/optimizePlan.ts#scheduleWithConversions recomputes it rather than copying it), ExactLedgerTournament.winnerConversionTotal publishes it for the recommended schedule, the engine's own cleaned-schedule gates read it, and decisions/evaluateCandidate.ts#buildConversionExecution computes the requested total with it. Amounts of $10,000.25, $20,000.50 and $30,000.75 total $60,001.50; 0.1, 0.2 and 0.3 total 0.6000000000000001 left to right, where the other association gives 0.6. Units: nominal dollars of different years added. Rounding: none beyond the amounts' own cents.

      Formula: total = ((0 + a_1) + a_2) + … + a_n

      • a_i: The i-th listed conversion amount of the schedule (unit: nominal USD of its year) (domain: finite)

      Timing: once per schedule, where the schedule is made

      Rounding: none beyond the amounts' own cents

      Limits:

      • The total adds nominal dollars of different years, undiscounted; the Optimize page's schedule chart says nominal dollars, while the hero and the Strategy callout do not.
      • A total says nothing about which years carry it; the page prints the count of entries beside it, and every raw entry is above $0.50.
      • A cleaned schedule carries the raw solve's endingAfterTax and lifetimeTax, which describe the raw schedule; nothing reads them from a cleaned schedule.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: optimizer-schedule-conversion-total.md Mutation receipt: optimizer-schedule-conversion-total.mutation.md

      Evidence tests: optimizer.conversionTotal.evidence.test.ts

      Implemented in: conversionScheduleTotal.ts; optimizer.ts; optimizePlan.ts; evaluateCandidate.ts

      Is the number of: optimizer-schedule-conversion-total

      Feeds: exact-ledger-validation-requested-conversion-total

    Fed by: Expected return for an account: allocation blend, else account rate, else plan default (composition record, 6 of 6 gates pass); Blended expected nominal return of a weight vector (formula record, 6 of 6 gates pass); Conversion coordinate descent search (model record, 6 of 6 gates pass); Optimizer's per-year solution (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Projection summary lifetime Roth conversions

    Total traditional-account dollars converted to Roth across the projection.

    Field: lifetimeRothConversions Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: report (Lifetime Roth conversions); results-headline (KpiBar "Roth converted"); report (headline-results block lifetimeRothConversions); mcp (run_projection.summary.lifetimeRothConversions); mcp (compare_scenarios.a.lifetimeRothConversions); mcp (compare_scenarios.b.lifetimeRothConversions)

    • Lifetime Roth conversions: sum of annual traditional-to-Roth movement Composition record, justified by derivation

      Purpose: Total nominal dollars moved traditional-to-Roth across every projection year.

      Statement: lifetimeRothConversions = sum over all projection years of YearResult.rothConversion. Each annual field is dollars moved traditional-to-Roth in that year, so the lifetime figure is the additive identity over all and only the projection rows. Units: nominal dollars. Rounding: none.

      Formula: lifetime = sum_y rothConversion_y

      • rothConversion_y: Nominal dollars converted traditional-to-Roth in year y (unit: usd) (domain: finite)
      • lifetime: Sum of those annual amounts over the projection (unit: usd) (domain: finite)

      Timing: once per projection, over every published year including zeros

      Rounding: none

      Limits:

      • Zero-conversion years remain in the sum; shortening the horizon to drop a zero year also drops later years
      • The evidence constructs the three stated YearResult.rothConversion rows rather than running a full simulation

      Provenance: derived by codex, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-summary-lifetime-roth-conversions.md Mutation receipt: projection-summary-lifetime-roth-conversions.mutation.md

      Evidence tests: compare.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: projection-summary-lifetime-roth-conversions

      Feeds: scenario-comparison-cell

  • Roth conversion annual

    Traditional-to-Roth dollars actually converted in a projection year.

    Field: Roth conversion Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (rothConversion); optimize-page (conversion schedule); report (yearLedger); results-table (Conversion column); scenarios-page (Annual "Roth conversion" and lifetime "Roth conversions"); cash-flow-drilldown (namedRothConversion and aggregateRothConversion transfer lines); mcp (run_projection.years[].rothConversion)

    • Annual Roth conversion: the bracket headroom a fill-to-target strategy converts Model record, justified by derivation

      Purpose: Dollars moved traditional-to-Roth in one year by a fill-to-bracket conversion strategy.

      Statement: For strategies.rothConversion in fillToTarget/topOfBracket mode, strategies/rothConversion.ts#sizeRothConversion bisects the federal engine for the largest conversion keeping federal taxable income at or under the selected bracket's ceiling: the NEXT bracket's lowerBound, indexed to the projected year. Without Social Security benefits taxable income rises one dollar per converted dollar, so the answer is that ceiling minus taxable income before the conversion, i.e. upper bound − (ordinary income − deduction). With benefits it is not that subtraction: taxable Social Security phases in at up to 1.85x per converted dollar, so only the bisection's root is the answer. YearResult.rothConversion then publishes the gross movement actually executed, capped by the traditional balance left after the RMD reserve. Units: nominal dollars. Rounding: the bisection stops at a bracket width of $0.01 and returns its lower bound; with two or more convertible owners the amount is then split between them in exact cents, so when every share converts the published total is that amount rounded half up to the cent, which can sit up to half a cent above the root.

      Formula: amount = max{ c : taxableIncome(ordinary + c) <= bracketUpperBound }; without benefits = upperBound − (ordinary − deduction)

      • upperBound: Selected bracket's ceiling: the next bracket's lowerBound for the year (unit: usd taxable income) (domain: finite; null for the open-ended top bracket)
      • ordinary: Ordinary income before the conversion (unit: usd) (domain: finite)
      • deduction: Standard or itemized deduction the federal engine applies (unit: usd) (domain: nonnegative)
      • amount: Conversion sized for the year (unit: usd) (domain: nonnegative)

      Timing: annual, inside the strategy window [startYear, endYear]

      Rounding: bisection to a $0.01 bracket, returning its lower bound; with one convertible owner the published figure is that bound, and with two or more it is split in exact cents, so when every share converts the published total is the amount rounded half up to the cent and can sit up to half a cent above the root

      Limits:

      • Beyond the worksheet's inputs the evidence plan fixes: a 63-year-old single filer (over 59.5 so no early-distribution exposure, under 65 so the deduction is the base standard deduction with no age addition), the $70,000 as an uninflated recurring ordinary stream, zero returns and zero inflation so the 2026 bracket ladder is unindexed, a cash account large enough to pay the conversion tax, and no base spending
      • The published year figure is the executed gross movement: the sized amount is the ceiling (to within half a cent: with two or more convertible owners it is first split in exact cents, so the executed total is the sized amount rounded half up to the cent), and a traditional balance smaller than it (or an RMD reserve) lowers what the row shows
      • The bisection's $0.01 stopping width is a real error bar on the published dollar; the worksheet's $51,800 is reached exactly here only because the first midpoint of the expanded bracket lands on the root
      • The benefits branch is asserted as a branch, not as a number: the worksheet states no closed form for it, so the evidence shows only that a positive benefit makes the answer differ from the no-benefit subtraction
      • The amount is sized once for the household and then split between the owners of traditional balances in proportion to those balances after any unsatisfied RMD is reserved, in exact cents, and each share converts only into that owner's own Roth IRA. An owner with no Roth IRA of their own loses the share, with a warning naming them, so the published figure is the converting owners' shares and can be well below the sized amount, which is published beside it as YearResult.aggregateRothConversionAllocationDesired (decision D-BRACKET-FILL-ROTH-EXAMPLE)

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: roth-conversion-annual.md Mutation receipt: roth-conversion-annual.mutation.md

      Evidence tests: annualAggregateRothConversionTargetPlan.evidence.test.ts

      Implemented in: rothConversion.ts; annualAggregateRothConversionTargetPlan.ts

      Is the number of: roth-conversion-annual

    Fed by: Exact cent largest remainder slices (formula record, 6 of 6 gates pass); Projection money tolerance thresholds (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

Ladders and valuation

  • Funded ratio result essential spending PV

    Present value of essential retirement spending over the funded-ratio horizon.

    Field: essentialSpendingPv Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: income-floor (essential spending valued today); insights (income-floor-funded card title and rationale (computeFundedRatio values))

    • Funded ratio: present values of essential spending and guaranteed income Composition record, justified by derivation

      Purpose: How much of the essential-spending floor, valued on the TIPS curve, is covered by guaranteed income valued the same way.

      Statement: From the deterministic ledger years with calendar year >= fromYear (default: the start year), each year's expenses.requiredSpending and the sum incomes.socialSecurity + pension + annuity + tipsLadder are deflated to today's dollars by the caller-supplied deflator and discounted as real flows at offset t = year - startYear on the TIPS par curve (ladder-real-present-value; t = 0 is undiscounted). essentialSpendingPv = E, guaranteedIncomePv = G, fundedRatioPct = 100·G/E, unfundedPv = max(0, E - G). Returns null when there are no years or E <= 0. Units: real dollars and percent. Rounding: none.

      Formula: E = sum_t d_t S_t/(1 + y(t)/100)^t; G = sum_t d_t I_t/(1 + y(t)/100)^t; ratio = 100 G/E; unfunded = max(0, E - G)

      • t: Years from the start year to the ledger year (unit: years) (domain: integer t >= 0)
      • d_t: Deflator from nominal year-t dollars to today's dollars (unit: 1) (domain: d_t > 0)
      • S_t: Nominal required-floor spending in year t (unit: usd) (domain: S_t >= 0)
      • I_t: Nominal guaranteed income in year t (Social Security + pension + annuity + TIPS ladder) (unit: usd) (domain: I_t >= 0)
      • y(t): Interpolated par real yield at t years (unit: percent/year) (domain: y(t) > -100)

      Timing: end of year t, annual; the start year is t = 0 and undiscounted

      Rounding: none

      Limits:

      • Par yields are treated as spot rates: a planning convention, not a bootstrapped zero curve
      • Guaranteed income counts Social Security, pensions, annuities and TIPS-ladder flows only; wages and portfolio income are excluded by design
      • Years before fromYear are excluded from both sides; the horizon ends at the last ledger year
      • The deflator is supplied by the caller; the record assumes it maps nominal ledger dollars to the same real basis as the curve
      • Returns null rather than a ratio when the essential present value is not positive

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: funded-ratio-hand-present-value.md Mutation receipt: funded-ratio-hand-present-value.mutation.md

      Evidence tests: fundedRatio.evidence.test.ts

      Implemented in: fundedRatio.ts

      Is the number of: funded-ratio-result-essential-spending-pv, funded-ratio-result-guaranteed-income-pv, funded-ratio-result-funded-ratio-pct, funded-ratio-result-unfunded-pv

    Fed by: Funded ratio: the year the household floor starts to count (model record, 6 of 6 gates pass); The household's later retirement, one rule for FI and the funded ratio (model record, 6 of 6 gates pass); Real present value of a cash-flow stream on the TIPS curve (formula record, 6 of 6 gates pass); Par real yield at a maturity: linear interpolation with flat endpoints (formula record, 6 of 6 gates pass); Embedded Treasury par real-yield curve, 2026-06-30 (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Funded ratio result funded ratio pct

    Percentage of essential retirement spending present value covered by guaranteed income.

    Field: fundedRatioPct Unit: percent Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: income-floor (essential floor funded percentage); insights (income-floor-funded card title and rationale (computeFundedRatio values))

    • Funded ratio: present values of essential spending and guaranteed income Composition record, justified by derivation

      Purpose: How much of the essential-spending floor, valued on the TIPS curve, is covered by guaranteed income valued the same way.

      Statement: From the deterministic ledger years with calendar year >= fromYear (default: the start year), each year's expenses.requiredSpending and the sum incomes.socialSecurity + pension + annuity + tipsLadder are deflated to today's dollars by the caller-supplied deflator and discounted as real flows at offset t = year - startYear on the TIPS par curve (ladder-real-present-value; t = 0 is undiscounted). essentialSpendingPv = E, guaranteedIncomePv = G, fundedRatioPct = 100·G/E, unfundedPv = max(0, E - G). Returns null when there are no years or E <= 0. Units: real dollars and percent. Rounding: none.

      Formula: E = sum_t d_t S_t/(1 + y(t)/100)^t; G = sum_t d_t I_t/(1 + y(t)/100)^t; ratio = 100 G/E; unfunded = max(0, E - G)

      • t: Years from the start year to the ledger year (unit: years) (domain: integer t >= 0)
      • d_t: Deflator from nominal year-t dollars to today's dollars (unit: 1) (domain: d_t > 0)
      • S_t: Nominal required-floor spending in year t (unit: usd) (domain: S_t >= 0)
      • I_t: Nominal guaranteed income in year t (Social Security + pension + annuity + TIPS ladder) (unit: usd) (domain: I_t >= 0)
      • y(t): Interpolated par real yield at t years (unit: percent/year) (domain: y(t) > -100)

      Timing: end of year t, annual; the start year is t = 0 and undiscounted

      Rounding: none

      Limits:

      • Par yields are treated as spot rates: a planning convention, not a bootstrapped zero curve
      • Guaranteed income counts Social Security, pensions, annuities and TIPS-ladder flows only; wages and portfolio income are excluded by design
      • Years before fromYear are excluded from both sides; the horizon ends at the last ledger year
      • The deflator is supplied by the caller; the record assumes it maps nominal ledger dollars to the same real basis as the curve
      • Returns null rather than a ratio when the essential present value is not positive

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: funded-ratio-hand-present-value.md Mutation receipt: funded-ratio-hand-present-value.mutation.md

      Evidence tests: fundedRatio.evidence.test.ts

      Implemented in: fundedRatio.ts

      Is the number of: funded-ratio-result-essential-spending-pv, funded-ratio-result-guaranteed-income-pv, funded-ratio-result-funded-ratio-pct, funded-ratio-result-unfunded-pv

    Fed by: Funded ratio: the year the household floor starts to count (model record, 6 of 6 gates pass); The household's later retirement, one rule for FI and the funded ratio (model record, 6 of 6 gates pass); Real present value of a cash-flow stream on the TIPS curve (formula record, 6 of 6 gates pass); Par real yield at a maturity: linear interpolation with flat endpoints (formula record, 6 of 6 gates pass); Embedded Treasury par real-yield curve, 2026-06-30 (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Funded ratio result guaranteed income PV

    Present value of guaranteed retirement income over the funded-ratio horizon.

    Field: guaranteedIncomePv Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: income-floor (guaranteed income valued today); insights (income-floor-funded card title and rationale (computeFundedRatio values))

    • Funded ratio: present values of essential spending and guaranteed income Composition record, justified by derivation

      Purpose: How much of the essential-spending floor, valued on the TIPS curve, is covered by guaranteed income valued the same way.

      Statement: From the deterministic ledger years with calendar year >= fromYear (default: the start year), each year's expenses.requiredSpending and the sum incomes.socialSecurity + pension + annuity + tipsLadder are deflated to today's dollars by the caller-supplied deflator and discounted as real flows at offset t = year - startYear on the TIPS par curve (ladder-real-present-value; t = 0 is undiscounted). essentialSpendingPv = E, guaranteedIncomePv = G, fundedRatioPct = 100·G/E, unfundedPv = max(0, E - G). Returns null when there are no years or E <= 0. Units: real dollars and percent. Rounding: none.

      Formula: E = sum_t d_t S_t/(1 + y(t)/100)^t; G = sum_t d_t I_t/(1 + y(t)/100)^t; ratio = 100 G/E; unfunded = max(0, E - G)

      • t: Years from the start year to the ledger year (unit: years) (domain: integer t >= 0)
      • d_t: Deflator from nominal year-t dollars to today's dollars (unit: 1) (domain: d_t > 0)
      • S_t: Nominal required-floor spending in year t (unit: usd) (domain: S_t >= 0)
      • I_t: Nominal guaranteed income in year t (Social Security + pension + annuity + TIPS ladder) (unit: usd) (domain: I_t >= 0)
      • y(t): Interpolated par real yield at t years (unit: percent/year) (domain: y(t) > -100)

      Timing: end of year t, annual; the start year is t = 0 and undiscounted

      Rounding: none

      Limits:

      • Par yields are treated as spot rates: a planning convention, not a bootstrapped zero curve
      • Guaranteed income counts Social Security, pensions, annuities and TIPS-ladder flows only; wages and portfolio income are excluded by design
      • Years before fromYear are excluded from both sides; the horizon ends at the last ledger year
      • The deflator is supplied by the caller; the record assumes it maps nominal ledger dollars to the same real basis as the curve
      • Returns null rather than a ratio when the essential present value is not positive

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: funded-ratio-hand-present-value.md Mutation receipt: funded-ratio-hand-present-value.mutation.md

      Evidence tests: fundedRatio.evidence.test.ts

      Implemented in: fundedRatio.ts

      Is the number of: funded-ratio-result-essential-spending-pv, funded-ratio-result-guaranteed-income-pv, funded-ratio-result-funded-ratio-pct, funded-ratio-result-unfunded-pv

    Fed by: Funded ratio: the year the household floor starts to count (model record, 6 of 6 gates pass); The household's later retirement, one rule for FI and the funded ratio (model record, 6 of 6 gates pass); Real present value of a cash-flow stream on the TIPS curve (formula record, 6 of 6 gates pass); Par real yield at a maturity: linear interpolation with flat endpoints (formula record, 6 of 6 gates pass); Embedded Treasury par real-yield curve, 2026-06-30 (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Funded ratio result unfunded PV

    Essential-spending present value left for the portfolio after guaranteed income.

    Field: unfundedPv Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: income-floor (gap riding on the portfolio); insights (income-floor-funded card title and rationale (computeFundedRatio values))

    • Funded ratio: present values of essential spending and guaranteed income Composition record, justified by derivation

      Purpose: How much of the essential-spending floor, valued on the TIPS curve, is covered by guaranteed income valued the same way.

      Statement: From the deterministic ledger years with calendar year >= fromYear (default: the start year), each year's expenses.requiredSpending and the sum incomes.socialSecurity + pension + annuity + tipsLadder are deflated to today's dollars by the caller-supplied deflator and discounted as real flows at offset t = year - startYear on the TIPS par curve (ladder-real-present-value; t = 0 is undiscounted). essentialSpendingPv = E, guaranteedIncomePv = G, fundedRatioPct = 100·G/E, unfundedPv = max(0, E - G). Returns null when there are no years or E <= 0. Units: real dollars and percent. Rounding: none.

      Formula: E = sum_t d_t S_t/(1 + y(t)/100)^t; G = sum_t d_t I_t/(1 + y(t)/100)^t; ratio = 100 G/E; unfunded = max(0, E - G)

      • t: Years from the start year to the ledger year (unit: years) (domain: integer t >= 0)
      • d_t: Deflator from nominal year-t dollars to today's dollars (unit: 1) (domain: d_t > 0)
      • S_t: Nominal required-floor spending in year t (unit: usd) (domain: S_t >= 0)
      • I_t: Nominal guaranteed income in year t (Social Security + pension + annuity + TIPS ladder) (unit: usd) (domain: I_t >= 0)
      • y(t): Interpolated par real yield at t years (unit: percent/year) (domain: y(t) > -100)

      Timing: end of year t, annual; the start year is t = 0 and undiscounted

      Rounding: none

      Limits:

      • Par yields are treated as spot rates: a planning convention, not a bootstrapped zero curve
      • Guaranteed income counts Social Security, pensions, annuities and TIPS-ladder flows only; wages and portfolio income are excluded by design
      • Years before fromYear are excluded from both sides; the horizon ends at the last ledger year
      • The deflator is supplied by the caller; the record assumes it maps nominal ledger dollars to the same real basis as the curve
      • Returns null rather than a ratio when the essential present value is not positive

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: funded-ratio-hand-present-value.md Mutation receipt: funded-ratio-hand-present-value.mutation.md

      Evidence tests: fundedRatio.evidence.test.ts

      Implemented in: fundedRatio.ts

      Is the number of: funded-ratio-result-essential-spending-pv, funded-ratio-result-guaranteed-income-pv, funded-ratio-result-funded-ratio-pct, funded-ratio-result-unfunded-pv

    Fed by: Funded ratio: the year the household floor starts to count (model record, 6 of 6 gates pass); The household's later retirement, one rule for FI and the funded ratio (model record, 6 of 6 gates pass); Real present value of a cash-flow stream on the TIPS curve (formula record, 6 of 6 gates pass); Par real yield at a maturity: linear interpolation with flat endpoints (formula record, 6 of 6 gates pass); Embedded Treasury par real-yield curve, 2026-06-30 (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Income floor ladder yield pct

    Annual real income generated by the modeled ladder as a percentage of its total purchase cost.

    Field: Income-floor ladder yield Unit: percent Basis: no dollar basis Computed by: UI transformation Status: Complete chain

    Appears in: income-floor (annual real income as percent of total cost)

    • Ladder income as a percent of its cost Formula record, justified by derivation

      Purpose: How much level real income a ladder quote pays each year for each dollar it costs, as the Income floor section prints it.

      Statement: ladder/ladderMath.ts#ladderIncomeYieldPct returns (targetAnnualRealIncome / totalCost) × 100 for a ladder quote and refuses a cost that is not a positive finite number. quotePlanLadder prices a plan ladder with buildLadder on planLadderWindow, the anchor rule simulatePlan also calls (the purchase year, or the year before the projection for a ladder already owned; the first payout no earlier than the year after the anchor; no ladder when the window is empty or the amount is not positive), and publishes the yield and each rung's maturity year, the anchor year plus the rung's maturity offset. A one-year ladder of $10,200 at a flat 2 percent costs $10,000 and yields 102 percent; two years of $10,200 at 2 percent cost $19,803.92156862745 and yield 51.504950495049506 percent, the level annuity rate 1.0404 / 2.02. Units: percent per year, real. Rounding: none; the page prints two decimals.

      Formula: yield = (A / C) · 100, with C the sum of the rung prices

      • A: Level real income the ladder pays each payout year (targetAnnualRealIncome) (unit: today USD per year) (domain: > 0)
      • C: Total real cost of the rungs (totalCost) (unit: today USD) (domain: > 0)

      Timing: at quote time, on the curve the quote used

      Rounding: none

      Limits:

      • The ratio inherits the construction's planning simplifications: annual coupons, par yields read as spot rates, and the embedded curve's date.
      • On a deferred ladder the cost includes the coupons paid before the first payout year, which the target income does not count, so the yield is below the level annuity rate; a one-year ladder yields more than 100 percent.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: income-floor-ladder-yield-pct.md Mutation receipt: income-floor-ladder-yield-pct.mutation.md

      Evidence tests: ladderMath.incomeYield.evidence.test.ts

      Implemented in: ladderMath.ts; simulate.ts

      Is the number of: income-floor-ladder-yield-pct

    Fed by: Par real yield at a maturity: linear interpolation with flat endpoints (formula record, 6 of 6 gates pass); Embedded Treasury par real-yield curve, 2026-06-30 (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Income TIPS ladder annual

    Income paid by the modeled TIPS ladder during the projection year.

    Field: tipsLadder Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (tipsLadder); scenarios-page (Lifetime income "TIPS ladder"); chart (Income by source "TIPS ladder" series); cash-flow-drilldown (tipsLadderCash source line)

    • TIPS ladder annual cash and remaining ladder value Composition record, justified by derivation

      Purpose: The cash a TIPS income-floor ladder pays in a year and the face still riding in net worth at its end.

      Statement: At offset = year − anchor year, projection/internal/tipsLadderAnnualCashFlow.ts#tipsLadderAnnualCashFlows publishes, per ladder: cash = (coupons + maturing principal) x the ladder's funding scale x the cumulative inflation factor from the start year, where coupons sum face x couponRatePct / 100 over every rung with maturityOffset >= offset and maturing principal is the face of the rungs maturing at exactly that offset; and ladderValue = unmatured face (rungs with maturityOffset > offset) x the same scale and factor. In the purchase year (offset 0) cash is 0 and the value is the whole face at that year's factor; with nobody alive the remaining face is frozen at the last living year's offset. YearIncomes.tipsLadder and YearResult.ladderValue are the sums of these rows over the plan's ladders. Units: nominal dollars. Rounding: none.

      Formula: cash = (Σ_{m >= k} F_m c_m + Σ_{m = k} F_m) s f_k; value = (Σ_{m > k} F_m) s f_k; cash = 0 at k = 0

      • k: Offset from the anchor year (purchase year, or the year before the start when already owned) (unit: years) (domain: integer >= 0)
      • F_m, c_m: Real face and coupon rate of the rung maturing at offset m (unit: usd / fraction) (domain: F_m >= 0, 0 <= c_m)
      • s: Funding scale: 1, or the funded fraction when the purchase-year account could not cover the quoted cost (unit: 1) (domain: 0 <= s <= 1)
      • f_k: Cumulative general-inflation factor from the start year to this year (unit: 1) (domain: positive)

      Timing: annual; one row per ladder, never summed inside the phase

      Rounding: none

      Limits:

      • The worksheet's rung set (face $10,000 at offset 1 with a 1% coupon and face $20,000 at offset 3 with a 2% coupon, nothing at offset 2) is NOT plan-constructible: ladder/ladderMath.ts#buildLadder derives faces by back-substitution from a level real income and prices every coupon off the embedded real-yield curve, over CONSECUTIVE offsets. The three-offset case is therefore asserted by calling the phase directly with those rungs, the way the other annual-phase evidence files do
      • A real simulatePlan run is asserted beside it for the purchase-year branch the worksheet also states (cash exactly 0 and ladderValue the whole face x scale x factor), because that branch IS plan-constructible
      • The funding scale is written once by the simulator's purchase-funding block and only read here; the direct-call evidence sets it to the worksheet's 0.8 rather than starving a funding account to produce it
      • Cumulative factors of 1.05 at offset 1 and 1.10 at offset 2 are not a constant inflation rate; the direct call passes them as the worksheet states them
      • Taxable income is a different quantity from cash: the phase also returns coupons plus this year's accretion on outstanding face, which these two families do not publish
      • Restated 2026-09-28 under decision D-2027-ROLLOVER. A PURCHASE DATED BEFORE THE START, a registered limit of the convention and not corrected: a ladder whose purchase year is before the projection start year is treated as already paid, anchored at its purchase year, so its rungs pay while no cost is taken from the funding account. When the funding balance was entered before the purchase and not updated, the cost is counted twice. The independent check measured a $30,000-a-year real bridge ladder for 2028 to 2031 bought in 2026: it costs $14,873 of ending net worth from a 2026 start and adds $702,171 from a 2027 start (+$702,077.94 as pinned below, after main's #761 and the 2026-09-29 change to CMS's published IRMAA amounts). The projection names each such purchase in a warning with the cost the ledger prices, and says to lower the funding balance by that cost if it still includes it (projection/preStartEvents.ts#preStartEvents)
      • Since the review (2026-09-29, findings L2 and L7) the warning prints the cost as the ledger prices a purchase in its own year (quotePlanLadder's real cost: $114,426 for that ladder, which the funding row then carries a year's return on, the review's $120,719.61 fall in the brokerage row from a 2026 start), and the sizes are pinned to the cent in packages/planner-ui/src/planner/preStartEvents.figures.test.ts: -$14,871.56 from a 2026 start and +$702,077.94 from a 2027 start (-$14,872.97 and +$702,077.21 before the 2026-09-29 change to CMS's published IRMAA amounts; the review measured +$702,170.98 before main's #761 priced a saved example's 2027 premium tax credit from a 2027 start)

      Provenance: derived by codex, implemented by claude.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: income-tips-ladder-and-ladder-value-annual.md Mutation receipt: income-tips-ladder-and-ladder-value-annual.mutation.md

      Evidence tests: tipsLadderAnnualCashFlow.evidence.test.ts

      Implemented in: tipsLadderAnnualCashFlow.ts; ladderMath.ts; preStartEvents.ts

      Is the number of: income-tips-ladder-annual, ladder-value-annual

  • Ladder build annual real income by offset

    Real annual income delivered by the modeled ladder in each future year.

    Field: annualRealIncomeByOffset Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: income-floor (ladder income by year)

    • Level-real-income ladder: faces solved back to front Formula record, justified by derivation

      Purpose: The face amount of each rung so that every payout year's maturing principal plus the coupons of the rungs still outstanding equals the target real income.

      Statement: For target real income A, first payout offset p and payout count q (each rounded to an integer and clamped to at least 1), rungs mature at offsets m = p..p+q-1 with coupon rates c_m = max(0.125%, y(m))/100. Faces are solved from the last offset backward: F_m = max(0, (A - sum over later offsets j of F_j c_j)/(1 + c_m)), so that F_m(1 + c_m) plus the coupons of every rung still outstanding equals A in year m. Each rung is then priced on the curve (ladder-annual-coupon-par-pricing); totalCost is the sum of rung costs; annualRealIncomeByOffset lists coupons plus maturing principal for offsets 1..p+q-1 (coupon-only inside a deferral window); targetAnnualRealIncome echoes A. Units: real (today's) dollars. Rounding: none.

      Formula: F_m = max(0, (A - sum_{j>m} F_j c_j) / (1 + c_m)) for m from last to first; income_m = F_m (1 + c_m) + sum_{j>m} F_j c_j = A

      • A: Level real income target per payout year (unit: usd) (domain: A >= 0)
      • m: Maturity offset of a rung (unit: years) (domain: integer, p <= m <= p+q-1, p >= 1)
      • c_m: Coupon rate of the rung maturing at m, as a fraction (unit: 1) (domain: c_m >= 0.00125)
      • F_m: Real face of the rung maturing at m (unit: usd) (domain: F_m >= 0)

      Timing: end of year, annual; the rung maturing in year m pays its last coupon and principal that year

      Rounding: none

      Limits:

      • Faces are floored at zero: a target smaller than the later rungs' coupons yields a zero-face rung and that year then receives more than the target
      • Payout offset and count are rounded and clamped to at least 1 rather than rejected
      • Coupons pay annually and par yields serve as spot rates for pricing (ladderMath.ts header simplifications)
      • No CUSIP-level lot rounding in core mode; faces are continuous

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: ladder-backward-face-construction.md Mutation receipt: ladder-backward-face-construction.mutation.md

      Evidence tests: ladderMath.evidence.test.ts

      Implemented in: ladderMath.ts

      Is the number of: ladder-rung-face, ladder-build-annual-real-income-by-offset, ladder-build-total-cost, ladder-build-target-annual-real-income

  • Ladder build target annual real income

    Real annual income the ladder is designed to deliver.

    Field: targetAnnualRealIncome Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: income-floor (target annual real income)

    • Level-real-income ladder: faces solved back to front Formula record, justified by derivation

      Purpose: The face amount of each rung so that every payout year's maturing principal plus the coupons of the rungs still outstanding equals the target real income.

      Statement: For target real income A, first payout offset p and payout count q (each rounded to an integer and clamped to at least 1), rungs mature at offsets m = p..p+q-1 with coupon rates c_m = max(0.125%, y(m))/100. Faces are solved from the last offset backward: F_m = max(0, (A - sum over later offsets j of F_j c_j)/(1 + c_m)), so that F_m(1 + c_m) plus the coupons of every rung still outstanding equals A in year m. Each rung is then priced on the curve (ladder-annual-coupon-par-pricing); totalCost is the sum of rung costs; annualRealIncomeByOffset lists coupons plus maturing principal for offsets 1..p+q-1 (coupon-only inside a deferral window); targetAnnualRealIncome echoes A. Units: real (today's) dollars. Rounding: none.

      Formula: F_m = max(0, (A - sum_{j>m} F_j c_j) / (1 + c_m)) for m from last to first; income_m = F_m (1 + c_m) + sum_{j>m} F_j c_j = A

      • A: Level real income target per payout year (unit: usd) (domain: A >= 0)
      • m: Maturity offset of a rung (unit: years) (domain: integer, p <= m <= p+q-1, p >= 1)
      • c_m: Coupon rate of the rung maturing at m, as a fraction (unit: 1) (domain: c_m >= 0.00125)
      • F_m: Real face of the rung maturing at m (unit: usd) (domain: F_m >= 0)

      Timing: end of year, annual; the rung maturing in year m pays its last coupon and principal that year

      Rounding: none

      Limits:

      • Faces are floored at zero: a target smaller than the later rungs' coupons yields a zero-face rung and that year then receives more than the target
      • Payout offset and count are rounded and clamped to at least 1 rather than rejected
      • Coupons pay annually and par yields serve as spot rates for pricing (ladderMath.ts header simplifications)
      • No CUSIP-level lot rounding in core mode; faces are continuous

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: ladder-backward-face-construction.md Mutation receipt: ladder-backward-face-construction.mutation.md

      Evidence tests: ladderMath.evidence.test.ts

      Implemented in: ladderMath.ts

      Is the number of: ladder-rung-face, ladder-build-annual-real-income-by-offset, ladder-build-total-cost, ladder-build-target-annual-real-income

  • Ladder build total cost

    Purchase cost of all rungs in the modeled income-floor ladder.

    Field: totalCost Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: income-floor (ladder total cost)

    • Level-real-income ladder: faces solved back to front Formula record, justified by derivation

      Purpose: The face amount of each rung so that every payout year's maturing principal plus the coupons of the rungs still outstanding equals the target real income.

      Statement: For target real income A, first payout offset p and payout count q (each rounded to an integer and clamped to at least 1), rungs mature at offsets m = p..p+q-1 with coupon rates c_m = max(0.125%, y(m))/100. Faces are solved from the last offset backward: F_m = max(0, (A - sum over later offsets j of F_j c_j)/(1 + c_m)), so that F_m(1 + c_m) plus the coupons of every rung still outstanding equals A in year m. Each rung is then priced on the curve (ladder-annual-coupon-par-pricing); totalCost is the sum of rung costs; annualRealIncomeByOffset lists coupons plus maturing principal for offsets 1..p+q-1 (coupon-only inside a deferral window); targetAnnualRealIncome echoes A. Units: real (today's) dollars. Rounding: none.

      Formula: F_m = max(0, (A - sum_{j>m} F_j c_j) / (1 + c_m)) for m from last to first; income_m = F_m (1 + c_m) + sum_{j>m} F_j c_j = A

      • A: Level real income target per payout year (unit: usd) (domain: A >= 0)
      • m: Maturity offset of a rung (unit: years) (domain: integer, p <= m <= p+q-1, p >= 1)
      • c_m: Coupon rate of the rung maturing at m, as a fraction (unit: 1) (domain: c_m >= 0.00125)
      • F_m: Real face of the rung maturing at m (unit: usd) (domain: F_m >= 0)

      Timing: end of year, annual; the rung maturing in year m pays its last coupon and principal that year

      Rounding: none

      Limits:

      • Faces are floored at zero: a target smaller than the later rungs' coupons yields a zero-face rung and that year then receives more than the target
      • Payout offset and count are rounded and clamped to at least 1 rather than rejected
      • Coupons pay annually and par yields serve as spot rates for pricing (ladderMath.ts header simplifications)
      • No CUSIP-level lot rounding in core mode; faces are continuous

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: ladder-backward-face-construction.md Mutation receipt: ladder-backward-face-construction.mutation.md

      Evidence tests: ladderMath.evidence.test.ts

      Implemented in: ladderMath.ts

      Is the number of: ladder-rung-face, ladder-build-annual-real-income-by-offset, ladder-build-total-cost, ladder-build-target-annual-real-income

    Fed by: Synthetic TIPS rung: floored coupon and par-curve price (formula record, 6 of 6 gates pass); Embedded Treasury par real-yield curve, 2026-06-30 (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Ladder real flows coupons

    Inflation-adjusted coupon cash flow paid by ladder holdings in a year.

    Field: coupons Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: income-floor (coupon cash flow)

    • Ladder cash flows in a year and face outstanding after it Formula record, justified by derivation

      Purpose: The real coupons, maturing principal and outstanding face of a rung set in one year, and the face still outstanding once that year completes.

      Statement: For a rung set and an integer offset k >= 1: coupons = sum over rungs with maturity offset >= k of F·c/100; maturingPrincipal = sum of F over rungs with maturity offset = k; outstandingFace = sum of F over rungs with maturity offset >= k, the maturing rung included so it earns its last coupon and its inflation accretion. ladderRemainingFace(k) = sum of F over rungs with maturity offset > k, the face still outstanding after year k completes. Units: real (today's) dollars. Rounding: none.

      Formula: coupons_k = sum_{m >= k} F_m c_m/100; maturing_k = sum_{m = k} F_m; outstanding_k = sum_{m >= k} F_m; remaining_k = sum_{m > k} F_m

      • k: Year offset from the anchor year (unit: years) (domain: integer k >= 1)
      • F_m: Real face of the rung maturing at offset m (unit: usd) (domain: F_m >= 0)
      • c_m: Annual coupon rate of that rung (unit: percent/year) (domain: c_m >= 0.125)

      Timing: annual; a rung is outstanding through the year it matures and gone the year after

      Rounding: none

      Limits:

      • Values are real (today's) dollars; the ledger multiplies by its own inflation path to index them
      • ladder-value-annual is the ledger's nominal figure: ladderRemainingFace at the year's offset times the purchase scale and the year's inflation factor (projection/internal/tipsLadderAnnualCashFlow.ts); this record pins the remaining-face half of that product
      • Offsets are whole years by construction; a fractional offset matches no maturity

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: ladder-rung-flows-and-remaining-face.md Mutation receipt: ladder-rung-flows-and-remaining-face.mutation.md

      Evidence tests: ladderMath.evidence.test.ts

      Implemented in: ladderMath.ts

      Is the number of: ladder-real-flows-coupons, ladder-real-flows-maturing-principal

      Feeds: ladder-value-annual

  • Ladder real flows maturing principal

    Inflation-adjusted principal returned by ladder holdings maturing in a year.

    Field: maturingPrincipal Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: income-floor (maturing principal cash flow)

    • Ladder cash flows in a year and face outstanding after it Formula record, justified by derivation

      Purpose: The real coupons, maturing principal and outstanding face of a rung set in one year, and the face still outstanding once that year completes.

      Statement: For a rung set and an integer offset k >= 1: coupons = sum over rungs with maturity offset >= k of F·c/100; maturingPrincipal = sum of F over rungs with maturity offset = k; outstandingFace = sum of F over rungs with maturity offset >= k, the maturing rung included so it earns its last coupon and its inflation accretion. ladderRemainingFace(k) = sum of F over rungs with maturity offset > k, the face still outstanding after year k completes. Units: real (today's) dollars. Rounding: none.

      Formula: coupons_k = sum_{m >= k} F_m c_m/100; maturing_k = sum_{m = k} F_m; outstanding_k = sum_{m >= k} F_m; remaining_k = sum_{m > k} F_m

      • k: Year offset from the anchor year (unit: years) (domain: integer k >= 1)
      • F_m: Real face of the rung maturing at offset m (unit: usd) (domain: F_m >= 0)
      • c_m: Annual coupon rate of that rung (unit: percent/year) (domain: c_m >= 0.125)

      Timing: annual; a rung is outstanding through the year it matures and gone the year after

      Rounding: none

      Limits:

      • Values are real (today's) dollars; the ledger multiplies by its own inflation path to index them
      • ladder-value-annual is the ledger's nominal figure: ladderRemainingFace at the year's offset times the purchase scale and the year's inflation factor (projection/internal/tipsLadderAnnualCashFlow.ts); this record pins the remaining-face half of that product
      • Offsets are whole years by construction; a fractional offset matches no maturity

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: ladder-rung-flows-and-remaining-face.md Mutation receipt: ladder-rung-flows-and-remaining-face.mutation.md

      Evidence tests: ladderMath.evidence.test.ts

      Implemented in: ladderMath.ts

      Is the number of: ladder-real-flows-coupons, ladder-real-flows-maturing-principal

      Feeds: ladder-value-annual

  • Ladder rung cost

    Purchase cost of a single modeled ladder rung.

    Field: cost Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: income-floor (rung cost)

    • Synthetic TIPS rung: floored coupon and par-curve price Formula record, justified by derivation

      Purpose: What one ladder rung costs today: its annual real coupons and principal discounted on the curve, with the coupon set to the yield at maturity floored at 0.125%.

      Statement: For a rung of real face F maturing n whole years out, the coupon rate is c = max(0.125%, y(n)), where y(n) is the interpolated par real yield at n years. The price is the sum over k = 1..n of (F·c/100 + [k = n]·F)/(1 + y(k)/100)^k: each end-of-year cash flow discounted at the interpolated par yield for its own year treated as a spot rate. On a flat curve with a nonbinding floor c = y and the price equals F. Units: real (today's) dollars; percent inputs are divided by 100. Domain: F >= 0, integer n >= 1, y(k) > -100%. Rounding: none.

      Formula: c = max(0.125, y(n)); P = sum_{k=1..n} (F c/100 + [k = n] F) / (1 + y(k)/100)^k

      • F: Real face (principal) of the rung (unit: usd) (domain: F >= 0)
      • n: Maturity offset from the anchor year (unit: years) (domain: integer n >= 1)
      • y(k): Interpolated par real yield at k years (unit: percent/year) (domain: y(k) > -100)
      • c: Annual coupon rate of the synthetic rung (unit: percent/year) (domain: c >= 0.125)
      • P: Real purchase price of the rung (unit: usd) (domain: P >= 0)

      Timing: end of year, annual coupons, principal with the last coupon

      Rounding: none

      Limits:

      • Coupons pay annually; real-world semiannual TIPS timing is ignored (ladderMath.ts header)
      • Par yields are used as spot rates for discounting; no zero curve is bootstrapped (ladderMath.ts header)
      • The 0.125% floor is the regulatory minimum TIPS coupon; a curve yield below it prices the rung above par
      • No CUSIP-level lot rounding in core mode: face is continuous at $1 granularity (ladderMath.ts header)
      • tipsCouponRatePct and priceRung are module-private; the evidence reaches them through buildLadder with a one-rung ladder whose target is F(1 + c), which the back-substitution solves to face F exactly

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: ladder-annual-coupon-par-pricing.md Mutation receipt: ladder-annual-coupon-par-pricing.mutation.md

      Evidence tests: ladderMath.evidence.test.ts

      Implemented in: ladderMath.ts

      Is the number of: ladder-rung-cost, ladder-rung-coupon-rate-pct

      Feeds: ladder-build-total-cost

    Fed by: FedInvest security-price CSV: TIPS rows to reference records (data record, 6 of 6 gates pass); Latest FedInvest price date: previous business day in local time (model record, 6 of 6 gates pass); Nearest FedInvest TIPS for a rung year (formula record, 6 of 6 gates pass); Real present value of a cash-flow stream on the TIPS curve (formula record, 6 of 6 gates pass); Embedded Treasury par real-yield curve, 2026-06-30 (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Ladder rung coupon rate pct

    Annual real coupon rate of a modeled ladder rung.

    Field: couponRatePct Unit: percent Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: income-floor (coupon rate)

    • Synthetic TIPS rung: floored coupon and par-curve price Formula record, justified by derivation

      Purpose: What one ladder rung costs today: its annual real coupons and principal discounted on the curve, with the coupon set to the yield at maturity floored at 0.125%.

      Statement: For a rung of real face F maturing n whole years out, the coupon rate is c = max(0.125%, y(n)), where y(n) is the interpolated par real yield at n years. The price is the sum over k = 1..n of (F·c/100 + [k = n]·F)/(1 + y(k)/100)^k: each end-of-year cash flow discounted at the interpolated par yield for its own year treated as a spot rate. On a flat curve with a nonbinding floor c = y and the price equals F. Units: real (today's) dollars; percent inputs are divided by 100. Domain: F >= 0, integer n >= 1, y(k) > -100%. Rounding: none.

      Formula: c = max(0.125, y(n)); P = sum_{k=1..n} (F c/100 + [k = n] F) / (1 + y(k)/100)^k

      • F: Real face (principal) of the rung (unit: usd) (domain: F >= 0)
      • n: Maturity offset from the anchor year (unit: years) (domain: integer n >= 1)
      • y(k): Interpolated par real yield at k years (unit: percent/year) (domain: y(k) > -100)
      • c: Annual coupon rate of the synthetic rung (unit: percent/year) (domain: c >= 0.125)
      • P: Real purchase price of the rung (unit: usd) (domain: P >= 0)

      Timing: end of year, annual coupons, principal with the last coupon

      Rounding: none

      Limits:

      • Coupons pay annually; real-world semiannual TIPS timing is ignored (ladderMath.ts header)
      • Par yields are used as spot rates for discounting; no zero curve is bootstrapped (ladderMath.ts header)
      • The 0.125% floor is the regulatory minimum TIPS coupon; a curve yield below it prices the rung above par
      • No CUSIP-level lot rounding in core mode: face is continuous at $1 granularity (ladderMath.ts header)
      • tipsCouponRatePct and priceRung are module-private; the evidence reaches them through buildLadder with a one-rung ladder whose target is F(1 + c), which the back-substitution solves to face F exactly

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: ladder-annual-coupon-par-pricing.md Mutation receipt: ladder-annual-coupon-par-pricing.mutation.md

      Evidence tests: ladderMath.evidence.test.ts

      Implemented in: ladderMath.ts

      Is the number of: ladder-rung-cost, ladder-rung-coupon-rate-pct

      Feeds: ladder-build-total-cost

    Fed by: Par real yield at a maturity: linear interpolation with flat endpoints (formula record, 6 of 6 gates pass); Embedded Treasury par real-yield curve, 2026-06-30 (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Ladder rung face

    Face value purchased for a modeled ladder rung.

    Field: face Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: income-floor (face value)

    • Level-real-income ladder: faces solved back to front Formula record, justified by derivation

      Purpose: The face amount of each rung so that every payout year's maturing principal plus the coupons of the rungs still outstanding equals the target real income.

      Statement: For target real income A, first payout offset p and payout count q (each rounded to an integer and clamped to at least 1), rungs mature at offsets m = p..p+q-1 with coupon rates c_m = max(0.125%, y(m))/100. Faces are solved from the last offset backward: F_m = max(0, (A - sum over later offsets j of F_j c_j)/(1 + c_m)), so that F_m(1 + c_m) plus the coupons of every rung still outstanding equals A in year m. Each rung is then priced on the curve (ladder-annual-coupon-par-pricing); totalCost is the sum of rung costs; annualRealIncomeByOffset lists coupons plus maturing principal for offsets 1..p+q-1 (coupon-only inside a deferral window); targetAnnualRealIncome echoes A. Units: real (today's) dollars. Rounding: none.

      Formula: F_m = max(0, (A - sum_{j>m} F_j c_j) / (1 + c_m)) for m from last to first; income_m = F_m (1 + c_m) + sum_{j>m} F_j c_j = A

      • A: Level real income target per payout year (unit: usd) (domain: A >= 0)
      • m: Maturity offset of a rung (unit: years) (domain: integer, p <= m <= p+q-1, p >= 1)
      • c_m: Coupon rate of the rung maturing at m, as a fraction (unit: 1) (domain: c_m >= 0.00125)
      • F_m: Real face of the rung maturing at m (unit: usd) (domain: F_m >= 0)

      Timing: end of year, annual; the rung maturing in year m pays its last coupon and principal that year

      Rounding: none

      Limits:

      • Faces are floored at zero: a target smaller than the later rungs' coupons yields a zero-face rung and that year then receives more than the target
      • Payout offset and count are rounded and clamped to at least 1 rather than rejected
      • Coupons pay annually and par yields serve as spot rates for pricing (ladderMath.ts header simplifications)
      • No CUSIP-level lot rounding in core mode; faces are continuous

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: ladder-backward-face-construction.md Mutation receipt: ladder-backward-face-construction.mutation.md

      Evidence tests: ladderMath.evidence.test.ts

      Implemented in: ladderMath.ts

      Is the number of: ladder-rung-face, ladder-build-annual-real-income-by-offset, ladder-build-total-cost, ladder-build-target-annual-real-income

  • Ladder value annual

    Value of the modeled bond/TIPS ladder in a projection year.

    Field: Ladder value Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (ladderValue)

    • TIPS ladder annual cash and remaining ladder value Composition record, justified by derivation

      Purpose: The cash a TIPS income-floor ladder pays in a year and the face still riding in net worth at its end.

      Statement: At offset = year − anchor year, projection/internal/tipsLadderAnnualCashFlow.ts#tipsLadderAnnualCashFlows publishes, per ladder: cash = (coupons + maturing principal) x the ladder's funding scale x the cumulative inflation factor from the start year, where coupons sum face x couponRatePct / 100 over every rung with maturityOffset >= offset and maturing principal is the face of the rungs maturing at exactly that offset; and ladderValue = unmatured face (rungs with maturityOffset > offset) x the same scale and factor. In the purchase year (offset 0) cash is 0 and the value is the whole face at that year's factor; with nobody alive the remaining face is frozen at the last living year's offset. YearIncomes.tipsLadder and YearResult.ladderValue are the sums of these rows over the plan's ladders. Units: nominal dollars. Rounding: none.

      Formula: cash = (Σ_{m >= k} F_m c_m + Σ_{m = k} F_m) s f_k; value = (Σ_{m > k} F_m) s f_k; cash = 0 at k = 0

      • k: Offset from the anchor year (purchase year, or the year before the start when already owned) (unit: years) (domain: integer >= 0)
      • F_m, c_m: Real face and coupon rate of the rung maturing at offset m (unit: usd / fraction) (domain: F_m >= 0, 0 <= c_m)
      • s: Funding scale: 1, or the funded fraction when the purchase-year account could not cover the quoted cost (unit: 1) (domain: 0 <= s <= 1)
      • f_k: Cumulative general-inflation factor from the start year to this year (unit: 1) (domain: positive)

      Timing: annual; one row per ladder, never summed inside the phase

      Rounding: none

      Limits:

      • The worksheet's rung set (face $10,000 at offset 1 with a 1% coupon and face $20,000 at offset 3 with a 2% coupon, nothing at offset 2) is NOT plan-constructible: ladder/ladderMath.ts#buildLadder derives faces by back-substitution from a level real income and prices every coupon off the embedded real-yield curve, over CONSECUTIVE offsets. The three-offset case is therefore asserted by calling the phase directly with those rungs, the way the other annual-phase evidence files do
      • A real simulatePlan run is asserted beside it for the purchase-year branch the worksheet also states (cash exactly 0 and ladderValue the whole face x scale x factor), because that branch IS plan-constructible
      • The funding scale is written once by the simulator's purchase-funding block and only read here; the direct-call evidence sets it to the worksheet's 0.8 rather than starving a funding account to produce it
      • Cumulative factors of 1.05 at offset 1 and 1.10 at offset 2 are not a constant inflation rate; the direct call passes them as the worksheet states them
      • Taxable income is a different quantity from cash: the phase also returns coupons plus this year's accretion on outstanding face, which these two families do not publish
      • Restated 2026-09-28 under decision D-2027-ROLLOVER. A PURCHASE DATED BEFORE THE START, a registered limit of the convention and not corrected: a ladder whose purchase year is before the projection start year is treated as already paid, anchored at its purchase year, so its rungs pay while no cost is taken from the funding account. When the funding balance was entered before the purchase and not updated, the cost is counted twice. The independent check measured a $30,000-a-year real bridge ladder for 2028 to 2031 bought in 2026: it costs $14,873 of ending net worth from a 2026 start and adds $702,171 from a 2027 start (+$702,077.94 as pinned below, after main's #761 and the 2026-09-29 change to CMS's published IRMAA amounts). The projection names each such purchase in a warning with the cost the ledger prices, and says to lower the funding balance by that cost if it still includes it (projection/preStartEvents.ts#preStartEvents)
      • Since the review (2026-09-29, findings L2 and L7) the warning prints the cost as the ledger prices a purchase in its own year (quotePlanLadder's real cost: $114,426 for that ladder, which the funding row then carries a year's return on, the review's $120,719.61 fall in the brokerage row from a 2026 start), and the sizes are pinned to the cent in packages/planner-ui/src/planner/preStartEvents.figures.test.ts: -$14,871.56 from a 2026 start and +$702,077.94 from a 2027 start (-$14,872.97 and +$702,077.21 before the 2026-09-29 change to CMS's published IRMAA amounts; the review measured +$702,170.98 before main's #761 priced a saved example's 2027 premium tax credit from a 2027 start)

      Provenance: derived by codex, implemented by claude.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: income-tips-ladder-and-ladder-value-annual.md Mutation receipt: income-tips-ladder-and-ladder-value-annual.mutation.md

      Evidence tests: tipsLadderAnnualCashFlow.evidence.test.ts

      Implemented in: tipsLadderAnnualCashFlow.ts; ladderMath.ts; preStartEvents.ts

      Is the number of: income-tips-ladder-annual, ladder-value-annual

    Fed by: Ladder cash flows in a year and face outstanding after it (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

Longevity

  • Display years before plan end

    How many plan years the money falls short of the plan's end: the plan's last year minus the last fully funded year (0 when it never depletes).

    Field: Years short of the plan's end Unit: years Basis: no dollar basis Computed by: UI transformation Status: Complete chain

    Appears in: results-headline (Depletion sentence "Money lasts through L, N years short of the plan's end in E")

    • Money lasts: the last funded year and the years short of the plan's end Formula record, justified by derivation

      Purpose: One convention for how long the money lasts: the last fully funded year, and how many plan years the money falls short of the plan's end.

      Statement: projection/moneyLasts.ts#moneyLasts publishes lastFundedYear = depletionYear - 1, or endYear when the projection never depletes, and yearsShortOfPlanEnd = endYear - lastFundedYear: 0 when it never depletes and endYear - depletionYear + 1 when it does, so a plan short only in its final year reads 1. A depletion year outside the projection's years is refused. The decision and optimizer money-lasts deltas are differences of lastFundedYear. Units: calendar year; count of years. Rounding: none.

      Formula: L = D - 1 when D is not null, else E; N = E - L

      • D: Depletion year: first year with a funding shortfall above half a cent after any HECM backstop (unit: calendar year) (domain: integer in [startYear, E], or null)
      • E: The plan's inclusive last year (unit: calendar year) (domain: integer)
      • L: Last fully funded year (unit: calendar year) (domain: startYear - 1 when the first year is short)
      • N: Years short of the plan's end (unit: years) (domain: integer, 0 when D is null)

      Timing: the ledger's annual rows

      Rounding: none

      Limits:

      • A distance, not a count of shortfall years: a year after the depletion year can be funded again if income resumes
      • Deterministic ledger only; the Monte Carlo pages have their own depletion distribution
      • Owner decision R15 (2026-09-25): the Results sentence used to read endYear - depletionYear years before the end (0 for a plan short only in its final year), the KPI bar and the printed report named the depletion year as the year the money lasts until, and the decision code counted a non-depleting plan as lasting through endYear + 1. Every surface now names the last funded year and counts endYear - lastFundedYear. The decision and optimizer deltas did not move: both conventions shift every result by the same one year

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-years-before-plan-end.md Mutation receipt: display-years-before-plan-end.mutation.md

      Evidence tests: moneyLasts.evidence.test.ts

      Implemented in: moneyLasts.ts; evaluateCandidate.ts

      Is the number of: display-years-before-plan-end, longevity-last-funded-year

      Feeds: compare-plan-deltas

    Fed by: Depletion year: the first projection year whose shortfall clears the funding tolerance (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Longevity depletion year

    First projection year with any spending shortfall; null when investable assets last through the horizon.

    Field: Depletion year Unit: calendar year Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: results-headline (KpiBar "Money lasts" sub "short in YEAR"); results-headline (ResultsPage narrative "This plan runs out of money in YEAR"); results-table (Balances chart "depleted" reference line and "Portfolio depletes in YEAR" callout); report (headline-results block depletionYear); compare-page (Depletion age (NAME) row: the older person's age in that year, named in the label (PlanHeadlineComparison.depletionAge, whose person PlanHeadlineComparison.depletionAgePersonId gives)); scenarios-page (Headline "Depletion year"); ss-page (Claim-age table "Depletes" column YEAR / never); survivor-page (Degenerate-timings note "runs out of money in YEAR"); relocation-page (RelocationCandidateRow.depletionYear (carried)); monte-carlo-page (Historical stress windows "Depletes" column); insights (InsightCardView flat-delta note "The base plan runs out of money in YEAR"); mcp (run_projection.summary.depletionYear); mcp (compare_scenarios.a.depletionYear); mcp (compare_scenarios.b.depletionYear); optimize-page (Couldn't-optimize well and the solver-limit note "Your plan's projection runs short of money in YEAR" (OptimizedSchedule.projectionDepletionYear, when the first solve has no solution)); mcp (run_optimizer.schedule.projectionDepletionYear (present only when the first solve has no solution))

    • Depletion year: the first projection year whose shortfall clears the funding tolerance Model record, justified by derivation

      Purpose: The year the headline results call the plan depleted, or null when every year was funded.

      Statement: ProjectionResult.depletionYear is the first projection year, in year order, whose YearResult.shortfall (the funding shortfall left after every withdrawal and any HECM backstop draw) is strictly greater than projection/moneyTolerance.ts#ANNUAL_FUNDING_TOLERANCE_PLAN_DOLLARS ($0.005, the ledger's own residual budget). A residual at or below that budget is not depletion; once a year is recorded the value is never replaced by a later one; and the field is null when no year exceeds the tolerance. Units: calendar year, or null. Rounding: none; the comparison is strict.

      Formula: depletionYear = min{ y : shortfall_y > ANNUAL_FUNDING_TOLERANCE_PLAN_DOLLARS }, else null

      • shortfall_y: Year y's funding shortfall after every withdrawal and any HECM backstop draw (unit: usd) (domain: shortfall_y >= 0)
      • ANNUAL_FUNDING_TOLERANCE_PLAN_DOLLARS: The funding fixed point's accepted residual (unit: usd) (domain: 0.005)
      • depletionYear: First qualifying calendar year (unit: year) (domain: a projection year, or null)

      Timing: annual; tested in each year's funding-and-close phase, in year order

      Rounding: none; strictly greater than the half-cent tolerance

      Limits:

      • Beyond the worksheet's inputs the evidence plan fixes: one cash account (so no market shock and no taxable yield reach it), a 51-year-old single filer under 65 (no Medicare premium, no early-withdrawal exposure), zero income, zero inflation and zero return, base spending as the only expense, and an explicit horizonEndYear of 2028 so the three rows are exactly 2026-2028
      • The tolerance is a residual budget, not a balance test: a year that closes at exactly zero with every dollar of spending funded is not depletion, which is why the $30,000 opening balance against the same $10,000 gap still publishes null
      • The field records the FIRST qualifying year only; later shortfalls do not move it, and a plan that recovers after a shortfall year still reports that year
      • The comparison is strict (>), so a shortfall of exactly $0.005 is accepted as a rounding residual rather than depletion; the evidence does not pin that boundary, which would need a plan whose funding residual lands on the tolerance exactly

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: longevity-depletion-year.md Mutation receipt: longevity-depletion-year.mutation.md

      Evidence tests: simulate.depletionYear.evidence.test.ts

      Implemented in: simulate.ts; annualFundingApplicationAndClosePhase.ts

      Is the number of: longevity-depletion-year

      Feeds: display-years-before-plan-end, longevity-last-funded-year

  • Longevity survival percentile age

    The oldest integer age a person reaches with probability at least pct/100 on the SSA period life table, optionally with a health hazard multiplier and a joint (either-survives) curve for a couple.

    Field: Survival-percentile planning age Unit: age in years Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: assumptions-card (SurvivalPercentileModal planning-age preview (household section), clamped to 60..120 before it becomes the plan's planning age)

    • Joint (either-survives) percentile age on the primary's age clock Formula record, justified by derivation

      Purpose: The couple's planning age: the oldest primary age at which at least one of two independent lives is alive with probability at least pct/100.

      Statement: With from = floor(max(primary.age, 0)), partnerFrom = floor(max(partner.age, 0)) and threshold = min(max(p, 0.1), 100)/100: for t = 0, 1, ... while from + t <= 120 or partnerFrom + t <= 120 (either person still inside the table; decision D-PEOPLE-ORDER, rule R6), let P(t) = 1 - (1 - S_primary(t))(1 - S_partner(t)), where each S(t) is that person's survival curve from their own floored age under their hazard (default 1), read t years on (survival-probability-product; for 'average' the mixture). Record best = from + t while P(t) >= threshold; stop at the first t below the threshold, or once both survivals are 0. Returns best; P(0) = 1, so the result is always >= from and never below the primary's single-life answer. The result is on the primary's clock and can exceed 120 when the partner is much younger; the calendar year it names, primary's birth year + best, is the same whichever person is passed as primary (a male 70 with a female 35 at 25 percent: 126 on his clock, 2082; stopped at his table end the walk returned 120, 2076). Units: integer primary age. Rounding: none.

      Formula: age* = max{ from + t : 1 - (1 - S_primary(t))(1 - S_partner(t)) >= p/100 }

      • from, partnerFrom: Floored current ages of primary and partner (unit: years) (domain: integer >= 0)
      • t: Years elapsed on the primary's clock (unit: years) (domain: integer >= 0, from + t <= 120 or partnerFrom + t <= 120)
      • S_primary(t), S_partner(t): Each life's survival over t more years (survival-probability-product) (unit: 1) (domain: [0, 1])
      • p: Percent chance that at least one is alive, clamped to [0.1, 100] (unit: percent) (domain: 0.1 <= p <= 100)

      Timing: annual; both curves advance one year per step on the primary's clock

      Rounding: none

      Limits:

      • Independent lifetimes; the either-alive probability is the complement of both being dead, 1 - (1 - S_a)(1 - S_b)
      • The partner's clock is offset by the age difference and advances with the primary's; the answer is a primary age, not a partner age
      • The percentage is clamped to [0.1, 100] before use, a bound the signature comment does not state
      • Each person's hazard power applies to that person's own curve; a missing hazard is 1
      • Two 'average' people are independent mixtures, so P(t) is the average over the four equally likely sex pairings (survival-probability-product)
      • The year-by-year projection reads this age for a couple, at hazard 1, as the horizon a plan's amortization-based spending amortizes to when it is set to the age at least one of them reaches with a 25 or 10 percent chance (projection/simulate.ts), worked out again on every projection: example-couple on the 10 percent horizon ends with an after-tax estate of $1,378,752 on the 2022 table and $1,659,513 on 2023

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: joint-survival-percentile-age.md Mutation receipt: joint-survival-percentile-age.mutation.md

      Evidence tests: survival.evidence.test.ts

      Implemented in: survival.ts

      Is the number of: longevity-survival-percentile-age

      Feeds: spending-base-annual

    • Survival-percentile planning age: oldest age reached with probability at least pct/100 Formula record, justified by derivation

      Purpose: The single-life planning age the assumptions card previews: the age a person has a pct% chance of reaching.

      Statement: For current age c, sex, percentage p and hazard power h (default 1): threshold = min(max(p, 0.1), 100)/100. With from = floor(max(c, 0)) and best = from, for t = 1, 2, ... while from + t <= 120, read S(t), the survival curve from `from` under h (survival-probability-product; for 'average' the mixture); while S(t) >= threshold record best = from + t, and stop at the first t whose S(t) falls below the threshold. Returns best: the oldest integer age whose conditional survival from c is at least the threshold, always >= from. Units: integer age. Rounding: none.

      Formula: age* = max{ g >= from : S(from -> g) >= p/100 }, with S(from -> from) = 1

      • from: Floored current age (unit: years) (domain: integer >= 0)
      • p: Percent chance of reaching the age, clamped to [0.1, 100] (unit: percent) (domain: 0.1 <= p <= 100)
      • S(from -> g): Conditional survival to g, read off the survival curve (survival-probability-product) (unit: 1) (domain: [0, 1], nonincreasing in g)
      • age*: Survival-percentile planning age (unit: years) (domain: from <= age* <= max(119, from))

      Timing: annual survival steps over integer ages

      Rounding: none

      Limits:

      • The percentage is clamped to [0.1, 100] before use, a bound the signature comment does not state; a value passed as a probability (0.97) is read as 0.97%
      • Survival is nonincreasing, so the qualifying ages form an initial interval and the loop may stop at the first failure
      • The signature comment bounds the result by MAX_AGE + 1 (120); the table's last row is closed (q(119) = 1, mortality-published-death-probability), so the survival to 120 is 0 and the largest value actually returned is 119, or the floored current age when that is older (a current age of 125 returns 125, which it has already reached)
      • For 'average' the age is read off the mixture's curve and is not the mean of the male and female ages (at 65, 50/25/10 percent: 85/91/95, against 83/89/94 for a man and 86/92/96 for a woman)
      • The planner-ui SurvivalPercentileModal clamps the result to 60..120 before it becomes the plan's planning age; that clamp is presentation and is not part of this record
      • The year-by-year projection reads this age for a single, at hazard 1, as the horizon a plan's amortization-based spending amortizes to when it is set to the age reached with a 25 or 10 percent chance (projection/simulate.ts). Unlike a percentile pick, which is stored once with its edition, that horizon is worked out again on every projection, so the plan's figures move when the table changes: under-saved-single on the 25 percent horizon (age 90 on the 2022 table, 91 on 2023) ends with an after-tax estate of $9,840 on the 2022 table and $212,538 on 2023

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: survival-percentile-age.md Mutation receipt: survival-percentile-age.mutation.md

      Evidence tests: survival.evidence.test.ts

      Implemented in: survival.ts

      Is the number of: longevity-survival-percentile-age

      Feeds: spending-base-annual

    Fed by: One-year death probability: SSA's published q(x) (formula record, 6 of 6 gates pass); SSA period life table, 2023 (2026 Trustees Report) (data record, 6 of 6 gates pass); Hazard power for a remaining-years multiplier: exactly 1 at m = 1, otherwise solved by bisection (model record, 6 of 6 gates pass); The survival curve: product of hazard-adjusted one-year survivals, and the 50/50 mixture for 'average' (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Longevity last funded year

    The last plan year the portfolio fully funds: the year before the depletion year, or the plan's last year when it never depletes.

    Field: Last fully funded year Unit: calendar year Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: results-headline (Depletion sentence "Money lasts through L"); results-headline (KpiBar "Money lasts" value "through L", or "short from S" when the first year is short); report (Printed report KPI "Money lasts" value "through L", or "short from S" when the first year is short); report (Downloadable HTML report headline "Money lasts" "Through L (runs short in D)"); ss-page (Bridge comparison "Money lasts" "through L" / "full plan"); compare-page (Money lasts row "through L" / "short from S" / "full plan through E")

    • Money lasts: the last funded year and the years short of the plan's end Formula record, justified by derivation

      Purpose: One convention for how long the money lasts: the last fully funded year, and how many plan years the money falls short of the plan's end.

      Statement: projection/moneyLasts.ts#moneyLasts publishes lastFundedYear = depletionYear - 1, or endYear when the projection never depletes, and yearsShortOfPlanEnd = endYear - lastFundedYear: 0 when it never depletes and endYear - depletionYear + 1 when it does, so a plan short only in its final year reads 1. A depletion year outside the projection's years is refused. The decision and optimizer money-lasts deltas are differences of lastFundedYear. Units: calendar year; count of years. Rounding: none.

      Formula: L = D - 1 when D is not null, else E; N = E - L

      • D: Depletion year: first year with a funding shortfall above half a cent after any HECM backstop (unit: calendar year) (domain: integer in [startYear, E], or null)
      • E: The plan's inclusive last year (unit: calendar year) (domain: integer)
      • L: Last fully funded year (unit: calendar year) (domain: startYear - 1 when the first year is short)
      • N: Years short of the plan's end (unit: years) (domain: integer, 0 when D is null)

      Timing: the ledger's annual rows

      Rounding: none

      Limits:

      • A distance, not a count of shortfall years: a year after the depletion year can be funded again if income resumes
      • Deterministic ledger only; the Monte Carlo pages have their own depletion distribution
      • Owner decision R15 (2026-09-25): the Results sentence used to read endYear - depletionYear years before the end (0 for a plan short only in its final year), the KPI bar and the printed report named the depletion year as the year the money lasts until, and the decision code counted a non-depleting plan as lasting through endYear + 1. Every surface now names the last funded year and counts endYear - lastFundedYear. The decision and optimizer deltas did not move: both conventions shift every result by the same one year

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-years-before-plan-end.md Mutation receipt: display-years-before-plan-end.mutation.md

      Evidence tests: moneyLasts.evidence.test.ts

      Implemented in: moneyLasts.ts; evaluateCandidate.ts

      Is the number of: display-years-before-plan-end, longevity-last-funded-year

      Feeds: compare-plan-deltas

    Fed by: Depletion year: the first projection year whose shortfall clears the funding tolerance (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

Monte Carlo

  • Annuitization payout rate pct

    Annual annuity payout as a percent of premium at the payment start age, from the embedded default quote table or the user quote.

    Field: SPIA payout rate Unit: percent Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Annuitization paragraph "payout rate X% at age Y"); insights (annuitizationHeadroom card illustrative monthly income (spiaPayoutRate))

    • Life-only SPIA payout-rate linear interpolation Data record, justified by dataset

      Purpose: The default annual payout-rate fraction of premium at a start age, from the embedded female-conservative anchors.

      Statement: Anchors (age, annual payout/premium): (60, 0.060), (65, 0.070), (70, 0.084), (75, 0.103), (80, 0.129), (85, 0.153), the last extrapolated. Below 60 the rate is 0.060; above 85 it is 0.153; otherwise linear in age between the bracketing anchors. At 67.5, t = (67.5 − 65)/5 = 1/2 and the rate is 0.070 + 0.5 · (0.084 − 0.070) = 0.077, so $100,000 of premium pays $7,700 per year. Units: fraction of premium per year. Rounding: none after the table's source-side 0.1-percentage-point rounding down. Absolute tolerance 1e-12 on the rate.

      Formula: r(a) = r_i + (a − a_i)(r_{i+1} − r_i)/(a_{i+1} − a_i) for a_i <= a <= a_{i+1}; r(a) = r_60 for a <= 60; r(a) = r_85 for a >= 85

      • a: Payment start age (unit: years) (domain: worksheet 67.5)
      • r(a): Annual life-only payout as a fraction of premium (unit: 1/year) (domain: between the bracketing anchors)
      • premium: Illustrative premium (unit: usd) (domain: worksheet 100,000)

      Timing: a time-invariant lookup on the dated quote table

      Rounding: none after the source-side 0.1-percentage-point rounding down of the anchors

      Limits:

      • Planning defaults only; a user-entered quote always wins
      • The age-85 anchor is extrapolated, not quoted
      • Female column is the conservative unisex default; male quotes are higher
      • annuitization-sweep-annual-income is premium times this rate and annuitization-sweep-premium is the grid premium; those families are fed, not this interpolation's published number

      Dataset: annuity.org April 2026 $100,000 monthly-payout table by age/sex; anchors take the female column conservatively, rounded down to 0.1%; age 85 is extrapolated , as of 2026-04-01 , retrieved 2026-07-15

      Provenance: derived by codex, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spia-payout-rate-interpolation.md Mutation receipt: spia-payout-rate-interpolation.mutation.md

      Evidence tests: spiaQuotes.evidence.test.ts

      Implemented in: spiaQuotes.ts

      Is the number of: annuitization-payout-rate-pct

      Feeds: annuitization-sweep-annual-income, annuitization-sweep-premium

    Fed by: Temporary deferred-QLAC payout-rate placeholder (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Annuitization sweep annual income

    Annual life-annuity income the premium buys at the quoted payout rate.

    Field: Annuitization sweep annual income Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Annuitization frontier table "Income/yr" column)

    • Annuitization sweep point: premium, annual income and effective allocation Model record, justified by derivation

      Purpose: What one point of the SPIA allocation sweep actually buys, and the share of the portfolio it costs.

      Statement: For each non-zero grid percent, decisions/annuitization.ts#buildAnnuitizationSweep sets premium = min(gridPct / 100 x the plan's total investable balance, 0.95 x the largest cash-or-taxable account's balance) and SKIPS the point when that premium is under $5,000. A retained point publishes annualIncome = premium x the payout rate (the user's quoted rate / 100 when given, else decisions/spiaQuotes.ts#spiaPayoutRate interpolated at startAge = min(95, max(current age, 65)), the current age being that of the person model/peopleOrder.ts#canonicalFirstPerson puts first, the older (between two people born the same day, the sex order female, male, average and then the smaller id by ordinal comparison decide, so for two people with the same birth date and sex renaming the ids can move the annuitant and every figure on that life), whoever is listed first; every sweep annuity is on that person's life and the notes name them, decision D-PEOPLE-ORDER) and effectiveAllocationPct = premium / total investable x 100, which is below the requested grid percent exactly when the funding cap bound the purchase. Units: nominal dollars; percent of investable. Rounding: none.

      Formula: premium = min(g/100 x V, 0.95 x F); income = premium x rate(startAge); effectivePct = premium / V x 100; skip when premium < 5000

      • V: Total investable balance (cash, taxable, equity comp, traditional, Roth, HSA) (unit: usd) (domain: positive)
      • F: Largest cash or taxable account balance (the funding account) (unit: usd) (domain: nonnegative)
      • g: Requested grid allocation (unit: percent of investable) (domain: g > 0)
      • rate(startAge): Life-only SPIA payout rate, linearly interpolated between the table anchors and clamped outside them (unit: fraction of premium per year) (domain: 0.06 to 0.153)

      Timing: once per sweep, at the comparison's start year

      Rounding: none; the $5,000 floor is a strict under-test

      Limits:

      • A point only reaches the published list when the shared-path Monte Carlo returns a row for its variant, so the evidence has to run one: it uses a two-path comparison over a two-year horizon (a 1954 birth with planning age 73 from 2026 runs 2026 and 2027) with a fixed seed. The three figures themselves are decided before that run and do not depend on its outcome
      • Beyond the worksheet's inputs the evidence plan fixes: a 1954-born single filer so the 2026 current age is 72, a $100,000 cash funding account beside a $100,000 traditional account for a $200,000 investable total, a grid of exactly [2, 60] so the skipped and retained points are both present, no user quote, zero return and zero inflation
      • The funding account carries no static allocation, so the sweep's Kitces glidepath controls are not constructible here and attributionAvailable is false; the sweep records that as a note rather than an error
      • The skipped $4,000 point is asserted as an ABSENT allocationPct, since a skipped point is never pushed rather than published at zero

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: annuitization-sweep-point.md Mutation receipt: annuitization-sweep-point.mutation.md

      Evidence tests: annuitization.evidence.test.ts

      Implemented in: annuitization.ts; spiaQuotes.ts; peopleOrder.ts

      Is the number of: annuitization-sweep-premium, annuitization-sweep-annual-income, annuitization-sweep-effective-allocation-pct

    Fed by: Temporary deferred-QLAC payout-rate placeholder (model record, 6 of 6 gates pass); Life-only SPIA payout-rate linear interpolation (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Annuitization sweep effective allocation pct

    Premium divided by total investable assets, in percent; lower than the requested grid percent when the funding account caps the purchase.

    Field: Annuitization sweep effective allocation Unit: percent Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Annuitization frontier chart x-axis and table "Annuitized" column)

    • Annuitization sweep point: premium, annual income and effective allocation Model record, justified by derivation

      Purpose: What one point of the SPIA allocation sweep actually buys, and the share of the portfolio it costs.

      Statement: For each non-zero grid percent, decisions/annuitization.ts#buildAnnuitizationSweep sets premium = min(gridPct / 100 x the plan's total investable balance, 0.95 x the largest cash-or-taxable account's balance) and SKIPS the point when that premium is under $5,000. A retained point publishes annualIncome = premium x the payout rate (the user's quoted rate / 100 when given, else decisions/spiaQuotes.ts#spiaPayoutRate interpolated at startAge = min(95, max(current age, 65)), the current age being that of the person model/peopleOrder.ts#canonicalFirstPerson puts first, the older (between two people born the same day, the sex order female, male, average and then the smaller id by ordinal comparison decide, so for two people with the same birth date and sex renaming the ids can move the annuitant and every figure on that life), whoever is listed first; every sweep annuity is on that person's life and the notes name them, decision D-PEOPLE-ORDER) and effectiveAllocationPct = premium / total investable x 100, which is below the requested grid percent exactly when the funding cap bound the purchase. Units: nominal dollars; percent of investable. Rounding: none.

      Formula: premium = min(g/100 x V, 0.95 x F); income = premium x rate(startAge); effectivePct = premium / V x 100; skip when premium < 5000

      • V: Total investable balance (cash, taxable, equity comp, traditional, Roth, HSA) (unit: usd) (domain: positive)
      • F: Largest cash or taxable account balance (the funding account) (unit: usd) (domain: nonnegative)
      • g: Requested grid allocation (unit: percent of investable) (domain: g > 0)
      • rate(startAge): Life-only SPIA payout rate, linearly interpolated between the table anchors and clamped outside them (unit: fraction of premium per year) (domain: 0.06 to 0.153)

      Timing: once per sweep, at the comparison's start year

      Rounding: none; the $5,000 floor is a strict under-test

      Limits:

      • A point only reaches the published list when the shared-path Monte Carlo returns a row for its variant, so the evidence has to run one: it uses a two-path comparison over a two-year horizon (a 1954 birth with planning age 73 from 2026 runs 2026 and 2027) with a fixed seed. The three figures themselves are decided before that run and do not depend on its outcome
      • Beyond the worksheet's inputs the evidence plan fixes: a 1954-born single filer so the 2026 current age is 72, a $100,000 cash funding account beside a $100,000 traditional account for a $200,000 investable total, a grid of exactly [2, 60] so the skipped and retained points are both present, no user quote, zero return and zero inflation
      • The funding account carries no static allocation, so the sweep's Kitces glidepath controls are not constructible here and attributionAvailable is false; the sweep records that as a note rather than an error
      • The skipped $4,000 point is asserted as an ABSENT allocationPct, since a skipped point is never pushed rather than published at zero

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: annuitization-sweep-point.md Mutation receipt: annuitization-sweep-point.mutation.md

      Evidence tests: annuitization.evidence.test.ts

      Implemented in: annuitization.ts; spiaQuotes.ts; peopleOrder.ts

      Is the number of: annuitization-sweep-premium, annuitization-sweep-annual-income, annuitization-sweep-effective-allocation-pct

  • Annuitization sweep premium

    SPIA premium traded away at each grid point: the requested share of investable assets, capped by the largest liquid funding account.

    Field: Annuitization sweep premium Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Annuitization frontier table "Premium" column)

    • Annuitization sweep point: premium, annual income and effective allocation Model record, justified by derivation

      Purpose: What one point of the SPIA allocation sweep actually buys, and the share of the portfolio it costs.

      Statement: For each non-zero grid percent, decisions/annuitization.ts#buildAnnuitizationSweep sets premium = min(gridPct / 100 x the plan's total investable balance, 0.95 x the largest cash-or-taxable account's balance) and SKIPS the point when that premium is under $5,000. A retained point publishes annualIncome = premium x the payout rate (the user's quoted rate / 100 when given, else decisions/spiaQuotes.ts#spiaPayoutRate interpolated at startAge = min(95, max(current age, 65)), the current age being that of the person model/peopleOrder.ts#canonicalFirstPerson puts first, the older (between two people born the same day, the sex order female, male, average and then the smaller id by ordinal comparison decide, so for two people with the same birth date and sex renaming the ids can move the annuitant and every figure on that life), whoever is listed first; every sweep annuity is on that person's life and the notes name them, decision D-PEOPLE-ORDER) and effectiveAllocationPct = premium / total investable x 100, which is below the requested grid percent exactly when the funding cap bound the purchase. Units: nominal dollars; percent of investable. Rounding: none.

      Formula: premium = min(g/100 x V, 0.95 x F); income = premium x rate(startAge); effectivePct = premium / V x 100; skip when premium < 5000

      • V: Total investable balance (cash, taxable, equity comp, traditional, Roth, HSA) (unit: usd) (domain: positive)
      • F: Largest cash or taxable account balance (the funding account) (unit: usd) (domain: nonnegative)
      • g: Requested grid allocation (unit: percent of investable) (domain: g > 0)
      • rate(startAge): Life-only SPIA payout rate, linearly interpolated between the table anchors and clamped outside them (unit: fraction of premium per year) (domain: 0.06 to 0.153)

      Timing: once per sweep, at the comparison's start year

      Rounding: none; the $5,000 floor is a strict under-test

      Limits:

      • A point only reaches the published list when the shared-path Monte Carlo returns a row for its variant, so the evidence has to run one: it uses a two-path comparison over a two-year horizon (a 1954 birth with planning age 73 from 2026 runs 2026 and 2027) with a fixed seed. The three figures themselves are decided before that run and do not depend on its outcome
      • Beyond the worksheet's inputs the evidence plan fixes: a 1954-born single filer so the 2026 current age is 72, a $100,000 cash funding account beside a $100,000 traditional account for a $200,000 investable total, a grid of exactly [2, 60] so the skipped and retained points are both present, no user quote, zero return and zero inflation
      • The funding account carries no static allocation, so the sweep's Kitces glidepath controls are not constructible here and attributionAvailable is false; the sweep records that as a note rather than an error
      • The skipped $4,000 point is asserted as an ABSENT allocationPct, since a skipped point is never pushed rather than published at zero

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: annuitization-sweep-point.md Mutation receipt: annuitization-sweep-point.mutation.md

      Evidence tests: annuitization.evidence.test.ts

      Implemented in: annuitization.ts; spiaQuotes.ts; peopleOrder.ts

      Is the number of: annuitization-sweep-premium, annuitization-sweep-annual-income, annuitization-sweep-effective-allocation-pct

    Fed by: Life-only SPIA payout-rate linear interpolation (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Display fan band widths

    The 10th to 90th and 25th to 75th percentile ranges of investable assets drawn and printed on the Range of outcomes chart, read from the engine's fan percentiles.

    Field: Fan chart percentile ranges Unit: US dollars Basis: nominal dollars Computed by: UI transformation Status: Complete chain

    Appears in: monte-carlo-page (Range of outcomes range areas [p10, p90] and [p25, p75]; tooltip "10th to 90th percentile $X to $Y")

    • Fan chart percentile ranges Composition record, justified by derivation

      Purpose: The two bands the Range of outcomes chart draws each year, as the pairs of percentile levels they span.

      Statement: The Range of outcomes chart draws, for each fan row that montecarlo/run.ts#aggregateMonteCarlo publishes, the range from p10 to p90 and the range from p25 to p75 (owner decision R14): each band is the pair of the row's two levels, never their difference, and the tooltip prints the pair as "$low to $high". For a year whose sorted investable balances across eleven paths are 0, 400,000, 600,000, 600,000, 700,000, 800,000, 900,000, 1,000,000, 1,000,000, 1,300,000 and 2,000,000, the outer band spans $400,000 to $1,300,000 and the inner $600,000 to $1,000,000, where the chart used to stack widths of $900,000 and $400,000 on transparent bases. Units: nominal dollars of the year. Rounding: none; the page prints whole dollars.

      Formula: outer band = [p10, p90]; inner band = [p25, p75], per fan row

      • p10, p25, p75, p90: The fan row's interpolated percentile levels of investable balances across paths (monte-carlo-investable-fan-percentiles) (unit: usd, nominal of the year) (domain: p10 <= p25 <= p75 <= p90)

      Timing: once per fan row

      Rounding: none

      Limits:

      • The pairing and the tooltip text are the chart's, done in planner-ui by planner/format.ts fanOuterBand and fanInnerBand (the two bands' data keys) and fmtMoneyOrRange (the tooltip), which the census names as this family's UI sources; the registry pins only engine code, so implementedBy names the engine function that publishes the levels, the engine's fan percentiles, whose own record states how each is interpolated.
      • A band's width (p90 minus p10) is not published: it is not a level of any path, and the chart printed it as one before R14.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-fan-band-widths.md Mutation receipt: display-fan-band-widths.mutation.md

      Evidence tests: run.fanRanges.evidence.test.ts

      Implemented in: run.ts

      Is the number of: display-fan-band-widths

  • Display histogram bin label

    The dollar label printed under each ending-balance histogram bar.

    Field: Histogram bin center label Unit: US dollars Basis: nominal dollars Computed by: UI transformation Status: Complete chain

    Appears in: monte-carlo-page (Ending balances histogram x-axis labels (histRows))

    • Histogram bin centres Formula record, justified by derivation

      Purpose: The dollar amount each bar of the ending balance histogram is labelled with.

      Statement: montecarlo/run.ts#histogramFor publishes, on every histogram aggregateMonteCarlo builds, binCenters[i] = min + (i + 0.5) × binWidth in that association, or min for every bin when every value is equal, where binWidth is only a placeholder of 1 and the one value the sample holds is the only amount it can show. A histogram with min $100,000 and binWidth $50,000 has centres $125,000, $175,000 and so on to $1,575,000; endings [0, 20, 40, 80, 100] in 4 bins have centres 12.5, 37.5, 62.5 and 87.5; four paths all ending at $0 have every centre $0, where the page used to label the bars $1 to $30. Units: the histogram's dollars (nominal ending values). Rounding: none; the page formats compactly.

      Formula: c_i = min + (i + 0.5) · binWidth when max > min, else c_i = min

      • min, max: Smallest and largest value of the sample (unit: usd) (domain: finite; 0 and 0 for an empty sample)
      • binWidth: (max − min) / bins, or 1 when every value is equal (unit: usd) (domain: > 0)
      • i: Bin index (unit: 1) (domain: 0 to bins − 1)

      Timing: once per aggregation

      Rounding: none

      Limits:

      • The last bin is closed (it holds the maximum), so its centre is the midpoint of a closed interval.
      • With every value equal the other bins are empty and their centres carry no information; at the page's defaults this happens on 3 of the 29 example plans as the library opens them on the default seed (every path runs out; 5 on the plan-id seed it replaced).

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-histogram-bin-label.md Mutation receipt: display-histogram-bin-label.mutation.md

      Evidence tests: run.binCenters.evidence.test.ts

      Implemented in: run.ts

      Is the number of: display-histogram-bin-label

  • Historical stress window total shortfall

    Sum of unfunded spending over a deterministic replay of one rolling or reversed historical market window.

    Field: Historical window total shortfall Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Historical stress windows table "Shortfall" column)

    • Historical stress window total shortfall Composition record, justified by derivation

      Purpose: How many dollars of spending one replayed history left unfunded across the whole projection.

      Statement: montecarlo/historicalSuites.ts#HistoricalStressWindow.totalShortfall is the sum, over EVERY projection year of that window's replayed run, of the year's YearResult.shortfall: the funding shortfall left after every withdrawal and any HECM backstop draw. Every year is counted, including years after the portfolio first empties, and each year's shortfall is that year's own unfunded spending rather than a cumulative miss. The annual shortfalls remain outputs of the full shared ledger: returns, inflation, taxes, income, withdrawals and HECM draws are priced by simulatePlan on the window's market series, not by a side model. Units: nominal dollars. Rounding: none.

      Formula: totalShortfall = sum over projection years of shortfall_y

      • shortfall_y: Year y's funding shortfall after every withdrawal and any HECM backstop draw (unit: usd) (domain: shortfall_y >= 0)
      • window: One rolling (or reversed) historical return/inflation series replayed through the ledger (unit: years) (domain: windowLengthYears from HISTORICAL_YEARS)

      Timing: once per window, over every published projection year

      Rounding: none

      Limits:

      • Beyond the worksheet's inputs the evidence plan fixes a plan the replay cannot move on either axis: one CASH account, which annualPostSolveAccountGrowth exempts from the market return shock, so the replayed returns really are the worksheet's 0, 0, 0; and the $60,000 a year delivered as the scheduled payment of an interest-free note, because debt service is NOMINAL while base spending and one-time goals are both inflated to the year (the 2000-2002 window's own 3.4% and 1.6% CPI prints rescale a goal-based test to a 2027 shortfall of $22,040). Beside that: a 58-year-old single filer (no Medicare month, no traditional account to penalize), no income, no tax, no HECM, and a three-year horizon from the planning age
      • Because that plan is replay-invariant, every rolling window in the suite reports the same total; the evidence reads the 2000-2002 window by label, and the identity it pins is the sum, not a property of those particular historical years
      • Suites are run with suites: ['rolling'] and windowLengthYears 3 to keep the test to one pass over the rolling windows
      • An explicit windowLengthYears must be a whole number of years from 1 to 96; anything else is refused with a message before any window is simulated, rather than clamped
      • The sum does not distinguish a discretionary miss from a floor miss: totalRequiredShortfall and totalTargetShortfall are separate fields over the same years

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: historical-stress-window-total-shortfall.md Mutation receipt: historical-stress-window-total-shortfall.mutation.md

      Evidence tests: historicalSuites.evidence.test.ts

      Implemented in: historicalSuites.ts

      Is the number of: historical-stress-window-total-shortfall

  • Monte carlo average longest cut spell years

    Among paths that cut at least once, the average length in years of the longest consecutive run of cut years.

    Field: Average longest cut spell Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Adjustment tile "Longest cut spell (average)")

    • Guardrail adjustment shares, depths, durations and ending surplus Formula record, justified by derivation

      Purpose: How likely a mid-course spending cut is, how deep and how long it runs among the paths that cut, and how often the plan still ends with something left.

      Statement: pathsWithCut is the share of all paths with at least one cut year and pathsWithRaise the share with at least one raise action. Among the cut paths only: averageCutYears is their mean guardrailCutYears, p90CutYears its interpolated 90th percentile, medianMaxCutDepth and p90MaxCutDepth the interpolated 50th and 90th of their maxGuardrailCutDepth, and averageLongestCutSpellYears their mean longestGuardrailCutSpellYears. probEndingSurplus is the share of all paths whose ending after-tax estate is strictly positive; probEndingAboveBequestTarget is the share of the paths carrying a target that cleared it, and exactly null when no path carries one. For the worksheet's five paths: 0.6, 0.6, 14/3, 7.2, 0.3, 0.54, 3 years, 0.6 and 0.6. Units: shares in [0, 1], years, and depth as a fraction of the discretionary layer. Rounding: none; absolute 1e-9, with the no-target null compared exactly.

      Formula: pathsWithCut = |{p : cutYears_p > 0}| / N; among those paths, averageCutYears = mean(cutYears), p90 by interpolation at 0.9(m-1); probEndingSurplus = |{p : estate_p > 0}| / N

      • N: All paths (unit: paths) (domain: worksheet 5)
      • m: Paths with at least one cut year (unit: paths) (domain: worksheet 3)
      • cutYears_p, spell_p, depth_p: One path's cut years, longest consecutive cut spell and deepest cut (unit: years, years, fraction) (domain: worksheet [2,4,8], [1,3,5], [0.10,0.30,0.60] among cut paths)
      • estate_p: One path's ending after-tax estate (unit: usd) (domain: worksheet 0, 100, 200, 0, 50)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • Every cut statistic divides by the cut paths, not by all paths: over all five, average cut years would be 2.8 and the average longest spell 1.8 years
      • A zero ending estate is not a surplus; probEndingSurplus takes a strictly positive estate, so counting zeros would give 1 rather than 0.6
      • probEndingAboveBequestTarget divides by the paths whose comparison is non-null, and is null only when no path carries a target; all five worksheet paths carry one, so that denominator and the path count coincide here
      • The cut statistics are all zero for a plan with no guardrail policy, which is not the same claim as a plan that cut nothing
      • guardrailActionCounts is summed elsewhere (monte-carlo-guardrail-action-counts); this record publishes path shares and conditional magnitudes only
      • The evidence supplies the guardrail fields, endingAfterTaxEstate and endingAboveBequestTarget only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no goal activity)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-guardrail-adjustments.md Mutation receipt: monte-carlo-guardrail-adjustments.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-paths-with-cut-share, monte-carlo-paths-with-raise-share, monte-carlo-cut-years, monte-carlo-max-cut-depth-percentiles, monte-carlo-average-longest-cut-spell-years, monte-carlo-prob-ending-surplus, monte-carlo-prob-ending-above-bequest-target

  • Monte carlo average total shortfall

    Mean across all paths of total unfunded spending.

    Field: Average total shortfall Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: scenarios-page (Risk table "Average total shortfall")

    • Shortfall averages, p90s, and expected shortfall on failing paths Formula record, justified by derivation

      Purpose: How much spending went unfunded across the run, and how much worse it was on the paths that actually ran out.

      Statement: spendingShortfall.averageTotalShortfallDollars and averageYearsBelowTarget are means over all paths; spendingShortfall.p90TotalShortfallDollars and p90AverageAnnualTargetShortfall are interpolated 90th percentiles of the all-path samples; targetAttainmentPct.p50 is the interpolated median of the per-path attainment. downsideRisk.expectedShortfallDollars is the mean total shortfall over the failing paths alone, a failing path being one whose depletionYear is non-null. For the worksheet's five paths these are $36, $80, 3 years, $32, 0.8 and $35. Units: usd, years, and attainment as a fraction of target spending. Rounding: none; absolute 1e-9.

      Formula: mean = (1/N) sum_p x_p; p90 by interpolation at 0.9(N-1); expectedShortfall = (1/F) sum_{p : depletionYear_p != null} totalShortfall_p

      • N: All paths (unit: paths) (domain: worksheet 5)
      • F: Failing paths (non-null depletionYear) (unit: paths) (domain: worksheet 2)
      • totalShortfall_p: One path's unfunded spending (unit: usd) (domain: worksheet 0, 10, 20, 50, 100)
      • targetAttainmentPct_p: One path's share of target spending funded (unit: 1) (domain: worksheet 1.00, 0.90, 0.80, 0.60, 0.20)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • Expected shortfall conditions on depletion, not on a positive shortfall: path E's $100 shortfall without depletion stays outside it, and averaging all five would give $36 rather than $35
      • The p90 figures are interpolated, so they need not be an observed value: nearest rank would give $100 and $40
      • The requested attainment figure is the median of the percentile set, not the mean, which is 0.70 on these paths
      • The worksheet allows absolute $0.005 on a dollar average whose division is inexact; these five inputs divide exactly, so the test holds every figure to 1e-9
      • downsideRisk.expectedShortfallDollars and the required and target variants beside it are zero, not undefined, when no path fails
      • The evidence supplies depletionYear, totalShortfall, yearsBelowTarget, averageAnnualTargetShortfall and targetAttainmentPct only; every other MonteCarloPath field is at the test’s neutral (floor and target met, no goal or guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-shortfall-statistics.md Mutation receipt: monte-carlo-shortfall-statistics.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-average-total-shortfall, monte-carlo-p90-total-shortfall, monte-carlo-expected-shortfall-on-failing-paths, monte-carlo-average-years-below-target, monte-carlo-p90-average-annual-target-shortfall, monte-carlo-target-attainment-median

  • Monte carlo average years below target

    Mean across paths of the number of years with a target-lifestyle shortfall above SHORTFALL_EPSILON.

    Field: Average years below target Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Layered success tile "Years below target (average)")

    • Shortfall averages, p90s, and expected shortfall on failing paths Formula record, justified by derivation

      Purpose: How much spending went unfunded across the run, and how much worse it was on the paths that actually ran out.

      Statement: spendingShortfall.averageTotalShortfallDollars and averageYearsBelowTarget are means over all paths; spendingShortfall.p90TotalShortfallDollars and p90AverageAnnualTargetShortfall are interpolated 90th percentiles of the all-path samples; targetAttainmentPct.p50 is the interpolated median of the per-path attainment. downsideRisk.expectedShortfallDollars is the mean total shortfall over the failing paths alone, a failing path being one whose depletionYear is non-null. For the worksheet's five paths these are $36, $80, 3 years, $32, 0.8 and $35. Units: usd, years, and attainment as a fraction of target spending. Rounding: none; absolute 1e-9.

      Formula: mean = (1/N) sum_p x_p; p90 by interpolation at 0.9(N-1); expectedShortfall = (1/F) sum_{p : depletionYear_p != null} totalShortfall_p

      • N: All paths (unit: paths) (domain: worksheet 5)
      • F: Failing paths (non-null depletionYear) (unit: paths) (domain: worksheet 2)
      • totalShortfall_p: One path's unfunded spending (unit: usd) (domain: worksheet 0, 10, 20, 50, 100)
      • targetAttainmentPct_p: One path's share of target spending funded (unit: 1) (domain: worksheet 1.00, 0.90, 0.80, 0.60, 0.20)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • Expected shortfall conditions on depletion, not on a positive shortfall: path E's $100 shortfall without depletion stays outside it, and averaging all five would give $36 rather than $35
      • The p90 figures are interpolated, so they need not be an observed value: nearest rank would give $100 and $40
      • The requested attainment figure is the median of the percentile set, not the mean, which is 0.70 on these paths
      • The worksheet allows absolute $0.005 on a dollar average whose division is inexact; these five inputs divide exactly, so the test holds every figure to 1e-9
      • downsideRisk.expectedShortfallDollars and the required and target variants beside it are zero, not undefined, when no path fails
      • The evidence supplies depletionYear, totalShortfall, yearsBelowTarget, averageAnnualTargetShortfall and targetAttainmentPct only; every other MonteCarloPath field is at the test’s neutral (floor and target met, no goal or guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-shortfall-statistics.md Mutation receipt: monte-carlo-shortfall-statistics.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-average-total-shortfall, monte-carlo-p90-total-shortfall, monte-carlo-expected-shortfall-on-failing-paths, monte-carlo-average-years-below-target, monte-carlo-p90-average-annual-target-shortfall, monte-carlo-target-attainment-median

  • Monte carlo cut years

    Among paths that cut at least once, the average and 90th-percentile number of cut years.

    Field: Cut years, average and p90 Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Adjustment tile "Years cut, typical / worst-case")

    • Guardrail adjustment shares, depths, durations and ending surplus Formula record, justified by derivation

      Purpose: How likely a mid-course spending cut is, how deep and how long it runs among the paths that cut, and how often the plan still ends with something left.

      Statement: pathsWithCut is the share of all paths with at least one cut year and pathsWithRaise the share with at least one raise action. Among the cut paths only: averageCutYears is their mean guardrailCutYears, p90CutYears its interpolated 90th percentile, medianMaxCutDepth and p90MaxCutDepth the interpolated 50th and 90th of their maxGuardrailCutDepth, and averageLongestCutSpellYears their mean longestGuardrailCutSpellYears. probEndingSurplus is the share of all paths whose ending after-tax estate is strictly positive; probEndingAboveBequestTarget is the share of the paths carrying a target that cleared it, and exactly null when no path carries one. For the worksheet's five paths: 0.6, 0.6, 14/3, 7.2, 0.3, 0.54, 3 years, 0.6 and 0.6. Units: shares in [0, 1], years, and depth as a fraction of the discretionary layer. Rounding: none; absolute 1e-9, with the no-target null compared exactly.

      Formula: pathsWithCut = |{p : cutYears_p > 0}| / N; among those paths, averageCutYears = mean(cutYears), p90 by interpolation at 0.9(m-1); probEndingSurplus = |{p : estate_p > 0}| / N

      • N: All paths (unit: paths) (domain: worksheet 5)
      • m: Paths with at least one cut year (unit: paths) (domain: worksheet 3)
      • cutYears_p, spell_p, depth_p: One path's cut years, longest consecutive cut spell and deepest cut (unit: years, years, fraction) (domain: worksheet [2,4,8], [1,3,5], [0.10,0.30,0.60] among cut paths)
      • estate_p: One path's ending after-tax estate (unit: usd) (domain: worksheet 0, 100, 200, 0, 50)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • Every cut statistic divides by the cut paths, not by all paths: over all five, average cut years would be 2.8 and the average longest spell 1.8 years
      • A zero ending estate is not a surplus; probEndingSurplus takes a strictly positive estate, so counting zeros would give 1 rather than 0.6
      • probEndingAboveBequestTarget divides by the paths whose comparison is non-null, and is null only when no path carries a target; all five worksheet paths carry one, so that denominator and the path count coincide here
      • The cut statistics are all zero for a plan with no guardrail policy, which is not the same claim as a plan that cut nothing
      • guardrailActionCounts is summed elsewhere (monte-carlo-guardrail-action-counts); this record publishes path shares and conditional magnitudes only
      • The evidence supplies the guardrail fields, endingAfterTaxEstate and endingAboveBequestTarget only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no goal activity)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-guardrail-adjustments.md Mutation receipt: monte-carlo-guardrail-adjustments.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-paths-with-cut-share, monte-carlo-paths-with-raise-share, monte-carlo-cut-years, monte-carlo-max-cut-depth-percentiles, monte-carlo-average-longest-cut-spell-years, monte-carlo-prob-ending-surplus, monte-carlo-prob-ending-above-bequest-target

  • Monte carlo depletion probability by year

    Per depletion year, the share of all paths first depleting that year and the cumulative share depleted by that year.

    Field: Depletion probability by year Unit: probability Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page ("Depletion probability by year" chart: "First depletion" bars and cumulative line, aria-label cumulative percent); scenarios-page (Risk 'Cumulative depletion probability by year' table (ScenarioRiskComparison.depletionProbabilityByYear[].cumulativeProbability, read at each year from MonteCarloSummary.depletionProbabilityByYear))

    • Depletion probability and cumulative probability by year Formula record, justified by derivation

      Purpose: The chance the plan first runs out in each depletion year, taken over every path, with the running total.

      Statement: One row per depletion year, in depletionYearCounts order: probability = count / pathCount, with the successful paths kept in the denominator, and cumulativeProbability = the running sum of those probabilities through that row. For six paths depleting in 2031 (1), 2033 (2) and 2035 (1) alongside two successes, the rows are 1/6, 1/3 and 1/6 with cumulative 1/6, 1/2 and 2/3. Units: probability in [0, 1]. Rounding: none; absolute tolerance 1e-9, since each figure is a ratio of small integers accumulated in floating point.

      Formula: probability(y) = count(y) / N; cumulativeProbability(y_k) = sum_{j <= k} probability(y_j), N = total paths

      • N: Total paths, successes included (unit: paths) (domain: worksheet 6)
      • count(y): Paths first depleting in year y (unit: paths) (domain: worksheet 1, 2, 1)
      • probability(y): Share of all paths first depleting in year y (unit: 1) (domain: [0, 1])

      Timing: once per aggregation, after the depletion-year rows are ordered

      Rounding: none

      Limits:

      • The denominator is every path, successes included; dividing by the four failures alone would give 1/4, 1/2, 1/4 with a final cumulative of 1
      • Successes never form a row of their own; they act only on the denominator
      • cumulativeProbability is accumulated left to right in floating point, so the last row equals the failure rate only up to that accumulation
      • The evidence supplies depletionYear only; every other MonteCarloPath field is at the test’s neutral (zero balances and shortfalls, floor and target met, attainment 1, no goal or guardrail activity, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-depletion-probability-by-year.md Mutation receipt: monte-carlo-depletion-probability-by-year.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-depletion-probability-by-year

    Fed by: Embedded annual stock, bond, and inflation series, 1928–2023 (data record, 6 of 6 gates pass); Arithmetic mean of blended historical portfolio returns (formula record, 6 of 6 gates pass); One-year two-asset blended nominal return (formula record, 6 of 6 gates pass); AR(1) mean-reverting return shock (model record, 6 of 6 gates pass); CAPE-conditioned shift of a mean-preserving lognormal shock (model record, 6 of 6 gates pass); Empirical historical shock, centered or raw (model record, 6 of 6 gates pass); GARCH(1,1) variance recursion with variance targeting (model record, 6 of 6 gates pass); Additive Gaussian return shock (model record, 6 of 6 gates pass); Centered historical bootstrap shock (model record, 6 of 6 gates pass); Bernoulli high-inflation regime mix (model record, 6 of 6 gates pass); Mean-preserving lognormal return shock (model record, 6 of 6 gates pass); Two-state bull/bear Markov return shock (model record, 6 of 6 gates pass); Reversed-history window replay (model record, 6 of 6 gates pass); Stationary (geometric-block) historical bootstrap (model record, 6 of 6 gates pass); Student-t return shock scaled to the configured volatility (model record, 6 of 6 gates pass); One-year additive user shock on a lognormal base (model record, 6 of 6 gates pass); Default Monte Carlo seed and the headline run's options (data record, 6 of 6 gates pass); The order a Monte Carlo path draws each person's death and care from (data record, 6 of 6 gates pass); SplitMix32-style per-path seed (model record, 6 of 6 gates pass); Mulberry32 uniform reference stream (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Monte carlo depletion year histogram

    Number of paths whose investable assets first deplete in each calendar year (successes excluded).

    Field: First-depletion year counts Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page ("When depleting plans run out" bar chart); monte-carlo-page (WhySuccessPanel "Which years drive it": "Failing paths first run out between EARLIEST and LATEST" (the first and last rows))

    • Depletion-year histogram across paths Formula record, justified by derivation

      Purpose: How many paths first ran out of investable assets in each year, with the paths that never depleted left out.

      Statement: Every path with a non-null depletionYear adds 1 to that year's bucket; a path whose depletionYear is null never depleted and contributes nothing at all. The buckets are published as { year, count } rows in ascending year order, one row per year that occurs. For the worksheet's five paths (null, 2031, 2031, 2033, null) the rows are [{ year: 2031, count: 2 }, { year: 2033, count: 1 }]. Units: paths per calendar year. Rounding: none; integer counts and years, compared exactly.

      Formula: count(y) = |{ p : p.depletionYear = y }| for each y that occurs, rows sorted by ascending y

      • p.depletionYear: Year a path first depleted; null when it never did (unit: calendar year or null) (domain: worksheet null, 2031, 2031, 2033, null)
      • count(y): Paths first depleting in year y (unit: paths) (domain: integer >= 1 for a year that appears)

      Timing: once per aggregation, over the completed path set

      Rounding: none; integer counts

      Limits:

      • Successful paths are absent entirely: there is no null bucket, and no zero row for a year in which nothing depleted
      • The rows are grouped, not one row per failing path; the two 2031 failures are one row of count 2
      • depletionProbabilityByYear divides these counts by a base this record does not publish; monte-carlo-depletion-probability-by-year states that rule
      • The evidence supplies depletionYear only; every other MonteCarloPath field is at the test’s neutral (zero balances and shortfalls, floor and target met, attainment 1, no goal or guardrail activity, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-depletion-distribution.md Mutation receipt: monte-carlo-depletion-distribution.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-depletion-year-histogram

  • Monte carlo ending after tax estate percentiles

    Percentiles (p10, p25, p50, p75, p90) of ending after-tax estate across paths.

    Field: Ending after-tax estate percentiles Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Verdict paragraph "Median ending estate / worst 10% / best 10%" (p50, p10, p90)); monte-carlo-page ("Worst-case estate" tile (p10)); monte-carlo-page (Annuitization table "Median estate" column and frontier point medians (AnnuitizationPointMetrics / StochasticFrontierPoint medianEndingAfterTaxEstate, p10EndingAfterTaxEstate)); scenarios-page (Risk table "After-tax estate p10 / p50 / p90")

    • Ending investable histogram and ending after-tax estate percentiles Formula record, justified by derivation

      Purpose: The shape of where the paths end: a binned spread of ending investable balances and the estate percentiles beside it.

      Statement: The ending investable balances are binned into histogramBins equal-width bins: min is the sample minimum, binWidth = (max - min) / bins (1 when every value is equal), and each value lands in bin min(bins - 1, floor((v - min) / binWidth)), so the maximum is clamped into the last bin rather than opening one past the end. The ending after-tax estates use the same five-level interpolated percentile set as every other distribution. For endings [0, 20, 40, 80, 100] at 4 bins this is min $0, binWidth $25 and counts [2, 1, 0, 2]; for estates [0, 100, 300, 600, 1000] the percentiles are $40, $100, $300, $600 and $840. Units: usd for min, binWidth and percentiles; paths for counts. Rounding: none; counts compared exactly and the dollar figures at absolute 1e-9.

      Formula: min = v_(1); binWidth = (v_(n) - v_(1)) / bins; bin(v) = min(bins - 1, floor((v - min) / binWidth)); p-th percentile by interpolation at (p/100)(n-1)

      • v_(1), v_(n): Smallest and largest ending value of the ascending sample (unit: usd) (domain: worksheet 0 and 100)
      • bins: Histogram bin count passed to aggregateMonteCarlo (unit: bins) (domain: worksheet 4; production default 30)
      • counts: Paths landing in each bin (unit: paths) (domain: worksheet [2, 1, 0, 2])

      Timing: once per aggregation, over the ascending ending samples

      Rounding: none; the maximum is clamped into the last bin

      Limits:

      • The test passes 4 bins; production defaults to 30, where the same clamp puts the maximum in bin 29
      • binWidth is 1, not 0, when every ending value is equal, so a degenerate sample still bins
      • The percentiles are interpolated, so p90 of these five estates is $840 and not the observed $1,000
      • aggregateMonteCarlo also publishes a histogram of ending estates and percentiles of ending investable; this record's worksheet pins one of each, and the ending net worth pair is outside it
      • The evidence supplies endingInvestable and endingAfterTaxEstate only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no goal or guardrail activity, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-ending-distributions.md Mutation receipt: monte-carlo-ending-distributions.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-ending-investable-histogram, monte-carlo-ending-after-tax-estate-percentiles

    Fed by: Cholesky factor of a correlation matrix (formula record, 6 of 6 gates pass); Embedded annual stock, bond, and inflation series, 1928–2023 (data record, 6 of 6 gates pass); Arithmetic mean of blended historical portfolio returns (formula record, 6 of 6 gates pass); One-year two-asset blended nominal return (formula record, 6 of 6 gates pass); AR(1) mean-reverting return shock (model record, 6 of 6 gates pass); CAPE-conditioned shift of a mean-preserving lognormal shock (model record, 6 of 6 gates pass); Empirical historical shock, centered or raw (model record, 6 of 6 gates pass); GARCH(1,1) variance recursion with variance targeting (model record, 6 of 6 gates pass); Additive Gaussian return shock (model record, 6 of 6 gates pass); Centered historical bootstrap shock (model record, 6 of 6 gates pass); Bernoulli high-inflation regime mix (model record, 6 of 6 gates pass); Mean-preserving lognormal return shock (model record, 6 of 6 gates pass); Two-state bull/bear Markov return shock (model record, 6 of 6 gates pass); Reversed-history window replay (model record, 6 of 6 gates pass); Stationary (geometric-block) historical bootstrap (model record, 6 of 6 gates pass); Student-t return shock scaled to the configured volatility (model record, 6 of 6 gates pass); One-year additive user shock on a lognormal base (model record, 6 of 6 gates pass); Default Monte Carlo seed and the headline run's options (data record, 6 of 6 gates pass); The order a Monte Carlo path draws each person's death and care from (data record, 6 of 6 gates pass); SplitMix32-style per-path seed (model record, 6 of 6 gates pass); Mulberry32 uniform reference stream (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Monte carlo ending investable histogram

    Counts of paths per equal-width bin of ending investable balance (30 bins from min to max).

    Field: Ending investable balance histogram Unit: count Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page ("Ending balances" bar chart (counts per bin; bin label from min and binWidth))

    • Ending investable histogram and ending after-tax estate percentiles Formula record, justified by derivation

      Purpose: The shape of where the paths end: a binned spread of ending investable balances and the estate percentiles beside it.

      Statement: The ending investable balances are binned into histogramBins equal-width bins: min is the sample minimum, binWidth = (max - min) / bins (1 when every value is equal), and each value lands in bin min(bins - 1, floor((v - min) / binWidth)), so the maximum is clamped into the last bin rather than opening one past the end. The ending after-tax estates use the same five-level interpolated percentile set as every other distribution. For endings [0, 20, 40, 80, 100] at 4 bins this is min $0, binWidth $25 and counts [2, 1, 0, 2]; for estates [0, 100, 300, 600, 1000] the percentiles are $40, $100, $300, $600 and $840. Units: usd for min, binWidth and percentiles; paths for counts. Rounding: none; counts compared exactly and the dollar figures at absolute 1e-9.

      Formula: min = v_(1); binWidth = (v_(n) - v_(1)) / bins; bin(v) = min(bins - 1, floor((v - min) / binWidth)); p-th percentile by interpolation at (p/100)(n-1)

      • v_(1), v_(n): Smallest and largest ending value of the ascending sample (unit: usd) (domain: worksheet 0 and 100)
      • bins: Histogram bin count passed to aggregateMonteCarlo (unit: bins) (domain: worksheet 4; production default 30)
      • counts: Paths landing in each bin (unit: paths) (domain: worksheet [2, 1, 0, 2])

      Timing: once per aggregation, over the ascending ending samples

      Rounding: none; the maximum is clamped into the last bin

      Limits:

      • The test passes 4 bins; production defaults to 30, where the same clamp puts the maximum in bin 29
      • binWidth is 1, not 0, when every ending value is equal, so a degenerate sample still bins
      • The percentiles are interpolated, so p90 of these five estates is $840 and not the observed $1,000
      • aggregateMonteCarlo also publishes a histogram of ending estates and percentiles of ending investable; this record's worksheet pins one of each, and the ending net worth pair is outside it
      • The evidence supplies endingInvestable and endingAfterTaxEstate only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no goal or guardrail activity, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-ending-distributions.md Mutation receipt: monte-carlo-ending-distributions.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-ending-investable-histogram, monte-carlo-ending-after-tax-estate-percentiles

    Fed by: Cholesky factor of a correlation matrix (formula record, 6 of 6 gates pass); Embedded annual stock, bond, and inflation series, 1928–2023 (data record, 6 of 6 gates pass); Arithmetic mean of blended historical portfolio returns (formula record, 6 of 6 gates pass); One-year two-asset blended nominal return (formula record, 6 of 6 gates pass); Per-person paid-care episode draw (model record, 6 of 6 gates pass); AR(1) mean-reverting return shock (model record, 6 of 6 gates pass); CAPE-conditioned shift of a mean-preserving lognormal shock (model record, 6 of 6 gates pass); Empirical historical shock, centered or raw (model record, 6 of 6 gates pass); GARCH(1,1) variance recursion with variance targeting (model record, 6 of 6 gates pass); Additive Gaussian return shock (model record, 6 of 6 gates pass); Centered historical bootstrap shock (model record, 6 of 6 gates pass); Bernoulli high-inflation regime mix (model record, 6 of 6 gates pass); Mean-preserving lognormal return shock (model record, 6 of 6 gates pass); Two-state bull/bear Markov return shock (model record, 6 of 6 gates pass); Reversed-history window replay (model record, 6 of 6 gates pass); Stationary (geometric-block) historical bootstrap (model record, 6 of 6 gates pass); Student-t return shock scaled to the configured volatility (model record, 6 of 6 gates pass); One-year additive user shock on a lognormal base (model record, 6 of 6 gates pass); Default Monte Carlo seed and the headline run's options (data record, 6 of 6 gates pass); The order a Monte Carlo path draws each person's death and care from (data record, 6 of 6 gates pass); One-year death probability: SSA's published q(x) (formula record, 6 of 6 gates pass); Sampled death age: a year-by-year walk down the survival curve (model record, 6 of 6 gates pass); SplitMix32-style per-path seed (model record, 6 of 6 gates pass); Mulberry32 uniform reference stream (model record, 6 of 6 gates pass); SSA period life table, 2023 (2026 Trustees Report) (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Monte carlo excess funding rate

    Across all path-years, excess spending funded divided by excess spending intended.

    Field: Excess-layer funding rate Unit: probability Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Layered success tile "Ideal / excess funded" (second percent))

    • Ideal and excess funding rates, and the flexible-goal totals Formula record, justified by derivation

      Purpose: How much of the intended ideal and excess spending the paths actually funded, and the flexible-goal outcomes summed over them.

      Statement: idealFundingRate = sum(idealFunded) / sum(idealIntended) and excessFundingRate = sum(excessFunded) / sum(excessIntended), each a ratio of totals across paths and each 1 when its total intended amount is not positive. Every flexibleGoals count and amount is the plain sum across every path, never an average. For the worksheet's four paths the ideal totals are $150 / $500 = 0.3 and the excess totals $350 / $500 = 0.7, with flexibleGoals { funded 3, partiallyFunded 2, deferred 2, skipped 1, fundedAmount $500, unfundedAmount $300 }; when every path intends nothing, both rates are 1. Units: rates dimensionless, counts in goals, amounts in usd. Rounding: none; rates at absolute 1e-9 and every sum exactly.

      Formula: rate = sum_p funded_p / sum_p intended_p when sum_p intended_p > 0, else 1; goal_field = sum_p goal_field_p

      • intended_p, funded_p: One path's intended and funded amount for the ideal or excess layer (unit: usd) (domain: worksheet ideal 100/300/100/0 intended)
      • rate: Funding rate for that layer (unit: 1) (domain: worksheet 0.3 and 0.7; 1 with nothing intended)
      • goal_field: One flexible-goal count or amount (unit: goals or usd) (domain: worksheet 3, 2, 2, 1, $500, $300)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • A ratio of totals, not a mean of per-path rates: averaging the four per-path rates under the zero-intended convention would give 0.625 for both
      • A path that intended nothing adds nothing to either side of its ratio, so it moves neither rate
      • The convention tests "intended total > 0", so a zero or negative total intended amount yields 1 rather than a division
      • The flexible-goal figures are sums; averaging them would give 0.75, 0.5, 0.5, 0.25, $125 and $75
      • The evidence supplies the four funding fields and flexibleGoals only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-funding-rates.md Mutation receipt: monte-carlo-funding-rates.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-ideal-funding-rate, monte-carlo-excess-funding-rate, monte-carlo-flexible-goal-outcome-counts

  • Monte carlo expected shortfall on failing paths

    Average total unfunded spending across only the paths that depleted.

    Field: Expected shortfall on failing paths Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Downside tile "Typical shortfall when the plan falls short"); scenarios-page (Risk table "Expected shortfall on failing paths"); monte-carlo-page (Frontier and annuitization point metrics (expectedShortfallDollars; carried but not charted))

    • Shortfall averages, p90s, and expected shortfall on failing paths Formula record, justified by derivation

      Purpose: How much spending went unfunded across the run, and how much worse it was on the paths that actually ran out.

      Statement: spendingShortfall.averageTotalShortfallDollars and averageYearsBelowTarget are means over all paths; spendingShortfall.p90TotalShortfallDollars and p90AverageAnnualTargetShortfall are interpolated 90th percentiles of the all-path samples; targetAttainmentPct.p50 is the interpolated median of the per-path attainment. downsideRisk.expectedShortfallDollars is the mean total shortfall over the failing paths alone, a failing path being one whose depletionYear is non-null. For the worksheet's five paths these are $36, $80, 3 years, $32, 0.8 and $35. Units: usd, years, and attainment as a fraction of target spending. Rounding: none; absolute 1e-9.

      Formula: mean = (1/N) sum_p x_p; p90 by interpolation at 0.9(N-1); expectedShortfall = (1/F) sum_{p : depletionYear_p != null} totalShortfall_p

      • N: All paths (unit: paths) (domain: worksheet 5)
      • F: Failing paths (non-null depletionYear) (unit: paths) (domain: worksheet 2)
      • totalShortfall_p: One path's unfunded spending (unit: usd) (domain: worksheet 0, 10, 20, 50, 100)
      • targetAttainmentPct_p: One path's share of target spending funded (unit: 1) (domain: worksheet 1.00, 0.90, 0.80, 0.60, 0.20)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • Expected shortfall conditions on depletion, not on a positive shortfall: path E's $100 shortfall without depletion stays outside it, and averaging all five would give $36 rather than $35
      • The p90 figures are interpolated, so they need not be an observed value: nearest rank would give $100 and $40
      • The requested attainment figure is the median of the percentile set, not the mean, which is 0.70 on these paths
      • The worksheet allows absolute $0.005 on a dollar average whose division is inexact; these five inputs divide exactly, so the test holds every figure to 1e-9
      • downsideRisk.expectedShortfallDollars and the required and target variants beside it are zero, not undefined, when no path fails
      • The evidence supplies depletionYear, totalShortfall, yearsBelowTarget, averageAnnualTargetShortfall and targetAttainmentPct only; every other MonteCarloPath field is at the test’s neutral (floor and target met, no goal or guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-shortfall-statistics.md Mutation receipt: monte-carlo-shortfall-statistics.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-average-total-shortfall, monte-carlo-p90-total-shortfall, monte-carlo-expected-shortfall-on-failing-paths, monte-carlo-average-years-below-target, monte-carlo-p90-average-annual-target-shortfall, monte-carlo-target-attainment-median

  • Monte carlo failing path count

    Number of paths that depleted.

    Field: Failing path count Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (WhySuccessPanel "What it counts": "(F depleted early)")

    • Success, required-floor, target-lifestyle and failure rates Formula record, justified by derivation

      Purpose: The headline shares: how often the money lasted, how often the essentials were funded, how often the full lifestyle was, and how often it ran out.

      Statement: successRate is the share of paths whose depletionYear is null; requiredFloorSuccessRate the share with requiredFloorMet; targetLifestyleSuccessRate the share with targetLifestyleMet; downsideRisk.failureRate the share whose depletionYear is non-null, and downsideRisk.failingPathCount how many those are. Failure is the complement of success over the same depletion test. For the worksheet's five deliberately crossed paths these are 0.6, 0.6, 0.2, 0.4 and 2. Units: shares in [0, 1] and a path count. Rounding: none; absolute 1e-9 on the rates and the count exactly.

      Formula: successRate = |{p : depletionYear_p = null}| / N; failureRate = 1 - successRate; failingPathCount = N - |{p : depletionYear_p = null}|

      • N: All paths (unit: paths) (domain: worksheet 5)
      • depletionYear_p: Year a path first depleted; null when it never did (unit: calendar year or null) (domain: worksheet null, null, null, 2031, 2032)
      • requiredFloorMet_p, targetLifestyleMet_p: Whether a path funded the required floor, and the full target, every year (unit: boolean) (domain: worksheet crossed against depletion)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • The three tests are distinct, and the shared 0.6 of successRate and requiredFloorSuccessRate is a coincidence of this path set; the evidence therefore also asserts each path's own three verdicts
      • Depletion alone defines failure here: a path that missed its target every year without depleting still counts as a success, and treating any target miss as depletion would give failure rate 0.8 on four paths
      • An empty path set gives 0 for every share rather than an undefined rate
      • The evidence supplies depletionYear, requiredFloorMet and targetLifestyleMet only; every other MonteCarloPath field is at the test’s neutral (no shortfall, attainment 1, no goal or guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-success-and-failure-rates.md Mutation receipt: monte-carlo-success-and-failure-rates.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-success-rate, monte-carlo-required-floor-success-rate, monte-carlo-target-lifestyle-success-rate, monte-carlo-failure-rate, monte-carlo-failing-path-count

  • Monte carlo failure rate

    Share of paths that deplete (1 - success rate, computed directly as failingPathCount / pathCount).

    Field: Failure probability Unit: probability Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Downside tile "Chance of running short" percent)

    • Success, required-floor, target-lifestyle and failure rates Formula record, justified by derivation

      Purpose: The headline shares: how often the money lasted, how often the essentials were funded, how often the full lifestyle was, and how often it ran out.

      Statement: successRate is the share of paths whose depletionYear is null; requiredFloorSuccessRate the share with requiredFloorMet; targetLifestyleSuccessRate the share with targetLifestyleMet; downsideRisk.failureRate the share whose depletionYear is non-null, and downsideRisk.failingPathCount how many those are. Failure is the complement of success over the same depletion test. For the worksheet's five deliberately crossed paths these are 0.6, 0.6, 0.2, 0.4 and 2. Units: shares in [0, 1] and a path count. Rounding: none; absolute 1e-9 on the rates and the count exactly.

      Formula: successRate = |{p : depletionYear_p = null}| / N; failureRate = 1 - successRate; failingPathCount = N - |{p : depletionYear_p = null}|

      • N: All paths (unit: paths) (domain: worksheet 5)
      • depletionYear_p: Year a path first depleted; null when it never did (unit: calendar year or null) (domain: worksheet null, null, null, 2031, 2032)
      • requiredFloorMet_p, targetLifestyleMet_p: Whether a path funded the required floor, and the full target, every year (unit: boolean) (domain: worksheet crossed against depletion)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • The three tests are distinct, and the shared 0.6 of successRate and requiredFloorSuccessRate is a coincidence of this path set; the evidence therefore also asserts each path's own three verdicts
      • Depletion alone defines failure here: a path that missed its target every year without depleting still counts as a success, and treating any target miss as depletion would give failure rate 0.8 on four paths
      • An empty path set gives 0 for every share rather than an undefined rate
      • The evidence supplies depletionYear, requiredFloorMet and targetLifestyleMet only; every other MonteCarloPath field is at the test’s neutral (no shortfall, attainment 1, no goal or guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-success-and-failure-rates.md Mutation receipt: monte-carlo-success-and-failure-rates.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-success-rate, monte-carlo-required-floor-success-rate, monte-carlo-target-lifestyle-success-rate, monte-carlo-failure-rate, monte-carlo-failing-path-count

  • Monte carlo flexible goal outcome counts

    Total counts of flexible one-time goals funded, partially funded, deferred and skipped, summed over all path-years.

    Field: Flexible goal outcomes across paths Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Layered success tile "Flexible goals" counts)

    • Ideal and excess funding rates, and the flexible-goal totals Formula record, justified by derivation

      Purpose: How much of the intended ideal and excess spending the paths actually funded, and the flexible-goal outcomes summed over them.

      Statement: idealFundingRate = sum(idealFunded) / sum(idealIntended) and excessFundingRate = sum(excessFunded) / sum(excessIntended), each a ratio of totals across paths and each 1 when its total intended amount is not positive. Every flexibleGoals count and amount is the plain sum across every path, never an average. For the worksheet's four paths the ideal totals are $150 / $500 = 0.3 and the excess totals $350 / $500 = 0.7, with flexibleGoals { funded 3, partiallyFunded 2, deferred 2, skipped 1, fundedAmount $500, unfundedAmount $300 }; when every path intends nothing, both rates are 1. Units: rates dimensionless, counts in goals, amounts in usd. Rounding: none; rates at absolute 1e-9 and every sum exactly.

      Formula: rate = sum_p funded_p / sum_p intended_p when sum_p intended_p > 0, else 1; goal_field = sum_p goal_field_p

      • intended_p, funded_p: One path's intended and funded amount for the ideal or excess layer (unit: usd) (domain: worksheet ideal 100/300/100/0 intended)
      • rate: Funding rate for that layer (unit: 1) (domain: worksheet 0.3 and 0.7; 1 with nothing intended)
      • goal_field: One flexible-goal count or amount (unit: goals or usd) (domain: worksheet 3, 2, 2, 1, $500, $300)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • A ratio of totals, not a mean of per-path rates: averaging the four per-path rates under the zero-intended convention would give 0.625 for both
      • A path that intended nothing adds nothing to either side of its ratio, so it moves neither rate
      • The convention tests "intended total > 0", so a zero or negative total intended amount yields 1 rather than a division
      • The flexible-goal figures are sums; averaging them would give 0.75, 0.5, 0.5, 0.25, $125 and $75
      • The evidence supplies the four funding fields and flexibleGoals only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-funding-rates.md Mutation receipt: monte-carlo-funding-rates.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-ideal-funding-rate, monte-carlo-excess-funding-rate, monte-carlo-flexible-goal-outcome-counts

  • Monte carlo guardrail action counts

    Total number of guardrail cut and raise actions summed over all path-years.

    Field: Guardrail actions across path-years Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Layered success tile "{cut} cuts · {raise} raises")

    • Guardrail action counts summed across paths Formula record, justified by derivation

      Purpose: How many guardrail cuts, raises and holds the whole run took, counted as actions rather than as paths.

      Statement: guardrailActionCounts.cut, .raise and .hold are each that action's count summed over every path, with idle paths still in the set. For per-path records (2, 1, 3), (0, 2, 1), (4, 0, 2) and (0, 0, 0) the totals are cut 6, raise 3 and hold 6. Units: guardrail actions. Rounding: none; sums of integers, compared exactly.

      Formula: total(action) = sum_p p.guardrailActionCounts[action] for action in {cut, raise, hold}

      • p.guardrailActionCounts: One path's cut, raise and hold counts (unit: actions) (domain: worksheet (2,1,3), (0,2,1), (4,0,2), (0,0,0))
      • total(action): Run-wide count of that action (unit: actions) (domain: worksheet 6, 3, 6)

      Timing: once per aggregation, over the completed path set

      Rounding: none; integer sums

      Limits:

      • A sum, not an average and not a path incidence count: averaging over four paths gives 1.5, 0.75 and 1.5, and counting the paths with at least one action of each kind gives 2, 2 and 3
      • A path with no actions stays in the set; it adds zero, and it is not dropped from any denominator here because there is none
      • The path-share and conditional-magnitude statistics live in the adjustments block (monte-carlo-guardrail-adjustments), which counts paths, not actions
      • The evidence supplies guardrailActionCounts only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no cut years, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-guardrail-action-counts.md Mutation receipt: monte-carlo-guardrail-action-counts.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-guardrail-action-counts

    Fed by: Risk-based guardrail: one year's cut, raise or hold against real-balance thresholds (model record, 6 of 6 gates pass); Withdrawal-rate guardrail: one year's cut, raise or hold of the discretionary multiplier (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Monte carlo ideal funding rate

    Across all path-years, ideal spending funded divided by ideal spending intended.

    Field: Ideal-layer funding rate Unit: probability Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Layered success tile "Ideal / excess funded" (first percent))

    • Ideal and excess funding rates, and the flexible-goal totals Formula record, justified by derivation

      Purpose: How much of the intended ideal and excess spending the paths actually funded, and the flexible-goal outcomes summed over them.

      Statement: idealFundingRate = sum(idealFunded) / sum(idealIntended) and excessFundingRate = sum(excessFunded) / sum(excessIntended), each a ratio of totals across paths and each 1 when its total intended amount is not positive. Every flexibleGoals count and amount is the plain sum across every path, never an average. For the worksheet's four paths the ideal totals are $150 / $500 = 0.3 and the excess totals $350 / $500 = 0.7, with flexibleGoals { funded 3, partiallyFunded 2, deferred 2, skipped 1, fundedAmount $500, unfundedAmount $300 }; when every path intends nothing, both rates are 1. Units: rates dimensionless, counts in goals, amounts in usd. Rounding: none; rates at absolute 1e-9 and every sum exactly.

      Formula: rate = sum_p funded_p / sum_p intended_p when sum_p intended_p > 0, else 1; goal_field = sum_p goal_field_p

      • intended_p, funded_p: One path's intended and funded amount for the ideal or excess layer (unit: usd) (domain: worksheet ideal 100/300/100/0 intended)
      • rate: Funding rate for that layer (unit: 1) (domain: worksheet 0.3 and 0.7; 1 with nothing intended)
      • goal_field: One flexible-goal count or amount (unit: goals or usd) (domain: worksheet 3, 2, 2, 1, $500, $300)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • A ratio of totals, not a mean of per-path rates: averaging the four per-path rates under the zero-intended convention would give 0.625 for both
      • A path that intended nothing adds nothing to either side of its ratio, so it moves neither rate
      • The convention tests "intended total > 0", so a zero or negative total intended amount yields 1 rather than a division
      • The flexible-goal figures are sums; averaging them would give 0.75, 0.5, 0.5, 0.25, $125 and $75
      • The evidence supplies the four funding fields and flexibleGoals only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-funding-rates.md Mutation receipt: monte-carlo-funding-rates.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-ideal-funding-rate, monte-carlo-excess-funding-rate, monte-carlo-flexible-goal-outcome-counts

  • Monte carlo investable fan percentiles

    Per projection year, the 10th, 25th, 50th, 75th and 90th percentiles of end-of-year investable balance across paths (linear-interpolated order statistics).

    Field: Investable-balance fan percentiles Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page ("Range of outcomes" fan chart: p10-p90 and p25-p75 bands, median line, and the aria-label figures for the last year); monte-carlo-page (WhySuccessPanel decade-out p10 versus p50 sentence); mcp (run_monte_carlo.percentiles.p10); mcp (run_monte_carlo.percentiles.p25); mcp (run_monte_carlo.percentiles.p50); mcp (run_monte_carlo.percentiles.p75); mcp (run_monte_carlo.percentiles.p90)

    • Per-year investable balance fan Formula record, justified by derivation

      Purpose: The 10th through 90th percentile band of investable balances in each projection year, taken across paths.

      Statement: For each projection year the end-of-year investable balances of every path form one sample, sorted ascending; the fan row is that year with the 10th, 25th, 50th, 75th and 90th percentiles by linear interpolation at index (p/100)(n-1): with lo = floor(idx), hi = ceil(idx) and frac = idx - lo, the value is sorted[lo](1 - frac) + sorted[hi]frac, so an even-length sample has the mean of its two middle values as the median. The row's year is startYear + the column index. For the worksheet's four paths, 2030 is { p10 $30, p25 $75, p50 $200, p75 $475, p90 $790 }, and the medians are $500 in 2031 and $3,000 in 2032. Units: usd. Rounding: none; absolute 1e-9 on the percentiles and the years exactly.

      Formula: idx = (p/100)(n-1); fan_y(p) = sorted_y[floor(idx)](1 - frac) + sorted_y[ceil(idx)]frac, frac = idx - floor(idx)

      • sorted_y: That year's investable balances across paths, ascending (unit: usd) (domain: worksheet 2030 [0, 100, 300, 1000])
      • n: Paths in the sample (unit: paths) (domain: worksheet 4)
      • p: Percentile level (unit: percent) (domain: 10, 25, 50, 75, 90)

      Timing: once per projection year of the aggregation

      Rounding: none

      Limits:

      • The sample runs down one year's column across paths, never along one path's years: reading the rows as years would make the first sample [0, 100, 1000] with median $100
      • Interpolated, not nearest-rank: nearest rank would read 2030 as $0, $0, $100, $300 and $1,000
      • The fan is as long as the first path's investableByYear, so every path in a result must carry the same year grid
      • An empty sample gives 0 at every level rather than an undefined percentile
      • The evidence supplies investableByYear only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no goal or guardrail activity, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-investable-fan-percentiles.md Mutation receipt: monte-carlo-investable-fan-percentiles.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-investable-fan-percentiles

    Fed by: Cholesky factor of a correlation matrix (formula record, 6 of 6 gates pass); Asset-class parameters: assumption overrides laid over the sourced defaults (composition record, 6 of 6 gates pass); Embedded annual stock, bond, and inflation series, 1928–2023 (data record, 6 of 6 gates pass); Arithmetic mean of blended historical portfolio returns (formula record, 6 of 6 gates pass); One-year two-asset blended nominal return (formula record, 6 of 6 gates pass); AR(1) mean-reverting return shock (model record, 6 of 6 gates pass); CAPE-conditioned shift of a mean-preserving lognormal shock (model record, 6 of 6 gates pass); Empirical historical shock, centered or raw (model record, 6 of 6 gates pass); GARCH(1,1) variance recursion with variance targeting (model record, 6 of 6 gates pass); Additive Gaussian return shock (model record, 6 of 6 gates pass); Centered historical bootstrap shock (model record, 6 of 6 gates pass); Bernoulli high-inflation regime mix (model record, 6 of 6 gates pass); Mean-preserving lognormal return shock (model record, 6 of 6 gates pass); Two-state bull/bear Markov return shock (model record, 6 of 6 gates pass); Reversed-history window replay (model record, 6 of 6 gates pass); Stationary (geometric-block) historical bootstrap (model record, 6 of 6 gates pass); Student-t return shock scaled to the configured volatility (model record, 6 of 6 gates pass); One-year additive user shock on a lognormal base (model record, 6 of 6 gates pass); Default Monte Carlo seed and the headline run's options (data record, 6 of 6 gates pass); The order a Monte Carlo path draws each person's death and care from (data record, 6 of 6 gates pass); SplitMix32-style per-path seed (model record, 6 of 6 gates pass); Mulberry32 uniform reference stream (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Monte carlo max cut depth percentiles

    Among paths that cut at least once, the median and 90th-percentile deepest cut as a fraction of the discretionary layer.

    Field: Deepest cut, median and p90 Unit: percent Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Adjustment tile "Typical / worst-case cut depth")

    • Guardrail adjustment shares, depths, durations and ending surplus Formula record, justified by derivation

      Purpose: How likely a mid-course spending cut is, how deep and how long it runs among the paths that cut, and how often the plan still ends with something left.

      Statement: pathsWithCut is the share of all paths with at least one cut year and pathsWithRaise the share with at least one raise action. Among the cut paths only: averageCutYears is their mean guardrailCutYears, p90CutYears its interpolated 90th percentile, medianMaxCutDepth and p90MaxCutDepth the interpolated 50th and 90th of their maxGuardrailCutDepth, and averageLongestCutSpellYears their mean longestGuardrailCutSpellYears. probEndingSurplus is the share of all paths whose ending after-tax estate is strictly positive; probEndingAboveBequestTarget is the share of the paths carrying a target that cleared it, and exactly null when no path carries one. For the worksheet's five paths: 0.6, 0.6, 14/3, 7.2, 0.3, 0.54, 3 years, 0.6 and 0.6. Units: shares in [0, 1], years, and depth as a fraction of the discretionary layer. Rounding: none; absolute 1e-9, with the no-target null compared exactly.

      Formula: pathsWithCut = |{p : cutYears_p > 0}| / N; among those paths, averageCutYears = mean(cutYears), p90 by interpolation at 0.9(m-1); probEndingSurplus = |{p : estate_p > 0}| / N

      • N: All paths (unit: paths) (domain: worksheet 5)
      • m: Paths with at least one cut year (unit: paths) (domain: worksheet 3)
      • cutYears_p, spell_p, depth_p: One path's cut years, longest consecutive cut spell and deepest cut (unit: years, years, fraction) (domain: worksheet [2,4,8], [1,3,5], [0.10,0.30,0.60] among cut paths)
      • estate_p: One path's ending after-tax estate (unit: usd) (domain: worksheet 0, 100, 200, 0, 50)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • Every cut statistic divides by the cut paths, not by all paths: over all five, average cut years would be 2.8 and the average longest spell 1.8 years
      • A zero ending estate is not a surplus; probEndingSurplus takes a strictly positive estate, so counting zeros would give 1 rather than 0.6
      • probEndingAboveBequestTarget divides by the paths whose comparison is non-null, and is null only when no path carries a target; all five worksheet paths carry one, so that denominator and the path count coincide here
      • The cut statistics are all zero for a plan with no guardrail policy, which is not the same claim as a plan that cut nothing
      • guardrailActionCounts is summed elsewhere (monte-carlo-guardrail-action-counts); this record publishes path shares and conditional magnitudes only
      • The evidence supplies the guardrail fields, endingAfterTaxEstate and endingAboveBequestTarget only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no goal activity)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-guardrail-adjustments.md Mutation receipt: monte-carlo-guardrail-adjustments.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-paths-with-cut-share, monte-carlo-paths-with-raise-share, monte-carlo-cut-years, monte-carlo-max-cut-depth-percentiles, monte-carlo-average-longest-cut-spell-years, monte-carlo-prob-ending-surplus, monte-carlo-prob-ending-above-bequest-target

    Fed by: Risk-based guardrail: one year's cut, raise or hold against real-balance thresholds (model record, 6 of 6 gates pass); Withdrawal-rate guardrail: one year's cut, raise or hold of the discretionary multiplier (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Monte carlo P90 average annual target shortfall

    90th percentile across paths of the path-average annual target-lifestyle shortfall.

    Field: p90 average annual target shortfall Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Layered success tile "Worst 10% average annual target miss")

    • Shortfall averages, p90s, and expected shortfall on failing paths Formula record, justified by derivation

      Purpose: How much spending went unfunded across the run, and how much worse it was on the paths that actually ran out.

      Statement: spendingShortfall.averageTotalShortfallDollars and averageYearsBelowTarget are means over all paths; spendingShortfall.p90TotalShortfallDollars and p90AverageAnnualTargetShortfall are interpolated 90th percentiles of the all-path samples; targetAttainmentPct.p50 is the interpolated median of the per-path attainment. downsideRisk.expectedShortfallDollars is the mean total shortfall over the failing paths alone, a failing path being one whose depletionYear is non-null. For the worksheet's five paths these are $36, $80, 3 years, $32, 0.8 and $35. Units: usd, years, and attainment as a fraction of target spending. Rounding: none; absolute 1e-9.

      Formula: mean = (1/N) sum_p x_p; p90 by interpolation at 0.9(N-1); expectedShortfall = (1/F) sum_{p : depletionYear_p != null} totalShortfall_p

      • N: All paths (unit: paths) (domain: worksheet 5)
      • F: Failing paths (non-null depletionYear) (unit: paths) (domain: worksheet 2)
      • totalShortfall_p: One path's unfunded spending (unit: usd) (domain: worksheet 0, 10, 20, 50, 100)
      • targetAttainmentPct_p: One path's share of target spending funded (unit: 1) (domain: worksheet 1.00, 0.90, 0.80, 0.60, 0.20)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • Expected shortfall conditions on depletion, not on a positive shortfall: path E's $100 shortfall without depletion stays outside it, and averaging all five would give $36 rather than $35
      • The p90 figures are interpolated, so they need not be an observed value: nearest rank would give $100 and $40
      • The requested attainment figure is the median of the percentile set, not the mean, which is 0.70 on these paths
      • The worksheet allows absolute $0.005 on a dollar average whose division is inexact; these five inputs divide exactly, so the test holds every figure to 1e-9
      • downsideRisk.expectedShortfallDollars and the required and target variants beside it are zero, not undefined, when no path fails
      • The evidence supplies depletionYear, totalShortfall, yearsBelowTarget, averageAnnualTargetShortfall and targetAttainmentPct only; every other MonteCarloPath field is at the test’s neutral (floor and target met, no goal or guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-shortfall-statistics.md Mutation receipt: monte-carlo-shortfall-statistics.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-average-total-shortfall, monte-carlo-p90-total-shortfall, monte-carlo-expected-shortfall-on-failing-paths, monte-carlo-average-years-below-target, monte-carlo-p90-average-annual-target-shortfall, monte-carlo-target-attainment-median

  • Monte carlo P90 total shortfall

    90th percentile across all paths of the total unfunded spending over the whole retirement.

    Field: p90 cumulative shortfall Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Downside tile "Worst 10% cumulative shortfall")

    • Shortfall averages, p90s, and expected shortfall on failing paths Formula record, justified by derivation

      Purpose: How much spending went unfunded across the run, and how much worse it was on the paths that actually ran out.

      Statement: spendingShortfall.averageTotalShortfallDollars and averageYearsBelowTarget are means over all paths; spendingShortfall.p90TotalShortfallDollars and p90AverageAnnualTargetShortfall are interpolated 90th percentiles of the all-path samples; targetAttainmentPct.p50 is the interpolated median of the per-path attainment. downsideRisk.expectedShortfallDollars is the mean total shortfall over the failing paths alone, a failing path being one whose depletionYear is non-null. For the worksheet's five paths these are $36, $80, 3 years, $32, 0.8 and $35. Units: usd, years, and attainment as a fraction of target spending. Rounding: none; absolute 1e-9.

      Formula: mean = (1/N) sum_p x_p; p90 by interpolation at 0.9(N-1); expectedShortfall = (1/F) sum_{p : depletionYear_p != null} totalShortfall_p

      • N: All paths (unit: paths) (domain: worksheet 5)
      • F: Failing paths (non-null depletionYear) (unit: paths) (domain: worksheet 2)
      • totalShortfall_p: One path's unfunded spending (unit: usd) (domain: worksheet 0, 10, 20, 50, 100)
      • targetAttainmentPct_p: One path's share of target spending funded (unit: 1) (domain: worksheet 1.00, 0.90, 0.80, 0.60, 0.20)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • Expected shortfall conditions on depletion, not on a positive shortfall: path E's $100 shortfall without depletion stays outside it, and averaging all five would give $36 rather than $35
      • The p90 figures are interpolated, so they need not be an observed value: nearest rank would give $100 and $40
      • The requested attainment figure is the median of the percentile set, not the mean, which is 0.70 on these paths
      • The worksheet allows absolute $0.005 on a dollar average whose division is inexact; these five inputs divide exactly, so the test holds every figure to 1e-9
      • downsideRisk.expectedShortfallDollars and the required and target variants beside it are zero, not undefined, when no path fails
      • The evidence supplies depletionYear, totalShortfall, yearsBelowTarget, averageAnnualTargetShortfall and targetAttainmentPct only; every other MonteCarloPath field is at the test’s neutral (floor and target met, no goal or guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-shortfall-statistics.md Mutation receipt: monte-carlo-shortfall-statistics.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-average-total-shortfall, monte-carlo-p90-total-shortfall, monte-carlo-expected-shortfall-on-failing-paths, monte-carlo-average-years-below-target, monte-carlo-p90-average-annual-target-shortfall, monte-carlo-target-attainment-median

  • Monte carlo paths with cut share

    Share of paths with at least one guardrail cut year.

    Field: Probability of a spending cut Unit: probability Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Adjustment tile "Chance of a spending cut"); scenarios-page (Risk table "Probability of a spending cut")

    • Guardrail adjustment shares, depths, durations and ending surplus Formula record, justified by derivation

      Purpose: How likely a mid-course spending cut is, how deep and how long it runs among the paths that cut, and how often the plan still ends with something left.

      Statement: pathsWithCut is the share of all paths with at least one cut year and pathsWithRaise the share with at least one raise action. Among the cut paths only: averageCutYears is their mean guardrailCutYears, p90CutYears its interpolated 90th percentile, medianMaxCutDepth and p90MaxCutDepth the interpolated 50th and 90th of their maxGuardrailCutDepth, and averageLongestCutSpellYears their mean longestGuardrailCutSpellYears. probEndingSurplus is the share of all paths whose ending after-tax estate is strictly positive; probEndingAboveBequestTarget is the share of the paths carrying a target that cleared it, and exactly null when no path carries one. For the worksheet's five paths: 0.6, 0.6, 14/3, 7.2, 0.3, 0.54, 3 years, 0.6 and 0.6. Units: shares in [0, 1], years, and depth as a fraction of the discretionary layer. Rounding: none; absolute 1e-9, with the no-target null compared exactly.

      Formula: pathsWithCut = |{p : cutYears_p > 0}| / N; among those paths, averageCutYears = mean(cutYears), p90 by interpolation at 0.9(m-1); probEndingSurplus = |{p : estate_p > 0}| / N

      • N: All paths (unit: paths) (domain: worksheet 5)
      • m: Paths with at least one cut year (unit: paths) (domain: worksheet 3)
      • cutYears_p, spell_p, depth_p: One path's cut years, longest consecutive cut spell and deepest cut (unit: years, years, fraction) (domain: worksheet [2,4,8], [1,3,5], [0.10,0.30,0.60] among cut paths)
      • estate_p: One path's ending after-tax estate (unit: usd) (domain: worksheet 0, 100, 200, 0, 50)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • Every cut statistic divides by the cut paths, not by all paths: over all five, average cut years would be 2.8 and the average longest spell 1.8 years
      • A zero ending estate is not a surplus; probEndingSurplus takes a strictly positive estate, so counting zeros would give 1 rather than 0.6
      • probEndingAboveBequestTarget divides by the paths whose comparison is non-null, and is null only when no path carries a target; all five worksheet paths carry one, so that denominator and the path count coincide here
      • The cut statistics are all zero for a plan with no guardrail policy, which is not the same claim as a plan that cut nothing
      • guardrailActionCounts is summed elsewhere (monte-carlo-guardrail-action-counts); this record publishes path shares and conditional magnitudes only
      • The evidence supplies the guardrail fields, endingAfterTaxEstate and endingAboveBequestTarget only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no goal activity)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-guardrail-adjustments.md Mutation receipt: monte-carlo-guardrail-adjustments.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-paths-with-cut-share, monte-carlo-paths-with-raise-share, monte-carlo-cut-years, monte-carlo-max-cut-depth-percentiles, monte-carlo-average-longest-cut-spell-years, monte-carlo-prob-ending-surplus, monte-carlo-prob-ending-above-bequest-target

  • Monte carlo paths with raise share

    Share of paths with at least one guardrail raise action.

    Field: Probability of a spending raise Unit: probability Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Adjustment tile "Chance of a raise")

    • Guardrail adjustment shares, depths, durations and ending surplus Formula record, justified by derivation

      Purpose: How likely a mid-course spending cut is, how deep and how long it runs among the paths that cut, and how often the plan still ends with something left.

      Statement: pathsWithCut is the share of all paths with at least one cut year and pathsWithRaise the share with at least one raise action. Among the cut paths only: averageCutYears is their mean guardrailCutYears, p90CutYears its interpolated 90th percentile, medianMaxCutDepth and p90MaxCutDepth the interpolated 50th and 90th of their maxGuardrailCutDepth, and averageLongestCutSpellYears their mean longestGuardrailCutSpellYears. probEndingSurplus is the share of all paths whose ending after-tax estate is strictly positive; probEndingAboveBequestTarget is the share of the paths carrying a target that cleared it, and exactly null when no path carries one. For the worksheet's five paths: 0.6, 0.6, 14/3, 7.2, 0.3, 0.54, 3 years, 0.6 and 0.6. Units: shares in [0, 1], years, and depth as a fraction of the discretionary layer. Rounding: none; absolute 1e-9, with the no-target null compared exactly.

      Formula: pathsWithCut = |{p : cutYears_p > 0}| / N; among those paths, averageCutYears = mean(cutYears), p90 by interpolation at 0.9(m-1); probEndingSurplus = |{p : estate_p > 0}| / N

      • N: All paths (unit: paths) (domain: worksheet 5)
      • m: Paths with at least one cut year (unit: paths) (domain: worksheet 3)
      • cutYears_p, spell_p, depth_p: One path's cut years, longest consecutive cut spell and deepest cut (unit: years, years, fraction) (domain: worksheet [2,4,8], [1,3,5], [0.10,0.30,0.60] among cut paths)
      • estate_p: One path's ending after-tax estate (unit: usd) (domain: worksheet 0, 100, 200, 0, 50)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • Every cut statistic divides by the cut paths, not by all paths: over all five, average cut years would be 2.8 and the average longest spell 1.8 years
      • A zero ending estate is not a surplus; probEndingSurplus takes a strictly positive estate, so counting zeros would give 1 rather than 0.6
      • probEndingAboveBequestTarget divides by the paths whose comparison is non-null, and is null only when no path carries a target; all five worksheet paths carry one, so that denominator and the path count coincide here
      • The cut statistics are all zero for a plan with no guardrail policy, which is not the same claim as a plan that cut nothing
      • guardrailActionCounts is summed elsewhere (monte-carlo-guardrail-action-counts); this record publishes path shares and conditional magnitudes only
      • The evidence supplies the guardrail fields, endingAfterTaxEstate and endingAboveBequestTarget only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no goal activity)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-guardrail-adjustments.md Mutation receipt: monte-carlo-guardrail-adjustments.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-paths-with-cut-share, monte-carlo-paths-with-raise-share, monte-carlo-cut-years, monte-carlo-max-cut-depth-percentiles, monte-carlo-average-longest-cut-spell-years, monte-carlo-prob-ending-surplus, monte-carlo-prob-ending-above-bequest-target

  • Monte carlo prob ending above bequest target

    Share of paths whose ending after-tax estate is at least the bequest target inflated along that path's realized inflation series; null without a target.

    Field: Probability of clearing the bequest target Unit: probability Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Adjustment tile "Chance of meeting the bequest target")

    • Guardrail adjustment shares, depths, durations and ending surplus Formula record, justified by derivation

      Purpose: How likely a mid-course spending cut is, how deep and how long it runs among the paths that cut, and how often the plan still ends with something left.

      Statement: pathsWithCut is the share of all paths with at least one cut year and pathsWithRaise the share with at least one raise action. Among the cut paths only: averageCutYears is their mean guardrailCutYears, p90CutYears its interpolated 90th percentile, medianMaxCutDepth and p90MaxCutDepth the interpolated 50th and 90th of their maxGuardrailCutDepth, and averageLongestCutSpellYears their mean longestGuardrailCutSpellYears. probEndingSurplus is the share of all paths whose ending after-tax estate is strictly positive; probEndingAboveBequestTarget is the share of the paths carrying a target that cleared it, and exactly null when no path carries one. For the worksheet's five paths: 0.6, 0.6, 14/3, 7.2, 0.3, 0.54, 3 years, 0.6 and 0.6. Units: shares in [0, 1], years, and depth as a fraction of the discretionary layer. Rounding: none; absolute 1e-9, with the no-target null compared exactly.

      Formula: pathsWithCut = |{p : cutYears_p > 0}| / N; among those paths, averageCutYears = mean(cutYears), p90 by interpolation at 0.9(m-1); probEndingSurplus = |{p : estate_p > 0}| / N

      • N: All paths (unit: paths) (domain: worksheet 5)
      • m: Paths with at least one cut year (unit: paths) (domain: worksheet 3)
      • cutYears_p, spell_p, depth_p: One path's cut years, longest consecutive cut spell and deepest cut (unit: years, years, fraction) (domain: worksheet [2,4,8], [1,3,5], [0.10,0.30,0.60] among cut paths)
      • estate_p: One path's ending after-tax estate (unit: usd) (domain: worksheet 0, 100, 200, 0, 50)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • Every cut statistic divides by the cut paths, not by all paths: over all five, average cut years would be 2.8 and the average longest spell 1.8 years
      • A zero ending estate is not a surplus; probEndingSurplus takes a strictly positive estate, so counting zeros would give 1 rather than 0.6
      • probEndingAboveBequestTarget divides by the paths whose comparison is non-null, and is null only when no path carries a target; all five worksheet paths carry one, so that denominator and the path count coincide here
      • The cut statistics are all zero for a plan with no guardrail policy, which is not the same claim as a plan that cut nothing
      • guardrailActionCounts is summed elsewhere (monte-carlo-guardrail-action-counts); this record publishes path shares and conditional magnitudes only
      • The evidence supplies the guardrail fields, endingAfterTaxEstate and endingAboveBequestTarget only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no goal activity)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-guardrail-adjustments.md Mutation receipt: monte-carlo-guardrail-adjustments.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-paths-with-cut-share, monte-carlo-paths-with-raise-share, monte-carlo-cut-years, monte-carlo-max-cut-depth-percentiles, monte-carlo-average-longest-cut-spell-years, monte-carlo-prob-ending-surplus, monte-carlo-prob-ending-above-bequest-target

  • Monte carlo prob ending surplus

    Share of paths whose ending after-tax estate is positive.

    Field: Probability of ending with a surplus Unit: probability Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Adjustment tile "Chance of ending with money left")

    • Guardrail adjustment shares, depths, durations and ending surplus Formula record, justified by derivation

      Purpose: How likely a mid-course spending cut is, how deep and how long it runs among the paths that cut, and how often the plan still ends with something left.

      Statement: pathsWithCut is the share of all paths with at least one cut year and pathsWithRaise the share with at least one raise action. Among the cut paths only: averageCutYears is their mean guardrailCutYears, p90CutYears its interpolated 90th percentile, medianMaxCutDepth and p90MaxCutDepth the interpolated 50th and 90th of their maxGuardrailCutDepth, and averageLongestCutSpellYears their mean longestGuardrailCutSpellYears. probEndingSurplus is the share of all paths whose ending after-tax estate is strictly positive; probEndingAboveBequestTarget is the share of the paths carrying a target that cleared it, and exactly null when no path carries one. For the worksheet's five paths: 0.6, 0.6, 14/3, 7.2, 0.3, 0.54, 3 years, 0.6 and 0.6. Units: shares in [0, 1], years, and depth as a fraction of the discretionary layer. Rounding: none; absolute 1e-9, with the no-target null compared exactly.

      Formula: pathsWithCut = |{p : cutYears_p > 0}| / N; among those paths, averageCutYears = mean(cutYears), p90 by interpolation at 0.9(m-1); probEndingSurplus = |{p : estate_p > 0}| / N

      • N: All paths (unit: paths) (domain: worksheet 5)
      • m: Paths with at least one cut year (unit: paths) (domain: worksheet 3)
      • cutYears_p, spell_p, depth_p: One path's cut years, longest consecutive cut spell and deepest cut (unit: years, years, fraction) (domain: worksheet [2,4,8], [1,3,5], [0.10,0.30,0.60] among cut paths)
      • estate_p: One path's ending after-tax estate (unit: usd) (domain: worksheet 0, 100, 200, 0, 50)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • Every cut statistic divides by the cut paths, not by all paths: over all five, average cut years would be 2.8 and the average longest spell 1.8 years
      • A zero ending estate is not a surplus; probEndingSurplus takes a strictly positive estate, so counting zeros would give 1 rather than 0.6
      • probEndingAboveBequestTarget divides by the paths whose comparison is non-null, and is null only when no path carries a target; all five worksheet paths carry one, so that denominator and the path count coincide here
      • The cut statistics are all zero for a plan with no guardrail policy, which is not the same claim as a plan that cut nothing
      • guardrailActionCounts is summed elsewhere (monte-carlo-guardrail-action-counts); this record publishes path shares and conditional magnitudes only
      • The evidence supplies the guardrail fields, endingAfterTaxEstate and endingAboveBequestTarget only; every other MonteCarloPath field is at the test’s neutral (no depletion or shortfall, floor and target met, attainment 1, no goal activity)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-guardrail-adjustments.md Mutation receipt: monte-carlo-guardrail-adjustments.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-paths-with-cut-share, monte-carlo-paths-with-raise-share, monte-carlo-cut-years, monte-carlo-max-cut-depth-percentiles, monte-carlo-average-longest-cut-spell-years, monte-carlo-prob-ending-surplus, monte-carlo-prob-ending-above-bequest-target

  • Monte carlo required floor success rate

    Share of paths that funded the required spending floor in every year (a shortfall below SHORTFALL_EPSILON is ignored).

    Field: Required-floor success probability Unit: probability Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Layered success tile "Required floor met"); scenarios-page (Risk table "Required-floor success rate"); mcp (run_monte_carlo.requiredFloorSuccessRate)

    • Success, required-floor, target-lifestyle and failure rates Formula record, justified by derivation

      Purpose: The headline shares: how often the money lasted, how often the essentials were funded, how often the full lifestyle was, and how often it ran out.

      Statement: successRate is the share of paths whose depletionYear is null; requiredFloorSuccessRate the share with requiredFloorMet; targetLifestyleSuccessRate the share with targetLifestyleMet; downsideRisk.failureRate the share whose depletionYear is non-null, and downsideRisk.failingPathCount how many those are. Failure is the complement of success over the same depletion test. For the worksheet's five deliberately crossed paths these are 0.6, 0.6, 0.2, 0.4 and 2. Units: shares in [0, 1] and a path count. Rounding: none; absolute 1e-9 on the rates and the count exactly.

      Formula: successRate = |{p : depletionYear_p = null}| / N; failureRate = 1 - successRate; failingPathCount = N - |{p : depletionYear_p = null}|

      • N: All paths (unit: paths) (domain: worksheet 5)
      • depletionYear_p: Year a path first depleted; null when it never did (unit: calendar year or null) (domain: worksheet null, null, null, 2031, 2032)
      • requiredFloorMet_p, targetLifestyleMet_p: Whether a path funded the required floor, and the full target, every year (unit: boolean) (domain: worksheet crossed against depletion)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • The three tests are distinct, and the shared 0.6 of successRate and requiredFloorSuccessRate is a coincidence of this path set; the evidence therefore also asserts each path's own three verdicts
      • Depletion alone defines failure here: a path that missed its target every year without depleting still counts as a success, and treating any target miss as depletion would give failure rate 0.8 on four paths
      • An empty path set gives 0 for every share rather than an undefined rate
      • The evidence supplies depletionYear, requiredFloorMet and targetLifestyleMet only; every other MonteCarloPath field is at the test’s neutral (no shortfall, attainment 1, no goal or guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-success-and-failure-rates.md Mutation receipt: monte-carlo-success-and-failure-rates.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-success-rate, monte-carlo-required-floor-success-rate, monte-carlo-target-lifestyle-success-rate, monte-carlo-failure-rate, monte-carlo-failing-path-count

  • Monte carlo success rate

    Share of simulated market paths on which investable assets never deplete before the plan horizon.

    Field: Success probability Unit: probability Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (SuccessGauge percent and verdict heading); monte-carlo-page (Layered success tile "Any spending shortfall" (successRate)); monte-carlo-page (WhySuccessPanel "What it counts" percent); monte-carlo-page (Spending vs. success and Retirement age vs. success frontier charts (StochasticFrontierPoint.successRate)); monte-carlo-page (Annuitization frontier chart success line and glidepath-only dashed line (AnnuitizationPointMetrics.successRate)); results-headline (KpiBar "Market success" percent (useMcSuccessRateState headline run)); optimize-page ("Monte Carlo success rate with this claim change" and the success stat); scenarios-page (Risk table "Portfolio success rate"); relocation-page (Success column when Monte Carlo is enabled); ss-page (Bridge comparison and claim-age table success columns); insights (InsightCardView preview: the headline run (1,000 paths, or a published finer run) and the previewed plan's run at the same path count, behind the Monte Carlo delta line); mcp (run_monte_carlo.successRate)

    • Success, required-floor, target-lifestyle and failure rates Formula record, justified by derivation

      Purpose: The headline shares: how often the money lasted, how often the essentials were funded, how often the full lifestyle was, and how often it ran out.

      Statement: successRate is the share of paths whose depletionYear is null; requiredFloorSuccessRate the share with requiredFloorMet; targetLifestyleSuccessRate the share with targetLifestyleMet; downsideRisk.failureRate the share whose depletionYear is non-null, and downsideRisk.failingPathCount how many those are. Failure is the complement of success over the same depletion test. For the worksheet's five deliberately crossed paths these are 0.6, 0.6, 0.2, 0.4 and 2. Units: shares in [0, 1] and a path count. Rounding: none; absolute 1e-9 on the rates and the count exactly.

      Formula: successRate = |{p : depletionYear_p = null}| / N; failureRate = 1 - successRate; failingPathCount = N - |{p : depletionYear_p = null}|

      • N: All paths (unit: paths) (domain: worksheet 5)
      • depletionYear_p: Year a path first depleted; null when it never did (unit: calendar year or null) (domain: worksheet null, null, null, 2031, 2032)
      • requiredFloorMet_p, targetLifestyleMet_p: Whether a path funded the required floor, and the full target, every year (unit: boolean) (domain: worksheet crossed against depletion)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • The three tests are distinct, and the shared 0.6 of successRate and requiredFloorSuccessRate is a coincidence of this path set; the evidence therefore also asserts each path's own three verdicts
      • Depletion alone defines failure here: a path that missed its target every year without depleting still counts as a success, and treating any target miss as depletion would give failure rate 0.8 on four paths
      • An empty path set gives 0 for every share rather than an undefined rate
      • The evidence supplies depletionYear, requiredFloorMet and targetLifestyleMet only; every other MonteCarloPath field is at the test’s neutral (no shortfall, attainment 1, no goal or guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-success-and-failure-rates.md Mutation receipt: monte-carlo-success-and-failure-rates.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-success-rate, monte-carlo-required-floor-success-rate, monte-carlo-target-lifestyle-success-rate, monte-carlo-failure-rate, monte-carlo-failing-path-count

    Fed by: Cholesky factor of a correlation matrix (formula record, 6 of 6 gates pass); Embedded annual stock, bond, and inflation series, 1928–2023 (data record, 6 of 6 gates pass); Arithmetic mean of blended historical portfolio returns (formula record, 6 of 6 gates pass); One-year two-asset blended nominal return (formula record, 6 of 6 gates pass); Per-person paid-care episode draw (model record, 6 of 6 gates pass); AR(1) mean-reverting return shock (model record, 6 of 6 gates pass); CAPE-conditioned shift of a mean-preserving lognormal shock (model record, 6 of 6 gates pass); Empirical historical shock, centered or raw (model record, 6 of 6 gates pass); GARCH(1,1) variance recursion with variance targeting (model record, 6 of 6 gates pass); Additive Gaussian return shock (model record, 6 of 6 gates pass); Centered historical bootstrap shock (model record, 6 of 6 gates pass); Bernoulli high-inflation regime mix (model record, 6 of 6 gates pass); Mean-preserving lognormal return shock (model record, 6 of 6 gates pass); Two-state bull/bear Markov return shock (model record, 6 of 6 gates pass); Reversed-history window replay (model record, 6 of 6 gates pass); Stationary (geometric-block) historical bootstrap (model record, 6 of 6 gates pass); Student-t return shock scaled to the configured volatility (model record, 6 of 6 gates pass); One-year additive user shock on a lognormal base (model record, 6 of 6 gates pass); Default Monte Carlo seed and the headline run's options (data record, 6 of 6 gates pass); The order a Monte Carlo path draws each person's death and care from (data record, 6 of 6 gates pass); One-year death probability: SSA's published q(x) (formula record, 6 of 6 gates pass); Sampled death age: a year-by-year walk down the survival curve (model record, 6 of 6 gates pass); Starting investable: sum of listed account balances (formula record, 6 of 6 gates pass); SplitMix32-style per-path seed (model record, 6 of 6 gates pass); Mulberry32 uniform reference stream (model record, 6 of 6 gates pass); SSA period life table, 2023 (2026 Trustees Report) (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Monte carlo target attainment median

    Median across paths of the share of target-lifestyle spending funded over the path (1 = every target dollar funded).

    Field: Median target attainment Unit: probability Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Layered success tile "Median target attainment"); scenarios-page (Risk table "Median target attainment")

    • Shortfall averages, p90s, and expected shortfall on failing paths Formula record, justified by derivation

      Purpose: How much spending went unfunded across the run, and how much worse it was on the paths that actually ran out.

      Statement: spendingShortfall.averageTotalShortfallDollars and averageYearsBelowTarget are means over all paths; spendingShortfall.p90TotalShortfallDollars and p90AverageAnnualTargetShortfall are interpolated 90th percentiles of the all-path samples; targetAttainmentPct.p50 is the interpolated median of the per-path attainment. downsideRisk.expectedShortfallDollars is the mean total shortfall over the failing paths alone, a failing path being one whose depletionYear is non-null. For the worksheet's five paths these are $36, $80, 3 years, $32, 0.8 and $35. Units: usd, years, and attainment as a fraction of target spending. Rounding: none; absolute 1e-9.

      Formula: mean = (1/N) sum_p x_p; p90 by interpolation at 0.9(N-1); expectedShortfall = (1/F) sum_{p : depletionYear_p != null} totalShortfall_p

      • N: All paths (unit: paths) (domain: worksheet 5)
      • F: Failing paths (non-null depletionYear) (unit: paths) (domain: worksheet 2)
      • totalShortfall_p: One path's unfunded spending (unit: usd) (domain: worksheet 0, 10, 20, 50, 100)
      • targetAttainmentPct_p: One path's share of target spending funded (unit: 1) (domain: worksheet 1.00, 0.90, 0.80, 0.60, 0.20)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • Expected shortfall conditions on depletion, not on a positive shortfall: path E's $100 shortfall without depletion stays outside it, and averaging all five would give $36 rather than $35
      • The p90 figures are interpolated, so they need not be an observed value: nearest rank would give $100 and $40
      • The requested attainment figure is the median of the percentile set, not the mean, which is 0.70 on these paths
      • The worksheet allows absolute $0.005 on a dollar average whose division is inexact; these five inputs divide exactly, so the test holds every figure to 1e-9
      • downsideRisk.expectedShortfallDollars and the required and target variants beside it are zero, not undefined, when no path fails
      • The evidence supplies depletionYear, totalShortfall, yearsBelowTarget, averageAnnualTargetShortfall and targetAttainmentPct only; every other MonteCarloPath field is at the test’s neutral (floor and target met, no goal or guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-shortfall-statistics.md Mutation receipt: monte-carlo-shortfall-statistics.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-average-total-shortfall, monte-carlo-p90-total-shortfall, monte-carlo-expected-shortfall-on-failing-paths, monte-carlo-average-years-below-target, monte-carlo-p90-average-annual-target-shortfall, monte-carlo-target-attainment-median

  • Monte carlo target lifestyle success rate

    Share of paths that funded full target-lifestyle spending in every year.

    Field: Target-lifestyle success probability Unit: probability Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Layered success tile "Target lifestyle funded"); scenarios-page (Risk table "Target-lifestyle success rate")

    • Success, required-floor, target-lifestyle and failure rates Formula record, justified by derivation

      Purpose: The headline shares: how often the money lasted, how often the essentials were funded, how often the full lifestyle was, and how often it ran out.

      Statement: successRate is the share of paths whose depletionYear is null; requiredFloorSuccessRate the share with requiredFloorMet; targetLifestyleSuccessRate the share with targetLifestyleMet; downsideRisk.failureRate the share whose depletionYear is non-null, and downsideRisk.failingPathCount how many those are. Failure is the complement of success over the same depletion test. For the worksheet's five deliberately crossed paths these are 0.6, 0.6, 0.2, 0.4 and 2. Units: shares in [0, 1] and a path count. Rounding: none; absolute 1e-9 on the rates and the count exactly.

      Formula: successRate = |{p : depletionYear_p = null}| / N; failureRate = 1 - successRate; failingPathCount = N - |{p : depletionYear_p = null}|

      • N: All paths (unit: paths) (domain: worksheet 5)
      • depletionYear_p: Year a path first depleted; null when it never did (unit: calendar year or null) (domain: worksheet null, null, null, 2031, 2032)
      • requiredFloorMet_p, targetLifestyleMet_p: Whether a path funded the required floor, and the full target, every year (unit: boolean) (domain: worksheet crossed against depletion)

      Timing: once per aggregation, over the completed path set

      Rounding: none

      Limits:

      • The three tests are distinct, and the shared 0.6 of successRate and requiredFloorSuccessRate is a coincidence of this path set; the evidence therefore also asserts each path's own three verdicts
      • Depletion alone defines failure here: a path that missed its target every year without depleting still counts as a success, and treating any target miss as depletion would give failure rate 0.8 on four paths
      • An empty path set gives 0 for every share rather than an undefined rate
      • The evidence supplies depletionYear, requiredFloorMet and targetLifestyleMet only; every other MonteCarloPath field is at the test’s neutral (no shortfall, attainment 1, no goal or guardrail activity, zero balances, no bequest target)

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-success-and-failure-rates.md Mutation receipt: monte-carlo-success-and-failure-rates.mutation.md

      Evidence tests: run.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-success-rate, monte-carlo-required-floor-success-rate, monte-carlo-target-lifestyle-success-rate, monte-carlo-failure-rate, monte-carlo-failing-path-count

  • Stochastic frontier variant axis

    The spending level or retirement age each frontier variant was built with (grid multipliers 0.85..1.15 of spending; -2..+2 years of retirement age).

    Field: Frontier variant value Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: monte-carlo-page (Frontier charts x-axis (spending dollars; retirement age))

    • Stochastic frontier axis value per variant Data record, justified by derivation

      Purpose: What the x of a frontier point means: the caller's own grid value, not anything read back out of the stochastic result.

      Statement: Each frontier point's x is the caller's grid value for that variant. For buildSpendingSuccessFrontier it is the variant plan's expenses.baseAnnual, that is max(0, round(baseAnnual x multiplier)); for buildRetirementAgeSuccessFrontier it is the lowest resulting retirement age among the people who have one, each moved by the caller's delta and clamped to [30, 80], or 0 when nobody has a retirement age. Neither is inferred from the point's stochastic row. For baseAnnual $60,000 with multipliers 0.8, 1.0 and 1.2 the axis is $48,000, $60,000 and $72,000; for deltas -2, 0 and 3 on a one-person plan retiring at 65 the axis is 63, 65 and 68; for two people at 65 and 62 with delta +3 it is 65; for age 31 with delta -2 it is 30. Units: usd on the spending axis, years on the retirement-age axis. Rounding: the spending variant rounds to whole dollars and floors at 0; the retirement-age variant clamps to [30, 80] and is not otherwise rounded.

      Formula: x_spending(i) = max(0, round(baseAnnual x multiplier_i)); x_retirementAge(i) = min over people p with a retirement age of clamp(age_p + delta_i, 30, 80), or 0 when no person has one

      • baseAnnual: Base plan's annual base expenses (unit: usd) (domain: worksheet 60,000)
      • multiplier_i: Caller's spending multiplier for variant i (unit: 1) (domain: worksheet 0.8, 1.0, 1.2)
      • delta_i: Caller's signed retirement-age change for variant i, applied to each person's planned retirement age (unit: years) (domain: worksheet -2, 0, 3)
      • age_p: Person p's planned retirement age (unit: years) (domain: worksheet 65; 65 and 62; 31)

      Timing: once per variant, when the frontier builds its plan set

      Rounding: spending rounds to whole dollars and floors at 0; the retirement-age result is clamped to [30, 80] and not otherwise rounded

      Limits:

      • The two axes are not the same quantity: the spending axis is the variant's absolute base annual expense, while the retirement-age axis is the resulting planned age, so neither axis is a delta from the base: not -12,000, 0 and 12,000, and not -2, 0 and 3
      • A frontier sweep is capped at MAX_FRONTIER_POINTS (15) points and neither builder searches; the grid is always the caller's
      • A point's other figures (the three success rates, the ending-estate percentiles, expected shortfall) come from the variant's Monte Carlo summary and are not this record's claim; the evidence asserts x only
      • The evidence runs the real builders on a small one-person plan at pathCount 2 and seed 123, the smallest reproducible run the options allow, because the axis does not depend on the stochastic result at all
      • The retirement-age axis was first derived as the caller's delta from the StochasticFrontierPoint.x doc comment, which stated the delta; on 2026-09-18 the comment was corrected to the resulting clamped age the builder publishes, the worksheet was re-derived and re-approved on it, and the evidence pins 63, 65 and 68 for deltas -2, 0 and 3 on a plan retiring at 65, 65 for the two-person case and 30 at the lower clamp

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-stochastic-frontier-axis.md Mutation receipt: monte-carlo-stochastic-frontier-axis.mutation.md

      Evidence tests: frontiers.evidence.test.ts

      Implemented in: frontiers.ts

      Is the number of: stochastic-frontier-variant-axis

  • Monte carlo median first depletion year

    Among the simulated paths that run out of money, the calendar year by which half of them have first depleted, printed in the Monte Carlo page's "Why this number?" panel.

    Field: Median first-depletion year Unit: calendar year Basis: no dollar basis Computed by: UI-native Status: Complete chain

    Appears in: monte-carlo-page (WhySuccessPanel "Which years drive it": "(median YEAR)")

    • Median first-depletion year Formula record, justified by derivation

      Purpose: The year by which half of the simulated markets that run out of money have run out, printed in the Monte Carlo page's explanation of its success rate.

      Statement: montecarlo/run.ts#aggregateMonteCarlo publishes MonteCarloSummary.medianFirstDepletionYear: walking depletionYearCounts in year order and adding each year's count, the first year whose running count reaches half of downsideRisk.failingPathCount, so the lower of the two middle years when the failing count is even, and null when no path runs out. Paths that last are not counted. Failing years 2040, 2041, 2042, 2043 and 2060 among ten paths give 2042, whatever the other five do; four paths failing in 2035, 2040, 2045 and 2050 give 2040; 40, 60 and 50 paths failing in 2047, 2050 and 2053 give 2050. Units: a calendar year. Rounding: none; the year is always one a path failed in.

      Formula: median = the first year y, in year order, with Σ count(year ≤ y) ≥ F / 2; null when F = 0

      • count(year): Number of simulated paths that first run out of investable assets in that calendar year (depletionYearCounts) (unit: count) (domain: integer, at least 1 for every listed year)
      • F: Number of paths that run out at all (downsideRisk.failingPathCount), the sum of the counts (unit: count) (domain: integer, at least 0)

      Timing: once per aggregation

      Rounding: none

      Limits:

      • A median of the failing paths only: it says when the typical failure happens, not how likely failure is, which the success rate says.
      • With an even number of failing paths it is the lower middle year, never an average of two years, so it is always a year some path failed in.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-median-first-depletion-year.md Mutation receipt: monte-carlo-median-first-depletion-year.mutation.md

      Evidence tests: run.depletionMedian.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-median-first-depletion-year

  • Monte carlo lasting and depleted path counts

    Two path counts the Monte Carlo page works out from the engine's summary: how many simulated paths lasted to the end of the plan ("Why this number?") and how many ran out of money (the first-depletion chart's accessible label).

    Field: Lasting and depleted path counts worked out on the Monte Carlo page Unit: count Basis: no dollar basis Computed by: UI transformation Status: Complete chain

    Appears in: monte-carlo-page (WhySuccessPanel "What it counts": "lasted to the end of the plan in N of the M simulated markets"); monte-carlo-page ("When depleting plans run out" chart aria-label "Histogram of first-depletion years for the N paths that ran out of money.")

    • Lasting and depleted path counts Formula record, justified by derivation

      Purpose: How many simulated markets carried the plan to its end and how many ran out of money, as the Monte Carlo page prints them.

      Statement: montecarlo/run.ts#aggregateMonteCarlo publishes MonteCarloSummary.lastingPathCount, the number of paths whose investable assets never run out (depletionYear null), counted in the same pass that counts downsideRisk.failingPathCount, the paths that do run out. Every path is one or the other, so the two add up to pathCount, successRate is lastingPathCount divided by pathCount, and the failing count equals the sum of depletionYearCounts. The explanation panel prints the lasting count ("lasted to the end of the plan in N of the M simulated markets") and the first-depletion chart's label prints the failing count. Five failing and five lasting paths give 5 and 5; 150 failing among 1,000 give 850 and 150; a path that falls short of its required spending floor without running out still lasted. Units: counts of paths. Rounding: none.

      Formula: lasting = #{paths with no depletion year}; depleted = #{paths with a depletion year} = Σ count(year); lasting + depleted = pathCount

      • depletion year: The first year a path's investable assets run out, or none (unit: calendar year) (domain: a year of the plan, or none)
      • pathCount: Number of simulated paths (unit: count) (domain: integer, at least 0)

      Timing: once per aggregation

      Rounding: none

      Limits:

      • Lasting means the investable assets never ran out; a path can last and still fall short of its required or target spending, which the layered success rates count.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: monte-carlo-lasting-and-depleted-path-counts.md Mutation receipt: monte-carlo-lasting-and-depleted-path-counts.mutation.md

      Evidence tests: run.lastingPaths.evidence.test.ts

      Implemented in: run.ts

      Is the number of: monte-carlo-lasting-and-depleted-path-counts

Optimizer and comparisons

  • Claim age co optimization combinations evaluated

    Number of household Social Security claim-age combinations evaluated by optimization.

    Field: combinationsEvaluated Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: optimize-page (claim combinations evaluated); report (modeled-findings claim-age "SS claim combinations optimized")

    • Claim age co-optimization Model record, justified by derivation

      Purpose: Count the Social Security claim combinations priced and publish the current-claim and joint exact estates, or say why no claim age was searched.

      Statement: projection/optimizePlan.ts#optimizePlanCoOptimizingClaimAge publishes ClaimAgeCoOptimization.outcome: already-claimed when every one of the first two Social Security streams was claimed before the start year (socialSecurity/openClaims.ts#isClaimAlreadyMade: birth year plus claim years before the start year), aca-unpriced when the plan as entered has a year whose premium tax credit cannot be priced (each year published with its blocking support codes), no-claims with no stream, no-age-left when a claim is open but the generator offers no candidate (every canonical age is the current claim or before the start year), and searched otherwise; only a searched outcome prices candidates. combinationsEvaluated is one plus the claim candidates decisions/generators.ts#socialSecurityClaimGenerator produced (for each of the first two streams whose claim is not already made, the three canonical claim ages 62y0m, the person's own full retirement age computed from the birth year and labelled FRA, and 70y0m, skipping the stream's own current claim age and any age whose claim year is before the start year), currentClaimExactEstate is the exact after-tax estate of the optimum at the current claim ages, and jointExactEstate is the exact after-tax estate of the best evaluated claim-and-schedule pair, which stays the current-claim estate unless a candidate beats it by more than DEFAULT_CLAIM_SWITCH_MARGIN_DOLLARS, which is 1000 dollars. The claims held fixed are published as alreadyClaimed.

      Formula: combinationsEvaluated = 1 + generatedClaimCandidates (0 candidates unless the outcome is searched); jointExactEstate = the best pair estate that clears currentClaimExactEstate + 1000, else currentClaimExactEstate; winningClaimLabel and winningClaimPatch are null exactly when no pair clears it

      • generatedClaimCandidates: Claim candidates from socialSecurityClaimGenerator: for each open stream (at most 2), the canonical ages that differ from its current claim and are not before the start year (unit: count) (domain: integer 0 to 6)
      • currentClaimExactEstate: Exact after-tax estate of the optimum at the plan's current claim ages (unit: nominal USD at horizon) (domain: finite)
      • jointExactEstate: Exact after-tax estate of the winning claim-and-schedule pair (unit: nominal USD at horizon) (domain: finite)
      • claimSwitchMarginDollars: DEFAULT_CLAIM_SWITCH_MARGIN_DOLLARS (unit: nominal USD) (domain: 1000)

      Timing: one full conversion optimum per claim combination, the current claim included

      Rounding: none; the count is an integer and the estates carry binary floating-point representation

      Limits:

      • The count includes the current claim and excludes the stream's own current age as a candidate: an open stream claiming at 70y0m generates two candidates and so evaluates three combinations, and a plan with no stream, or whose claims are all made, still evaluates one. The middle point is the person's own full retirement age from socialSecurity/nra.ts#fraForBirthYear. The two estates are RUN-PINNED, not derived: the worksheet states no dollar figure for either, so the test's example carries the value one execution of the co-optimizer produced on the stated plan, and it is evidence of that execution rather than of an independent derivation. What is derived is their equality: with no traditional balance every schedule is empty and no claim clears the 1000-dollar margin, so the joint estate IS the current-claim estate and both claim outputs are null. The strictness of that margin at exactly 1000 dollars was NOT constructed: it needs a candidate whose exact estate sits one margin above the current-claim optimum, which no plan input the worksheet states can produce
      • The two estate dollars (1,130,409.20 in the current-claim-wins case) stay pinned from one engine run. Nothing outside the engine derives them, so the test shows only that the run has not changed, not that the figure is right; the independent review of 2026-09-29 asked for an outside derivation, and none is made
      • It differs from the Social Security page's whole-plan sweep (social-security-claim-age-sweep): it re-optimizes conversions for each candidate but tries only 62, full retirement age and 70, one stream at a time, compares on the estate alone under every objective, and needs a 1000-dollar margin; the sweep holds the plan's conversions and tries every whole year. Adding the sweep's winner as one more candidate is a later change
      • A claim already made, and a canonical age whose claim year is before the start year, is not offered: an early claim cannot be paid for months before its application (20 CFR 404.621(a)(3)), and a later one only six months back ((a)(2)); withdrawal within 12 months and voluntary suspension from full retirement age are not modeled
      • Where the premium tax credit cannot be priced in a year of the plan as entered, no claim candidate is priced, since a claim age moves the income that credit depends on and the ledger cannot say which way; the conversion side keeps its own refusal (the tournament's ACA veto)
      • Its streams are the first two Social Security streams, where the page's sweep takes the first two with a benefit (socialSecurity/openClaims.ts#claimAgeStreams: a positive entered PIA or an earnings history). A plan with a zero-PIA stream among its first two, on which the ledger can still pay a spouse benefit, is searched differently on the two pages, and a past claim on such a stream is named on the Optimize card only; no example plan has one

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: claim-age-co-optimization.md Mutation receipt: claim-age-co-optimization.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; generators.ts; openClaims.ts

      Is the number of: claim-age-co-optimization-combinations-evaluated, claim-age-co-optimization-current-claim-exact-estate, claim-age-co-optimization-joint-exact-estate

      Feeds: optimizer-recommended-conversion-annual

    Fed by: Social Security claim already made (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Claim age co optimization current claim exact estate

    After-tax estate produced by exact validation of the current claim ages.

    Field: currentClaimExactEstate Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: optimize-page (current claim exact estate); report (modeled-findings claim-age evidence)

    • Claim age co-optimization Model record, justified by derivation

      Purpose: Count the Social Security claim combinations priced and publish the current-claim and joint exact estates, or say why no claim age was searched.

      Statement: projection/optimizePlan.ts#optimizePlanCoOptimizingClaimAge publishes ClaimAgeCoOptimization.outcome: already-claimed when every one of the first two Social Security streams was claimed before the start year (socialSecurity/openClaims.ts#isClaimAlreadyMade: birth year plus claim years before the start year), aca-unpriced when the plan as entered has a year whose premium tax credit cannot be priced (each year published with its blocking support codes), no-claims with no stream, no-age-left when a claim is open but the generator offers no candidate (every canonical age is the current claim or before the start year), and searched otherwise; only a searched outcome prices candidates. combinationsEvaluated is one plus the claim candidates decisions/generators.ts#socialSecurityClaimGenerator produced (for each of the first two streams whose claim is not already made, the three canonical claim ages 62y0m, the person's own full retirement age computed from the birth year and labelled FRA, and 70y0m, skipping the stream's own current claim age and any age whose claim year is before the start year), currentClaimExactEstate is the exact after-tax estate of the optimum at the current claim ages, and jointExactEstate is the exact after-tax estate of the best evaluated claim-and-schedule pair, which stays the current-claim estate unless a candidate beats it by more than DEFAULT_CLAIM_SWITCH_MARGIN_DOLLARS, which is 1000 dollars. The claims held fixed are published as alreadyClaimed.

      Formula: combinationsEvaluated = 1 + generatedClaimCandidates (0 candidates unless the outcome is searched); jointExactEstate = the best pair estate that clears currentClaimExactEstate + 1000, else currentClaimExactEstate; winningClaimLabel and winningClaimPatch are null exactly when no pair clears it

      • generatedClaimCandidates: Claim candidates from socialSecurityClaimGenerator: for each open stream (at most 2), the canonical ages that differ from its current claim and are not before the start year (unit: count) (domain: integer 0 to 6)
      • currentClaimExactEstate: Exact after-tax estate of the optimum at the plan's current claim ages (unit: nominal USD at horizon) (domain: finite)
      • jointExactEstate: Exact after-tax estate of the winning claim-and-schedule pair (unit: nominal USD at horizon) (domain: finite)
      • claimSwitchMarginDollars: DEFAULT_CLAIM_SWITCH_MARGIN_DOLLARS (unit: nominal USD) (domain: 1000)

      Timing: one full conversion optimum per claim combination, the current claim included

      Rounding: none; the count is an integer and the estates carry binary floating-point representation

      Limits:

      • The count includes the current claim and excludes the stream's own current age as a candidate: an open stream claiming at 70y0m generates two candidates and so evaluates three combinations, and a plan with no stream, or whose claims are all made, still evaluates one. The middle point is the person's own full retirement age from socialSecurity/nra.ts#fraForBirthYear. The two estates are RUN-PINNED, not derived: the worksheet states no dollar figure for either, so the test's example carries the value one execution of the co-optimizer produced on the stated plan, and it is evidence of that execution rather than of an independent derivation. What is derived is their equality: with no traditional balance every schedule is empty and no claim clears the 1000-dollar margin, so the joint estate IS the current-claim estate and both claim outputs are null. The strictness of that margin at exactly 1000 dollars was NOT constructed: it needs a candidate whose exact estate sits one margin above the current-claim optimum, which no plan input the worksheet states can produce
      • The two estate dollars (1,130,409.20 in the current-claim-wins case) stay pinned from one engine run. Nothing outside the engine derives them, so the test shows only that the run has not changed, not that the figure is right; the independent review of 2026-09-29 asked for an outside derivation, and none is made
      • It differs from the Social Security page's whole-plan sweep (social-security-claim-age-sweep): it re-optimizes conversions for each candidate but tries only 62, full retirement age and 70, one stream at a time, compares on the estate alone under every objective, and needs a 1000-dollar margin; the sweep holds the plan's conversions and tries every whole year. Adding the sweep's winner as one more candidate is a later change
      • A claim already made, and a canonical age whose claim year is before the start year, is not offered: an early claim cannot be paid for months before its application (20 CFR 404.621(a)(3)), and a later one only six months back ((a)(2)); withdrawal within 12 months and voluntary suspension from full retirement age are not modeled
      • Where the premium tax credit cannot be priced in a year of the plan as entered, no claim candidate is priced, since a claim age moves the income that credit depends on and the ledger cannot say which way; the conversion side keeps its own refusal (the tournament's ACA veto)
      • Its streams are the first two Social Security streams, where the page's sweep takes the first two with a benefit (socialSecurity/openClaims.ts#claimAgeStreams: a positive entered PIA or an earnings history). A plan with a zero-PIA stream among its first two, on which the ledger can still pay a spouse benefit, is searched differently on the two pages, and a past claim on such a stream is named on the Optimize card only; no example plan has one

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: claim-age-co-optimization.md Mutation receipt: claim-age-co-optimization.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; generators.ts; openClaims.ts

      Is the number of: claim-age-co-optimization-combinations-evaluated, claim-age-co-optimization-current-claim-exact-estate, claim-age-co-optimization-joint-exact-estate

      Feeds: optimizer-recommended-conversion-annual

  • Claim age co optimization joint exact estate

    After-tax estate produced by exact validation of the jointly optimized claim ages.

    Field: jointExactEstate Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: optimize-page (co-optimized claim estate); report (modeled-findings claim-age evidence)

    • Claim age co-optimization Model record, justified by derivation

      Purpose: Count the Social Security claim combinations priced and publish the current-claim and joint exact estates, or say why no claim age was searched.

      Statement: projection/optimizePlan.ts#optimizePlanCoOptimizingClaimAge publishes ClaimAgeCoOptimization.outcome: already-claimed when every one of the first two Social Security streams was claimed before the start year (socialSecurity/openClaims.ts#isClaimAlreadyMade: birth year plus claim years before the start year), aca-unpriced when the plan as entered has a year whose premium tax credit cannot be priced (each year published with its blocking support codes), no-claims with no stream, no-age-left when a claim is open but the generator offers no candidate (every canonical age is the current claim or before the start year), and searched otherwise; only a searched outcome prices candidates. combinationsEvaluated is one plus the claim candidates decisions/generators.ts#socialSecurityClaimGenerator produced (for each of the first two streams whose claim is not already made, the three canonical claim ages 62y0m, the person's own full retirement age computed from the birth year and labelled FRA, and 70y0m, skipping the stream's own current claim age and any age whose claim year is before the start year), currentClaimExactEstate is the exact after-tax estate of the optimum at the current claim ages, and jointExactEstate is the exact after-tax estate of the best evaluated claim-and-schedule pair, which stays the current-claim estate unless a candidate beats it by more than DEFAULT_CLAIM_SWITCH_MARGIN_DOLLARS, which is 1000 dollars. The claims held fixed are published as alreadyClaimed.

      Formula: combinationsEvaluated = 1 + generatedClaimCandidates (0 candidates unless the outcome is searched); jointExactEstate = the best pair estate that clears currentClaimExactEstate + 1000, else currentClaimExactEstate; winningClaimLabel and winningClaimPatch are null exactly when no pair clears it

      • generatedClaimCandidates: Claim candidates from socialSecurityClaimGenerator: for each open stream (at most 2), the canonical ages that differ from its current claim and are not before the start year (unit: count) (domain: integer 0 to 6)
      • currentClaimExactEstate: Exact after-tax estate of the optimum at the plan's current claim ages (unit: nominal USD at horizon) (domain: finite)
      • jointExactEstate: Exact after-tax estate of the winning claim-and-schedule pair (unit: nominal USD at horizon) (domain: finite)
      • claimSwitchMarginDollars: DEFAULT_CLAIM_SWITCH_MARGIN_DOLLARS (unit: nominal USD) (domain: 1000)

      Timing: one full conversion optimum per claim combination, the current claim included

      Rounding: none; the count is an integer and the estates carry binary floating-point representation

      Limits:

      • The count includes the current claim and excludes the stream's own current age as a candidate: an open stream claiming at 70y0m generates two candidates and so evaluates three combinations, and a plan with no stream, or whose claims are all made, still evaluates one. The middle point is the person's own full retirement age from socialSecurity/nra.ts#fraForBirthYear. The two estates are RUN-PINNED, not derived: the worksheet states no dollar figure for either, so the test's example carries the value one execution of the co-optimizer produced on the stated plan, and it is evidence of that execution rather than of an independent derivation. What is derived is their equality: with no traditional balance every schedule is empty and no claim clears the 1000-dollar margin, so the joint estate IS the current-claim estate and both claim outputs are null. The strictness of that margin at exactly 1000 dollars was NOT constructed: it needs a candidate whose exact estate sits one margin above the current-claim optimum, which no plan input the worksheet states can produce
      • The two estate dollars (1,130,409.20 in the current-claim-wins case) stay pinned from one engine run. Nothing outside the engine derives them, so the test shows only that the run has not changed, not that the figure is right; the independent review of 2026-09-29 asked for an outside derivation, and none is made
      • It differs from the Social Security page's whole-plan sweep (social-security-claim-age-sweep): it re-optimizes conversions for each candidate but tries only 62, full retirement age and 70, one stream at a time, compares on the estate alone under every objective, and needs a 1000-dollar margin; the sweep holds the plan's conversions and tries every whole year. Adding the sweep's winner as one more candidate is a later change
      • A claim already made, and a canonical age whose claim year is before the start year, is not offered: an early claim cannot be paid for months before its application (20 CFR 404.621(a)(3)), and a later one only six months back ((a)(2)); withdrawal within 12 months and voluntary suspension from full retirement age are not modeled
      • Where the premium tax credit cannot be priced in a year of the plan as entered, no claim candidate is priced, since a claim age moves the income that credit depends on and the ledger cannot say which way; the conversion side keeps its own refusal (the tournament's ACA veto)
      • Its streams are the first two Social Security streams, where the page's sweep takes the first two with a benefit (socialSecurity/openClaims.ts#claimAgeStreams: a positive entered PIA or an earnings history). A plan with a zero-PIA stream among its first two, on which the ledger can still pay a spouse benefit, is searched differently on the two pages, and a past claim on such a stream is named on the Optimize card only; no example plan has one

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: claim-age-co-optimization.md Mutation receipt: claim-age-co-optimization.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; generators.ts; openClaims.ts

      Is the number of: claim-age-co-optimization-combinations-evaluated, claim-age-co-optimization-current-claim-exact-estate, claim-age-co-optimization-joint-exact-estate

      Feeds: optimizer-recommended-conversion-annual

  • Compare plan deltas

    Differences between two plans in last funded year, depletion age and deterministic success (100 or 0 by depletion), bounded when only one plan runs its full horizon and published as no number when both do.

    Field: Plan B minus Plan A: money lasts, ages and deterministic success Unit: years Basis: no dollar basis Computed by: UI-native Status: Complete chain

    Appears in: compare-page (Money lasts, Depletion age and Deterministic success rows (delta column))

    • Compare plans: how long the money lasts, deterministic success and depletion age Composition record, justified by derivation

      Purpose: Compare two plans on the last fully funded year, the single-path success reading and the older person's age in the depletion year, named.

      Statement: scenarios/planHeadlines.ts#comparePlanHeadlines publishes moneyLasts through projection/moneyLasts.ts#compareMoneyLasts: each side's projection/moneyLasts.ts#moneyLasts (owner decision R15: the last funded year L = D − 1, or E when the projection never depletes) and delta = L_p − L_b, with bound atLeast when only the proposal runs its full horizon (a lower bound), atMost when only the baseline does (an upper bound) and null when both deplete (exact); when both run their full horizons the bound is bothFull and the delta is null, because neither exhaustion year is known. It publishes deterministicSuccessPct as compareScalars of 100 for a side that never depletes and 0 otherwise, and depletionAge as compareNullableScalars of D minus the birth year of the side's person that model/peopleOrder.ts#canonicalFirstPerson puts first (the older; a tie to the sex order, then the id), whoever that plan lists first, null on a side that never depletes, with depletionAgePersonId naming that person on each side (decision D-PEOPLE-ORDER); the Compare page labels the row with their names. When both sides publish an age and the two people differ by name or date of birth, the delta is null and depletionAgeDeltaWithheld is differentPeople, since two people's ages have no difference to publish (the independent review's L1); the page shows both ages. The depletion year is the household's; the age is that one person's. A depleting side whose published person has no birth date in YYYY-MM-DD form is refused with a RangeError. A plan depleting in 2046 (its older person born 1962) against one that never depletes and ends in 2049 reads 2045 against 2049: a difference of 4 years, bound atLeast, and ages 84 and none. Units: calendar years; percentage points; years of age. Rounding: none.

      Formula: L_s = D_s − 1 when D_s is not null, else E_s; delta = L_p − L_b unless both D are null; success_s = 100 when D_s is null, else 0; age_s = D_s − birthYear_s

      • D_s: The side's first year short of money (unit: calendar year) (domain: integer in [start year, E_s], or null)
      • E_s: The side's last projection year (unit: calendar year) (domain: integer)
      • birthYear_s: Birth year of the side's person the canonical order puts first (the older) (unit: calendar year) (domain: integer)

      Timing: once per pair of projections that share a start year

      Rounding: none

      Limits:

      • The age is one person's, the older on each side, named on the page; when the two plans' older people are different people, the row names both, shows both ages and publishes no difference.
      • The age is the calendar age in the first short year (the year minus the birth year), not the exact age when the money runs out.
      • A bound with a zero difference (at least the same) is a correct bound.
      • The deterministic success reading is 100 or 0 on the one deterministic path; it is not a probability.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: compare-plan-deltas.md Mutation receipt: compare-plan-deltas.mutation.md

      Evidence tests: planHeadlines.evidence.test.ts

      Implemented in: planHeadlines.ts; moneyLasts.ts; scalarComparison.ts; peopleOrder.ts

      Is the number of: compare-plan-deltas

    Fed by: Money lasts: the last funded year and the years short of the plan's end (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Compare plan money deltas

    Differences between two plans in ending net worth, ending investable, ending after-tax estate and lifetime tax plus penalties: in nominal dollars when both plans end in the same year, otherwise in today's (start-year) dollars, each plan deflated by its own published inflation factor and lifetime tax re-summed year by year (R13).

    Field: Plan B minus Plan A money deltas Unit: US dollars Basis: nominal or real, as displayed Computed by: UI-native Status: Complete chain

    Appears in: compare-page (Delta column of the four money rows, in the basis each row label states); mcp (compare_scenarios.headline.endingAfterTaxEstate.delta)

    • Compare plans: money rows in one stated basis Composition record, justified by derivation

      Purpose: Compare two plans' ending net worth, ending investable, ending after-tax estate and lifetime tax plus penalties in one dollar basis that the page states.

      Statement: scenarios/planHeadlines.ts#comparePlanHeadlines compares two projections that share a start year. When they end in the same year it publishes ending net worth, ending investable, ending after-tax estate and lifetime tax plus penalties in nominal dollars as the summaries give them, with moneyBasis nominal. When they end in different years (owner decision R13) it publishes each ending figure divided by that plan's own published inflation factor at its own end year, and lifetime tax plus penalties as the sum over that plan's years, in ledger order from 0, of each year's tax plus penalties divided by that year's factor, with moneyBasis today. Every row is scenarios/scalarComparison.ts#compareScalars(baseline, proposal): delta = proposal − baseline, a negative zero published as 0, and a non-finite figure refused with a RangeError, as are two different start years. An after-tax estate of $1,800,000 at the end of 2050 against $2,000,000 at the end of 2060, at 2.5 percent inflation from 2026, compares as $995,175.64 against $863,810.69 in 2026 dollars, a difference of −$131,364.95 where the nominal subtraction read +$200,000. Units: USD, nominal or start-year as moneyBasis says. Rounding: none.

      Formula: today when E_b ≠ E_p, else nominal; today: X_s = x_s / f_s(E_s) and T_s = Σ_y (tax_y + pen_y) / f_s(y); nominal: X_s = x_s and T_s = the summary sum; delta = X_p − X_b

      • x_s: A side's summary figure: ending net worth, ending investable or ending after-tax estate (unit: nominal USD of E_s) (domain: finite)
      • f_s(y): The side's published inflation factor for year y, exactly 1 in the start year (unit: 1) (domain: > 0)
      • E_s: The side's last projection year (unit: calendar year) (domain: integer)
      • tax_y + pen_y: The side's tax and penalties in year y (unit: nominal USD of year y) (domain: finite)

      Timing: once per pair of projections that share a start year

      Rounding: none; the page formats

      Limits:

      • Each plan is deflated by its own inflation assumption, so two plans that assume different inflation are compared each in its own view of start-year dollars. When they end in the same year the rows stay nominal, and that year's dollars then buy different amounts under each assumption (20 of the 50 same-end pairs of the example library).
      • Lifetime rows cover each plan's own years: a plan that runs ten years longer pays ten more years of tax, and the page names both end years.
      • The difference is taken between the unrounded figures, so beside the page's compact levels it can differ from the difference of the two printed levels by up to half a display unit on each side.
      • A plan's own level cells depend on its partner: the same plan reads in nominal dollars beside a plan that ends in its year and in start-year dollars beside one that does not.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: compare-plan-money-deltas.md Mutation receipt: compare-plan-money-deltas.mutation.md

      Evidence tests: planHeadlines.evidence.test.ts

      Implemented in: planHeadlines.ts; scalarComparison.ts; dollarBasis.ts

      Is the number of: compare-plan-money-deltas

  • Exact ledger tournament margin over MILP dollars

    After-tax-estate margin by which the full-projection winner beats the solver schedule.

    Field: marginOverMilpDollars Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: optimize-page (winner margin over solver schedule); monte-carlo-page (WhySuccessPanel (explainPanels) "beat the solver's own schedule by $X")

    • Full projection tournament margin Model record, justified by derivation

      Purpose: Report how far the tournament winner beat the solver schedule it displaced, and zero when it displaced none.

      Statement: projection/optimizePlan.ts#runExactLedgerTournament publishes ExactLedgerTournament.marginOverMilpDollars as the winning candidate's exact after-tax estate delta minus the displaced recommendable MILP schedule's exact after-tax estate delta, and as exactly 0 whenever no MILP comparison was made, which includes the MILP-winner branch and both the incumbent and none fallbacks; a candidate replaces a recommendable MILP only when its delta is more than that schedule's delta plus DEFAULT_TOURNAMENT_SWITCH_MARGIN_DOLLARS, which is 1000 dollars.

      Formula: marginOverMilpDollars = milpRecommended ? winnerEstateDelta - milpDelta : 0; the candidate replaces the MILP only when winnerEstateDelta > milpDelta + 1000

      • winnerEstateDelta: Winning candidate's exact after-tax estate delta over the shared baseline (unit: nominal USD at horizon) (domain: finite)
      • milpDelta: Recommendable post-processed MILP schedule's exact after-tax estate delta, 0 when none is recommendable (unit: nominal USD at horizon) (domain: finite)
      • switchMarginDollars: DEFAULT_TOURNAMENT_SWITCH_MARGIN_DOLLARS (unit: nominal USD) (domain: 1000)

      Timing: one tournament over the plan's simple candidates and its post-processed MILP schedule

      Rounding: none; the dollar figures carry binary floating-point representation and the switch comparison is strict

      Limits:

      • The zero convention is the evidenced branch: with no MILP result supplied the published margin is 0 on both the none and the incumbent outcome, so a candidate-versus-incumbent difference must never be reported there, and a no-traditional plan reports source none with an empty schedule rather than an incumbent request. The worksheet's third case (a candidate that beats a recommendable MILP by more than the 1000-dollar switch margin, and the strictness of that threshold at exactly 1000) is a solver-run limit and was NOT constructed: the worksheet supplies no estate inputs for the MILP schedule, and the entry takes a post-processed solver schedule rather than a dollar figure, so no assertion here can pin that branch or its published difference. Beyond the worksheet's two inputs the test assumes, for the none case, a validated single-person plan with one cash account, zero returns, zero inflation, zero state tax and zero base spending, and for the incumbent case a validated single-person retiree plan with an 800000-dollar traditional account beside a taxable and a cash account, 4 percent returns, a 25 percent heir rate, 45000 dollars of base spending and a planning age of 85, both run with the production federal tax calculator from start year 2026 so Y1 is 2026; on the incumbent plan the tournament's own candidate winner is withheld by the retirement-action readiness veto, which is what routes the run to the incumbent fallback the worksheet describes. Both runs exercise the real ledger; nothing is supplied at a seam.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: exact-ledger-tournament-margin.md Mutation receipt: exact-ledger-tournament-margin.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts

      Is the number of: exact-ledger-tournament-margin-over-milp-dollars

    Fed by: Full projection cleaned schedule (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Exact ledger validation ending net worth delta

    Change in ending net worth between the candidate recommendation and baseline plan.

    Field: endingNetWorthDelta Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: report (validation ending net-worth delta)

    • Full projection summary comparison Formula record, justified by derivation

      Purpose: Publish the two full-projection estates and the ending-net-worth delta between them.

      Statement: projection/optimizePlan.ts#evaluateExactLedgerSchedule publishes ExactLedgerValidation.baseline as summarizeProjection of the plan's shared baseline result and ExactLedgerValidation.candidate as summarizeProjection of the candidate schedule's own simulated result, and publishes endingNetWorthDelta as candidate.endingNetWorth minus baseline.endingNetWorth.

      Formula: baseline = summarizeProjection(sharedBaselineResult); candidate = summarizeProjection(candidateResult); endingNetWorthDelta = candidate.endingNetWorth - baseline.endingNetWorth

      • baseline.endingAfterTaxEstate: Shared baseline result summary ending after-tax estate (unit: nominal USD at horizon) (domain: finite)
      • candidate.endingAfterTaxEstate: Candidate schedule result summary ending after-tax estate (unit: nominal USD at horizon) (domain: finite)
      • baseline.endingNetWorth: Shared baseline result summary ending net worth (unit: nominal USD at horizon) (domain: finite)
      • candidate.endingNetWorth: Candidate schedule result summary ending net worth (unit: nominal USD at horizon) (domain: finite)

      Timing: one candidate schedule validated against the plan's shared baseline run

      Rounding: none; the summarized dollar figures carry binary floating-point representation

      Limits:

      • No value from one result may be paired with the other result's label: the baseline estate is the shared baseline run's summary and the candidate estate is the candidate schedule's own run, and the delta is on ending net worth rather than on after-tax estate. Beyond the worksheet's four summary figures the test assumes a validated plan whose only estate-discounted holding is one non-inherited traditional account at a 25 percent flat heir rate, so each result's final-year balance for that account is what turns its ending net worth into the worksheet's after-tax estate; both projections are supplied as ProjectionResult values at the exported validation entry, so the summary composition and the validation wrapper are the real functions while neither ledger run is exercised here. The entry also requires a requested schedule, which the worksheet does not name and the test leaves empty. recommendationState has no census family this round and is not published by this record.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: exact-ledger-summary-comparison.md Mutation receipt: exact-ledger-summary-comparison.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; evaluateCandidate.ts

      Is the number of: optimization-baseline-after-tax-estate, optimization-candidate-after-tax-estate, exact-ledger-validation-ending-net-worth-delta

  • Exact ledger validation executed conversion ratio

    Share of requested Roth-conversion dollars actually executed by the projection ledger.

    Field: executedConversionRatio Unit: percent Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: optimize-page (executed conversion percentage); report (modeled-findings validation executed percent)

    • Full projection conversion execution Formula record, justified by derivation

      Purpose: Report how much of a requested conversion schedule the full year-by-year projection actually executed.

      Statement: projection/optimizePlan.ts#evaluateExactLedgerSchedule sums the requested schedule into requestedConversionTotal with strategies/conversionScheduleTotal.ts#conversionScheduleTotal (left to right from 0, the one schedule sum every surface reads), sums the candidate result's YearResult.rothConversion into the executed total, publishes executedConversionRatio as min(1, executed / requested) and exactly 1 when nothing was requested, and publishes firstMateriallyUnexecutedYear as the first ascending requested year whose shortfall is more than max(DECISION_MATERIAL_SHORTFALL_DOLLARS, requested times DECISION_MATERIAL_SHORTFALL_PCT), else null. decisions/evaluateCandidate.ts#buildConversionExecution also decides, once, whether the whole schedule is short by more than max(DECISION_MATERIAL_SHORTFALL_DOLLARS, requested total times DECISION_MATERIAL_SHORTFALL_PCT) with at least the minimum requested (the test that makes the evaluation diagnostic), and the validation publishes executedWithoutMaterialShortfall, true when no year and not the whole schedule is short by more than its margin, for the Optimize page to read instead of re-deriving the margins.

      Formula: requested = sum(schedule.amount); executed = sum(candidate.years.rothConversion); ratio = requested > 0 ? min(1, executed / requested) : 1; firstMateriallyUnexecutedYear = min { y ascending : requested_y - executed_y > max(1000, requested_y * 0.05) }, else null; executedWithoutMaterialShortfall = firstMateriallyUnexecutedYear is null and not (requested >= 1 and requested - executed > max(1000, requested * 0.05))

      • requested_y: Requested conversion dollars in year y (unit: nominal USD) (domain: nonnegative)
      • executed_y: Candidate result rothConversion in year y (unit: nominal USD) (domain: nonnegative)
      • DECISION_MATERIAL_SHORTFALL_DOLLARS: Absolute material shortfall margin (unit: nominal USD) (domain: 1000)
      • DECISION_MATERIAL_SHORTFALL_PCT: Proportional material shortfall margin (unit: 1) (domain: 0.05)

      Timing: one candidate schedule against its own full-projection run, requested years tested in ascending order

      Rounding: none; the dollar sums carry binary floating-point representation and the materiality comparison is strict

      Limits:

      • The materiality margin is resolved per year from that year's own requested amount, not once from the schedule total, and the comparison is strictly more than, so a shortfall equal to its margin does not qualify; the ratio is capped at 1 so an over-execution cannot read as more than the whole request, and the zero-request branch is the stated exact 1 rather than a division. Beyond the worksheet's rows the test assumes a validated plan with one non-inherited traditional account and a baseline result that the entry requires and the worksheet does not name; both projections are supplied as ProjectionResult values at the exported validation entry, so the requested-versus-executed arithmetic is the real function while neither ledger run is exercised here. ExactLedgerValidation.executedConversionTotal has no census family this round, so it is read only as the ratio's numerator and is not published by this record.

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: exact-ledger-conversion-execution.md Mutation receipt: exact-ledger-conversion-execution.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; evaluateCandidate.ts; conversionScheduleTotal.ts

      Is the number of: exact-ledger-validation-requested-conversion-total, exact-ledger-validation-executed-conversion-ratio, exact-ledger-validation-first-materially-unexecuted-year

  • Exact ledger validation first materially unexecuted year

    First year in which a requested Roth conversion is materially not executed.

    Field: firstMateriallyUnexecutedYear Unit: calendar year Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: optimize-page (first materially unexecuted year); report (modeled-findings validation "First material execution shortfall")

    • Full projection conversion execution Formula record, justified by derivation

      Purpose: Report how much of a requested conversion schedule the full year-by-year projection actually executed.

      Statement: projection/optimizePlan.ts#evaluateExactLedgerSchedule sums the requested schedule into requestedConversionTotal with strategies/conversionScheduleTotal.ts#conversionScheduleTotal (left to right from 0, the one schedule sum every surface reads), sums the candidate result's YearResult.rothConversion into the executed total, publishes executedConversionRatio as min(1, executed / requested) and exactly 1 when nothing was requested, and publishes firstMateriallyUnexecutedYear as the first ascending requested year whose shortfall is more than max(DECISION_MATERIAL_SHORTFALL_DOLLARS, requested times DECISION_MATERIAL_SHORTFALL_PCT), else null. decisions/evaluateCandidate.ts#buildConversionExecution also decides, once, whether the whole schedule is short by more than max(DECISION_MATERIAL_SHORTFALL_DOLLARS, requested total times DECISION_MATERIAL_SHORTFALL_PCT) with at least the minimum requested (the test that makes the evaluation diagnostic), and the validation publishes executedWithoutMaterialShortfall, true when no year and not the whole schedule is short by more than its margin, for the Optimize page to read instead of re-deriving the margins.

      Formula: requested = sum(schedule.amount); executed = sum(candidate.years.rothConversion); ratio = requested > 0 ? min(1, executed / requested) : 1; firstMateriallyUnexecutedYear = min { y ascending : requested_y - executed_y > max(1000, requested_y * 0.05) }, else null; executedWithoutMaterialShortfall = firstMateriallyUnexecutedYear is null and not (requested >= 1 and requested - executed > max(1000, requested * 0.05))

      • requested_y: Requested conversion dollars in year y (unit: nominal USD) (domain: nonnegative)
      • executed_y: Candidate result rothConversion in year y (unit: nominal USD) (domain: nonnegative)
      • DECISION_MATERIAL_SHORTFALL_DOLLARS: Absolute material shortfall margin (unit: nominal USD) (domain: 1000)
      • DECISION_MATERIAL_SHORTFALL_PCT: Proportional material shortfall margin (unit: 1) (domain: 0.05)

      Timing: one candidate schedule against its own full-projection run, requested years tested in ascending order

      Rounding: none; the dollar sums carry binary floating-point representation and the materiality comparison is strict

      Limits:

      • The materiality margin is resolved per year from that year's own requested amount, not once from the schedule total, and the comparison is strictly more than, so a shortfall equal to its margin does not qualify; the ratio is capped at 1 so an over-execution cannot read as more than the whole request, and the zero-request branch is the stated exact 1 rather than a division. Beyond the worksheet's rows the test assumes a validated plan with one non-inherited traditional account and a baseline result that the entry requires and the worksheet does not name; both projections are supplied as ProjectionResult values at the exported validation entry, so the requested-versus-executed arithmetic is the real function while neither ledger run is exercised here. ExactLedgerValidation.executedConversionTotal has no census family this round, so it is read only as the ratio's numerator and is not published by this record.

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: exact-ledger-conversion-execution.md Mutation receipt: exact-ledger-conversion-execution.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; evaluateCandidate.ts; conversionScheduleTotal.ts

      Is the number of: exact-ledger-validation-requested-conversion-total, exact-ledger-validation-executed-conversion-ratio, exact-ledger-validation-first-materially-unexecuted-year

  • Exact ledger validation requested conversion total

    Total Roth-conversion dollars requested by the candidate schedule.

    Field: requestedConversionTotal Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: report (requested conversion total); report (modeled-findings validation "Requested conversions")

    • Full projection conversion execution Formula record, justified by derivation

      Purpose: Report how much of a requested conversion schedule the full year-by-year projection actually executed.

      Statement: projection/optimizePlan.ts#evaluateExactLedgerSchedule sums the requested schedule into requestedConversionTotal with strategies/conversionScheduleTotal.ts#conversionScheduleTotal (left to right from 0, the one schedule sum every surface reads), sums the candidate result's YearResult.rothConversion into the executed total, publishes executedConversionRatio as min(1, executed / requested) and exactly 1 when nothing was requested, and publishes firstMateriallyUnexecutedYear as the first ascending requested year whose shortfall is more than max(DECISION_MATERIAL_SHORTFALL_DOLLARS, requested times DECISION_MATERIAL_SHORTFALL_PCT), else null. decisions/evaluateCandidate.ts#buildConversionExecution also decides, once, whether the whole schedule is short by more than max(DECISION_MATERIAL_SHORTFALL_DOLLARS, requested total times DECISION_MATERIAL_SHORTFALL_PCT) with at least the minimum requested (the test that makes the evaluation diagnostic), and the validation publishes executedWithoutMaterialShortfall, true when no year and not the whole schedule is short by more than its margin, for the Optimize page to read instead of re-deriving the margins.

      Formula: requested = sum(schedule.amount); executed = sum(candidate.years.rothConversion); ratio = requested > 0 ? min(1, executed / requested) : 1; firstMateriallyUnexecutedYear = min { y ascending : requested_y - executed_y > max(1000, requested_y * 0.05) }, else null; executedWithoutMaterialShortfall = firstMateriallyUnexecutedYear is null and not (requested >= 1 and requested - executed > max(1000, requested * 0.05))

      • requested_y: Requested conversion dollars in year y (unit: nominal USD) (domain: nonnegative)
      • executed_y: Candidate result rothConversion in year y (unit: nominal USD) (domain: nonnegative)
      • DECISION_MATERIAL_SHORTFALL_DOLLARS: Absolute material shortfall margin (unit: nominal USD) (domain: 1000)
      • DECISION_MATERIAL_SHORTFALL_PCT: Proportional material shortfall margin (unit: 1) (domain: 0.05)

      Timing: one candidate schedule against its own full-projection run, requested years tested in ascending order

      Rounding: none; the dollar sums carry binary floating-point representation and the materiality comparison is strict

      Limits:

      • The materiality margin is resolved per year from that year's own requested amount, not once from the schedule total, and the comparison is strictly more than, so a shortfall equal to its margin does not qualify; the ratio is capped at 1 so an over-execution cannot read as more than the whole request, and the zero-request branch is the stated exact 1 rather than a division. Beyond the worksheet's rows the test assumes a validated plan with one non-inherited traditional account and a baseline result that the entry requires and the worksheet does not name; both projections are supplied as ProjectionResult values at the exported validation entry, so the requested-versus-executed arithmetic is the real function while neither ledger run is exercised here. ExactLedgerValidation.executedConversionTotal has no census family this round, so it is read only as the ratio's numerator and is not published by this record.

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: exact-ledger-conversion-execution.md Mutation receipt: exact-ledger-conversion-execution.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; evaluateCandidate.ts; conversionScheduleTotal.ts

      Is the number of: exact-ledger-validation-requested-conversion-total, exact-ledger-validation-executed-conversion-ratio, exact-ledger-validation-first-materially-unexecuted-year

    Fed by: Conversion schedule total (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Exact ledger validation traditional depletion year

    First year traditional-account assets are depleted under the validated schedule.

    Field: traditionalDepletionYear Unit: calendar year Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: report (traditional depletion year)

    • Full projection traditional depletion Formula record, justified by derivation

      Purpose: Name the first year the plan's own traditional balances are exhausted under a candidate schedule.

      Statement: projection/optimizePlan.ts#evaluateExactLedgerSchedule publishes ExactLedgerValidation.traditionalDepletionYear through decisions/evaluateCandidate.ts#findTraditionalDepletionYear as the first ascending candidate-result year whose non-inherited traditional account balances sum to at most the validation tolerance, one dollar by default, and null when no year does.

      Formula: traditionalDepletionYear = min { y ascending : sum over own traditional accounts a of balance(a, y) <= toleranceDollars }, else null

      • balance(a, y): Year-end balance of own traditional account a in year y (unit: nominal USD) (domain: nonnegative)
      • toleranceDollars: Validation tolerance, DECISION_NEUTRAL_TOLERANCE_DOLLARS by default (unit: nominal USD) (domain: 1)

      Timing: candidate-result years in ascending order; the first qualifying year wins

      Rounding: none; the boundary is inclusive at the tolerance

      Limits:

      • Inherited traditional balances are excluded, the boundary is inclusive so an owned sum of exactly the tolerance qualifies, and a later fully drained year cannot displace the first qualifying one. Beyond the worksheet's three account balance columns the test assumes a validated plan whose two owned traditional accounts and one inherited traditional account carry the worksheet's ids, an empty requested schedule, and a baseline result that the entry requires and the worksheet does not name; the candidate projection is supplied as a ProjectionResult value at the exported validation entry, so the selection is the real function while no ledger run is exercised here.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: exact-ledger-traditional-depletion.md Mutation receipt: exact-ledger-traditional-depletion.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; evaluateCandidate.ts

      Is the number of: exact-ledger-validation-traditional-depletion-year

  • Optimization baseline after tax estate

    Baseline plan after-tax estate used to validate an optimization recommendation.

    Field: baselineAfterTaxEstate Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: report (validation baseline after-tax estate); report (modeled-findings validation "Baseline after-tax estate")

    • Full projection summary comparison Formula record, justified by derivation

      Purpose: Publish the two full-projection estates and the ending-net-worth delta between them.

      Statement: projection/optimizePlan.ts#evaluateExactLedgerSchedule publishes ExactLedgerValidation.baseline as summarizeProjection of the plan's shared baseline result and ExactLedgerValidation.candidate as summarizeProjection of the candidate schedule's own simulated result, and publishes endingNetWorthDelta as candidate.endingNetWorth minus baseline.endingNetWorth.

      Formula: baseline = summarizeProjection(sharedBaselineResult); candidate = summarizeProjection(candidateResult); endingNetWorthDelta = candidate.endingNetWorth - baseline.endingNetWorth

      • baseline.endingAfterTaxEstate: Shared baseline result summary ending after-tax estate (unit: nominal USD at horizon) (domain: finite)
      • candidate.endingAfterTaxEstate: Candidate schedule result summary ending after-tax estate (unit: nominal USD at horizon) (domain: finite)
      • baseline.endingNetWorth: Shared baseline result summary ending net worth (unit: nominal USD at horizon) (domain: finite)
      • candidate.endingNetWorth: Candidate schedule result summary ending net worth (unit: nominal USD at horizon) (domain: finite)

      Timing: one candidate schedule validated against the plan's shared baseline run

      Rounding: none; the summarized dollar figures carry binary floating-point representation

      Limits:

      • No value from one result may be paired with the other result's label: the baseline estate is the shared baseline run's summary and the candidate estate is the candidate schedule's own run, and the delta is on ending net worth rather than on after-tax estate. Beyond the worksheet's four summary figures the test assumes a validated plan whose only estate-discounted holding is one non-inherited traditional account at a 25 percent flat heir rate, so each result's final-year balance for that account is what turns its ending net worth into the worksheet's after-tax estate; both projections are supplied as ProjectionResult values at the exported validation entry, so the summary composition and the validation wrapper are the real functions while neither ledger run is exercised here. The entry also requires a requested schedule, which the worksheet does not name and the test leaves empty. recommendationState has no census family this round and is not published by this record.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: exact-ledger-summary-comparison.md Mutation receipt: exact-ledger-summary-comparison.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; evaluateCandidate.ts

      Is the number of: optimization-baseline-after-tax-estate, optimization-candidate-after-tax-estate, exact-ledger-validation-ending-net-worth-delta

  • Optimization candidate after tax estate

    Candidate plan after-tax estate shown in optimization validation evidence.

    Field: candidateAfterTaxEstate Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: report (validation candidate after-tax estate); report (modeled-findings validation "Candidate after-tax estate")

    • Full projection summary comparison Formula record, justified by derivation

      Purpose: Publish the two full-projection estates and the ending-net-worth delta between them.

      Statement: projection/optimizePlan.ts#evaluateExactLedgerSchedule publishes ExactLedgerValidation.baseline as summarizeProjection of the plan's shared baseline result and ExactLedgerValidation.candidate as summarizeProjection of the candidate schedule's own simulated result, and publishes endingNetWorthDelta as candidate.endingNetWorth minus baseline.endingNetWorth.

      Formula: baseline = summarizeProjection(sharedBaselineResult); candidate = summarizeProjection(candidateResult); endingNetWorthDelta = candidate.endingNetWorth - baseline.endingNetWorth

      • baseline.endingAfterTaxEstate: Shared baseline result summary ending after-tax estate (unit: nominal USD at horizon) (domain: finite)
      • candidate.endingAfterTaxEstate: Candidate schedule result summary ending after-tax estate (unit: nominal USD at horizon) (domain: finite)
      • baseline.endingNetWorth: Shared baseline result summary ending net worth (unit: nominal USD at horizon) (domain: finite)
      • candidate.endingNetWorth: Candidate schedule result summary ending net worth (unit: nominal USD at horizon) (domain: finite)

      Timing: one candidate schedule validated against the plan's shared baseline run

      Rounding: none; the summarized dollar figures carry binary floating-point representation

      Limits:

      • No value from one result may be paired with the other result's label: the baseline estate is the shared baseline run's summary and the candidate estate is the candidate schedule's own run, and the delta is on ending net worth rather than on after-tax estate. Beyond the worksheet's four summary figures the test assumes a validated plan whose only estate-discounted holding is one non-inherited traditional account at a 25 percent flat heir rate, so each result's final-year balance for that account is what turns its ending net worth into the worksheet's after-tax estate; both projections are supplied as ProjectionResult values at the exported validation entry, so the summary composition and the validation wrapper are the real functions while neither ledger run is exercised here. The entry also requires a requested schedule, which the worksheet does not name and the test leaves empty. recommendationState has no census family this round and is not published by this record.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: exact-ledger-summary-comparison.md Mutation receipt: exact-ledger-summary-comparison.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; evaluateCandidate.ts

      Is the number of: optimization-baseline-after-tax-estate, optimization-candidate-after-tax-estate, exact-ledger-validation-ending-net-worth-delta

  • Relocation tax comparison

    Lifetime tax-plus-penalties delta of each candidate versus the baseline row, and each row's ending after-tax estate in the comparison's start-year dollars.

    Field: Relocation candidate deltas and display basis Unit: US dollars Basis: nominal dollars Computed by: UI-native Status: Complete chain

    Appears in: relocation-page (Ranked table "Δ vs your plan" column and "Ending after-tax estate (today's $)" column)

    • Relocation rows compared with your plan Composition record, justified by derivation

      Purpose: Each relocation row's lifetime tax difference from the plan as it stands, and its ending after-tax estate in the comparison's start-year dollars.

      Statement: projection/relocation.ts#compareRelocationCandidates publishes on each row lifetimeTaxesAndPenaltiesDeltaVsBaseline = compareScalars(baseline.lifetimeTaxesAndPenalties, row.lifetimeTaxesAndPenalties).delta, the row's sum minus the first (baseline) row's, null on the baseline row and on a row whose candidate failed; and endingAfterTaxEstateTodayDollars, the row's endingAfterTaxEstate divided by that row's own published inflation factor at its endYear (#runRow, through projection/dollarBasis.ts), null on a failed row and on a projection with no years. Every row covers the same years in the same nominal dollars, since a candidate changes only the residence, the flat state rate, the local rate and base spending. Lifetime sums of $433,212.40 (the baseline) and $363,292.60 differ by −$69,919.80; an after-tax estate of $4,058,000 at the end of 2059, at 2.5 percent inflation from 2026, is $1,796,488.68 in 2026 dollars. Units: nominal USD for the difference; start-year USD for the estate. Rounding: none.

      Formula: delta_r = L_r − L_baseline; estateToday_r = E_r / f_r(endYear_r)

      • L_r: A row's lifetime taxes and penalties (unit: nominal USD summed over the plan's years) (domain: finite)
      • E_r: A row's ending after-tax estate (unit: nominal USD of endYear_r) (domain: finite)
      • f_r(y): The row's published inflation factor for year y, exactly 1 in the start year (unit: 1) (domain: > 0)

      Timing: once per relocation comparison

      Rounding: none; the page prints whole dollars

      Limits:

      • The difference is taken between the unrounded sums, so it can differ by $1 from the difference of the two printed sums (19 of the 87 candidate rows of the example library at FL, TX and CA); these sums are not published as rounded quantities, so the exact difference stays.
      • The differences and sums are nominal and undiscounted: a dollar of tax in the last year counts the same as one in the first.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: relocation-tax-comparison.md Mutation receipt: relocation-tax-comparison.mutation.md

      Evidence tests: relocation.comparison.evidence.test.ts

      Implemented in: relocation.ts; scalarComparison.ts; dollarBasis.ts

      Is the number of: relocation-tax-comparison

  • Simple candidate evaluation after tax estate delta

    Candidate change in after-tax estate relative to the current plan.

    Field: afterTaxEstateDelta Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: optimize-page (after-tax estate improvement); report (modeled-findings validation "After-tax estate delta" and candidate rows)

    • Simple candidate evaluation comparison Formula record, justified by derivation

      Purpose: Compare one simple conversion candidate with the shared baseline on the full year-by-year projection.

      Statement: projection/optimizePlan.ts#evaluateSimpleConversionCandidates publishes each SimpleCandidateEvaluation as the sum of the candidate result's YearResult.rothConversion, the candidate-minus-baseline differences of summarizeProjection's endingAfterTaxEstate and lifetimeTaxesAndPenalties, the candidate-minus-baseline difference of lastFundedYear (a result's depletionYear - 1, or its endYear when it never depletes), and the ascending sorted union across both results of the years whose taxComputation.status or hecmComputation.status is incomplete.

      Formula: executedConversionTotal = sum(candidate.years.rothConversion); afterTaxEstateDelta = candidate.endingAfterTaxEstate - baseline.endingAfterTaxEstate; lifetimeTaxDelta = candidate.lifetimeTaxesAndPenalties - baseline.lifetimeTaxesAndPenalties; moneyLastsYearsDelta = lastFundedYear(candidate) - lastFundedYear(baseline); incompleteComputationYears = sorted union of the incomplete years of both results

      • lastFundedYear(result): Last fully funded year: the result's depletionYear - 1, or its endYear when it never depletes (projection/moneyLasts.ts) (unit: calendar year) (domain: integer)
      • candidate.endingAfterTaxEstate: Candidate result summary ending after-tax estate (unit: nominal USD at horizon) (domain: finite)
      • candidate.lifetimeTaxesAndPenalties: Candidate result summary lifetime taxes and penalties (unit: nominal USD over projection) (domain: finite)
      • incomplete(result): Years whose taxComputation.status or hecmComputation.status is incomplete (unit: calendar years) (domain: set of integers)

      Timing: one simple conversion candidate against the plan's shared baseline run

      Rounding: none; the dollar sum and the dollar differences carry binary floating-point representation

      Limits:

      • Every difference is candidate minus baseline, the conversion sum is the candidate result's rows alone, a non-depleting result is funded through its endYear and a depleting one through its depletionYear - 1 (owner decision R15, 2026-09-25; restated 2026-09-26; it replaced the earlier count of depletionYear or endYear + 1, and both shift every result by one year, so every delta is unchanged), and the incomplete years are a de-duplicated ascending union across both results rather than a concatenation. Beyond the worksheet's inputs the smallest exported entry that publishes these fields generates its own fixed set of fill-to-target candidates and runs each one through the ledger, so the test supplies the candidate result at the simulate seam and the baseline result directly; it also assumes a validated plan whose only estate-discounted holding is one non-inherited traditional account at a 20 percent flat heir rate, so each result's final-year balance for that account is what turns its ending net worth into the worksheet's after-tax estate. In the no-incomplete-status branch the optional incompleteComputationYears key is omitted, not set to an empty list, as the worksheet states since its 2026-09-18 revision (the first derivation expected an empty list, which the test found); the test asserts the omission and the empty union it stands for. recommendationState has no census family this round and is not published by this record.

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: simple-candidate-evaluation-comparison.md Mutation receipt: simple-candidate-evaluation-comparison.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; evaluateCandidate.ts; moneyLasts.ts

      Is the number of: simple-candidate-evaluation-after-tax-estate-delta, simple-candidate-evaluation-executed-conversion-total, simple-candidate-evaluation-incomplete-computation-years, simple-candidate-evaluation-lifetime-tax-delta, simple-candidate-evaluation-money-lasts-years-delta

  • Simple candidate evaluation executed conversion total

    Roth-conversion dollars actually executed for the evaluated candidate.

    Field: executedConversionTotal Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: optimize-page (executed conversions); report (modeled-findings validation "Executed conversions")

    • Simple candidate evaluation comparison Formula record, justified by derivation

      Purpose: Compare one simple conversion candidate with the shared baseline on the full year-by-year projection.

      Statement: projection/optimizePlan.ts#evaluateSimpleConversionCandidates publishes each SimpleCandidateEvaluation as the sum of the candidate result's YearResult.rothConversion, the candidate-minus-baseline differences of summarizeProjection's endingAfterTaxEstate and lifetimeTaxesAndPenalties, the candidate-minus-baseline difference of lastFundedYear (a result's depletionYear - 1, or its endYear when it never depletes), and the ascending sorted union across both results of the years whose taxComputation.status or hecmComputation.status is incomplete.

      Formula: executedConversionTotal = sum(candidate.years.rothConversion); afterTaxEstateDelta = candidate.endingAfterTaxEstate - baseline.endingAfterTaxEstate; lifetimeTaxDelta = candidate.lifetimeTaxesAndPenalties - baseline.lifetimeTaxesAndPenalties; moneyLastsYearsDelta = lastFundedYear(candidate) - lastFundedYear(baseline); incompleteComputationYears = sorted union of the incomplete years of both results

      • lastFundedYear(result): Last fully funded year: the result's depletionYear - 1, or its endYear when it never depletes (projection/moneyLasts.ts) (unit: calendar year) (domain: integer)
      • candidate.endingAfterTaxEstate: Candidate result summary ending after-tax estate (unit: nominal USD at horizon) (domain: finite)
      • candidate.lifetimeTaxesAndPenalties: Candidate result summary lifetime taxes and penalties (unit: nominal USD over projection) (domain: finite)
      • incomplete(result): Years whose taxComputation.status or hecmComputation.status is incomplete (unit: calendar years) (domain: set of integers)

      Timing: one simple conversion candidate against the plan's shared baseline run

      Rounding: none; the dollar sum and the dollar differences carry binary floating-point representation

      Limits:

      • Every difference is candidate minus baseline, the conversion sum is the candidate result's rows alone, a non-depleting result is funded through its endYear and a depleting one through its depletionYear - 1 (owner decision R15, 2026-09-25; restated 2026-09-26; it replaced the earlier count of depletionYear or endYear + 1, and both shift every result by one year, so every delta is unchanged), and the incomplete years are a de-duplicated ascending union across both results rather than a concatenation. Beyond the worksheet's inputs the smallest exported entry that publishes these fields generates its own fixed set of fill-to-target candidates and runs each one through the ledger, so the test supplies the candidate result at the simulate seam and the baseline result directly; it also assumes a validated plan whose only estate-discounted holding is one non-inherited traditional account at a 20 percent flat heir rate, so each result's final-year balance for that account is what turns its ending net worth into the worksheet's after-tax estate. In the no-incomplete-status branch the optional incompleteComputationYears key is omitted, not set to an empty list, as the worksheet states since its 2026-09-18 revision (the first derivation expected an empty list, which the test found); the test asserts the omission and the empty union it stands for. recommendationState has no census family this round and is not published by this record.

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: simple-candidate-evaluation-comparison.md Mutation receipt: simple-candidate-evaluation-comparison.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; evaluateCandidate.ts; moneyLasts.ts

      Is the number of: simple-candidate-evaluation-after-tax-estate-delta, simple-candidate-evaluation-executed-conversion-total, simple-candidate-evaluation-incomplete-computation-years, simple-candidate-evaluation-lifetime-tax-delta, simple-candidate-evaluation-money-lasts-years-delta

  • Simple candidate evaluation incomplete computation years

    Projection years with incomplete calculations in the evaluated candidate.

    Field: incompleteComputationYears Unit: calendar year Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: optimize-page (incomplete computation years)

    • Simple candidate evaluation comparison Formula record, justified by derivation

      Purpose: Compare one simple conversion candidate with the shared baseline on the full year-by-year projection.

      Statement: projection/optimizePlan.ts#evaluateSimpleConversionCandidates publishes each SimpleCandidateEvaluation as the sum of the candidate result's YearResult.rothConversion, the candidate-minus-baseline differences of summarizeProjection's endingAfterTaxEstate and lifetimeTaxesAndPenalties, the candidate-minus-baseline difference of lastFundedYear (a result's depletionYear - 1, or its endYear when it never depletes), and the ascending sorted union across both results of the years whose taxComputation.status or hecmComputation.status is incomplete.

      Formula: executedConversionTotal = sum(candidate.years.rothConversion); afterTaxEstateDelta = candidate.endingAfterTaxEstate - baseline.endingAfterTaxEstate; lifetimeTaxDelta = candidate.lifetimeTaxesAndPenalties - baseline.lifetimeTaxesAndPenalties; moneyLastsYearsDelta = lastFundedYear(candidate) - lastFundedYear(baseline); incompleteComputationYears = sorted union of the incomplete years of both results

      • lastFundedYear(result): Last fully funded year: the result's depletionYear - 1, or its endYear when it never depletes (projection/moneyLasts.ts) (unit: calendar year) (domain: integer)
      • candidate.endingAfterTaxEstate: Candidate result summary ending after-tax estate (unit: nominal USD at horizon) (domain: finite)
      • candidate.lifetimeTaxesAndPenalties: Candidate result summary lifetime taxes and penalties (unit: nominal USD over projection) (domain: finite)
      • incomplete(result): Years whose taxComputation.status or hecmComputation.status is incomplete (unit: calendar years) (domain: set of integers)

      Timing: one simple conversion candidate against the plan's shared baseline run

      Rounding: none; the dollar sum and the dollar differences carry binary floating-point representation

      Limits:

      • Every difference is candidate minus baseline, the conversion sum is the candidate result's rows alone, a non-depleting result is funded through its endYear and a depleting one through its depletionYear - 1 (owner decision R15, 2026-09-25; restated 2026-09-26; it replaced the earlier count of depletionYear or endYear + 1, and both shift every result by one year, so every delta is unchanged), and the incomplete years are a de-duplicated ascending union across both results rather than a concatenation. Beyond the worksheet's inputs the smallest exported entry that publishes these fields generates its own fixed set of fill-to-target candidates and runs each one through the ledger, so the test supplies the candidate result at the simulate seam and the baseline result directly; it also assumes a validated plan whose only estate-discounted holding is one non-inherited traditional account at a 20 percent flat heir rate, so each result's final-year balance for that account is what turns its ending net worth into the worksheet's after-tax estate. In the no-incomplete-status branch the optional incompleteComputationYears key is omitted, not set to an empty list, as the worksheet states since its 2026-09-18 revision (the first derivation expected an empty list, which the test found); the test asserts the omission and the empty union it stands for. recommendationState has no census family this round and is not published by this record.

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: simple-candidate-evaluation-comparison.md Mutation receipt: simple-candidate-evaluation-comparison.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; evaluateCandidate.ts; moneyLasts.ts

      Is the number of: simple-candidate-evaluation-after-tax-estate-delta, simple-candidate-evaluation-executed-conversion-total, simple-candidate-evaluation-incomplete-computation-years, simple-candidate-evaluation-lifetime-tax-delta, simple-candidate-evaluation-money-lasts-years-delta

  • Simple candidate evaluation lifetime tax delta

    Candidate change in lifetime taxes and penalties relative to the current plan.

    Field: lifetimeTaxDelta Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: optimize-page (lifetime tax change); report (modeled-findings validation "Lifetime tax delta" and candidate rows)

    • Simple candidate evaluation comparison Formula record, justified by derivation

      Purpose: Compare one simple conversion candidate with the shared baseline on the full year-by-year projection.

      Statement: projection/optimizePlan.ts#evaluateSimpleConversionCandidates publishes each SimpleCandidateEvaluation as the sum of the candidate result's YearResult.rothConversion, the candidate-minus-baseline differences of summarizeProjection's endingAfterTaxEstate and lifetimeTaxesAndPenalties, the candidate-minus-baseline difference of lastFundedYear (a result's depletionYear - 1, or its endYear when it never depletes), and the ascending sorted union across both results of the years whose taxComputation.status or hecmComputation.status is incomplete.

      Formula: executedConversionTotal = sum(candidate.years.rothConversion); afterTaxEstateDelta = candidate.endingAfterTaxEstate - baseline.endingAfterTaxEstate; lifetimeTaxDelta = candidate.lifetimeTaxesAndPenalties - baseline.lifetimeTaxesAndPenalties; moneyLastsYearsDelta = lastFundedYear(candidate) - lastFundedYear(baseline); incompleteComputationYears = sorted union of the incomplete years of both results

      • lastFundedYear(result): Last fully funded year: the result's depletionYear - 1, or its endYear when it never depletes (projection/moneyLasts.ts) (unit: calendar year) (domain: integer)
      • candidate.endingAfterTaxEstate: Candidate result summary ending after-tax estate (unit: nominal USD at horizon) (domain: finite)
      • candidate.lifetimeTaxesAndPenalties: Candidate result summary lifetime taxes and penalties (unit: nominal USD over projection) (domain: finite)
      • incomplete(result): Years whose taxComputation.status or hecmComputation.status is incomplete (unit: calendar years) (domain: set of integers)

      Timing: one simple conversion candidate against the plan's shared baseline run

      Rounding: none; the dollar sum and the dollar differences carry binary floating-point representation

      Limits:

      • Every difference is candidate minus baseline, the conversion sum is the candidate result's rows alone, a non-depleting result is funded through its endYear and a depleting one through its depletionYear - 1 (owner decision R15, 2026-09-25; restated 2026-09-26; it replaced the earlier count of depletionYear or endYear + 1, and both shift every result by one year, so every delta is unchanged), and the incomplete years are a de-duplicated ascending union across both results rather than a concatenation. Beyond the worksheet's inputs the smallest exported entry that publishes these fields generates its own fixed set of fill-to-target candidates and runs each one through the ledger, so the test supplies the candidate result at the simulate seam and the baseline result directly; it also assumes a validated plan whose only estate-discounted holding is one non-inherited traditional account at a 20 percent flat heir rate, so each result's final-year balance for that account is what turns its ending net worth into the worksheet's after-tax estate. In the no-incomplete-status branch the optional incompleteComputationYears key is omitted, not set to an empty list, as the worksheet states since its 2026-09-18 revision (the first derivation expected an empty list, which the test found); the test asserts the omission and the empty union it stands for. recommendationState has no census family this round and is not published by this record.

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: simple-candidate-evaluation-comparison.md Mutation receipt: simple-candidate-evaluation-comparison.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; evaluateCandidate.ts; moneyLasts.ts

      Is the number of: simple-candidate-evaluation-after-tax-estate-delta, simple-candidate-evaluation-executed-conversion-total, simple-candidate-evaluation-incomplete-computation-years, simple-candidate-evaluation-lifetime-tax-delta, simple-candidate-evaluation-money-lasts-years-delta

  • Simple candidate evaluation money lasts years delta

    Change in the number of funded plan years for the candidate versus baseline.

    Field: moneyLastsYearsDelta Unit: years Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: report (money-lasts years change); report (modeled-findings validation "Money-lasts delta" and candidate rows)

    • Simple candidate evaluation comparison Formula record, justified by derivation

      Purpose: Compare one simple conversion candidate with the shared baseline on the full year-by-year projection.

      Statement: projection/optimizePlan.ts#evaluateSimpleConversionCandidates publishes each SimpleCandidateEvaluation as the sum of the candidate result's YearResult.rothConversion, the candidate-minus-baseline differences of summarizeProjection's endingAfterTaxEstate and lifetimeTaxesAndPenalties, the candidate-minus-baseline difference of lastFundedYear (a result's depletionYear - 1, or its endYear when it never depletes), and the ascending sorted union across both results of the years whose taxComputation.status or hecmComputation.status is incomplete.

      Formula: executedConversionTotal = sum(candidate.years.rothConversion); afterTaxEstateDelta = candidate.endingAfterTaxEstate - baseline.endingAfterTaxEstate; lifetimeTaxDelta = candidate.lifetimeTaxesAndPenalties - baseline.lifetimeTaxesAndPenalties; moneyLastsYearsDelta = lastFundedYear(candidate) - lastFundedYear(baseline); incompleteComputationYears = sorted union of the incomplete years of both results

      • lastFundedYear(result): Last fully funded year: the result's depletionYear - 1, or its endYear when it never depletes (projection/moneyLasts.ts) (unit: calendar year) (domain: integer)
      • candidate.endingAfterTaxEstate: Candidate result summary ending after-tax estate (unit: nominal USD at horizon) (domain: finite)
      • candidate.lifetimeTaxesAndPenalties: Candidate result summary lifetime taxes and penalties (unit: nominal USD over projection) (domain: finite)
      • incomplete(result): Years whose taxComputation.status or hecmComputation.status is incomplete (unit: calendar years) (domain: set of integers)

      Timing: one simple conversion candidate against the plan's shared baseline run

      Rounding: none; the dollar sum and the dollar differences carry binary floating-point representation

      Limits:

      • Every difference is candidate minus baseline, the conversion sum is the candidate result's rows alone, a non-depleting result is funded through its endYear and a depleting one through its depletionYear - 1 (owner decision R15, 2026-09-25; restated 2026-09-26; it replaced the earlier count of depletionYear or endYear + 1, and both shift every result by one year, so every delta is unchanged), and the incomplete years are a de-duplicated ascending union across both results rather than a concatenation. Beyond the worksheet's inputs the smallest exported entry that publishes these fields generates its own fixed set of fill-to-target candidates and runs each one through the ledger, so the test supplies the candidate result at the simulate seam and the baseline result directly; it also assumes a validated plan whose only estate-discounted holding is one non-inherited traditional account at a 20 percent flat heir rate, so each result's final-year balance for that account is what turns its ending net worth into the worksheet's after-tax estate. In the no-incomplete-status branch the optional incompleteComputationYears key is omitted, not set to an empty list, as the worksheet states since its 2026-09-18 revision (the first derivation expected an empty list, which the test found); the test asserts the omission and the empty union it stands for. recommendationState has no census family this round and is not published by this record.

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: simple-candidate-evaluation-comparison.md Mutation receipt: simple-candidate-evaluation-comparison.mutation.md

      Evidence tests: optimizePlan.evidence.test.ts

      Implemented in: optimizePlan.ts; evaluateCandidate.ts; moneyLasts.ts

      Is the number of: simple-candidate-evaluation-after-tax-estate-delta, simple-candidate-evaluation-executed-conversion-total, simple-candidate-evaluation-incomplete-computation-years, simple-candidate-evaluation-lifetime-tax-delta, simple-candidate-evaluation-money-lasts-years-delta

  • SWR rule result depletion year

    First year a displayed safe-withdrawal rule runs out of investable assets.

    Field: depletionYear Unit: calendar year Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: solver-page (withdrawal rule depletion year)

    • Swr rule depletion year Composition record, justified by derivation

      Purpose: Name the first rule-run year whose post-HECM shortfall clears the ledger tolerance.

      Statement: decisions/swrComparator.ts#compareSwrRules publishes, for each constant-real rule run, the projection's first calendar year whose funding shortfall after any HECM backstop draw is strictly greater than ANNUAL_FUNDING_TOLERANCE_PLAN_DOLLARS, which is 0.005 nominal dollars, or null when no projection year crosses that gate.

      Formula: depletionYear = min { y : shortfallAfterHecm_y > 0.005 }, else null

      • shortfallAfterHecm_y: Year y funding shortfall after any HECM backstop draw (unit: nominal USD) (domain: nonnegative)
      • tolerance: ANNUAL_FUNDING_TOLERANCE_PLAN_DOLLARS (unit: nominal USD) (domain: 0.005)

      Timing: ordered rule-run ledger years

      Rounding: none; strict comparison against the residual budget

      Limits:

      • The comparison is strict, so a residual at or below half a cent is not depletion, and the explicit horizon keeps a shorter run from reading as depletion; the largest-shortfall year is not the answer either. The worksheet's third case, a sole shortfall of exactly 0.005 in one year, was not constructed from real inputs: the ledger funds to its own exact-cent fixed point, and no plan input reaches a residual of exactly half a cent in one year while leaving every other year funded, so the strictness of the comparison is evidenced by the claim and the first two cases only.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: swr-rule-depletion-year.md Mutation receipt: swr-rule-depletion-year.mutation.md

      Evidence tests: swrComparator.evidence.test.ts

      Implemented in: swrComparator.ts

      Is the number of: swr-rule-result-depletion-year

    Fed by: Swr rule rate and initial spend (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • SWR rule result end year

    Final planning year used to evaluate a displayed safe-withdrawal rule.

    Field: endYear Unit: calendar year Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: solver-page (withdrawal rule plan end year)

    • Swr rule end year Composition record, justified by derivation

      Purpose: Publish the rule run's ledger endpoint rather than its depletion year.

      Statement: decisions/swrComparator.ts#compareSwrRules publishes ProjectionResult.endYear, the final calendar year actually used by that safe-withdrawal-rule ledger run, without treating an earlier depletion year as the endpoint.

      Formula: SwrRuleResult.endYear = result.endYear

      • result.endYear: Final calendar year of the rule run (unit: calendar year) (domain: integer)
      • result.depletionYear: Depletion year, present only as a discriminator (unit: calendar year or null) (domain: integer or null)

      Timing: one completed rule run

      Rounding: none; integer calendar year

      Limits:

      • The simulation horizon is not depletion: substituting the depletion year, or recomputing a 30-year inclusive horizon from the start year, each name a different quantity. The worksheet's ledger endpoint and its depletion-year discriminator are supplied as a ProjectionResult literal at the simulate seam, so this proves the comparator's selection only; the ledger's own horizon arithmetic is out of scope for this record.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: swr-rule-end-year.md Mutation receipt: swr-rule-end-year.mutation.md

      Evidence tests: swrComparator.evidence.test.ts

      Implemented in: swrComparator.ts

      Is the number of: swr-rule-result-end-year

    Fed by: Swr rule rate and initial spend (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • SWR rule result ending after tax estate

    After-tax estate left by a displayed safe-withdrawal rule at the end of the plan.

    Field: endingAfterTaxEstate Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: solver-page (withdrawal rule ending after-tax estate); solver-page (SWR rule rows ending after-tax estate (deflated for display))

    • Swr rule ending after tax estate Composition record, justified by derivation

      Purpose: Republish the rule run's already composed after-tax estate.

      Statement: decisions/swrComparator.ts#compareSwrRules republishes the rule run's nominal ProjectionSummary.endingAfterTaxEstate as that rule's ending after-tax estate, without further discounting or recomputation.

      Formula: SwrRuleResult.endingAfterTaxEstate = summary.endingAfterTaxEstate

      • summary.endingAfterTaxEstate: Rule-run after-tax estate from the upstream summary (unit: nominal USD) (domain: finite)
      • summary.endingEstateHeirTax: Heir-tax discount, present only as a discriminator (unit: nominal USD) (domain: nonnegative)

      Timing: one completed rule run

      Rounding: none; copies the supplied summary value

      Limits:

      • Estate tax discounting belongs to the upstream summary and must not be applied twice; publishing ending net worth instead is a different quantity. The worksheet's rule-run ledger is supplied as a ProjectionResult literal at the simulate seam, so the summary composition and the comparator's publication are both the real functions while the ledger run itself is not exercised here.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: swr-rule-ending-after-tax-estate.md Mutation receipt: swr-rule-ending-after-tax-estate.mutation.md

      Evidence tests: swrComparator.evidence.test.ts

      Implemented in: swrComparator.ts

      Is the number of: swr-rule-result-ending-after-tax-estate

    Fed by: Projection summary ending after tax estate (composition record, 6 of 6 gates pass); Swr rule rate and initial spend (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • SWR rule result initial annual spend

    First-year spending supported by a displayed safe-withdrawal rule.

    Field: initialAnnualSpend Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: solver-page (withdrawal rule initial annual spend)

    • Swr rule rate and initial spend Model record, justified by derivation

      Purpose: Set initial spending from three published withdrawal-rate parameterizations.

      Statement: decisions/swrComparator.ts#compareSwrRules assigns Bengen 4.7%, Morningstar 3.9%, or ERN 1.75%+0.5(100/CAPE) and multiplies that percent by starting investable dollars to set constant-real initial annual spending before a same-plan ledger comparison.

      Formula: rates = (4.7,3.9,1.75+0.5*(100/CAPE)); initialSpend = startingInvestable * rate/100

      • CAPE: Cyclically adjusted price/earnings ratio (unit: 1) (domain: positive)
      • startingInvestable: Initial investable portfolio (unit: today USD) (domain: nonnegative)

      Timing: initial constant-real annual spending, before ledger comparison

      Rounding: none

      Limits:

      • Published rule parameterizations are planning lenses, not household safety guarantees. The worksheet pins rates and initial spending only; depletion, horizon, estate, and taxes come from the downstream ledger and are feeds.

      Provenance: derived by codex, implemented by codex.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: swr-rule-rate-and-initial-spend.md Mutation receipt: swr-rule-rate-and-initial-spend.mutation.md

      Evidence tests: swrComparator.evidence.test.ts

      Implemented in: swrComparator.ts

      Is the number of: swr-rule-result-initial-rate-pct, swr-rule-result-initial-annual-spend

      Feeds: swr-rule-result-depletion-year, swr-rule-result-end-year, swr-rule-result-ending-after-tax-estate, swr-rule-result-lifetime-taxes-and-penalties

    Fed by: Starting investable: sum of listed account balances (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • SWR rule result initial rate pct

    Initial portfolio withdrawal rate used by a displayed safe-withdrawal rule.

    Field: initialRatePct Unit: percent Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: solver-page (withdrawal rule initial rate)

    • Swr rule rate and initial spend Model record, justified by derivation

      Purpose: Set initial spending from three published withdrawal-rate parameterizations.

      Statement: decisions/swrComparator.ts#compareSwrRules assigns Bengen 4.7%, Morningstar 3.9%, or ERN 1.75%+0.5(100/CAPE) and multiplies that percent by starting investable dollars to set constant-real initial annual spending before a same-plan ledger comparison.

      Formula: rates = (4.7,3.9,1.75+0.5*(100/CAPE)); initialSpend = startingInvestable * rate/100

      • CAPE: Cyclically adjusted price/earnings ratio (unit: 1) (domain: positive)
      • startingInvestable: Initial investable portfolio (unit: today USD) (domain: nonnegative)

      Timing: initial constant-real annual spending, before ledger comparison

      Rounding: none

      Limits:

      • Published rule parameterizations are planning lenses, not household safety guarantees. The worksheet pins rates and initial spending only; depletion, horizon, estate, and taxes come from the downstream ledger and are feeds.

      Provenance: derived by codex, implemented by codex.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: swr-rule-rate-and-initial-spend.md Mutation receipt: swr-rule-rate-and-initial-spend.mutation.md

      Evidence tests: swrComparator.evidence.test.ts

      Implemented in: swrComparator.ts

      Is the number of: swr-rule-result-initial-rate-pct, swr-rule-result-initial-annual-spend

      Feeds: swr-rule-result-depletion-year, swr-rule-result-end-year, swr-rule-result-ending-after-tax-estate, swr-rule-result-lifetime-taxes-and-penalties

  • SWR rule result lifetime taxes and penalties

    Total taxes and penalties paid under a displayed safe-withdrawal rule.

    Field: lifetimeTaxesAndPenalties Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: solver-page (withdrawal rule lifetime tax and penalties)

    • Swr rule lifetime taxes and penalties Composition record, justified by derivation

      Purpose: Republish the rule run's combined lifetime taxes and penalties.

      Statement: decisions/swrComparator.ts#compareSwrRules republishes the rule run's nominal ProjectionSummary.lifetimeTaxesAndPenalties as the taxes-and-penalties result for that constant-real spending rule, without another aggregation.

      Formula: SwrRuleResult.lifetimeTaxesAndPenalties = summary.lifetimeTaxesAndPenalties

      • summary.lifetimeTaxesAndPenalties: Rule-run lifetime taxes and penalties from the upstream summary (unit: nominal USD) (domain: finite)

      Timing: one completed rule run

      Rounding: none; copies the supplied summary value

      Limits:

      • The upstream summary already sums all annual taxes and penalties, so publishing tax alone, or adding the separately displayed penalty amount to the already combined figure, changes the published quantity. The worksheet's annual tax and penalty rows are supplied as a ProjectionResult literal at the simulate seam; the summary aggregation and the comparator's publication are the real functions.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: swr-rule-lifetime-taxes-and-penalties.md Mutation receipt: swr-rule-lifetime-taxes-and-penalties.mutation.md

      Evidence tests: swrComparator.evidence.test.ts

      Implemented in: swrComparator.ts

      Is the number of: swr-rule-result-lifetime-taxes-and-penalties

    Fed by: Projection summary lifetime taxes and penalties (composition record, 6 of 6 gates pass); Swr rule rate and initial spend (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Optimizer schedule ending after tax objective

    The value of the conversion optimizer's objective at the schedule its solver returned: its linear model's end-of-horizon tax-free and taxable buckets in full and its traditional and inherited traditional buckets net of the plan's heir rate, deflated to today's dollars by the plan's general-inflation factor for its last year (the engine's dollar basis), plus a tie-break of one millionth of a dollar per converted dollar; none when the solve has no solution. The solver's own figure, not the after-tax estate the projection of the same schedule ends with.

    Field: Optimizer's own ending after-tax wealth Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: mcp (run_optimizer.schedule.endingAfterTax (null when the solve has no solution))

    • Optimizer's own ending after-tax wealth and lifetime tax Model record, justified by derivation

      Purpose: What the conversion optimizer's solver reports as its schedule's ending after-tax wealth and lifetime tax: its own linear model's figures, which differ from what the projection of the same schedule shows.

      Statement: strategies/optimizer.ts#optimizeSchedule solves, with HiGHS, the multi-year conversion and withdrawal model #buildOptimizerModel writes from the input projection/optimizePlan.ts#buildOptimizerInput builds, reads HiGHS's raw solution (which HiGHS writes to 16 significant digits; the engine reads it through a wrapper around the highs package's solution writer, not the package's six-digit parse of the pretty print), and publishes two figures with the schedule; RetireGolden-MCP returns them (run_optimizer.schedule) as the solver computed them, not read from a projection of that schedule: when the schedule has conversions, projection/optimizePlan.ts#optimizePlan projects them to clean them (postProcessExactLedgerSchedule), and it always runs its tournament, which prices candidates on the full projection, but it publishes those results separately (RetireGolden-MCP's run_optimizer.tournament), never in these two figures. Both are published when the solve has a solution, that is when the raw solution's primal status is Feasible (an optimum, or the incumbent a node or time limit stopped at), and both then describe that solution; a solve with no solution (an infeasible model, or a limit reached before any incumbent) publishes both as null, with an empty schedule. endingAfterTax is the objective value in the raw solution, rounded to cents: c_D times the tax-free bucket (Roth, cash and HSA) and the taxable bucket at the end of the last year, plus c_DL times the traditional and inherited traditional buckets, plus 0.000001 times every year's conversion, where c_D is 1 / f, f the plan's general-inflation factor for its last year on the engine's dollar basis (projection/dollarBasis.ts#planDollarBasis: 1 + inflation compounded left to right over the n − 1 years from the first plan year to the last, so 1 for a one-year plan), written into the model text to at most eight decimal places (1 / 1.025 is written 0.97560976), and c_DL is the unrounded deflator 1 / f times one minus the heir rate L (the plan's heirTaxRatePct over 100 unless a caller passes liquidationRatePct), that product then written to at most eight decimal places, not the written c_D times one minus L. It is in today's dollars at the start of the plan on the engine's basis: the projection divides its last year's figures by the same f. lifetimeTax is, rounded to cents, the sum over the plan's years in each year's nominal dollars of the federal bracket tax on the year's published taxable ordinary income, that income times the year's flat state rate, the state bracket tax on it when the year has state brackets, the cumulative IRMAA surcharges of the year's published tier (each tier's Part B increase over the tier below and its Part D increase, times 12, summed up to the tier) and the published realized gain times the solver's gain rate (0.15 when the plan has a taxable balance). Both are the solver's own figures and differ from the projection of the same schedule's ending after-tax estate and lifetime taxes and penalties.

      Formula: with a solution: endingAfterTax = round2(c_D × (O_n + X_n) + c_DL × (T_n + I_n) + 0.000001 × Σ_t conv_t), c_D = fmt8(1 / f), c_DL = fmt8((1 / f) × (1 − L)), f = the product of (1 + i) over the n − 1 years from the first plan year to the last; lifetimeTax = round2(Σ_t [F_t(ti_t) + s_t × ti_t + S_t(ti_t) + Σ_{k ≤ tier_t} m_k + r × gain_t]); with no solution: endingAfterTax = lifetimeTax = null

      • O_n, X_n: The solver's tax-free bucket (Roth, cash and HSA) and taxable bucket at the end of the last plan year (unit: nominal USD) (domain: nonnegative; X_n is 0 when the plan has no taxable bucket)
      • T_n, I_n: The solver's traditional and inherited traditional buckets at the end of the last plan year (unit: nominal USD) (domain: nonnegative)
      • conv_t: The solver's conversion in year t (unit: nominal USD) (domain: nonnegative)
      • i: The plan's inflation rate (unit: fraction per year) (domain: finite)
      • n: Number of plan years in the solve (unit: years) (domain: positive integer)
      • f: The plan's general-inflation factor for its last year on the engine's dollar basis, the factor the projection publishes as that year's inflationScale (unit: none) (domain: positive; 1 when n is 1)
      • L: Heir tax rate the traditional buckets are haircut at: heirTaxRatePct, or liquidationRatePct when a caller passes it, over 100 (unit: fraction) (domain: 0..1)
      • fmt8: The model text's number format: a whole number as it is, anything else to eight decimal places (unit: none) (domain: finite)
      • ti_t: Year t's published taxable ordinary income: the raw solution's value in cents (unit: nominal USD) (domain: nonnegative)
      • F_t, S_t: Year t's federal bracket tax for the filing status, and its state bracket tax (0 when the year has no state brackets) (unit: nominal USD) (domain: nonnegative)
      • s_t: Year t's flat state and local rate (unit: fraction) (domain: 0..1)
      • m_k: IRMAA tier k's annual increase over tier k − 1: its Part B total minus the lower one's, plus its Part D amount minus the lower one's, times 12 (unit: nominal USD) (domain: nonnegative)
      • tier_t, gain_t: Year t's published IRMAA tier and realized gain (unit: tier index; nominal USD) (domain: 0..5; nonnegative)
      • r: The solver's single gain rate (unit: fraction) (domain: 0.15 with a taxable bucket, else 0)

      Timing: once per solve; the lifetime tax adds every plan year

      Rounding: Each figure to cents. The model's coefficients and constants are written to at most eight decimal places; the objective and the per-year values the lifetime tax is computed from are read from HiGHS's raw solution, to 16 significant digits, and the per-year values are rounded to cents before the lifetime tax is computed from them.

      Limits:

      • Not the projection of the same schedule: when the schedule has conversions, optimizePlan projects them to clean them, and it runs its tournament on the full projection, but these two figures are the solver's, and RetireGolden-MCP's run_optimizer publishes the tournament's results separately. The solver's buckets hold only the investable accounts (no property, debt, insurance, ladder, pension or annuity value; a property sale's net proceeds and a permanent-life death benefit reach it only as the year's cash, and a HECM draw not at all) and grow at one blended rate a year; its tax is linear in its variables, resting on the registered approximations irc-1-h-optimizer-flat-fifteen-percent-preferential-rate, irc-86-a-optimizer-taxable-social-security-linearization, usc-42-1395r-i-3-1395w-113-a-7-optimizer-beneficiary-month-exposure and usc-42-1395r-i-5-optimizer-uniform-threshold-indexing; and the heir rate falls flat on every traditional dollar, with no basis share, no spouse destination and no HSA heir tax. Measured on the library example bracket-fill-roth (2026-10-10, the solve optimal in milliseconds): endingAfterTax is $282,266.26, while the projection of the same schedule ends with an after-tax estate of $470,194.78 in 2049, $266,458.08 in today's dollars on the engine's basis, which is the solver's basis too; lifetimeTax is $181,976.47, against the projection's lifetime taxes and penalties of $251,819.64. Those dollars are measured, not derived; the evidence holds each of the five to the figure stated here, and a figure more than half a cent from the stated value fails it.
      • lifetimeTax counts the IRMAA surcharges the projection books as Medicare premiums, prices every realized gain at one rate, carries no penalty, and is computed from the taxable income and gain as published, in cents, not from the solver's own values; in the evidence's two-year case both give $47,663.94.
      • endingAfterTax includes the reward of one millionth of a dollar per converted dollar ($0.11 in the evidence's one-year case), and its weights are the eight-decimal forms of the deflator and the haircut (0.56669724 and 0.42502293 for bracket-fill-roth's 24-year plan, deflated over its 23 years).
      • A solve stops at HiGHS's node limit (options.maxNodes, 5,000 branch-and-bound nodes unless a caller sets one; status node-limit), whose stop does not depend on the machine's speed: HiGHS runs single-threaded in the one WebAssembly build of the pinned highs package, whose floating-point arithmetic WebAssembly specifies exactly, so the same input is expected to stop at the same incumbent on any machine (seen on repeated runs on one machine, not measured across machines), and both figures then describe that incumbent, not a proven optimum. Measured on rmd-irmaa's model, the only library example that reaches it (2026-10-10, highs 1.15.2 solving that model directly, not derived): the node limit stops at an objective of $744,755.92 in about 8 seconds, 20,000 nodes stop at the same incumbent, and the best objective found in five minutes was $744,815.16, never proven optimal, so the published incumbent is $59.24 (0.008%) below it. The time limit (options.timeLimitSec, 60 seconds unless a caller sets one; status timeout) remains as a guard against a hang; a machine too slow to reach the node limit within it stops there instead, and its figures then depend on that machine. No library example reaches it here.
      • A solve with no solution publishes both figures as null and an empty schedule, and the status tells an infeasible model from a limit reached before any incumbent. Run as RetireGolden-MCP runs them (measured 2026-10-10), 10 of the 29 library examples have no solution, all infeasible, and each is an example whose own projection depletes; projection/optimizePlan.ts#optimizePlan publishes that depletion year beside a first solve with no solution (OptimizedSchedule.projectionDepletionYear), read from the projection, not assumed from the solver.
      • Which solution HiGHS returns where more than one is optimal belongs to the highs package the engine pins (1.15.2), and so does the format of its raw solution: a writer that no longer prints it as the engine reads it makes every solve throw an error that says so, rather than publish; an upgrade that puts any figure the evidence compares more than half a cent from the value stated here fails it.
      • Evidence: two cases derived by hand from the library example rmd-irmaa's facts, entered as solver inputs (one year, and two years varied: an inherited IRA drawn $40,000 a year, a smaller traditional IRA, no cash, a $60,000 one-off cost, a 10% heir rate and IRMAA on the same year's income), two infeasible inputs, one with tier binaries and one without, and bracket-fill-roth run as RetireGolden-MCP runs it. The hand cases solve without the example's qualified charitable distribution ($15,000 a year from the IRA, which the plan-built input carries as an exclusion from the year's ordinary income and a diversion of its required distribution's cash, and which would change the one-year case's figures), the senior deduction's phase-out, the taxable Social Security phase-in and state tax, which the plan-built input adds where they apply, and with IRMAA on the same year's income where the plan-built input uses the income two years before; the readout is the same.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: optimizer-schedule-objective-and-lifetime-tax.md Mutation receipt: optimizer-schedule-objective-and-lifetime-tax.mutation.md

      Evidence tests: optimizer.schedule.evidence.test.ts

      Implemented in: optimizer.ts; optimizePlan.ts; dollarBasis.ts

      Is the number of: optimizer-schedule-ending-after-tax-objective, optimizer-schedule-lifetime-tax

    Fed by: Optimizer's per-year solution (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Optimizer schedule lifetime tax

    The tax the conversion optimizer's readout charges the schedule its solver returned, summed over the plan's years in each year's nominal dollars: federal bracket tax and state tax on the solver's taxable ordinary income, the year's cumulative IRMAA surcharges, and the solver's single 15% rate on its realized gains. None when the solve has no solution. The solver's own figure, not the projection's lifetime taxes and penalties of the same schedule.

    Field: Optimizer's own modeled lifetime tax Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: mcp (run_optimizer.schedule.lifetimeTax (null when the solve has no solution))

    • Optimizer's own ending after-tax wealth and lifetime tax Model record, justified by derivation

      Purpose: What the conversion optimizer's solver reports as its schedule's ending after-tax wealth and lifetime tax: its own linear model's figures, which differ from what the projection of the same schedule shows.

      Statement: strategies/optimizer.ts#optimizeSchedule solves, with HiGHS, the multi-year conversion and withdrawal model #buildOptimizerModel writes from the input projection/optimizePlan.ts#buildOptimizerInput builds, reads HiGHS's raw solution (which HiGHS writes to 16 significant digits; the engine reads it through a wrapper around the highs package's solution writer, not the package's six-digit parse of the pretty print), and publishes two figures with the schedule; RetireGolden-MCP returns them (run_optimizer.schedule) as the solver computed them, not read from a projection of that schedule: when the schedule has conversions, projection/optimizePlan.ts#optimizePlan projects them to clean them (postProcessExactLedgerSchedule), and it always runs its tournament, which prices candidates on the full projection, but it publishes those results separately (RetireGolden-MCP's run_optimizer.tournament), never in these two figures. Both are published when the solve has a solution, that is when the raw solution's primal status is Feasible (an optimum, or the incumbent a node or time limit stopped at), and both then describe that solution; a solve with no solution (an infeasible model, or a limit reached before any incumbent) publishes both as null, with an empty schedule. endingAfterTax is the objective value in the raw solution, rounded to cents: c_D times the tax-free bucket (Roth, cash and HSA) and the taxable bucket at the end of the last year, plus c_DL times the traditional and inherited traditional buckets, plus 0.000001 times every year's conversion, where c_D is 1 / f, f the plan's general-inflation factor for its last year on the engine's dollar basis (projection/dollarBasis.ts#planDollarBasis: 1 + inflation compounded left to right over the n − 1 years from the first plan year to the last, so 1 for a one-year plan), written into the model text to at most eight decimal places (1 / 1.025 is written 0.97560976), and c_DL is the unrounded deflator 1 / f times one minus the heir rate L (the plan's heirTaxRatePct over 100 unless a caller passes liquidationRatePct), that product then written to at most eight decimal places, not the written c_D times one minus L. It is in today's dollars at the start of the plan on the engine's basis: the projection divides its last year's figures by the same f. lifetimeTax is, rounded to cents, the sum over the plan's years in each year's nominal dollars of the federal bracket tax on the year's published taxable ordinary income, that income times the year's flat state rate, the state bracket tax on it when the year has state brackets, the cumulative IRMAA surcharges of the year's published tier (each tier's Part B increase over the tier below and its Part D increase, times 12, summed up to the tier) and the published realized gain times the solver's gain rate (0.15 when the plan has a taxable balance). Both are the solver's own figures and differ from the projection of the same schedule's ending after-tax estate and lifetime taxes and penalties.

      Formula: with a solution: endingAfterTax = round2(c_D × (O_n + X_n) + c_DL × (T_n + I_n) + 0.000001 × Σ_t conv_t), c_D = fmt8(1 / f), c_DL = fmt8((1 / f) × (1 − L)), f = the product of (1 + i) over the n − 1 years from the first plan year to the last; lifetimeTax = round2(Σ_t [F_t(ti_t) + s_t × ti_t + S_t(ti_t) + Σ_{k ≤ tier_t} m_k + r × gain_t]); with no solution: endingAfterTax = lifetimeTax = null

      • O_n, X_n: The solver's tax-free bucket (Roth, cash and HSA) and taxable bucket at the end of the last plan year (unit: nominal USD) (domain: nonnegative; X_n is 0 when the plan has no taxable bucket)
      • T_n, I_n: The solver's traditional and inherited traditional buckets at the end of the last plan year (unit: nominal USD) (domain: nonnegative)
      • conv_t: The solver's conversion in year t (unit: nominal USD) (domain: nonnegative)
      • i: The plan's inflation rate (unit: fraction per year) (domain: finite)
      • n: Number of plan years in the solve (unit: years) (domain: positive integer)
      • f: The plan's general-inflation factor for its last year on the engine's dollar basis, the factor the projection publishes as that year's inflationScale (unit: none) (domain: positive; 1 when n is 1)
      • L: Heir tax rate the traditional buckets are haircut at: heirTaxRatePct, or liquidationRatePct when a caller passes it, over 100 (unit: fraction) (domain: 0..1)
      • fmt8: The model text's number format: a whole number as it is, anything else to eight decimal places (unit: none) (domain: finite)
      • ti_t: Year t's published taxable ordinary income: the raw solution's value in cents (unit: nominal USD) (domain: nonnegative)
      • F_t, S_t: Year t's federal bracket tax for the filing status, and its state bracket tax (0 when the year has no state brackets) (unit: nominal USD) (domain: nonnegative)
      • s_t: Year t's flat state and local rate (unit: fraction) (domain: 0..1)
      • m_k: IRMAA tier k's annual increase over tier k − 1: its Part B total minus the lower one's, plus its Part D amount minus the lower one's, times 12 (unit: nominal USD) (domain: nonnegative)
      • tier_t, gain_t: Year t's published IRMAA tier and realized gain (unit: tier index; nominal USD) (domain: 0..5; nonnegative)
      • r: The solver's single gain rate (unit: fraction) (domain: 0.15 with a taxable bucket, else 0)

      Timing: once per solve; the lifetime tax adds every plan year

      Rounding: Each figure to cents. The model's coefficients and constants are written to at most eight decimal places; the objective and the per-year values the lifetime tax is computed from are read from HiGHS's raw solution, to 16 significant digits, and the per-year values are rounded to cents before the lifetime tax is computed from them.

      Limits:

      • Not the projection of the same schedule: when the schedule has conversions, optimizePlan projects them to clean them, and it runs its tournament on the full projection, but these two figures are the solver's, and RetireGolden-MCP's run_optimizer publishes the tournament's results separately. The solver's buckets hold only the investable accounts (no property, debt, insurance, ladder, pension or annuity value; a property sale's net proceeds and a permanent-life death benefit reach it only as the year's cash, and a HECM draw not at all) and grow at one blended rate a year; its tax is linear in its variables, resting on the registered approximations irc-1-h-optimizer-flat-fifteen-percent-preferential-rate, irc-86-a-optimizer-taxable-social-security-linearization, usc-42-1395r-i-3-1395w-113-a-7-optimizer-beneficiary-month-exposure and usc-42-1395r-i-5-optimizer-uniform-threshold-indexing; and the heir rate falls flat on every traditional dollar, with no basis share, no spouse destination and no HSA heir tax. Measured on the library example bracket-fill-roth (2026-10-10, the solve optimal in milliseconds): endingAfterTax is $282,266.26, while the projection of the same schedule ends with an after-tax estate of $470,194.78 in 2049, $266,458.08 in today's dollars on the engine's basis, which is the solver's basis too; lifetimeTax is $181,976.47, against the projection's lifetime taxes and penalties of $251,819.64. Those dollars are measured, not derived; the evidence holds each of the five to the figure stated here, and a figure more than half a cent from the stated value fails it.
      • lifetimeTax counts the IRMAA surcharges the projection books as Medicare premiums, prices every realized gain at one rate, carries no penalty, and is computed from the taxable income and gain as published, in cents, not from the solver's own values; in the evidence's two-year case both give $47,663.94.
      • endingAfterTax includes the reward of one millionth of a dollar per converted dollar ($0.11 in the evidence's one-year case), and its weights are the eight-decimal forms of the deflator and the haircut (0.56669724 and 0.42502293 for bracket-fill-roth's 24-year plan, deflated over its 23 years).
      • A solve stops at HiGHS's node limit (options.maxNodes, 5,000 branch-and-bound nodes unless a caller sets one; status node-limit), whose stop does not depend on the machine's speed: HiGHS runs single-threaded in the one WebAssembly build of the pinned highs package, whose floating-point arithmetic WebAssembly specifies exactly, so the same input is expected to stop at the same incumbent on any machine (seen on repeated runs on one machine, not measured across machines), and both figures then describe that incumbent, not a proven optimum. Measured on rmd-irmaa's model, the only library example that reaches it (2026-10-10, highs 1.15.2 solving that model directly, not derived): the node limit stops at an objective of $744,755.92 in about 8 seconds, 20,000 nodes stop at the same incumbent, and the best objective found in five minutes was $744,815.16, never proven optimal, so the published incumbent is $59.24 (0.008%) below it. The time limit (options.timeLimitSec, 60 seconds unless a caller sets one; status timeout) remains as a guard against a hang; a machine too slow to reach the node limit within it stops there instead, and its figures then depend on that machine. No library example reaches it here.
      • A solve with no solution publishes both figures as null and an empty schedule, and the status tells an infeasible model from a limit reached before any incumbent. Run as RetireGolden-MCP runs them (measured 2026-10-10), 10 of the 29 library examples have no solution, all infeasible, and each is an example whose own projection depletes; projection/optimizePlan.ts#optimizePlan publishes that depletion year beside a first solve with no solution (OptimizedSchedule.projectionDepletionYear), read from the projection, not assumed from the solver.
      • Which solution HiGHS returns where more than one is optimal belongs to the highs package the engine pins (1.15.2), and so does the format of its raw solution: a writer that no longer prints it as the engine reads it makes every solve throw an error that says so, rather than publish; an upgrade that puts any figure the evidence compares more than half a cent from the value stated here fails it.
      • Evidence: two cases derived by hand from the library example rmd-irmaa's facts, entered as solver inputs (one year, and two years varied: an inherited IRA drawn $40,000 a year, a smaller traditional IRA, no cash, a $60,000 one-off cost, a 10% heir rate and IRMAA on the same year's income), two infeasible inputs, one with tier binaries and one without, and bracket-fill-roth run as RetireGolden-MCP runs it. The hand cases solve without the example's qualified charitable distribution ($15,000 a year from the IRA, which the plan-built input carries as an exclusion from the year's ordinary income and a diversion of its required distribution's cash, and which would change the one-year case's figures), the senior deduction's phase-out, the taxable Social Security phase-in and state tax, which the plan-built input adds where they apply, and with IRMAA on the same year's income where the plan-built input uses the income two years before; the readout is the same.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: optimizer-schedule-objective-and-lifetime-tax.md Mutation receipt: optimizer-schedule-objective-and-lifetime-tax.mutation.md

      Evidence tests: optimizer.schedule.evidence.test.ts

      Implemented in: optimizer.ts; optimizePlan.ts; dollarBasis.ts

      Is the number of: optimizer-schedule-ending-after-tax-objective, optimizer-schedule-lifetime-tax

    Fed by: Optimizer's per-year solution (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Optimizer schedule withdrawal by bucket annual

    For each plan year, what the conversion optimizer's solution withdraws from each of its buckets: traditional (the required distribution included), inherited traditional, the tax-free bucket (Roth, cash and HSA) and the taxable bucket, in that year's nominal dollars, to the cent. The solver's plan, not the withdrawals the projection makes (withdrawals-by-category-annual), which follow the plan's withdrawal order and its own taxes.

    Field: Optimizer's planned withdrawals by bucket Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: mcp (run_optimizer.schedule.schedule[].withdrawTraditional / .withdrawInheritedTraditional / .withdrawOther / .withdrawTaxable)

    • Optimizer's per-year solution Model record, justified by derivation

      Purpose: What the conversion optimizer's solver plans for each year: its conversion, its withdrawal from each bucket, the gain and taxable income it books, and its year-end balances.

      Statement: strategies/optimizer.ts#optimizeSchedule publishes OptimizedSchedule.schedule, one OptimizedYear per plan year in order, from the solution HiGHS returns for the model #buildOptimizerModel writes, when the solve has one (the raw solution's primal status Feasible: an optimum, or the incumbent a node or time limit stopped at), and no rows when it has none (an infeasible model, or a limit reached before any incumbent). conversion, withdrawTraditional (the required-distribution floor included), withdrawInheritedTraditional, withdrawOther (from the tax-free bucket of Roth, cash and HSA), withdrawTaxable and taxableOrdinary are the solution's values of the year's conversion, withdrawal, sale and taxable-income columns; endTrad, endInheritedTrad, endOther and endTaxable are the four buckets' balances at the start of the next year, after the year's flows and growth, endTaxable 0 when the plan has no taxable bucket; taxableGainRealized is the published withdrawTaxable times the gain fraction min(1, max(0, 1 − the taxable basis ratio)); irmaaTier is the highest tier whose binary is above one half, 0 for none. The engine reads each value from HiGHS's raw solution, which HiGHS writes to 16 significant digits, through a wrapper around the highs package's solution writer (not the package's six-digit parse of the pretty print); each is then rounded to cents, and a column the solution does not carry reads 0. In the model, taxable ordinary income is at least the year's ordinary income base plus the taxable part of its conversion and its traditional and inherited withdrawals, less the standard deduction with the age-65 addition (and the senior deduction net of its phase-out when the solve prices it), and at least 0; minimizing tax holds it there. The tax-free withdrawal enters the model only as a difference with the surplus the year saves, which is not published, so a solution sets one of the two to 0; and a reward of one millionth of a dollar per converted dollar reports traditional drainage as a conversion, leaving withdrawTraditional at its floor unless the year needs the cash. OptimizedSchedule.conversions lists each year whose conversion is above $0.50, with the same amount, and is empty with no solution. Units: each year's nominal dollars.

      Formula: with a solution: v_t = round2(column_t); taxableGainRealized_t = round2(withdrawTaxable_t × gf), gf = min(1, max(0, 1 − basisRatio)); irmaaTier_t = max{k : b_{t,k} > 0.5}, else 0; endBucket_t = bucket_{t+1}; conversions = [(t, conversion_t) : conversion_t > 0.5]; with no solution: schedule = [], conversions = []

      • column_t: The raw solution's value of year t's conversion, withdrawal, sale, taxable-income or next-year balance column, as HiGHS writes it (16 significant digits) (unit: nominal USD) (domain: nonnegative; 0 when the solution carries none)
      • basisRatio: The opening taxable balance's cost basis over the balance, one ratio for the whole plan (unit: fraction) (domain: 0..1; 1 when not given)
      • b_{t,k}: The solution's value of year t's IRMAA tier k binary (unit: none) (domain: 0 or 1)

      Timing: every plan year of one solve

      Rounding: cents of the raw solution's value

      Limits:

      • Cents of the solution: a planned conversion of $107,028.8775 is published as $107,028.88, in schedule[] and in schedule.conversions[] alike. Which solution HiGHS returns where more than one is optimal belongs to the highs package the engine pins (1.15.2), and so does the format of its raw solution: a solve whose raw solution the engine cannot read throws an error rather than publish; an upgrade that puts any figure the evidence compares more than half a cent from the value stated here fails it.
      • A node-limit or timeout status publishes the rows of the incumbent HiGHS held when it stopped, which is not a proven optimum (optimizer-schedule-objective-and-lifetime-tax states the two limits); a solve with no solution publishes no rows, and the status says whether the model was infeasible or a limit came first.
      • The solver's plan, not what the projection of the same conversions does. The projection executes each conversion only up to what the owners' accounts hold (the cleaned schedule), funds spending in the plan's own withdrawal order and taxes each account by its own basis and rules, so its withdrawals, realized gains, taxable income and balances (withdrawals-by-category-annual, tax-realized-gains-annual, accounts-balance-per-account-annual) can differ from these in every year. The solver's buckets grow at one blended rate a year and its sale realizes one gain fraction for the whole plan.
      • withdrawOther is the net draw on the tax-free bucket when the year needs one and 0 when the year saves; the saving itself is not published and shows only in the next year-end balance (in the evidence's two-year case, $7,057.25 saved in 2027 ends as $7,410.11).
      • irmaaTier is a classification, a census exclusion; its surcharges enter the solver's lifetime tax.
      • Evidence: the two cases of optimizer-schedule-objective-and-lifetime-tax, derived by hand from the library example rmd-irmaa's facts without its qualified charitable distribution: the one-year case's conversion through the 24% bracket, required distribution, tax-free draw and year-end balances, and the two-year case's required distributions, inherited draws, sale and its gain, two tiers and saved surplus; and its two infeasible inputs, which publish no rows. A year with both a conversion and a sale, and an inherited distribution set by a divisor, are not exercised; they follow the same readout.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: optimizer-schedule-year-solution.md Mutation receipt: optimizer-schedule-year-solution.mutation.md

      Evidence tests: optimizer.schedule.evidence.test.ts

      Implemented in: optimizer.ts

      Is the number of: optimizer-recommended-conversion-annual, optimizer-schedule-withdrawal-by-bucket-annual, optimizer-schedule-taxable-gain-realized-annual, optimizer-schedule-taxable-ordinary-income-annual, optimizer-schedule-ending-balance-by-bucket-annual

      Feeds: optimizer-schedule-lifetime-tax, optimizer-schedule-ending-after-tax-objective, optimizer-schedule-conversion-total

  • Optimizer schedule taxable gain realized annual

    For each plan year, the long-term gain the conversion optimizer's readout books on its taxable-bucket withdrawal: the published withdrawal times one gain fraction for the whole plan (one minus the opening taxable basis ratio), in that year's nominal dollars. Not the projection's realized gains (tax-realized-gains-annual), which follow each account's basis.

    Field: Optimizer's realized gain by year Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: mcp (run_optimizer.schedule.schedule[].taxableGainRealized)

    • Optimizer's per-year solution Model record, justified by derivation

      Purpose: What the conversion optimizer's solver plans for each year: its conversion, its withdrawal from each bucket, the gain and taxable income it books, and its year-end balances.

      Statement: strategies/optimizer.ts#optimizeSchedule publishes OptimizedSchedule.schedule, one OptimizedYear per plan year in order, from the solution HiGHS returns for the model #buildOptimizerModel writes, when the solve has one (the raw solution's primal status Feasible: an optimum, or the incumbent a node or time limit stopped at), and no rows when it has none (an infeasible model, or a limit reached before any incumbent). conversion, withdrawTraditional (the required-distribution floor included), withdrawInheritedTraditional, withdrawOther (from the tax-free bucket of Roth, cash and HSA), withdrawTaxable and taxableOrdinary are the solution's values of the year's conversion, withdrawal, sale and taxable-income columns; endTrad, endInheritedTrad, endOther and endTaxable are the four buckets' balances at the start of the next year, after the year's flows and growth, endTaxable 0 when the plan has no taxable bucket; taxableGainRealized is the published withdrawTaxable times the gain fraction min(1, max(0, 1 − the taxable basis ratio)); irmaaTier is the highest tier whose binary is above one half, 0 for none. The engine reads each value from HiGHS's raw solution, which HiGHS writes to 16 significant digits, through a wrapper around the highs package's solution writer (not the package's six-digit parse of the pretty print); each is then rounded to cents, and a column the solution does not carry reads 0. In the model, taxable ordinary income is at least the year's ordinary income base plus the taxable part of its conversion and its traditional and inherited withdrawals, less the standard deduction with the age-65 addition (and the senior deduction net of its phase-out when the solve prices it), and at least 0; minimizing tax holds it there. The tax-free withdrawal enters the model only as a difference with the surplus the year saves, which is not published, so a solution sets one of the two to 0; and a reward of one millionth of a dollar per converted dollar reports traditional drainage as a conversion, leaving withdrawTraditional at its floor unless the year needs the cash. OptimizedSchedule.conversions lists each year whose conversion is above $0.50, with the same amount, and is empty with no solution. Units: each year's nominal dollars.

      Formula: with a solution: v_t = round2(column_t); taxableGainRealized_t = round2(withdrawTaxable_t × gf), gf = min(1, max(0, 1 − basisRatio)); irmaaTier_t = max{k : b_{t,k} > 0.5}, else 0; endBucket_t = bucket_{t+1}; conversions = [(t, conversion_t) : conversion_t > 0.5]; with no solution: schedule = [], conversions = []

      • column_t: The raw solution's value of year t's conversion, withdrawal, sale, taxable-income or next-year balance column, as HiGHS writes it (16 significant digits) (unit: nominal USD) (domain: nonnegative; 0 when the solution carries none)
      • basisRatio: The opening taxable balance's cost basis over the balance, one ratio for the whole plan (unit: fraction) (domain: 0..1; 1 when not given)
      • b_{t,k}: The solution's value of year t's IRMAA tier k binary (unit: none) (domain: 0 or 1)

      Timing: every plan year of one solve

      Rounding: cents of the raw solution's value

      Limits:

      • Cents of the solution: a planned conversion of $107,028.8775 is published as $107,028.88, in schedule[] and in schedule.conversions[] alike. Which solution HiGHS returns where more than one is optimal belongs to the highs package the engine pins (1.15.2), and so does the format of its raw solution: a solve whose raw solution the engine cannot read throws an error rather than publish; an upgrade that puts any figure the evidence compares more than half a cent from the value stated here fails it.
      • A node-limit or timeout status publishes the rows of the incumbent HiGHS held when it stopped, which is not a proven optimum (optimizer-schedule-objective-and-lifetime-tax states the two limits); a solve with no solution publishes no rows, and the status says whether the model was infeasible or a limit came first.
      • The solver's plan, not what the projection of the same conversions does. The projection executes each conversion only up to what the owners' accounts hold (the cleaned schedule), funds spending in the plan's own withdrawal order and taxes each account by its own basis and rules, so its withdrawals, realized gains, taxable income and balances (withdrawals-by-category-annual, tax-realized-gains-annual, accounts-balance-per-account-annual) can differ from these in every year. The solver's buckets grow at one blended rate a year and its sale realizes one gain fraction for the whole plan.
      • withdrawOther is the net draw on the tax-free bucket when the year needs one and 0 when the year saves; the saving itself is not published and shows only in the next year-end balance (in the evidence's two-year case, $7,057.25 saved in 2027 ends as $7,410.11).
      • irmaaTier is a classification, a census exclusion; its surcharges enter the solver's lifetime tax.
      • Evidence: the two cases of optimizer-schedule-objective-and-lifetime-tax, derived by hand from the library example rmd-irmaa's facts without its qualified charitable distribution: the one-year case's conversion through the 24% bracket, required distribution, tax-free draw and year-end balances, and the two-year case's required distributions, inherited draws, sale and its gain, two tiers and saved surplus; and its two infeasible inputs, which publish no rows. A year with both a conversion and a sale, and an inherited distribution set by a divisor, are not exercised; they follow the same readout.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: optimizer-schedule-year-solution.md Mutation receipt: optimizer-schedule-year-solution.mutation.md

      Evidence tests: optimizer.schedule.evidence.test.ts

      Implemented in: optimizer.ts

      Is the number of: optimizer-recommended-conversion-annual, optimizer-schedule-withdrawal-by-bucket-annual, optimizer-schedule-taxable-gain-realized-annual, optimizer-schedule-taxable-ordinary-income-annual, optimizer-schedule-ending-balance-by-bucket-annual

      Feeds: optimizer-schedule-lifetime-tax, optimizer-schedule-ending-after-tax-objective, optimizer-schedule-conversion-total

  • Optimizer schedule taxable ordinary income annual

    For each plan year, the taxable ordinary income in the conversion optimizer's solution: its ordinary income base plus the taxable part of its conversion and its traditional and inherited withdrawals, less the standard deduction with the age-65 addition (and, where the solve prices it, the senior deduction net of its phase-out), not below 0, in that year's nominal dollars, to the cent. The amount its bracket tax is charged on, not the projection's taxable income.

    Field: Optimizer's taxable ordinary income by year Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: mcp (run_optimizer.schedule.schedule[].taxableOrdinary)

    • Optimizer's per-year solution Model record, justified by derivation

      Purpose: What the conversion optimizer's solver plans for each year: its conversion, its withdrawal from each bucket, the gain and taxable income it books, and its year-end balances.

      Statement: strategies/optimizer.ts#optimizeSchedule publishes OptimizedSchedule.schedule, one OptimizedYear per plan year in order, from the solution HiGHS returns for the model #buildOptimizerModel writes, when the solve has one (the raw solution's primal status Feasible: an optimum, or the incumbent a node or time limit stopped at), and no rows when it has none (an infeasible model, or a limit reached before any incumbent). conversion, withdrawTraditional (the required-distribution floor included), withdrawInheritedTraditional, withdrawOther (from the tax-free bucket of Roth, cash and HSA), withdrawTaxable and taxableOrdinary are the solution's values of the year's conversion, withdrawal, sale and taxable-income columns; endTrad, endInheritedTrad, endOther and endTaxable are the four buckets' balances at the start of the next year, after the year's flows and growth, endTaxable 0 when the plan has no taxable bucket; taxableGainRealized is the published withdrawTaxable times the gain fraction min(1, max(0, 1 − the taxable basis ratio)); irmaaTier is the highest tier whose binary is above one half, 0 for none. The engine reads each value from HiGHS's raw solution, which HiGHS writes to 16 significant digits, through a wrapper around the highs package's solution writer (not the package's six-digit parse of the pretty print); each is then rounded to cents, and a column the solution does not carry reads 0. In the model, taxable ordinary income is at least the year's ordinary income base plus the taxable part of its conversion and its traditional and inherited withdrawals, less the standard deduction with the age-65 addition (and the senior deduction net of its phase-out when the solve prices it), and at least 0; minimizing tax holds it there. The tax-free withdrawal enters the model only as a difference with the surplus the year saves, which is not published, so a solution sets one of the two to 0; and a reward of one millionth of a dollar per converted dollar reports traditional drainage as a conversion, leaving withdrawTraditional at its floor unless the year needs the cash. OptimizedSchedule.conversions lists each year whose conversion is above $0.50, with the same amount, and is empty with no solution. Units: each year's nominal dollars.

      Formula: with a solution: v_t = round2(column_t); taxableGainRealized_t = round2(withdrawTaxable_t × gf), gf = min(1, max(0, 1 − basisRatio)); irmaaTier_t = max{k : b_{t,k} > 0.5}, else 0; endBucket_t = bucket_{t+1}; conversions = [(t, conversion_t) : conversion_t > 0.5]; with no solution: schedule = [], conversions = []

      • column_t: The raw solution's value of year t's conversion, withdrawal, sale, taxable-income or next-year balance column, as HiGHS writes it (16 significant digits) (unit: nominal USD) (domain: nonnegative; 0 when the solution carries none)
      • basisRatio: The opening taxable balance's cost basis over the balance, one ratio for the whole plan (unit: fraction) (domain: 0..1; 1 when not given)
      • b_{t,k}: The solution's value of year t's IRMAA tier k binary (unit: none) (domain: 0 or 1)

      Timing: every plan year of one solve

      Rounding: cents of the raw solution's value

      Limits:

      • Cents of the solution: a planned conversion of $107,028.8775 is published as $107,028.88, in schedule[] and in schedule.conversions[] alike. Which solution HiGHS returns where more than one is optimal belongs to the highs package the engine pins (1.15.2), and so does the format of its raw solution: a solve whose raw solution the engine cannot read throws an error rather than publish; an upgrade that puts any figure the evidence compares more than half a cent from the value stated here fails it.
      • A node-limit or timeout status publishes the rows of the incumbent HiGHS held when it stopped, which is not a proven optimum (optimizer-schedule-objective-and-lifetime-tax states the two limits); a solve with no solution publishes no rows, and the status says whether the model was infeasible or a limit came first.
      • The solver's plan, not what the projection of the same conversions does. The projection executes each conversion only up to what the owners' accounts hold (the cleaned schedule), funds spending in the plan's own withdrawal order and taxes each account by its own basis and rules, so its withdrawals, realized gains, taxable income and balances (withdrawals-by-category-annual, tax-realized-gains-annual, accounts-balance-per-account-annual) can differ from these in every year. The solver's buckets grow at one blended rate a year and its sale realizes one gain fraction for the whole plan.
      • withdrawOther is the net draw on the tax-free bucket when the year needs one and 0 when the year saves; the saving itself is not published and shows only in the next year-end balance (in the evidence's two-year case, $7,057.25 saved in 2027 ends as $7,410.11).
      • irmaaTier is a classification, a census exclusion; its surcharges enter the solver's lifetime tax.
      • Evidence: the two cases of optimizer-schedule-objective-and-lifetime-tax, derived by hand from the library example rmd-irmaa's facts without its qualified charitable distribution: the one-year case's conversion through the 24% bracket, required distribution, tax-free draw and year-end balances, and the two-year case's required distributions, inherited draws, sale and its gain, two tiers and saved surplus; and its two infeasible inputs, which publish no rows. A year with both a conversion and a sale, and an inherited distribution set by a divisor, are not exercised; they follow the same readout.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: optimizer-schedule-year-solution.md Mutation receipt: optimizer-schedule-year-solution.mutation.md

      Evidence tests: optimizer.schedule.evidence.test.ts

      Implemented in: optimizer.ts

      Is the number of: optimizer-recommended-conversion-annual, optimizer-schedule-withdrawal-by-bucket-annual, optimizer-schedule-taxable-gain-realized-annual, optimizer-schedule-taxable-ordinary-income-annual, optimizer-schedule-ending-balance-by-bucket-annual

      Feeds: optimizer-schedule-lifetime-tax, optimizer-schedule-ending-after-tax-objective, optimizer-schedule-conversion-total

  • Optimizer schedule ending balance by bucket annual

    For each plan year, the year-end balance of each of the conversion optimizer's buckets (traditional, inherited traditional, tax-free and taxable) in its solution, after the year's flows and one blended growth rate, in that year's nominal dollars, to the cent; the taxable bucket is 0 when the plan has none. The solver's balances, not the projection's (accounts-balance-per-account-annual).

    Field: Optimizer's year-end balances by bucket Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: mcp (run_optimizer.schedule.schedule[].endTrad / .endInheritedTrad / .endOther / .endTaxable)

    • Optimizer's per-year solution Model record, justified by derivation

      Purpose: What the conversion optimizer's solver plans for each year: its conversion, its withdrawal from each bucket, the gain and taxable income it books, and its year-end balances.

      Statement: strategies/optimizer.ts#optimizeSchedule publishes OptimizedSchedule.schedule, one OptimizedYear per plan year in order, from the solution HiGHS returns for the model #buildOptimizerModel writes, when the solve has one (the raw solution's primal status Feasible: an optimum, or the incumbent a node or time limit stopped at), and no rows when it has none (an infeasible model, or a limit reached before any incumbent). conversion, withdrawTraditional (the required-distribution floor included), withdrawInheritedTraditional, withdrawOther (from the tax-free bucket of Roth, cash and HSA), withdrawTaxable and taxableOrdinary are the solution's values of the year's conversion, withdrawal, sale and taxable-income columns; endTrad, endInheritedTrad, endOther and endTaxable are the four buckets' balances at the start of the next year, after the year's flows and growth, endTaxable 0 when the plan has no taxable bucket; taxableGainRealized is the published withdrawTaxable times the gain fraction min(1, max(0, 1 − the taxable basis ratio)); irmaaTier is the highest tier whose binary is above one half, 0 for none. The engine reads each value from HiGHS's raw solution, which HiGHS writes to 16 significant digits, through a wrapper around the highs package's solution writer (not the package's six-digit parse of the pretty print); each is then rounded to cents, and a column the solution does not carry reads 0. In the model, taxable ordinary income is at least the year's ordinary income base plus the taxable part of its conversion and its traditional and inherited withdrawals, less the standard deduction with the age-65 addition (and the senior deduction net of its phase-out when the solve prices it), and at least 0; minimizing tax holds it there. The tax-free withdrawal enters the model only as a difference with the surplus the year saves, which is not published, so a solution sets one of the two to 0; and a reward of one millionth of a dollar per converted dollar reports traditional drainage as a conversion, leaving withdrawTraditional at its floor unless the year needs the cash. OptimizedSchedule.conversions lists each year whose conversion is above $0.50, with the same amount, and is empty with no solution. Units: each year's nominal dollars.

      Formula: with a solution: v_t = round2(column_t); taxableGainRealized_t = round2(withdrawTaxable_t × gf), gf = min(1, max(0, 1 − basisRatio)); irmaaTier_t = max{k : b_{t,k} > 0.5}, else 0; endBucket_t = bucket_{t+1}; conversions = [(t, conversion_t) : conversion_t > 0.5]; with no solution: schedule = [], conversions = []

      • column_t: The raw solution's value of year t's conversion, withdrawal, sale, taxable-income or next-year balance column, as HiGHS writes it (16 significant digits) (unit: nominal USD) (domain: nonnegative; 0 when the solution carries none)
      • basisRatio: The opening taxable balance's cost basis over the balance, one ratio for the whole plan (unit: fraction) (domain: 0..1; 1 when not given)
      • b_{t,k}: The solution's value of year t's IRMAA tier k binary (unit: none) (domain: 0 or 1)

      Timing: every plan year of one solve

      Rounding: cents of the raw solution's value

      Limits:

      • Cents of the solution: a planned conversion of $107,028.8775 is published as $107,028.88, in schedule[] and in schedule.conversions[] alike. Which solution HiGHS returns where more than one is optimal belongs to the highs package the engine pins (1.15.2), and so does the format of its raw solution: a solve whose raw solution the engine cannot read throws an error rather than publish; an upgrade that puts any figure the evidence compares more than half a cent from the value stated here fails it.
      • A node-limit or timeout status publishes the rows of the incumbent HiGHS held when it stopped, which is not a proven optimum (optimizer-schedule-objective-and-lifetime-tax states the two limits); a solve with no solution publishes no rows, and the status says whether the model was infeasible or a limit came first.
      • The solver's plan, not what the projection of the same conversions does. The projection executes each conversion only up to what the owners' accounts hold (the cleaned schedule), funds spending in the plan's own withdrawal order and taxes each account by its own basis and rules, so its withdrawals, realized gains, taxable income and balances (withdrawals-by-category-annual, tax-realized-gains-annual, accounts-balance-per-account-annual) can differ from these in every year. The solver's buckets grow at one blended rate a year and its sale realizes one gain fraction for the whole plan.
      • withdrawOther is the net draw on the tax-free bucket when the year needs one and 0 when the year saves; the saving itself is not published and shows only in the next year-end balance (in the evidence's two-year case, $7,057.25 saved in 2027 ends as $7,410.11).
      • irmaaTier is a classification, a census exclusion; its surcharges enter the solver's lifetime tax.
      • Evidence: the two cases of optimizer-schedule-objective-and-lifetime-tax, derived by hand from the library example rmd-irmaa's facts without its qualified charitable distribution: the one-year case's conversion through the 24% bracket, required distribution, tax-free draw and year-end balances, and the two-year case's required distributions, inherited draws, sale and its gain, two tiers and saved surplus; and its two infeasible inputs, which publish no rows. A year with both a conversion and a sale, and an inherited distribution set by a divisor, are not exercised; they follow the same readout.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: optimizer-schedule-year-solution.md Mutation receipt: optimizer-schedule-year-solution.mutation.md

      Evidence tests: optimizer.schedule.evidence.test.ts

      Implemented in: optimizer.ts

      Is the number of: optimizer-recommended-conversion-annual, optimizer-schedule-withdrawal-by-bucket-annual, optimizer-schedule-taxable-gain-realized-annual, optimizer-schedule-taxable-ordinary-income-annual, optimizer-schedule-ending-balance-by-bucket-annual

      Feeds: optimizer-schedule-lifetime-tax, optimizer-schedule-ending-after-tax-objective, optimizer-schedule-conversion-total

  • MCP compare ending after tax estate delta

    Plan B minus Plan A ending after-tax estate in nominal dollars, each estate in its own plan's last-year dollars, as compare_scenarios publishes it in deltaEndingAfterTaxEstateNominal.

    Field: MCP scenario ending-estate delta Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: mcp (compare_scenarios.deltaEndingAfterTaxEstateNominal)

    • MCP scenario ending after-tax estate delta Composition record, justified by derivation

      Purpose: The difference RetireGolden-MCP's compare_scenarios reports between two plans' ending after-tax estates as deltaEndingAfterTaxEstateNominal: Plan B minus Plan A, nominal.

      Statement: RetireGolden-MCP's compare_scenarios reports deltaEndingAfterTaxEstateNominal (named deltaEndingAfterTaxEstate through 0.11.x, with the same value) as scenarios/comparison.ts#compareScenarioPlans(planA, planB, { startYear, taxCalculatorForPlan }).headline.endingAfterTaxEstate.delta: each plan is projected from the same start year with its own tax calculator and summarized by projection/compare.ts#summarizeProjection, and the delta is scenarios/scalarComparison.ts#compareScalars(a.endingAfterTaxEstate, b.endingAfterTaxEstate).delta = b − a, Plan B the proposal and Plan A the baseline; a negative zero is published as 0 and a non-finite figure is refused with a RangeError. Each ending after-tax estate is in nominal dollars of its own plan's last year, and the delta subtracts the two as they are, with no conversion when the plans end in different years. The adapter reads this delta since RetireGolden-MCP 0.11.0 (#81); through mcp-v0.10.0 (3197d359) it subtracted the two summaries itself, the same number. Since 0.12.0 (b2c7f717, the census's MCP pin until 2026-10-11) the tool also publishes headline, scenarios/planHeadlines.ts#comparePlanHeadlines over the same two projections, which is the Compare page's comparison: headline.moneyBasis, headline.endYear (each plan's last year and their difference) and headline.endingAfterTaxEstate (both estates and their delta), in nominal dollars when the plans end in the same year, where its delta is this one, and in today's (start-year) dollars when they do not. Plans ending in 2050 with 1,800,000.00 and in 2054 with 2,000,000.00 differ by +200,000.00. Units: nominal USD. Rounding: none.

      Formula: delta = E_B − E_A; E_s = endingNetWorth_s − endingEstateToCharity_s − endingEstateHeirTax_s at plan s's last year

      • E_A: Plan A (baseline) ending after-tax estate (unit: nominal USD of plan A's last year) (domain: finite)
      • E_B: Plan B (proposal) ending after-tax estate (unit: nominal USD of plan B's last year) (domain: finite)

      Timing: once per compared pair, both projected from the same start year

      Rounding: none

      Limits:

      • When the two plans end in different years the delta subtracts dollars of two different years. The worksheet's plans, ending in 2050 and 2054 at 2.5 percent inflation, differ by +200,000.00 nominal but by +6,579.93 in 2026 dollars, which is what the Compare page prints (scenarios/planHeadlines.ts#comparePlanHeadlines, owner decision R13) and what RetireGolden-MCP 0.12.0 publishes beside this field as headline.endingAfterTaxEstate.delta. The rename does not lift this limit: deltaEndingAfterTaxEstateNominal is the nominal difference whatever the two end years, as its name and its census meaning say, and a caller who wants the Compare page's figure reads headline.
      • Each plan is priced with the calculator taxCalculatorForPlan returns for it. The evidence uses a zero flat-rate calculator on plans with no taxable income, so it exercises the comparison and the heir-tax identity of the ending estate, not tax law.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: mcp-compare-ending-after-tax-estate-delta.md Mutation receipt: mcp-compare-ending-after-tax-estate-delta.mutation.md

      Evidence tests: comparison.mcpDelta.evidence.test.ts

      Implemented in: comparison.ts; scalarComparison.ts; compare.ts

      Is the number of: mcp-compare-ending-after-tax-estate-delta

  • Scenario comparison cell

    For each compared scenario metric, the baseline plan's value, the proposal plan's value and the change (proposal minus baseline, null when either side has no comparable value); the metric's own family says what the value is.

    Field: Scenario comparison cell (baseline, proposal, change) Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: scenarios-page (Baseline, Proposal and Change columns of every MetricTable (formatMetricValue, formatScenarioDelta) and of the annual ledger comparison)

    • Scenario nullable scalar comparison Composition record, justified by derivation

      Purpose: Compare a nullable metric without turning absence into zero.

      Statement: scenarios/scalarComparison.ts#compareNullableScalars preserves nullable baseline and proposal values and publishes proposal minus baseline, through compareScalars, only when both exist, otherwise publishing a null delta; a negative zero is published as 0 and a non-finite value is refused with a RangeError. The scenario comparison's nullable cells (its depletion year, the spending-capacity figures and the annual rows where only one horizon has the year) and the Compare page's depletion age use it; the candidate evaluation's deltas (decisions/evaluateCandidate.ts) are plain subtractions and do not. Units: the metric's own. No stated rounding.

      Formula: delta = proposal - baseline when baseline != null and proposal != null, else null

      • baseline: Baseline metric value or absence (unit: the metric's own unit) (domain: finite number or null)
      • proposal: Proposal metric value or absence (unit: the metric's own unit) (domain: finite number or null)

      Timing: one comparison cell

      Rounding: none stated

      Limits:

      • Comparability is conjunctive: absence is not numerical zero, so coercing a null operand to zero would present a comparison that does not exist. The evidence asserts it directly and through the exported compareScenarioPlans on the metric whose comparison cell is the nullable one (the headline depletion year).

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: scenario-nullable-scalar-comparison.md Mutation receipt: scenario-nullable-scalar-comparison.mutation.md

      Evidence tests: comparisonCells.evidence.test.ts

      Implemented in: scalarComparison.ts; comparison.ts

      Is the number of: scenario-comparison-cell

    • Scenario scalar comparison Composition record, justified by derivation

      Purpose: Publish a scenario metric as baseline, proposal and a signed same-unit delta.

      Statement: scenarios/scalarComparison.ts#compareScalars publishes a finite numeric metric's baseline, proposal and delta in that metric's own units, with delta = proposal - baseline; a negative zero is published as 0 on every member, and a non-finite operand or difference is refused with a RangeError. The scenario comparison, the Compare page's headlines and money-lasts comparison (scenarios/planHeadlines.ts, projection/moneyLasts.ts#compareMoneyLasts), the relocation rows' lifetime delta, the claim-change estate gain, compareMonteCarloSuccessRates and stochasticDeltas publish their differences through it; the candidate evaluation's estate, net-worth, lifetime-tax and money-lasts deltas (decisions/evaluateCandidate.ts, read by InsightImpact and ExactLedgerValidation) are plain subtractions and do not. No stated rounding.

      Formula: delta = proposal - baseline

      • baseline: Baseline metric value (unit: the metric's own unit) (domain: finite)
      • proposal: Proposal metric value (unit: the metric's own unit) (domain: finite)

      Timing: one comparison cell

      Rounding: none stated

      Limits:

      • The signed identity is fixed: baseline and proposal are preserved rather than reordered by magnitude, and the delta stays in the metric's own unit rather than becoming a relative change. The evidence asserts it directly and through the exported compareScenarioPlans on a headline money metric.

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: scenario-scalar-comparison.md Mutation receipt: scenario-scalar-comparison.mutation.md

      Evidence tests: comparisonCells.evidence.test.ts

      Implemented in: scalarComparison.ts; comparison.ts

      Is the number of: scenario-comparison-cell

    Fed by: Projection summary ending after tax estate (composition record, 6 of 6 gates pass); Projection summary ending investable (composition record, 6 of 6 gates pass); Projection summary ending net worth (composition record, 6 of 6 gates pass); Lifetime Roth conversions: sum of annual traditional-to-Roth movement (composition record, 6 of 6 gates pass); Projection summary lifetime taxes and penalties (composition record, 6 of 6 gates pass); Relocation lifetime state local tax (composition record, 6 of 6 gates pass); Scenario comparison: years in an IRMAA surcharge tier (composition record, 6 of 6 gates pass); Scenario lifetime tax and penalties (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Optimizer candidate trailing estate amount

    In the downloadable report's conversion-candidate table, how far a candidate that was not chosen trails the selected recommendation (or the calculated winner withheld pending account allocation) in after-tax estate improvement.

    Field: Candidate's gap to the chosen schedule Unit: US dollars Basis: nominal dollars Computed by: UI-native Status: Complete chain

    Appears in: report (Downloadable HTML report candidate table reason "Trailed the selected recommendation by $X." or "Trailed the calculated winner by $X; that winner was withheld pending account allocation.")

    • Conversion candidate: gap to the chosen schedule Formula record, justified by derivation

      Purpose: How far a conversion schedule that was not chosen falls short of the chosen one in after-tax estate, as the downloadable report states it.

      Statement: projection/candidateTrailingEstate.ts#candidateTrailingEstateAmount returns benchmark − the candidate's afterTaxEstateDelta when the benchmark is larger, and null otherwise. The benchmark (#tournamentEstateBenchmark) is the afterTaxEstateDelta of the full projection that validated the selected winner, or, when the calculated winner was withheld pending account allocation, of the one that validated that withheld winner; with neither (the plan's own strategy kept, or no winner) it is the largest of 0 and every candidate's afterTaxEstateDelta. The downloadable report prints the gap for a candidate that improved the estate by more than $1 and was not the winner, not vetoed and not held back by unpriced premium credits, as "Trailed the selected recommendation by $X", or "Trailed the calculated winner by $X" when that winner was withheld. A validated winner at +$48,000 puts candidates at +$42,500 and +$10,000 behind by $5,500 and $38,000, and one at +$48,700 does not trail; with a withheld winner at +$30,000, a candidate at +$12,000 trails by $18,000; with no validated winner, a candidate at +$600 trails the best one, at +$900, by $300. Units: nominal dollars at the plan's last year, the unit of every estate delta. Rounding: none; the report prints whole dollars.

      Formula: B = winner validation delta, else withheld winner validation delta, else max(0, d_1, …, d_n); gap_i = B − d_i when B > d_i, else none

      • d_i: The candidate's ending after-tax estate minus the plan's own (afterTaxEstateDelta) (unit: usd, nominal at the plan's last year) (domain: finite)
      • B: The estate improvement the candidates are measured against (unit: usd, nominal at the plan's last year) (domain: finite; at least 0 when no winner was validated)

      Timing: once per candidate row of the report

      Rounding: none

      Limits:

      • The gap is in after-tax estate whatever the objective ranked the schedules by; under another objective a candidate can have a larger estate than the winner, and then it does not trail at all.
      • With no validated winner the benchmark is the best candidate, which was not selected, while the report still calls it "the selected recommendation"; the words are the report's, and on the example plans no row is printed that way.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: optimizer-candidate-trailing-estate-amount.md Mutation receipt: optimizer-candidate-trailing-estate-amount.mutation.md

      Evidence tests: candidateTrailingEstate.evidence.test.ts

      Implemented in: candidateTrailingEstate.ts

      Is the number of: optimizer-candidate-trailing-estate-amount

Cash flow and summary

  • Bucket lens allocation

    Investable assets assigned to near-, middle-, and long-horizon spending buckets.

    Field: buckets Unit: US dollars Basis: nominal dollars Computed by: UI-native Status: Complete chain

    Appears in: results-table (bucket lens allocation)

    • Bucket view of the investable total Formula record, justified by derivation

      Purpose: Each year's investable total read as buckets: the next years of net spending, then the rest, as the Results bucket card draws it.

      Statement: projection/bucketLens.ts#bucketLens reads each projection year i with investable total T_i and published net portfolio needs n_j (YearResult.netPortfolioNeed) as spans.length + 1 buckets: bucket k claims the needs of the next spans[k] years, starting with year i and continuing after the earlier buckets' years, capped by what is left, and the last bucket is the remainder. Needs past the horizon count 0. BUCKET_LENS_SPANS holds the two presets the planner offers, [2, 8] and [3]. It refuses a span that is not a positive whole number and a year whose netPortfolioNeed is not a finite number, naming the year, rather than reading it as 0. For needs 10,000, 20,000, 30,000, 40,000 and 50,000 against totals 200,000, 150,000, 100,000, 60,000 and 20,000, spans [2, 8] give year 0 buckets of 30,000, 120,000 and 50,000 and year 2 buckets of 70,000, 30,000 and 0. Units: nominal dollars of each row's year; needs summed undiscounted across future years. Rounding: none; the buckets add to the investable total to within 2 × spans.length units in the last place of the total, since the spans.length subtractions and the spans.length additions of their sum each round once (the worksheet derives the bound).

      Formula: need_k = sum of n_j for j from c_k to min(c_k + s_k, N) − 1; b_k = min(R_k, need_k); R_0 = T_i; R_(k+1) = R_k − b_k; c_0 = i; c_(k+1) = c_k + s_k; growth bucket = R_K

      • T_i: Investable total of year i (YearResult.investableTotal) (unit: USD, nominal of year i) (domain: >= 0)
      • n_j: Net portfolio need of year j (YearResult.netPortfolioNeed) (unit: USD, nominal of year j) (domain: >= 0, finite)
      • s_k: Span of bucket k (unit: years) (domain: positive whole number)
      • N: Number of projection years (unit: years) (domain: >= 0)

      Timing: annual; each row reads the needs of later rows

      Rounding: none

      Limits:

      • A reporting view: nothing feeds back into the projection, and the bucket literature (Estrada; Kitces) finds no systematic benefit from managing money as buckets over a rebalanced total-return portfolio.
      • Needs past the horizon count 0, so the leading buckets drain near the end of the plan.
      • Future needs are nominal and undiscounted, so bucket 2 read in today's dollars overstates its real size by the inflation between the row's year and each need's year.
      • The buckets add to the investable total to within 2 × spans.length units in the last place, not exactly: at most 4 units for the [2, 8] preset and 2 for [3]; 127 of 2,420 example rows differ by one unit, and spans [1, 1, 1] can differ by two (the worksheet's three-span case).

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: bucket-lens-allocation.md Mutation receipt: bucket-lens-allocation.mutation.md

      Evidence tests: bucketLens.evidence.test.ts

      Implemented in: bucketLens.ts

      Is the number of: bucket-lens-allocation

  • Cash flow line amount

    Dollar amount carried by a source-to-use line in the selected year cash-flow drilldown.

    Field: Cash-flow line amount Unit: US dollars Basis: as displayed Computed by: UI transformation Status: Complete chain

    Appears in: cash-flow-drilldown (Sankey link and node amount labels)

    • Cash-flow drilldown amounts Composition record, justified by derivation

      Purpose: Where each amount on the selected year's cash-flow chart comes from: published lines and the ledger's own reconciliation totals.

      Statement: In the selected-year cash-flow chart each link amount is one published line's Plan-dollar amount; the Household cash node is the cash identity's source total, reconciliation.cash.sourceTotalPlanDollars, and the Unfunded node the use identity's unfunded total, reconciliation.uses.unfundedUsesPlanDollars, both published by projection/annualCashFlowReconciliation.ts#reconcileYearCashFlow; the Unfunded node appears when that total is above 0. The source total is (spendable sources + portfolio funding) + loan proceeds, each a sum by role in line order, so for source lines of 41,234.11 (spendable), 17,890.20 (portfolio), 3,000.30 (spendable), 0 (loan) and 12.07 (spendable) it is 62,136.68000000001, where adding the lines in order gives 62,136.68; both print $62,137. The transfer view's in and out totals and the grouped Other node add engine lines by the chart's own grouping and stay in the planner as chart aggregation (decision R18). Units: nominal Plan dollars, shown through the page's dollar basis. Rounding: none.

      Formula: hub = (spendable + portfolioFunding) + loanProceeds; unfunded = sum of unfundedPlanDollars over use lines; link = line amount

      • spendable, portfolioFunding, loanProceeds: Source line amounts summed by role, in line order (unit: USD, nominal of the year) (domain: >= 0)
      • unfundedPlanDollars: Each use line's unfunded part (unit: USD, nominal of the year) (domain: >= 0)

      Timing: once per captured year

      Rounding: none

      Limits:

      • The transfer view's in and out totals and the Other node's amount printed on the chart are sums of engine lines by the chart's grouping and have no engine record; the Other threshold is a layout rule.
      • The hub differs from the line-order sum the chart used to add only in the last binary digit (32 of 1,210 example years, at most 5.82e-11); no printed whole dollar changes.
      • A year whose report is not reconciled is refused by the chart before any amount is read.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: cash-flow-line-amount.md Mutation receipt: cash-flow-line-amount.mutation.md

      Evidence tests: annualCashFlowReconciliation.drilldown.evidence.test.ts

      Implemented in: annualCashFlowReconciliation.ts

      Is the number of: cash-flow-line-amount

  • Cash flow reconciliation totals

    Per year, the total of funded sources, the total of funded uses, the unfunded (shortfall) uses, and the paired transfer debit and credit totals that the identity-bearing cash-flow ledger reconciles.

    Field: Cash-flow reconciliation totals Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: cash-flow-drilldown (YearCashFlowDialog summary tiles "Sources", "Funded uses", "Shortfall" and Sankey props); cash-flow-drilldown (YearCashFlowSankey aria-label: 'Cash flow for YEAR. Source total $X. Funded uses $Y. Shortfall $Z.' and, on the transfers view, 'Transfers for YEAR. Debits $X. Credits $Y.')

    • Annual cash-flow reconciliation: the three identity totals Composition record, justified by derivation

      Purpose: The three annual identities a published cash-flow report must satisfy, and the tolerance each is judged at.

      Statement: projection/annualCashFlowReconciliation.ts#reconcileYearCashFlow publishes three identity totals. Cash: sourceTotal = spendableSources + portfolioFunding + loanProceeds, destinationTotal = fundedHouseholdUses + settledTax + penalties + contributions + surplusInvestment, difference = sourceTotal - destinationTotal, judged against cashIdentityTolerancePlanDollars, which capture sets to CASH_FLOW_CASH_IDENTITY_TOLERANCE_PLAN_DOLLARS (the annual funding tolerance, half a cent). Uses: dispositionTotal = fundedUses + unfundedUses, difference = requestedUses - dispositionTotal. Transfers: difference = debits - credits. Both use and transfer identities are judged against tolerancePlanDollars, which capture sets to CASH_FLOW_RECONCILIATION_TOLERANCE_PLAN_DOLLARS (1e-6). A comparison fails only when the absolute difference is STRICTLY GREATER than its tolerance, so a difference exactly at the bound reconciles. Units: nominal Plan dollars per year. Rounding: none; the totals are unrounded binary floats.

      Formula: cashDifference = (spendable + portfolioFunding + loanProceeds) - (fundedHouseholdUses + tax + penalties + contributions + surplus); useDifference = requested - (funded + unfunded); transferDifference = debits - credits

      • spendable, portfolioFunding, loanProceeds: Source-line roles summed into the cash source total (unit: usd/year) (domain: nonnegative)
      • fundedHouseholdUses: Funded lifestyle, goal, debt, property, healthcare, insurance and care uses (unit: usd/year) (domain: nonnegative)
      • cashIdentityTolerance: Cash conservation bound, the annual funding tolerance (unit: usd) (domain: 0.005 at capture)
      • tolerance: Strict structural bound for use, transfer and lineage checks (unit: usd) (domain: 1e-6 at capture)

      Timing: once per captured projection year, after every economic commit

      Rounding: none

      Limits:

      • Asserted at reconcileYearCashFlow, the production function that computes all three identities, with published lines carrying the worksheet's amounts, and with the two tolerances taken from the capture module's own exported constants rather than written in
      • The three identities are asserted on ONE line set (three sources, fourteen use lines covering the closed use vocabulary, three paired transfers), as the re-derived worksheet states them, with the cash destination total equal to the funded-use total on that single year. The first derivation stated a cash destination total of $100,000 beside a funded-use total of $90,000; both are the same sum of fundedPlanDollars over the same use lines, so it was re-derived after the identity-total comments were completed, re-approved by the reviewer, and its test rebuilt and receipt re-executed on this pull request
      • The "strictly greater" rule is asserted directly: a cash difference of exactly the tolerance reconciles, and the worksheet's first wrong reading (judging the cash residual at the structural 1e-6 bound) is asserted to be rejected

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: cash-flow-reconciliation-totals.md Mutation receipt: cash-flow-reconciliation-totals.mutation.md

      Evidence tests: annualCashFlowReconciliation.evidence.test.ts

      Implemented in: annualCashFlowReconciliation.ts; annualCashFlowCapture.ts; cashFlow.ts

      Is the number of: cash-flow-reconciliation-totals

    Fed by: Cash-flow line amounts and the annual cash identity (composition record, 6 of 6 gates pass); Annual surplus invested, floored at zero (formula record, 6 of 6 gates pass); Annual contributions credited after limit trimming (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Display dollar basis conversion

    Conversion of a nominal year amount to today's dollars, or back to nominal dollars for a chart.

    Field: Today's-dollar display conversion Unit: US dollars Basis: nominal or real, as displayed Computed by: UI transformation Status: Complete chain

    Appears in: results-table (today dollars toggle); results-headline (KpiBar and ResultsPage "in today's dollars" ending net worth, and the depletion sentence's floor-year income and uncovered gap); solver-page (Evidence ending after-tax estate today's dollars (deflator) and SWR rows); relocation-page (Ending after-tax estate (today's $) column, read from the engine row (RelocationCandidateRow.endingAfterTaxEstateTodayDollars)); cash-flow-drilldown (displayAmount applied to every line, node and reconciliation total); insights (DetectorProjection.deflate handed to each Insight for today's-dollar figures); chart (Every Results chart series through the DollarAdjuster); income-floor (FundedRatioReadout hands the basis to computeFundedRatio)

    • Today's dollars by the ledger's own inflation factor Formula record, justified by derivation

      Purpose: How a year's nominal amount becomes start-year dollars on every page, and how a start-year figure such as the FI target is placed in a year's dollars.

      Statement: projection/dollarBasis.ts converts a nominal amount x of projection year y to start-year dollars as x / f(y), and a start-year amount to year-y dollars as x * f(y), where f(y) is the ledger's published YearResult.inflationScale: the left-to-right product of (1 + inflationPct/100) taken y - startYear times from 1, exactly 1 in the start year. projectionDollarBasis reads the factors from a projection's rows; planDollarBasis runs the same recurrence for a page that holds no projection rows and is bit-identical to a deterministic run's factors. nominalForDisplay shows a nominal amount in the page's mode (converted in today's-dollar mode, unchanged in nominal mode) and todayForDisplay shows a start-year amount (unchanged in today's-dollar mode, times f(y) in nominal mode), so the FI target line is fiNumber itself in today's-dollar mode and fiNumber * f(y) in nominal mode. A year outside the projection, or a fractional year, is refused. Units: USD. Rounding: none.

      Formula: f(s) = 1; f(y) = f(y - 1) * (1 + i/100); today(y, x) = x / f(y); nominal(y, x) = x * f(y); FI target in year y = fiNumber (today mode) or fiNumber * f(y) (nominal mode)

      • i: General inflation rate, plan.assumptions.inflationPct (unit: percent per year) (domain: finite, above -100)
      • s: Projection start year, the first ledger row (unit: calendar year) (domain: integer)
      • y: Year of the amount (unit: calendar year) (domain: integer in [s, endYear])
      • x: Amount converted (unit: usd) (domain: finite)
      • f(y): Cumulative general-inflation factor, YearResult.inflationScale (unit: ratio) (domain: f(s) = 1)

      Timing: annual; one factor per calendar year, applied to every amount of that year

      Rounding: none

      Limits:

      • planDollarBasis is the plan's assumed rate and matches only a deterministic run: a Monte Carlo path grows by its own inflation series, so its rows are converted with projectionDollarBasis on that path's own result
      • Start-year dollars in whole-year steps: an amount paid in December and one paid in January of the same year carry the same factor
      • General inflation only: the healthcare inflation premium and the Social Security cost-of-living adjustment are separate assumptions and are never the basis
      • Years outside the projection are refused, never extrapolated; a projection whose horizon ends before its start year has an empty basis in which every year is refused
      • Owner decision R19 (2026-09-25): the planner pages used to compound the plan's rate with Math.pow from the page's start year. The ledger's factor is a product built one year at a time, which differs from the power in the last binary digit in some years (21 of 41 years at 2.5 percent, one unit each), so a whole-dollar figure can change only on an exact half-dollar tie; the FI target in today's-dollar mode becomes exactly fiNumber instead of fiNumber * f / f
      • The FI target is recorded here rather than in a record of its own: it is projection-summary-fi-number placed in a year through todayForDisplay
      • Since B2-P1 slice 2 the spending page converts nothing itself: each published withdrawal rule's ending estate is converted by that rule's own run (decisions/swrComparator.ts#compareSwrRules publishes endingAfterTaxEstateTodayDollars), and the solver's evidence estate by the answer run's own factors; planDollarBasis remains for the relocation page

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-dollar-basis-conversion.md Mutation receipt: display-dollar-basis-conversion.mutation.md

      Evidence tests: swrComparator.evidence.test.ts; dollarBasis.evidence.test.ts

      Implemented in: dollarBasis.ts; detectorProjection.ts; result.ts; swrComparator.ts

      Is the number of: display-dollar-basis-conversion, display-fi-target-annual

      Feeds: display-balance-by-category-annual, display-net-care-cost-annual, display-tax-free-gains-room-annual, display-tax-plus-penalties-annual, display-total-spending-annual, display-upside-shortfall-annual, display-upside-spending-annual

  • Display FI target annual

    Financial-independence portfolio target plotted in the same year and dollar basis as account balances.

    Field: Displayed FI target Unit: US dollars Basis: as displayed Computed by: UI transformation Status: Complete chain

    Appears in: chart (fiTarget)

    • Today's dollars by the ledger's own inflation factor Formula record, justified by derivation

      Purpose: How a year's nominal amount becomes start-year dollars on every page, and how a start-year figure such as the FI target is placed in a year's dollars.

      Statement: projection/dollarBasis.ts converts a nominal amount x of projection year y to start-year dollars as x / f(y), and a start-year amount to year-y dollars as x * f(y), where f(y) is the ledger's published YearResult.inflationScale: the left-to-right product of (1 + inflationPct/100) taken y - startYear times from 1, exactly 1 in the start year. projectionDollarBasis reads the factors from a projection's rows; planDollarBasis runs the same recurrence for a page that holds no projection rows and is bit-identical to a deterministic run's factors. nominalForDisplay shows a nominal amount in the page's mode (converted in today's-dollar mode, unchanged in nominal mode) and todayForDisplay shows a start-year amount (unchanged in today's-dollar mode, times f(y) in nominal mode), so the FI target line is fiNumber itself in today's-dollar mode and fiNumber * f(y) in nominal mode. A year outside the projection, or a fractional year, is refused. Units: USD. Rounding: none.

      Formula: f(s) = 1; f(y) = f(y - 1) * (1 + i/100); today(y, x) = x / f(y); nominal(y, x) = x * f(y); FI target in year y = fiNumber (today mode) or fiNumber * f(y) (nominal mode)

      • i: General inflation rate, plan.assumptions.inflationPct (unit: percent per year) (domain: finite, above -100)
      • s: Projection start year, the first ledger row (unit: calendar year) (domain: integer)
      • y: Year of the amount (unit: calendar year) (domain: integer in [s, endYear])
      • x: Amount converted (unit: usd) (domain: finite)
      • f(y): Cumulative general-inflation factor, YearResult.inflationScale (unit: ratio) (domain: f(s) = 1)

      Timing: annual; one factor per calendar year, applied to every amount of that year

      Rounding: none

      Limits:

      • planDollarBasis is the plan's assumed rate and matches only a deterministic run: a Monte Carlo path grows by its own inflation series, so its rows are converted with projectionDollarBasis on that path's own result
      • Start-year dollars in whole-year steps: an amount paid in December and one paid in January of the same year carry the same factor
      • General inflation only: the healthcare inflation premium and the Social Security cost-of-living adjustment are separate assumptions and are never the basis
      • Years outside the projection are refused, never extrapolated; a projection whose horizon ends before its start year has an empty basis in which every year is refused
      • Owner decision R19 (2026-09-25): the planner pages used to compound the plan's rate with Math.pow from the page's start year. The ledger's factor is a product built one year at a time, which differs from the power in the last binary digit in some years (21 of 41 years at 2.5 percent, one unit each), so a whole-dollar figure can change only on an exact half-dollar tie; the FI target in today's-dollar mode becomes exactly fiNumber instead of fiNumber * f / f
      • The FI target is recorded here rather than in a record of its own: it is projection-summary-fi-number placed in a year through todayForDisplay
      • Since B2-P1 slice 2 the spending page converts nothing itself: each published withdrawal rule's ending estate is converted by that rule's own run (decisions/swrComparator.ts#compareSwrRules publishes endingAfterTaxEstateTodayDollars), and the solver's evidence estate by the answer run's own factors; planDollarBasis remains for the relocation page

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: display-dollar-basis-conversion.md Mutation receipt: display-dollar-basis-conversion.mutation.md

      Evidence tests: swrComparator.evidence.test.ts; dollarBasis.evidence.test.ts

      Implemented in: dollarBasis.ts; detectorProjection.ts; result.ts; swrComparator.ts

      Is the number of: display-dollar-basis-conversion, display-fi-target-annual

      Feeds: display-balance-by-category-annual, display-net-care-cost-annual, display-tax-free-gains-room-annual, display-tax-plus-penalties-annual, display-total-spending-annual, display-upside-shortfall-annual, display-upside-spending-annual

    Fed by: Projection summary fi number (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Flexible goal funded amount annual

    Dollars delivered to flexible goals during the projection year.

    Field: flexibleGoalFundedAmount Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (flexibleGoalFundedAmount)

    • Annual flexible-goal outcomes: four counts and two amounts Model record, justified by derivation

      Purpose: What the goal scheduler decided this year, as the six numbers the year row publishes.

      Statement: spending/flexibleGoals.ts#createGoalScheduler visits unresolved goals by classification rank (required, target, ideal, excess), then explicit priority, then plan order, and resolves each against a hard flexible-goal budget. A fixed goal funds its inflated amount unconditionally in its target year and does NOT consume the budget. A movable or skippable goal funds fully when budget + 0.005 is at or above the inflated amount; else, when partial funding is allowed and the budget clears minFundingPct of the INFLATED amount, it partially funds for the remaining budget; else it defers while the year is before latestYear and is skipped at latestYear. projection/internal/annualOneTimeGoalFundingPhase.ts#annualOneTimeGoalFundingPhase folds those outcomes into the six counts and amounts published as projection/internal/types/result.ts#YearResult.flexibleGoals: funded and partiallyFunded both add fundedNominal to fundedAmount and unfundedNominal to unfundedAmount, a deferred goal only increments deferred, and a skipped goal adds its whole amountNominal to unfundedAmount and to its classification's skipped total. Outside guardrail mode the scheduler is absent and all six publish exactly 0 while every goal still funds in its target year. Units: counts, and nominal USD per year. Rounding: none.

      Formula: funded/partiallyFunded/deferred/skipped are outcome counts; fundedAmount = sum of fundedNominal over funded and partially funded goals; unfundedAmount = sum of unfundedNominal over those goals plus amountNominal of every skipped goal

      • amountNominal: Goal amount inflated to the year, amountTodayDollars x inflFactor (unit: usd) (domain: nonnegative)
      • budget: Hard flexible-goal budget for the year; null is unlimited (unit: usd) (domain: nonnegative or null)
      • minFundingPct: Minimum share of the inflated amount a partial funding must clear (unit: percent) (domain: 0..100)
      • EPSILON: Half-cent slack in the budget comparisons (unit: usd) (domain: 0.005)

      Timing: once per projection year, before the funding fixed point

      Rounding: none

      Limits:

      • Movable and skippable goals end the same way: one still unfunded at latestYear is skipped and its amount is folded into the layer totals, so neither is dropped from them. The model/plan.ts#GoalFlexibility comment once promised a movable goal a layer shortfall and a skippable goal a silent drop; decision D-GOAL-FLEXIBILITY (2026-09-25) kept the scheduler, and the comment now describes it. This record follows the scheduler, as the worksheet does
      • The worksheet's two cases are states annualOneTimeGoalFundingPhase produces, and the evidence drives the real phase and the real createGoalScheduler with no seam: a pull-forward year (not cutting, goals may be pulled forward), where the phase hands the scheduler the $1,700 remaining upside budget and the budget constrains the goals pulled forward before their target year; and a cutting year, where the budget is 0, goals not yet in the schedule have no outcome, and the skippable goal at its latest year skips. The first derivation paired a cutting year with a positive budget, which the completed YearResult.flexibleGoals comment rules out; it was re-derived on 2026-09-22 and re-approved by the reviewer
      • The zero-guardrail case is asserted on a real simulatePlan run instead, where the scheduler is absent: all six fields publish exactly 0 while the goal still funds and shows up in expenses.oneTimeGoals
      • A fixed goal does not consume the flexible budget; letting it do so changes every later goal's outcome, which is the worksheet's first wrong reading

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: flexible-goal-outcomes-annual.md Mutation receipt: flexible-goal-outcomes-annual.mutation.md

      Evidence tests: annualOneTimeGoalFundingPhase.evidence.test.ts

      Implemented in: flexibleGoals.ts; annualOneTimeGoalFundingPhase.ts; result.ts

      Is the number of: flexible-goals-funded-count-annual, flexible-goals-partially-funded-count-annual, flexible-goals-deferred-count-annual, flexible-goals-skipped-count-annual, flexible-goal-funded-amount-annual, flexible-goal-unfunded-amount-annual

      Feeds: spending-intended-annual

    Fed by: Flexible goal scheduling (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Flexible goal unfunded amount annual

    Dollars requested by flexible goals but not delivered during the projection year.

    Field: flexibleGoalUnfundedAmount Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (flexibleGoalUnfundedAmount)

    • Annual flexible-goal outcomes: four counts and two amounts Model record, justified by derivation

      Purpose: What the goal scheduler decided this year, as the six numbers the year row publishes.

      Statement: spending/flexibleGoals.ts#createGoalScheduler visits unresolved goals by classification rank (required, target, ideal, excess), then explicit priority, then plan order, and resolves each against a hard flexible-goal budget. A fixed goal funds its inflated amount unconditionally in its target year and does NOT consume the budget. A movable or skippable goal funds fully when budget + 0.005 is at or above the inflated amount; else, when partial funding is allowed and the budget clears minFundingPct of the INFLATED amount, it partially funds for the remaining budget; else it defers while the year is before latestYear and is skipped at latestYear. projection/internal/annualOneTimeGoalFundingPhase.ts#annualOneTimeGoalFundingPhase folds those outcomes into the six counts and amounts published as projection/internal/types/result.ts#YearResult.flexibleGoals: funded and partiallyFunded both add fundedNominal to fundedAmount and unfundedNominal to unfundedAmount, a deferred goal only increments deferred, and a skipped goal adds its whole amountNominal to unfundedAmount and to its classification's skipped total. Outside guardrail mode the scheduler is absent and all six publish exactly 0 while every goal still funds in its target year. Units: counts, and nominal USD per year. Rounding: none.

      Formula: funded/partiallyFunded/deferred/skipped are outcome counts; fundedAmount = sum of fundedNominal over funded and partially funded goals; unfundedAmount = sum of unfundedNominal over those goals plus amountNominal of every skipped goal

      • amountNominal: Goal amount inflated to the year, amountTodayDollars x inflFactor (unit: usd) (domain: nonnegative)
      • budget: Hard flexible-goal budget for the year; null is unlimited (unit: usd) (domain: nonnegative or null)
      • minFundingPct: Minimum share of the inflated amount a partial funding must clear (unit: percent) (domain: 0..100)
      • EPSILON: Half-cent slack in the budget comparisons (unit: usd) (domain: 0.005)

      Timing: once per projection year, before the funding fixed point

      Rounding: none

      Limits:

      • Movable and skippable goals end the same way: one still unfunded at latestYear is skipped and its amount is folded into the layer totals, so neither is dropped from them. The model/plan.ts#GoalFlexibility comment once promised a movable goal a layer shortfall and a skippable goal a silent drop; decision D-GOAL-FLEXIBILITY (2026-09-25) kept the scheduler, and the comment now describes it. This record follows the scheduler, as the worksheet does
      • The worksheet's two cases are states annualOneTimeGoalFundingPhase produces, and the evidence drives the real phase and the real createGoalScheduler with no seam: a pull-forward year (not cutting, goals may be pulled forward), where the phase hands the scheduler the $1,700 remaining upside budget and the budget constrains the goals pulled forward before their target year; and a cutting year, where the budget is 0, goals not yet in the schedule have no outcome, and the skippable goal at its latest year skips. The first derivation paired a cutting year with a positive budget, which the completed YearResult.flexibleGoals comment rules out; it was re-derived on 2026-09-22 and re-approved by the reviewer
      • The zero-guardrail case is asserted on a real simulatePlan run instead, where the scheduler is absent: all six fields publish exactly 0 while the goal still funds and shows up in expenses.oneTimeGoals
      • A fixed goal does not consume the flexible budget; letting it do so changes every later goal's outcome, which is the worksheet's first wrong reading

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: flexible-goal-outcomes-annual.md Mutation receipt: flexible-goal-outcomes-annual.mutation.md

      Evidence tests: annualOneTimeGoalFundingPhase.evidence.test.ts

      Implemented in: flexibleGoals.ts; annualOneTimeGoalFundingPhase.ts; result.ts

      Is the number of: flexible-goals-funded-count-annual, flexible-goals-partially-funded-count-annual, flexible-goals-deferred-count-annual, flexible-goals-skipped-count-annual, flexible-goal-funded-amount-annual, flexible-goal-unfunded-amount-annual

      Feeds: spending-intended-annual

    Fed by: Flexible goal scheduling (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Flexible goals deferred count annual

    Number of flexible goals postponed to a later year in this projection year.

    Field: flexibleGoalsDeferred Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: csv (flexibleGoalsDeferred); results-table (Guardrails column goal-outcome aria-label)

    • Annual flexible-goal outcomes: four counts and two amounts Model record, justified by derivation

      Purpose: What the goal scheduler decided this year, as the six numbers the year row publishes.

      Statement: spending/flexibleGoals.ts#createGoalScheduler visits unresolved goals by classification rank (required, target, ideal, excess), then explicit priority, then plan order, and resolves each against a hard flexible-goal budget. A fixed goal funds its inflated amount unconditionally in its target year and does NOT consume the budget. A movable or skippable goal funds fully when budget + 0.005 is at or above the inflated amount; else, when partial funding is allowed and the budget clears minFundingPct of the INFLATED amount, it partially funds for the remaining budget; else it defers while the year is before latestYear and is skipped at latestYear. projection/internal/annualOneTimeGoalFundingPhase.ts#annualOneTimeGoalFundingPhase folds those outcomes into the six counts and amounts published as projection/internal/types/result.ts#YearResult.flexibleGoals: funded and partiallyFunded both add fundedNominal to fundedAmount and unfundedNominal to unfundedAmount, a deferred goal only increments deferred, and a skipped goal adds its whole amountNominal to unfundedAmount and to its classification's skipped total. Outside guardrail mode the scheduler is absent and all six publish exactly 0 while every goal still funds in its target year. Units: counts, and nominal USD per year. Rounding: none.

      Formula: funded/partiallyFunded/deferred/skipped are outcome counts; fundedAmount = sum of fundedNominal over funded and partially funded goals; unfundedAmount = sum of unfundedNominal over those goals plus amountNominal of every skipped goal

      • amountNominal: Goal amount inflated to the year, amountTodayDollars x inflFactor (unit: usd) (domain: nonnegative)
      • budget: Hard flexible-goal budget for the year; null is unlimited (unit: usd) (domain: nonnegative or null)
      • minFundingPct: Minimum share of the inflated amount a partial funding must clear (unit: percent) (domain: 0..100)
      • EPSILON: Half-cent slack in the budget comparisons (unit: usd) (domain: 0.005)

      Timing: once per projection year, before the funding fixed point

      Rounding: none

      Limits:

      • Movable and skippable goals end the same way: one still unfunded at latestYear is skipped and its amount is folded into the layer totals, so neither is dropped from them. The model/plan.ts#GoalFlexibility comment once promised a movable goal a layer shortfall and a skippable goal a silent drop; decision D-GOAL-FLEXIBILITY (2026-09-25) kept the scheduler, and the comment now describes it. This record follows the scheduler, as the worksheet does
      • The worksheet's two cases are states annualOneTimeGoalFundingPhase produces, and the evidence drives the real phase and the real createGoalScheduler with no seam: a pull-forward year (not cutting, goals may be pulled forward), where the phase hands the scheduler the $1,700 remaining upside budget and the budget constrains the goals pulled forward before their target year; and a cutting year, where the budget is 0, goals not yet in the schedule have no outcome, and the skippable goal at its latest year skips. The first derivation paired a cutting year with a positive budget, which the completed YearResult.flexibleGoals comment rules out; it was re-derived on 2026-09-22 and re-approved by the reviewer
      • The zero-guardrail case is asserted on a real simulatePlan run instead, where the scheduler is absent: all six fields publish exactly 0 while the goal still funds and shows up in expenses.oneTimeGoals
      • A fixed goal does not consume the flexible budget; letting it do so changes every later goal's outcome, which is the worksheet's first wrong reading

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: flexible-goal-outcomes-annual.md Mutation receipt: flexible-goal-outcomes-annual.mutation.md

      Evidence tests: annualOneTimeGoalFundingPhase.evidence.test.ts

      Implemented in: flexibleGoals.ts; annualOneTimeGoalFundingPhase.ts; result.ts

      Is the number of: flexible-goals-funded-count-annual, flexible-goals-partially-funded-count-annual, flexible-goals-deferred-count-annual, flexible-goals-skipped-count-annual, flexible-goal-funded-amount-annual, flexible-goal-unfunded-amount-annual

      Feeds: spending-intended-annual

    Fed by: Flexible goal scheduling (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Flexible goals funded count annual

    Number of flexible goals fully funded in this projection year.

    Field: flexibleGoalsFunded Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: csv (flexibleGoalsFunded); results-table (Guardrails column goal-outcome aria-label)

    • Annual flexible-goal outcomes: four counts and two amounts Model record, justified by derivation

      Purpose: What the goal scheduler decided this year, as the six numbers the year row publishes.

      Statement: spending/flexibleGoals.ts#createGoalScheduler visits unresolved goals by classification rank (required, target, ideal, excess), then explicit priority, then plan order, and resolves each against a hard flexible-goal budget. A fixed goal funds its inflated amount unconditionally in its target year and does NOT consume the budget. A movable or skippable goal funds fully when budget + 0.005 is at or above the inflated amount; else, when partial funding is allowed and the budget clears minFundingPct of the INFLATED amount, it partially funds for the remaining budget; else it defers while the year is before latestYear and is skipped at latestYear. projection/internal/annualOneTimeGoalFundingPhase.ts#annualOneTimeGoalFundingPhase folds those outcomes into the six counts and amounts published as projection/internal/types/result.ts#YearResult.flexibleGoals: funded and partiallyFunded both add fundedNominal to fundedAmount and unfundedNominal to unfundedAmount, a deferred goal only increments deferred, and a skipped goal adds its whole amountNominal to unfundedAmount and to its classification's skipped total. Outside guardrail mode the scheduler is absent and all six publish exactly 0 while every goal still funds in its target year. Units: counts, and nominal USD per year. Rounding: none.

      Formula: funded/partiallyFunded/deferred/skipped are outcome counts; fundedAmount = sum of fundedNominal over funded and partially funded goals; unfundedAmount = sum of unfundedNominal over those goals plus amountNominal of every skipped goal

      • amountNominal: Goal amount inflated to the year, amountTodayDollars x inflFactor (unit: usd) (domain: nonnegative)
      • budget: Hard flexible-goal budget for the year; null is unlimited (unit: usd) (domain: nonnegative or null)
      • minFundingPct: Minimum share of the inflated amount a partial funding must clear (unit: percent) (domain: 0..100)
      • EPSILON: Half-cent slack in the budget comparisons (unit: usd) (domain: 0.005)

      Timing: once per projection year, before the funding fixed point

      Rounding: none

      Limits:

      • Movable and skippable goals end the same way: one still unfunded at latestYear is skipped and its amount is folded into the layer totals, so neither is dropped from them. The model/plan.ts#GoalFlexibility comment once promised a movable goal a layer shortfall and a skippable goal a silent drop; decision D-GOAL-FLEXIBILITY (2026-09-25) kept the scheduler, and the comment now describes it. This record follows the scheduler, as the worksheet does
      • The worksheet's two cases are states annualOneTimeGoalFundingPhase produces, and the evidence drives the real phase and the real createGoalScheduler with no seam: a pull-forward year (not cutting, goals may be pulled forward), where the phase hands the scheduler the $1,700 remaining upside budget and the budget constrains the goals pulled forward before their target year; and a cutting year, where the budget is 0, goals not yet in the schedule have no outcome, and the skippable goal at its latest year skips. The first derivation paired a cutting year with a positive budget, which the completed YearResult.flexibleGoals comment rules out; it was re-derived on 2026-09-22 and re-approved by the reviewer
      • The zero-guardrail case is asserted on a real simulatePlan run instead, where the scheduler is absent: all six fields publish exactly 0 while the goal still funds and shows up in expenses.oneTimeGoals
      • A fixed goal does not consume the flexible budget; letting it do so changes every later goal's outcome, which is the worksheet's first wrong reading

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: flexible-goal-outcomes-annual.md Mutation receipt: flexible-goal-outcomes-annual.mutation.md

      Evidence tests: annualOneTimeGoalFundingPhase.evidence.test.ts

      Implemented in: flexibleGoals.ts; annualOneTimeGoalFundingPhase.ts; result.ts

      Is the number of: flexible-goals-funded-count-annual, flexible-goals-partially-funded-count-annual, flexible-goals-deferred-count-annual, flexible-goals-skipped-count-annual, flexible-goal-funded-amount-annual, flexible-goal-unfunded-amount-annual

      Feeds: spending-intended-annual

    Fed by: Flexible goal scheduling (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Flexible goals partially funded count annual

    Number of flexible goals partly funded in this projection year.

    Field: flexibleGoalsPartiallyFunded Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: csv (flexibleGoalsPartiallyFunded); results-table (Guardrails column goal-outcome aria-label)

    • Annual flexible-goal outcomes: four counts and two amounts Model record, justified by derivation

      Purpose: What the goal scheduler decided this year, as the six numbers the year row publishes.

      Statement: spending/flexibleGoals.ts#createGoalScheduler visits unresolved goals by classification rank (required, target, ideal, excess), then explicit priority, then plan order, and resolves each against a hard flexible-goal budget. A fixed goal funds its inflated amount unconditionally in its target year and does NOT consume the budget. A movable or skippable goal funds fully when budget + 0.005 is at or above the inflated amount; else, when partial funding is allowed and the budget clears minFundingPct of the INFLATED amount, it partially funds for the remaining budget; else it defers while the year is before latestYear and is skipped at latestYear. projection/internal/annualOneTimeGoalFundingPhase.ts#annualOneTimeGoalFundingPhase folds those outcomes into the six counts and amounts published as projection/internal/types/result.ts#YearResult.flexibleGoals: funded and partiallyFunded both add fundedNominal to fundedAmount and unfundedNominal to unfundedAmount, a deferred goal only increments deferred, and a skipped goal adds its whole amountNominal to unfundedAmount and to its classification's skipped total. Outside guardrail mode the scheduler is absent and all six publish exactly 0 while every goal still funds in its target year. Units: counts, and nominal USD per year. Rounding: none.

      Formula: funded/partiallyFunded/deferred/skipped are outcome counts; fundedAmount = sum of fundedNominal over funded and partially funded goals; unfundedAmount = sum of unfundedNominal over those goals plus amountNominal of every skipped goal

      • amountNominal: Goal amount inflated to the year, amountTodayDollars x inflFactor (unit: usd) (domain: nonnegative)
      • budget: Hard flexible-goal budget for the year; null is unlimited (unit: usd) (domain: nonnegative or null)
      • minFundingPct: Minimum share of the inflated amount a partial funding must clear (unit: percent) (domain: 0..100)
      • EPSILON: Half-cent slack in the budget comparisons (unit: usd) (domain: 0.005)

      Timing: once per projection year, before the funding fixed point

      Rounding: none

      Limits:

      • Movable and skippable goals end the same way: one still unfunded at latestYear is skipped and its amount is folded into the layer totals, so neither is dropped from them. The model/plan.ts#GoalFlexibility comment once promised a movable goal a layer shortfall and a skippable goal a silent drop; decision D-GOAL-FLEXIBILITY (2026-09-25) kept the scheduler, and the comment now describes it. This record follows the scheduler, as the worksheet does
      • The worksheet's two cases are states annualOneTimeGoalFundingPhase produces, and the evidence drives the real phase and the real createGoalScheduler with no seam: a pull-forward year (not cutting, goals may be pulled forward), where the phase hands the scheduler the $1,700 remaining upside budget and the budget constrains the goals pulled forward before their target year; and a cutting year, where the budget is 0, goals not yet in the schedule have no outcome, and the skippable goal at its latest year skips. The first derivation paired a cutting year with a positive budget, which the completed YearResult.flexibleGoals comment rules out; it was re-derived on 2026-09-22 and re-approved by the reviewer
      • The zero-guardrail case is asserted on a real simulatePlan run instead, where the scheduler is absent: all six fields publish exactly 0 while the goal still funds and shows up in expenses.oneTimeGoals
      • A fixed goal does not consume the flexible budget; letting it do so changes every later goal's outcome, which is the worksheet's first wrong reading

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: flexible-goal-outcomes-annual.md Mutation receipt: flexible-goal-outcomes-annual.mutation.md

      Evidence tests: annualOneTimeGoalFundingPhase.evidence.test.ts

      Implemented in: flexibleGoals.ts; annualOneTimeGoalFundingPhase.ts; result.ts

      Is the number of: flexible-goals-funded-count-annual, flexible-goals-partially-funded-count-annual, flexible-goals-deferred-count-annual, flexible-goals-skipped-count-annual, flexible-goal-funded-amount-annual, flexible-goal-unfunded-amount-annual

      Feeds: spending-intended-annual

    Fed by: Flexible goal scheduling (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Flexible goals skipped count annual

    Number of flexible goals skipped in this projection year.

    Field: flexibleGoalsSkipped Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: csv (flexibleGoalsSkipped); results-table (Guardrails column goal-outcome aria-label)

    • Annual flexible-goal outcomes: four counts and two amounts Model record, justified by derivation

      Purpose: What the goal scheduler decided this year, as the six numbers the year row publishes.

      Statement: spending/flexibleGoals.ts#createGoalScheduler visits unresolved goals by classification rank (required, target, ideal, excess), then explicit priority, then plan order, and resolves each against a hard flexible-goal budget. A fixed goal funds its inflated amount unconditionally in its target year and does NOT consume the budget. A movable or skippable goal funds fully when budget + 0.005 is at or above the inflated amount; else, when partial funding is allowed and the budget clears minFundingPct of the INFLATED amount, it partially funds for the remaining budget; else it defers while the year is before latestYear and is skipped at latestYear. projection/internal/annualOneTimeGoalFundingPhase.ts#annualOneTimeGoalFundingPhase folds those outcomes into the six counts and amounts published as projection/internal/types/result.ts#YearResult.flexibleGoals: funded and partiallyFunded both add fundedNominal to fundedAmount and unfundedNominal to unfundedAmount, a deferred goal only increments deferred, and a skipped goal adds its whole amountNominal to unfundedAmount and to its classification's skipped total. Outside guardrail mode the scheduler is absent and all six publish exactly 0 while every goal still funds in its target year. Units: counts, and nominal USD per year. Rounding: none.

      Formula: funded/partiallyFunded/deferred/skipped are outcome counts; fundedAmount = sum of fundedNominal over funded and partially funded goals; unfundedAmount = sum of unfundedNominal over those goals plus amountNominal of every skipped goal

      • amountNominal: Goal amount inflated to the year, amountTodayDollars x inflFactor (unit: usd) (domain: nonnegative)
      • budget: Hard flexible-goal budget for the year; null is unlimited (unit: usd) (domain: nonnegative or null)
      • minFundingPct: Minimum share of the inflated amount a partial funding must clear (unit: percent) (domain: 0..100)
      • EPSILON: Half-cent slack in the budget comparisons (unit: usd) (domain: 0.005)

      Timing: once per projection year, before the funding fixed point

      Rounding: none

      Limits:

      • Movable and skippable goals end the same way: one still unfunded at latestYear is skipped and its amount is folded into the layer totals, so neither is dropped from them. The model/plan.ts#GoalFlexibility comment once promised a movable goal a layer shortfall and a skippable goal a silent drop; decision D-GOAL-FLEXIBILITY (2026-09-25) kept the scheduler, and the comment now describes it. This record follows the scheduler, as the worksheet does
      • The worksheet's two cases are states annualOneTimeGoalFundingPhase produces, and the evidence drives the real phase and the real createGoalScheduler with no seam: a pull-forward year (not cutting, goals may be pulled forward), where the phase hands the scheduler the $1,700 remaining upside budget and the budget constrains the goals pulled forward before their target year; and a cutting year, where the budget is 0, goals not yet in the schedule have no outcome, and the skippable goal at its latest year skips. The first derivation paired a cutting year with a positive budget, which the completed YearResult.flexibleGoals comment rules out; it was re-derived on 2026-09-22 and re-approved by the reviewer
      • The zero-guardrail case is asserted on a real simulatePlan run instead, where the scheduler is absent: all six fields publish exactly 0 while the goal still funds and shows up in expenses.oneTimeGoals
      • A fixed goal does not consume the flexible budget; letting it do so changes every later goal's outcome, which is the worksheet's first wrong reading

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: flexible-goal-outcomes-annual.md Mutation receipt: flexible-goal-outcomes-annual.mutation.md

      Evidence tests: annualOneTimeGoalFundingPhase.evidence.test.ts

      Implemented in: flexibleGoals.ts; annualOneTimeGoalFundingPhase.ts; result.ts

      Is the number of: flexible-goals-funded-count-annual, flexible-goals-partially-funded-count-annual, flexible-goals-deferred-count-annual, flexible-goals-skipped-count-annual, flexible-goal-funded-amount-annual, flexible-goal-unfunded-amount-annual

      Feeds: spending-intended-annual

    Fed by: Flexible goal scheduling (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Income annuity annual

    Annuity payments received in a projection year.

    Field: Annuity income Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (annuity); csv (annuity); scenarios-page (Lifetime income "Annuity"); cash-flow-drilldown (annuityPayment source line)

    • Annual annuity income under the joint-survivor payout form Model record, justified by derivation

      Purpose: What an annuity contract pays in a projection year once the payout form is applied.

      Statement: projection/internal/annualPensionAndAnnuityIncome.ts#annualPensionAndAnnuityIncome starts an annuity at its owner's startAge (the first annuitant the plan names, required since schema v7; guaranteed-income-owner), compounds monthlyAmount x 12 by its annual COLA over the years since that start age, applies the selected payout form, and publishes the result as projection/internal/types/result.ts#YearResult.incomes.annuity. Under payoutForm.kind "jointSurvivor" the payment continues after the owner's death to the other household member at survivorPct/100 of the full amount; "lifeOnly" stops at the owner's death and "periodCertain" continues only inside its guarantee window. Units: nominal USD per year. Rounding: none.

      Formula: full = monthlyAmount * 12 * (1 + colaPct/100)^(age - startAge); jointSurvivor pays full * survivorPct/100 after the owner dies

      • monthlyAmount: Monthly payment at the start age (unit: usd/month) (domain: nonnegative)
      • colaPct: Annual cost-of-living adjustment on the contract (unit: percent/year) (domain: 0 is a level contract)
      • survivorPct: Percent continuing to the surviving joint annuitant (unit: percent) (domain: 1..100; requires a two-person household)

      Timing: income pass 2, once per projection year

      Rounding: none

      Limits:

      • Asserted on a real simulatePlan run over 2028-2029. Plan assumptions beyond the worksheet's inputs: a two-person household filing jointly in KY with a zero state rate, zero inflation and zero account returns, the owner's planning age set to 65 so the run makes them dead from 2029, the joint annuitant's planning age set to 95, and an already-owned contract with no purchase event so no exclusion ratio is derived
      • taxablePct is the contract's tax character, not its cash amount; the published income field is the same under any character
      • Period-certain and life-only are the other two forms and are not this record's claim
      • Restated 2026-09-28 under decision D-2027-ROLLOVER. A PURCHASE DATED BEFORE THE START, a registered limit of the convention and not corrected: a contract whose purchase year is before the projection start year is treated as already paid, so the projection pays its annuity and takes no premium from the funding account, whose entered balance is read as already net of it. That is right when the household entered the balance after buying; when the balance was entered before the purchase and not updated (a plan saved in the purchase year and reopened the next), the premium is counted twice, once in the balance and once as the contract it bought. On the derivation's U1 household (a $100,000 non-qualified contract bought in 2026 from the brokerage, $550 a month from 67), as pinned below: at a 2026 start the purchase lowers ending net worth by $151,691.59; at a 2027 start it raises it by $455,159.49. History: the derivation itself measured $147,623 and $454,837, and the changes the next limit lists have moved both since. The independent check measured every tax qualification the same way. The projection cannot tell which case it has, so it does not deduct the premium (which would double-deduct it for every household that did update the balance); it names each such purchase in a warning with the premium and the funding account, and says to lower that balance by the premium if it still includes it (projection/preStartEvents.ts#preStartEvents)
      • The U1 sizes are pinned to the cent in a repository test (2026-09-29, review L7): packages/planner-ui/src/planner/preStartEvents.figures.test.ts builds the household from the example couple and asserts -$151,691.59 from a 2026 start and +$455,159.49 from a 2027 start (-$147,622.51 and +$455,165.79 before the 2026-09-29 change to CMS's published IRMAA amounts, -$147,623.51 from 2026 before Kentucky's part-year slice took its whole standard deduction on 2026-10-07, and -$147,615.81 before the slice received the characterized retirement rows on 2026-10-08, when Kentucky's pension exclusion began to meet the in-plan Roth conversion received while resident, up to the whole $31,110 of 2025 Schedule P: the household are Kentucky residents who move to Florida in November; DOCS/calculations/taxes/scripts/part-year-split-years.mjs lists the split year's slices and rows). The review measured +$454,836.90 from 2027 before main's #761 (D-EXAMPLE-SOURCE-SWITCH) priced a saved example's 2027 premium tax credit from a 2027 start; the same test on main at 9676392f gives +$455,165.79

      Provenance: derived by codex, implemented by claude.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: income-annuity-annual.md Mutation receipt: income-annuity-annual.mutation.md

      Evidence tests: annualPensionAndAnnuityIncome.evidence.test.ts

      Implemented in: annualPensionAndAnnuityIncome.ts; result.ts; preStartEvents.ts

      Is the number of: income-annuity-annual

      Feeds: income-total-annual

    Fed by: Whose age and life a pension or annuity is paid on (model record, 6 of 6 gates pass); Joint last-survivor life expectancy of two independent lives (formula record, 6 of 6 gates pass); One-year death probability: SSA's published q(x) (formula record, 6 of 6 gates pass); SSA period life table, 2023 (2026 Trustees Report) (data record, 6 of 6 gates pass); The survival curve: product of hazard-adjusted one-year survivals, and the 50/50 mixture for 'average' (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Income one time annual

    One-time income recognized in a projection year.

    Field: One-time income Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (oneTime); csv (oneTimeIncome); scenarios-page (Lifetime income "One-time income"); cash-flow-drilldown (oneTimeIncome source line)

    • Annual one-time income Formula record, justified by derivation

      Purpose: What a one-time income stream pays, and only in its named year.

      Statement: projection/internal/otherIncomeStreams.ts#otherIncomeStreams pays a one-time stream only in the calendar year it names, and only while any household member is alive, as amount x inflFactor when inflationAdjusted is true and amount alone when it is false; annualIncomeSetup folds the row into the published projection/internal/types/result.ts#YearResult.incomes.oneTime. Every other year publishes 0 for that stream. Tax treatment routes the income for tax and never changes the cash amount. Units: nominal USD in the payment year. Rounding: none.

      Formula: oneTime = amount * (inflationAdjusted ? inflFactor : 1) when year equals the stream's year and any household member is alive, else 0

      • amount: Payment in today's dollars (unit: usd) (domain: nonnegative)
      • inflFactor: Cumulative general-inflation factor from the projection start year (unit: 1) (domain: positive)
      • year: The single calendar year the stream names (unit: calendar year) (domain: integer)

      Timing: income pass 2, once per projection year

      Rounding: none

      Limits:

      • Asserted on a real simulatePlan run over 2028-2032. Plan assumptions beyond the worksheet's inputs: a single person filing single in KY with a zero state rate, no accounts, and the worksheet's 1.12 cumulative inflation factor supplied as a per-year inflation path of 12 percent in the first projection year and 0 afterwards, so that every year from 2029 on carries exactly that factor
      • The neighbouring years are asserted too, because "pays only in its year" is half the claim
      • taxTreatment "capitalGain" is the row's character, not an exclusion from cash income
      • Restated 2026-09-28 under decision D-2027-ROLLOVER: a stream whose year is before the projection start year pays nothing in the projection, as before, and the projection now names it in a warning (projection/preStartEvents.ts#preStartEvents): the income is dated before the plan starts, so it is not counted, and if it has not arrived the household moves it to the start year or later. From a 2027 start the derivation's U1 household's $50,000 inheritance dated 2026 dropped out with only an editor note to say so

      Provenance: derived by codex, implemented by claude.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: income-one-time-annual.md Mutation receipt: income-one-time-annual.mutation.md

      Evidence tests: otherIncomeStreams.evidence.test.ts

      Implemented in: otherIncomeStreams.ts; result.ts; preStartEvents.ts

      Is the number of: income-one-time-annual

      Feeds: income-total-annual

  • Income ordinary dividends annual

    Ordinary dividend income recognized during the projection year.

    Field: ordinaryDividends Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (ordinaryDividends)

    • Annual ordinary dividends distributed by a taxable account Formula record, justified by derivation

      Purpose: The non-qualified remainder of a taxable account's generated dividends.

      Statement: projection/internal/distributedTaxableYieldRows.ts#distributedTaxableYieldRows computes, for each taxable account whose start-of-year balance is strictly positive, ordinaryDividends = dividends - qualified, where dividends = startBalance x dividendYieldPct / 100 and qualified applies the resolved qualified ratio; projection/internal/annualIncomeSetup.ts#annualIncomeSetup folds those rows into the published projection/internal/types/result.ts#YearResult.incomes.ordinaryDividends. Qualified and ordinary dividends partition the same dividends and never add on top of them. Units: nominal USD per year. Rounding: none.

      Formula: ordinaryDividends = dividends - dividends * clamp(qualifiedRatio ?? blendedQualifiedRatio ?? 0.85, 0, 1), dividends = startBalance * dividendYieldPct / 100

      • dividends: Generated dividends on the start balance (unit: usd/year) (domain: nonnegative)
      • qualifiedRatio: Qualified share of dividends (unit: 1) (domain: clamped to [0, 1]; absent falls back to the blend, then to 0.85)

      Timing: once per taxable account per projection year, before the wage pass

      Rounding: none

      Limits:

      • Asserted on two real simulatePlan runs of the projection's first year, where the start-of-year balance is the plan balance. Plan assumptions beyond the worksheet's inputs: a single 51-year-old filing single in KY with a zero state rate, zero inflation, zero account return and cost basis equal to balance; the account carries no allocation, so the defaults case exercises the 0.85 fallback
      • The subtraction is performed in binary floating point, so the explicit case's $700 arrives as 700.0000000000002 and is compared under the worksheet's half-cent tolerance rather than exactly
      • This is the ordinary share of dividends only; taxable interest is a separate member of taxable yield

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: income-ordinary-dividends-annual.md Mutation receipt: income-ordinary-dividends-annual.mutation.md

      Evidence tests: distributedTaxableYieldRows.evidence.test.ts

      Implemented in: distributedTaxableYieldRows.ts; annualIncomeSetup.ts; result.ts

      Is the number of: income-ordinary-dividends-annual

      Feeds: tax-total-annual, magi-annual

    Fed by: Blended taxable yields and dividend-weighted qualified share (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Income pension annual

    Pension income paid in a projection year.

    Field: Pension income Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (pension); csv (pension); scenarios-page (Lifetime income "Pension"); cash-flow-drilldown (pension source line)

    • Annual pension income, with COLA and survivor continuation Model record, justified by derivation

      Purpose: What a pension pays in a projection year, including the share a surviving spouse keeps.

      Statement: projection/internal/annualPensionAndAnnuityIncome.ts#annualPensionAndAnnuityIncome pays a pension from the owner's startAge onward (the owner the plan names, required on every pension since schema v7; guaranteed-income-owner) as monthlyAmount x 12 compounded by its annual COLA over the years since the start age, and publishes it as projection/internal/types/result.ts#YearResult.incomes.pension. While the owner is alive the full amount pays; after the owner dies it continues to a surviving household member at survivorPct/100 of that full amount, and stops when no survivor is alive. A pension commuted by a lump-sum election pays nothing. Units: nominal USD per year. Rounding: none.

      Formula: full = monthlyAmount * 12 * (1 + colaPct/100)^(age - startAge); paid = full while the owner lives, full * survivorPct/100 to a survivor after the owner dies

      • monthlyAmount: Monthly pension at the start age (unit: usd/month) (domain: nonnegative)
      • colaPct: Annual cost-of-living adjustment (unit: percent/year) (domain: 0 is a fixed-nominal pension)
      • age - startAge: COLA years elapsed since payments began (unit: years) (domain: integer at or above 0)
      • survivorPct: Percent of the benefit continuing to a surviving spouse (unit: percent) (domain: 0..100)

      Timing: income pass 2, once per projection year

      Rounding: none

      Limits:

      • Asserted on a real simulatePlan run over 2028-2030. Plan assumptions beyond the worksheet's inputs: a two-person household filing jointly in KY with a zero state rate, zero inflation and zero account returns, the owner's planning age set to 65 so the run's own longevity makes them dead from 2029 on, and the survivor's planning age set to 95 so the survivor continuation is the only thing being read
      • The COLA count is driven by the owner's would-be attained age, not by whether they are alive: the survivor keeps a benefit that has continued to compound
      • A lump-sum election is a separate path this record does not price; the test’s pension carries no election

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: income-pension-annual.md Mutation receipt: income-pension-annual.mutation.md

      Evidence tests: annualPensionAndAnnuityIncome.evidence.test.ts

      Implemented in: annualPensionAndAnnuityIncome.ts; result.ts

      Is the number of: income-pension-annual

      Feeds: income-total-annual

    Fed by: Whose age and life a pension or annuity is paid on (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Income qualified dividends annual

    Qualified dividend income recognized during the projection year.

    Field: qualifiedDividends Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (qualifiedDividends)

    • Annual qualified dividends distributed by a taxable account Formula record, justified by derivation

      Purpose: The qualified share of a taxable account's generated dividends.

      Statement: projection/internal/distributedTaxableYieldRows.ts#distributedTaxableYieldRows computes, for each taxable account whose start-of-year balance is strictly positive, dividends = startBalance x dividendYieldPct / 100 and qualified = dividends x clamp(qualifiedRatio ?? blendedQualifiedRatio ?? DEFAULT_QUALIFIED_DIVIDEND_RATIO, 0, 1), and projection/internal/annualIncomeSetup.ts#annualIncomeSetup folds those rows into the published projection/internal/types/result.ts#YearResult.incomes.qualifiedDividends. DEFAULT_QUALIFIED_DIVIDEND_RATIO is 0.85, a fraction rather than a percent. Units: nominal USD per year. Rounding: none.

      Formula: qualified = (startBalance * dividendYieldPct / 100) * min(1, max(0, qualifiedRatio ?? blendedQualifiedRatio ?? 0.85))

      • startBalance: Start-of-year balance, the prior year's close (unit: usd) (domain: strictly positive, else no row)
      • dividendYieldPct: Account dividend yield, in percent of the start balance (unit: percent/year) (domain: nonnegative)
      • qualifiedRatio: Qualified share of dividends (unit: 1) (domain: clamped to [0, 1]; absent falls back to the blend, then to 0.85)

      Timing: once per taxable account per projection year, before the wage pass

      Rounding: none

      Limits:

      • Asserted on two real simulatePlan runs of the projection's first year, where the start-of-year balance is the plan balance. Plan assumptions beyond the worksheet's inputs: a single 51-year-old filing single in KY with a zero state rate, zero inflation, zero account return and cost basis equal to balance; the account carries no allocation, so the defaults case exercises the 0.85 fallback rather than a blend
      • The default is 0.85 as a fraction; reading it as 85 percent of a percent is one of the worksheet's wrong readings and the clamp to [0, 1] is what stops it
      • An explicit account ratio wins over the blend and over the default, so the explicit case proves precedence, not just arithmetic

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: income-qualified-dividends-annual.md Mutation receipt: income-qualified-dividends-annual.mutation.md

      Evidence tests: distributedTaxableYieldRows.evidence.test.ts

      Implemented in: distributedTaxableYieldRows.ts; annualIncomeSetup.ts; result.ts

      Is the number of: income-qualified-dividends-annual

      Feeds: tax-total-annual, magi-annual

    Fed by: Blended taxable yields and dividend-weighted qualified share (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Income recurring annual

    Recurring non-wage income in a projection year.

    Field: Recurring income Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (recurring); csv (recurring); scenarios-page (Lifetime income "Recurring income"); cash-flow-drilldown (recurringIncome source line)

    • Annual recurring household income Formula record, justified by derivation

      Purpose: What a recurring income stream pays inside its year window.

      Statement: projection/internal/otherIncomeStreams.ts#otherIncomeStreams pays a recurring stream in every year inside its inclusive startYear..endYear window while any household member is alive, as annualAmount x inflFactor when inflationAdjusted is true and annualAmount alone when it is false; annualIncomeSetup folds the rows into the published projection/internal/types/result.ts#YearResult.incomes.recurring. A null startYear or endYear leaves that side of the window open. Tax treatment routes the income for tax and never changes the cash amount. Units: nominal USD per year. Rounding: none.

      Formula: recurring = annualAmount * (inflationAdjusted ? inflFactor : 1), paid when startYear <= year <= endYear and any household member is alive

      • annualAmount: Stream amount in today's dollars (unit: usd/year) (domain: nonnegative)
      • inflFactor: Cumulative general-inflation factor from the projection start year (unit: 1) (domain: positive)
      • startYear, endYear: Inclusive calendar-year window; null leaves that side open (unit: calendar year) (domain: integer or null)

      Timing: income pass 2, once per projection year

      Rounding: none

      Limits:

      • Asserted on a real simulatePlan run over 2028-2030. Plan assumptions beyond the worksheet's inputs: a single person filing single in KY with a zero state rate, no accounts, and the worksheet's 1.08 cumulative inflation factor supplied as a per-year inflation path of 8 percent in the first projection year and 0 afterwards, because a single constant rate cannot give a two-year cumulative factor of exactly 1.08
      • The gate is household-wide, not person-owned: a recurring stream has no owner and stops only after the last household death
      • taxTreatment "none" is a tax-free row that still joins cash income; the field is cash, not taxable income

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: income-recurring-annual.md Mutation receipt: income-recurring-annual.mutation.md

      Evidence tests: otherIncomeStreams.evidence.test.ts

      Implemented in: otherIncomeStreams.ts; result.ts

      Is the number of: income-recurring-annual

      Feeds: income-total-annual

  • Income taxable interest annual

    Taxable interest credited to the household during the projection year.

    Field: taxableInterest Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (taxableInterest)

    • Annual taxable interest distributed by a taxable account Formula record, justified by derivation

      Purpose: The interest a taxable account generates on its start-of-year balance.

      Statement: projection/internal/distributedTaxableYieldRows.ts#distributedTaxableYieldRows computes, for each taxable account whose start-of-year balance is strictly positive, interest = startBalance x interestYieldPct / 100, and projection/internal/annualIncomeSetup.ts#annualIncomeSetup folds those rows into the published projection/internal/types/result.ts#YearResult.incomes.taxableInterest. The rate is the account's own interestYieldPct when set, else the allocation blend's interest yield, else 0, each floored at 0; the start-of-year balance is the prior year's closing balance, and a zero or negative one produces no yield row at all. reinvestDividends decides where the generated cash goes, never whether it is characterized as interest. Units: nominal USD per year. Rounding: none.

      Formula: interest = startBalance * max(0, interestYieldPct ?? blendedInterestYieldPct ?? 0) / 100

      • startBalance: Start-of-year balance, the prior year's close (unit: usd) (domain: strictly positive, else no row)
      • interestYieldPct: Account interest yield, in percent of the start balance (unit: percent/year) (domain: nonnegative; overrides the allocation blend)

      Timing: once per taxable account per projection year, before the wage pass

      Rounding: none

      Limits:

      • Asserted on two real simulatePlan runs of the projection's first year, where the start-of-year balance is the plan balance. Plan assumptions beyond the worksheet's inputs: a single 51-year-old filing single in KY with a zero state rate, zero inflation, zero account return and cost basis equal to balance, so nothing but the stated yields can move the year; the account carries no allocation, so the defaults case exercises the no-blend fallback the worksheet names
      • A percent, not a fraction: 2.25 means 2.25 percent, and reading it as a fraction is one of the worksheet's wrong readings
      • The interest field is characterization, not cash delivery; with reinvestment on, the same dollars are credited back to the account and add nothing to the year's cash inflows

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: income-taxable-interest-annual.md Mutation receipt: income-taxable-interest-annual.mutation.md

      Evidence tests: distributedTaxableYieldRows.evidence.test.ts

      Implemented in: distributedTaxableYieldRows.ts; annualIncomeSetup.ts; result.ts

      Is the number of: income-taxable-interest-annual

      Feeds: tax-total-annual, magi-annual

    Fed by: Blended taxable yields and dividend-weighted qualified share (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Income total annual

    All modeled income received in a projection year before expenses and taxes.

    Field: Total income Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (income); csv (totalIncome); report (yearLedger); results-table (income total); results-table (Income column); report (year-ledger block income and ReportPage year table); scenarios-page (Annual "Gross income" and lifetime "Total gross income"); results-headline (Depletion narrative "Income doesn't stop: about $X" (deflated))

    • Annual cash-income total Composition record, justified by derivation

      Purpose: The year row's single spendable-income figure, and which published members compose it.

      Statement: projection/internal/types/yearLedger.ts#YearIncomes.total is the year's cash income: wages + socialSecurity + pension + annuity + tipsLadder + recurring + oneTime + taxableYield + taxExemptInterest, folded in that operand order by projection/simulate.ts#simulatePlan after every income pass has committed. The separately published taxableInterest, ordinaryDividends and qualifiedDividends characterize taxableYield for tax purposes and never join the sum again. Units: nominal USD per year. Rounding: none; the sum is a binary float.

      Formula: total = wages + socialSecurity + pension + annuity + tipsLadder + recurring + oneTime + taxableYield + taxExemptInterest

      • wages, socialSecurity, pension, annuity: Person-owned stream payments this year (unit: usd/year) (domain: nonnegative)
      • tipsLadder: TIPS-ladder coupons and maturing principal (unit: usd/year) (domain: nonnegative; 0 without ladders)
      • recurring, oneTime: Household streams inside their year window (unit: usd/year) (domain: nonnegative)
      • taxableYield: Taxable interest plus all dividends distributed by taxable accounts (unit: usd/year) (domain: nonnegative)
      • taxExemptInterest: Federally exempt municipal interest, cash-real but never ordinary income (unit: usd/year) (domain: nonnegative)

      Timing: once per projection year, after the three income passes and the ladder pass

      Rounding: none

      Limits:

      • Asserted on a real simulatePlan run whose single year realizes all nine members at the worksheet's amounts. Plan assumptions beyond the worksheet's inputs: zero general inflation, zero account returns, a single 68-year-old filing single in KY with a zero state rate, the Social Security stream claimed at that cohort's full retirement age so the claim factor is exactly 1 and the earnings test withholds nothing, and four separate taxable accounts so the interest, wholly qualified dividend, wholly ordinary dividend and municipal sleeves each carry one worksheet figure exactly
      • Reinvestment is switched off on those taxable accounts so the generated yield is visible as cash; the published total counts taxableYield either way, because the field sums characterized yield rather than yield that reached the household cash hub
      • The composition is the published members only. The year also carries realized gains, Roth conversions, forced distributions and loan proceeds, none of which are cash income members: they reach the ledger through withdrawals, transfers and the cash-flow report instead

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: income-total-annual.md Mutation receipt: income-total-annual.mutation.md

      Evidence tests: simulate.evidence.test.ts

      Implemented in: yearLedger.ts; simulate.ts

      Is the number of: income-total-annual

      Feeds: portfolio-need-annual

    Fed by: Annual annuity income under the joint-survivor payout form (model record, 6 of 6 gates pass); Annual one-time income (formula record, 6 of 6 gates pass); Annual pension income, with COLA and survivor continuation (model record, 6 of 6 gates pass); Annual recurring household income (formula record, 6 of 6 gates pass); Annual taxable yield distributed by a taxable account (formula record, 6 of 6 gates pass); Annual wage income for one stream (formula record, 6 of 6 gates pass); Annual tax-exempt interest, and the ACA-year maximum (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Income wages annual

    Employment wages modeled for a projection year.

    Field: Wages Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: chart (wages); csv (wages); scenarios-page (Lifetime income "Wages"); cash-flow-drilldown (wages source line)

    • Annual wage income for one stream Formula record, justified by derivation

      Purpose: What a wage stream pays in a projection year, after real raises and inflation.

      Statement: projection/internal/wageIncomeStreams.ts#wageIncomeStreams emits one row per wage stream that pays this year, in plan.incomes order, with amount = annualGross x (1 + realGrowthPct/100)^(year - startYear) x inflFactor, computed in that operand order; annualIncomeSetup folds those rows into the published projection/internal/types/result.ts#YearResult.incomes.wages. A stream is skipped when its owner is not alive, or when the owner has attained the stream's stop age: endAge when the stream names one, else the person's retirementAge, and neither when both are null. Wages run before Social Security because pass 3's earnings test reads the per-person wage totals. Units: nominal USD per year. Rounding: none.

      Formula: wages = annualGross * (1 + realGrowthPct/100)^(year - startYear) * inflFactor

      • annualGross: Gross wage at the projection start year (unit: usd/year) (domain: nonnegative)
      • realGrowthPct: Annual real raise, in percent (unit: percent/year) (domain: absent reads as 0)
      • year - startYear: Elapsed projection years, computed operand for operand at the phase (unit: years) (domain: integer at or above 0)
      • inflFactor: Cumulative general-inflation factor from the projection start year (unit: 1) (domain: positive)
      • stopAge: endAge when present, else the person's retirementAge (unit: attained age) (domain: either may be null; attaining it stops the row)

      Timing: income pass 1, once per projection year, before Social Security

      Rounding: none

      Limits:

      • Asserted on a real simulatePlan run over 2028-2030. Plan assumptions beyond the worksheet's inputs: a single person filing single in KY with a zero state rate, no accounts, and the worksheet's 1.08 cumulative inflation factor supplied as a per-year inflation path of 8 percent in the first projection year and 0 afterwards, because a single constant rate cannot give a two-year cumulative factor of exactly 1.08
      • The stop age is attained-age based: a stream with endAge 65 pays at attained age 64 and stops at 65, so the worksheet's paying year is the last one before the stop
      • The engine preserves plan order across wage rows rather than pre-summing them, so the last binary digit of a multi-row wage total depends on that order; the test asserts a single row

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: income-wages-annual.md Mutation receipt: income-wages-annual.mutation.md

      Evidence tests: wageIncomeStreams.evidence.test.ts

      Implemented in: wageIncomeStreams.ts; result.ts

      Is the number of: income-wages-annual

      Feeds: income-total-annual, social-security-benefit-annual

  • Inherited account final deadline year

    Final calendar year by which an inherited account must be emptied.

    Field: finalDeadlineYear Unit: calendar year Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: report (inherited account final deadline); results-table (Inherited schedule deadline sentence); report (inherited-schedules block finalDeadlineYear)

    • Inherited-account final emptying year Data record, justified by derivation

      Purpose: The fixed calendar year an inherited account must be emptied by, when its regime has one.

      Statement: strategies/inheritedIra.ts#classifyInheritedRegime publishes #InheritedRegimeClassification.finalDeadlineYear as the fixed final emptying year when the regime has one: ownerDeathYear + 10 for a non-eligible designated beneficiary and for a spouse's ten-year election, and beneficiaryBirthYear + 21 + 10 for an eligible designated minor child, whose majority year is separately published as minorMajorityYear. A single-life regime has no fixed deadline and the field is absent. Units: calendar year, or absent. Rounding: none; integer year addition.

      Formula: ten-year rows: deathYear + 10; minor child: birthYear + 21 + 10; life-expectancy rows: absent

      • deathYear: Calendar year the original owner died (unit: year) (domain: >= 2020)
      • birthYear: Minor-child beneficiary birth year (unit: year) (domain: majority year >= death year)

      Timing: once per inherited account, at classification

      Rounding: none

      Limits:

      • All four regime cases asserted at the exported classifier with the worksheet's death year, beneficiary birth year and conventions verbatim. Plan assumptions beyond the worksheet's inputs: every case is a traditional IRA with a sole designated-individual beneficiary and asserted provenance, and the owner is asserted to have died before the required beginning date, which is what places the non-eligible case on the ten-year row rather than the ten-year-with-annual-RMDs row; both rows publish the same deathYear + 10 deadline
      • The single-life case is the not-more-than-10-years-younger eligible designated beneficiary, whose classification carries no finalDeadlineYear at all rather than a null one

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: inherited-account-final-deadline-year.md Mutation receipt: inherited-account-final-deadline-year.mutation.md

      Evidence tests: inheritedIra.evidence.test.ts

      Implemented in: inheritedIra.ts

      Is the number of: inherited-account-final-deadline-year

      Feeds: inherited-distribution-required-annual

  • Inherited distribution required annual

    Required inherited-account distribution dollars due for the account and year.

    Field: inheritedRequiredAmount Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (inheritedRequiredAmount); results-table (Inherited schedules Required column); report (inherited-schedules block requiredAmount)

    • Annual inherited-account required amount Formula record, justified by derivation

      Purpose: The legal-year requirement on an inherited account, before any comparison to the live balance.

      Statement: strategies/inheritedIra.ts#inheritedRequirementForYear publishes the annual inherited-account requirement from the prior-December-31 balance. A beneficiary fixed Single Life Table divisor is read once at the beneficiary's age in the year after death and declines by exactly one per later calendar year; for a traditional account inherited on or after the owner's required beginning date under the eligible-designated-beneficiary life-expectancy regime, the greater of the beneficiary's fixed divisor and the owner's fixed divisor governs, so the longer life expectancy produces the smaller required amount; a no-annual-requirement window publishes 0; and the final deadline year requires the full prior-year-end balance, reconciled to the live balance at execution. The 2026 tax parameters supply 14.8 at age 75, so the next fixed divisor is 13.8, not the age-76 entry 14.1; an owner aged 86 in the death year starts from the entry 7.6 and so stands at 6.6 in the first year after the death year. Units: nominal USD per year. Rounding: none.

      Formula: annual: required = B / d, d read once at the first distribution year and reduced by one per later year; none: 0; final sweep: required = B

      • B: Prior-December-31 balance (unit: usd) (domain: nonnegative)
      • d: Fixed Single Life divisor, minus elapsed years (unit: years) (domain: positive; <= 1 becomes a sweep)

      Timing: once per inherited account per calendar year

      Rounding: none

      Limits:

      • All six of the worksheet's cases asserted at the exported calculator with the stated year, prior-year-end balance and divisors verbatim: the 2027 first-year beneficiary arm, the 2028 fixed-minus-one continuation, both post-RBD rows in the first year after the death year, the pre-RBD ten-year no-annual window, and the 2036 final sweep. Plan assumptions beyond the worksheet's inputs: the annual arm and both post-RBD rows are an eligible designated beneficiary (disabled) born so the stated age falls in the stated year, the post-RBD rows add an owner born in 1940 (age 86 in the 2026 death year) who had started RMDs and whose death-year RMD was satisfied, the no-annual and sweep cases are a non-eligible designated beneficiary whose owner died in 2026 before the required beginning date, and every case is a sole designated-individual beneficiary of a traditional IRA with asserted provenance
      • The first derivation stated the post-RBD rule as the greater required amount, max(B / beneficiary divisor, B / owner divisor), and used an owner-fixed divisor of exactly 10.8 that no 2026 Single Life Table entry can produce; that derivation was corrected on 2026-09-18. The worksheet now states the comparison production holds: the greater DIVISOR (`if (ownDiv > divisor) divisor = ownDiv`), which is the longer life expectancy and so the smaller amount, per Treas. Reg. 1.401(a)(9)-5(d)(1)(ii). The worksheet reaches the owner arm from the age-86 death-year entry 7.6, giving 6.6 in the first year after the death year. Both winning arms are now constructed and asserted: a beneficiary aged 75 keeps 14.8 and publishes 10,000, and a beneficiary aged 90 at 5.7 loses to the owner's 6.6 and publishes 22,424.242424. No production-versus-worksheet discrepancy remains

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: inherited-distribution-required-annual.md Mutation receipt: inherited-distribution-required-annual.mutation.md

      Evidence tests: inheritedIra.evidence.test.ts

      Implemented in: inheritedIra.ts

      Is the number of: inherited-distribution-required-annual

      Feeds: inherited-distribution-required-executed-annual, tax-penalties-annual

    Fed by: Inherited-account final emptying year (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Inherited distribution required executed annual

    Required inherited-account distribution dollars actually executed for the account and year.

    Field: inheritedExecutedRequiredAmount Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (inheritedExecutedRequiredAmount); report (inherited required amount executed); results-table (Inherited schedules Executed column); report (inherited-schedules block executedRequiredAmount and ReportPage inherited table)

    • Executed inherited required distribution Formula record, justified by derivation

      Purpose: The cash a required inherited distribution actually debits, once the live balance is consulted.

      Statement: projection/internal/annualInheritedIraDistributions.ts#annualInheritedIraDistributions writes #AnnualInheritedIraDistributionOperation.executed as min(required amount, live balance) in an ordinary required year, the full live balance in a final-sweep year, and 0 when the requirement is none or notice-waived. Requirement evidence stays immutable at its legal-year amount; only the executed figure is capped. Units: nominal USD per year. Rounding: none.

      Formula: ordinary: executed = min(R, L); final sweep: executed = L; none or notice-waived: executed = 0

      • R: Required amount from the requirement evidence (unit: usd) (domain: nonnegative)
      • L: Live account balance at the forced-distribution phase (unit: usd) (domain: nonnegative)

      Timing: once per inherited account per projection year, before the funding solve

      Rounding: none

      Limits:

      • All five cases asserted at the exported phase with the worksheet's required amounts, live balances and requirement statuses realized from plan facts. Plan assumptions beyond the worksheet's inputs: an 8,000 requirement is realized as a 320,000 prior-year-end balance over an exact 40.0 fixed Single Life divisor (a beneficiary aged 46 in the first distribution year), so the quotient is exactly the worksheet's whole dollar; the final sweep is a non-eligible designated beneficiary reaching deathYear + 10; the none case is the same beneficiary inside the ten-year window; and the notice-waived case is a post-RBD ten-year-with-annual-RMDs row for a 2022 death in relief year 2024, whose 312,000 prior-year-end balance over the 39.0 continuation divisor is again exactly 8,000
      • The requirement evidence is asserted alongside the executed amount in every case, so a cap can never be mistaken for a smaller requirement

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: inherited-distribution-required-executed-annual.md Mutation receipt: inherited-distribution-required-executed-annual.mutation.md

      Evidence tests: annualInheritedIraDistributions.evidence.test.ts

      Implemented in: annualInheritedIraDistributions.ts

      Is the number of: inherited-distribution-required-executed-annual

      Feeds: inherited-distribution-forced-annual, withdrawals-by-category-annual

    Fed by: Annual inherited-account required amount (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Inherited distribution voluntary annual

    Inherited-account distribution dollars taken voluntarily beyond the required amount for the account and year.

    Field: inheritedVoluntaryAmount Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (inheritedVoluntaryAmount); report (inherited voluntary distribution); results-table (Inherited schedules Voluntary column)

    • Voluntary inherited-account draw Composition record, justified by derivation

      Purpose: The ordinary withdrawal plan's extra draw from an inherited account, kept apart from its forced take.

      Statement: projection/internal/annualWithdrawalApplyFlowPlan.ts#annualWithdrawalApplyFlowPlan writes #AnnualWithdrawalEvidenceWrite.voluntaryAmount as the ordinary withdrawal plan's draw from that inherited account, taken from the plan by account id after the forced required take has already been classified. An account for which treat-as-own is effective this year is routed as owner treatment and receives no inherited evidence write at all. Units: nominal USD per year. Rounding: none.

      Formula: voluntaryAmount = withdrawnByAccountId(accountId), or no write when treat-as-own is effective

      • withdrawnByAccountId: Accepted ordinary withdrawal plan by account (unit: usd) (domain: nonnegative)
      • treat-as-own effective: Annual owner-treatment routing for the account (unit: boolean) (domain: IRA, death year >= 2020, year > death year)

      Timing: once per projection year, in the apply-flow phase after forced distributions

      Rounding: none

      Limits:

      • Asserted at the exported phase with the worksheet's remaining balance, ordinary plan draw and treat-as-own flag verbatim: the account enters the phase at 95,000, already net of the 5,000 forced take, and the plan draws 12,000. The 5,000 forced take is not re-supplied to this phase, which is the point of the separation, so the test asserts that the sum of the two is the account's 17,000 total distribution while only 12,000 is voluntary
      • The treat-as-own case is asserted with the same inputs and an accepted owner-treatment route for the account, where the phase emits no inherited evidence write; it needs an IRA whose owner died in 2020 or later and a year after the death year, which the test supplies

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: inherited-distribution-voluntary-annual.md Mutation receipt: inherited-distribution-voluntary-annual.mutation.md

      Evidence tests: annualWithdrawalApplyFlowPlan.evidence.test.ts

      Implemented in: annualWithdrawalApplyFlowPlan.ts

      Is the number of: inherited-distribution-voluntary-annual

      Feeds: withdrawals-by-category-annual, withdrawals-total-annual

  • Insurance cash value annual

    Cash surrender value of modeled insurance at the end of the projection year.

    Field: insuranceCashValue Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (insuranceCashValue)

    • Annual permanent-life cash value and death-year settlement Model record, justified by derivation

      Purpose: What a permanent-life policy is worth at year end, and what it pays in the insured's death year.

      Statement: projection/internal/types/result.ts#YearResult.insuranceCashValue and #YearResult.deathBenefit, transitioned by projection/internal/annualPermanentLifeTransitions.ts#annualPermanentLifeTransitions, publish the year-end cash-value asset and the death-year settlement. While the insured is below the death age, schedule mode interpolates the illustration table linearly by attained age with endpoint clamping and flat-rate mode compounds the prior cash value by cashValueGrowthPct. In the year attained age equals the death age the policy pays max(deathBenefit face amount, cash value) and its cash value becomes 0, and it stays 0 afterwards. Units: nominal USD. Rounding: none.

      Formula: schedule: cv = v_lo + (a - a_lo)/(a_hi - a_lo) (v_hi - v_lo); flat: cv = cv_prev (1 + g); death year: payout = max(face, cv_prev), cv = 0

      • a: Insured attained age (unit: years) (domain: clamped to the schedule ends)
      • v_lo, v_hi: Bracketing illustration values (unit: usd) (domain: nonnegative)
      • g: Flat cash-value growth (unit: 1) (domain: cashValueGrowthPct / 100)
      • face: Current face death benefit (unit: usd) (domain: nonnegative)

      Timing: once per projection year, per policy in plan order

      Rounding: none

      Limits:

      • Asserted at the exported phase helper with the worksheet's two policies, their modes, schedule points, entry cash value, growth rate and face amounts verbatim. Plan assumptions beyond the worksheet's inputs: both policies are paid-up, which this transition does not read
      • The first derivation put the settling policy at attained age 71 while its Claim and Arithmetic described and calculated the death-age-70 year; that derivation was corrected on 2026-09-18. The worksheet's Inputs table now states attained age 70, the death year production settles in, where the payout is max(50,000 face, 60,000 cash value) = 60,000 and the settled policy stops being a cash-value asset. Its last wrong reading moves that row to attained age 71 (the year after the death year, where the payout is null and the cash value 0) and the test asserts both, so no production-versus-worksheet discrepancy remains

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insurance-cash-value-and-death-benefit-annual.md Mutation receipt: insurance-cash-value-and-death-benefit-annual.mutation.md

      Evidence tests: annualPermanentLifeTransitions.evidence.test.ts

      Implemented in: result.ts; annualPermanentLifeTransitions.ts

      Is the number of: insurance-cash-value-annual, insurance-death-benefit-annual

      Feeds: accounts-net-worth-annual

  • Insurance death benefit annual

    Insurance death benefit included in the projection year estate value.

    Field: deathBenefit Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (deathBenefit); cash-flow-drilldown (lifeInsuranceDeathBenefit source line)

    • Annual permanent-life cash value and death-year settlement Model record, justified by derivation

      Purpose: What a permanent-life policy is worth at year end, and what it pays in the insured's death year.

      Statement: projection/internal/types/result.ts#YearResult.insuranceCashValue and #YearResult.deathBenefit, transitioned by projection/internal/annualPermanentLifeTransitions.ts#annualPermanentLifeTransitions, publish the year-end cash-value asset and the death-year settlement. While the insured is below the death age, schedule mode interpolates the illustration table linearly by attained age with endpoint clamping and flat-rate mode compounds the prior cash value by cashValueGrowthPct. In the year attained age equals the death age the policy pays max(deathBenefit face amount, cash value) and its cash value becomes 0, and it stays 0 afterwards. Units: nominal USD. Rounding: none.

      Formula: schedule: cv = v_lo + (a - a_lo)/(a_hi - a_lo) (v_hi - v_lo); flat: cv = cv_prev (1 + g); death year: payout = max(face, cv_prev), cv = 0

      • a: Insured attained age (unit: years) (domain: clamped to the schedule ends)
      • v_lo, v_hi: Bracketing illustration values (unit: usd) (domain: nonnegative)
      • g: Flat cash-value growth (unit: 1) (domain: cashValueGrowthPct / 100)
      • face: Current face death benefit (unit: usd) (domain: nonnegative)

      Timing: once per projection year, per policy in plan order

      Rounding: none

      Limits:

      • Asserted at the exported phase helper with the worksheet's two policies, their modes, schedule points, entry cash value, growth rate and face amounts verbatim. Plan assumptions beyond the worksheet's inputs: both policies are paid-up, which this transition does not read
      • The first derivation put the settling policy at attained age 71 while its Claim and Arithmetic described and calculated the death-age-70 year; that derivation was corrected on 2026-09-18. The worksheet's Inputs table now states attained age 70, the death year production settles in, where the payout is max(50,000 face, 60,000 cash value) = 60,000 and the settled policy stops being a cash-value asset. Its last wrong reading moves that row to attained age 71 (the year after the death year, where the payout is null and the cash value 0) and the test asserts both, so no production-versus-worksheet discrepancy remains

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insurance-cash-value-and-death-benefit-annual.md Mutation receipt: insurance-cash-value-and-death-benefit-annual.mutation.md

      Evidence tests: annualPermanentLifeTransitions.evidence.test.ts

      Implemented in: result.ts; annualPermanentLifeTransitions.ts

      Is the number of: insurance-cash-value-annual, insurance-death-benefit-annual

      Feeds: accounts-net-worth-annual

  • Long term care benefit annual

    Long-term-care insurance benefit received during the projection year.

    Field: ltcBenefit Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (ltcBenefit)

    • Annual gross care cost and the LTC benefit against it Model record, justified by derivation

      Purpose: The two published sides of one long-term-care year: what care costs, and what a policy pays.

      Statement: projection/internal/types/yearLedger.ts#YearExpenses.careCost and #YearExpenses.ltcBenefit, planned by projection/internal/annualDebtAndLongTermCare.ts#annualLongTermCarePlan, publish the two sides of one rule. An active episode (the person is alive and 0 <= ageAttained - startAge < durationYears) contributes annualCost x the health-inflation factor to gross care cost. Each LTC policy the same person owns pays min(remaining cost, cap), where cap = benefitMonthly x 12 x (1 + riderPct/100)^(year - startYear), multiplied in the episode's first year by max(0, 1 - eliminationPeriodDays/365); a policy whose benefitPeriodYears are already used pays nothing. Units: nominal USD per year. Rounding: none.

      Formula: careCost = sum_e cost_e f_h; cap_p = 12 b_p (1 + q_p)^(y - y0) [x (1 - d_p/365) in the first episode year]; ltcBenefit = sum of min(remaining, cap_p)

      • cost_e: Episode annual cost, today dollars (unit: usd/year) (domain: nonnegative)
      • f_h: Cumulative health-inflation factor (unit: 1) (domain: positive)
      • b_p: Policy monthly benefit base (unit: usd/month) (domain: nonnegative)
      • q_p: Inflation rider (unit: 1) (domain: inflationRiderPct / 100)
      • d_p: Elimination period (unit: days) (domain: 0..365)

      Timing: once per projection year, per episode then per owned policy in plan order

      Rounding: none

      Limits:

      • Asserted at the exported phase helper with the worksheet's episode, both policies, the years-used map, the health-inflation factor and the start and current years verbatim. Plan assumptions beyond the worksheet's inputs: both policies are paid-up (premium 0), which this plan does not read, and the person resolver reports the stated attained age and alive
      • The benefit is published gross of the expense fold; expenses.total subtracts it, so the same dollars are never counted twice

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-care-cost-gross-and-ltc-benefit-annual.md Mutation receipt: spending-care-cost-gross-and-ltc-benefit-annual.mutation.md

      Evidence tests: annualDebtAndLongTermCare.evidence.test.ts

      Implemented in: yearLedger.ts; annualDebtAndLongTermCare.ts

      Is the number of: spending-care-cost-gross-annual, long-term-care-benefit-annual

      Feeds: spending-total-annual

    Fed by: Per-person paid-care episode draw (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Projection result ending investable

    Investable assets remaining at the end of the projection.

    Field: endingInvestable Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: compare-page (ending investable assets); report (headline-results block endingInvestable); scenarios-page (Headline "Ending investable assets")

    • Projection-result ending investable balance Composition record, justified by derivation

      Purpose: The terminal investable figure the whole-run result republishes from the last year row.

      Statement: projection/simulate.ts#simulatePlan publishes projection/internal/types/result.ts#ProjectionResult.endingInvestable as the last year row's investableTotal, or exactly 0 when the projection has no rows. It is a terminal copy: no asset the annual investable total excludes can enter through it, and no earlier row contributes. Units: nominal USD. Rounding: none.

      Formula: endingInvestable = years[years.length - 1].investableTotal, or 0 when years is empty

      • years: Ordered projection year rows (unit: rows) (domain: possibly empty)
      • investableTotal: That row's year-end investable total (unit: usd) (domain: nonnegative)

      Timing: once per projection, at the horizon

      Rounding: none

      Limits:

      • Asserted on a real two-year simulatePlan run whose 2030 row closes at the worksheet's $510,000 and whose 2031 row closes at the worksheet's $487,250.125. Plan assumptions beyond the worksheet's inputs: a single 55-year-old filing single in KY with a zero state rate, zero inflation, zero account return, no healthcare charge (the person is under 65, with a zero pre-65 premium), a single cash account, and one uninflated 2031 one-time goal sized to spend the difference between the two rows
      • The empty-row case cannot be reached through simulatePlan, which always produces at least one row for a living household; it is the publishing site's fallback as the field comment states it and a contract statement, not executed evidence

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-result-ending-investable.md Mutation receipt: projection-result-ending-investable.mutation.md

      Evidence tests: simulate.evidence.test.ts

      Implemented in: simulate.ts; result.ts

      Is the number of: projection-result-ending-investable

    Fed by: Annual investable total (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Projection result ending net worth

    Total net worth remaining at the end of the projection.

    Field: endingNetWorth Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: compare-page (ending net worth); results-headline (KpiBar "Ending net worth" and ResultsPage narrative); report (headline-results block endingNetWorth and ReportPage KPI); scenarios-page (Headline "Ending net worth" and estate "Gross net worth")

    • Projection-result ending net worth Composition record, justified by derivation

      Purpose: The terminal net-worth figure the whole-run result republishes from the last year row.

      Statement: projection/simulate.ts#simulatePlan publishes projection/internal/types/result.ts#ProjectionResult.endingNetWorth as the last year row's netWorth, or exactly 0 when the projection has no rows. The annual row has already composed investable, property, insurance cash value, ladder value, debt and the non-recourse-capped HECM lines; the terminal field rebuilds none of that. Units: nominal USD. Rounding: none.

      Formula: endingNetWorth = years[years.length - 1].netWorth, or 0 when years is empty

      • years: Ordered projection year rows (unit: rows) (domain: possibly empty)
      • netWorth: That row's year-end net worth (unit: usd) (domain: may be negative)

      Timing: once per projection, at the horizon

      Rounding: none

      Limits:

      • Asserted on a real two-year simulatePlan run whose 2030 row closes at the worksheet's $925,000 and whose 2031 row closes at the worksheet's $901,375.625. Plan assumptions beyond the worksheet's inputs: a single 55-year-old filing single in KY with a zero state rate, zero inflation, zero account and property return, no healthcare charge, one cash account and one property with no carrying costs, and one uninflated 2031 one-time goal sized to spend the difference between the two rows
      • The empty-row case cannot be reached through simulatePlan; it is the publishing site's fallback as the field comment states it and a contract statement, not executed evidence
      • Substituting ending investable for net worth names a different quantity, which the test asserts against on a run where the two differ by the property value

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-result-ending-net-worth.md Mutation receipt: projection-result-ending-net-worth.mutation.md

      Evidence tests: simulate.evidence.test.ts

      Implemented in: simulate.ts; result.ts

      Is the number of: projection-result-ending-net-worth

    Fed by: Annual net worth, with the non-recourse HECM cap (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Projection summary average pre retirement savings rate pct

    Average share of pre-retirement earnings saved across working years.

    Field: averagePreRetirementSavingsRatePct Unit: percent Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: results-headline (pre-retirement savings rate); report (headline-results block average-pre-retirement-savings-rate-pct and ReportPage KPI); mcp (run_projection.summary.averagePreRetirementSavingsRatePct); mcp (compare_scenarios.a.averagePreRetirementSavingsRatePct); mcp (compare_scenarios.b.averagePreRetirementSavingsRatePct)

    • Projection summary average pre retirement savings rate Composition record, justified by derivation

      Purpose: Average the published working-year savings rates ahead of retirement.

      Statement: projection/compare.ts#summarizeProjection computes the unweighted arithmetic mean, in percentage points, of the published savingsRates[].ratePct values over the years strictly before the household's later target retirement year (the household's later retirement, household-later-retirement: a retirement age gives birth year plus that age, or the first year without the person's wages when a wage stream's end age keeps paying past it, a person with none retires in the first year without their wages, else in the start year, and a person who never retires in the plan is left out; projection-summary-fi-spending-base), or over every year when nobody retires in the plan (the independent review's N3), with every qualifying year counted once regardless of income and 0 when no year qualifies.

      Formula: r_bar = (sum of r_i over years y < retirementYear) / n, over every year when retirementYear is null, and 0 when n = 0; retirementYear = householdRetirement(plan, startYear).retirement?.year ?? null

      • retirementYear: The household's later retirement year (household-later-retirement), null when nobody retires in the plan (unit: calendar year) (domain: integer or null)
      • r_i: One qualifying year's published savings rate (unit: percentage points) (domain: 0..100)
      • n: Count of qualifying working years (unit: 1) (domain: integer >= 0)

      Timing: years strictly before the target retirement year

      Rounding: none stated

      Limits:

      • Unweighted: every represented working year counts once, so it is not a dollar-weighted savings ratio. Dividing by calendar boundaries rather than represented years, or reading the terminal working-year rate, is a different quantity. The target retirement year itself is not pre-retirement. An empty qualifying set publishes exactly 0 rather than an absent value.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-summary-average-pre-retirement-savings-rate.md Mutation receipt: projection-summary-average-pre-retirement-savings-rate.mutation.md

      Evidence tests: compareSummary.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: projection-summary-average-pre-retirement-savings-rate-pct

    Fed by: The household's later retirement, one rule for FI and the funded ratio (model record, 6 of 6 gates pass); Which year and which outflows the FI figures price (composition record, 6 of 6 gates pass); Savings rate by year (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Projection summary savings rate pct annual

    Each projection year's savings (employee contributions plus employer match plus surplus invested) as a percentage of that year's gross income, clamped to 0 through 100, and 0 in a year with no gross income. Its pre-retirement average is projection-summary-average-pre-retirement-savings-rate-pct.

    Field: Savings rate by year Unit: percent Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: mcp (run_projection.summary.savingsRates[].ratePct); mcp (compare_scenarios.a.savingsRates[].ratePct); mcp (compare_scenarios.b.savingsRates[].ratePct)

    • Savings rate by year Formula record, justified by derivation

      Purpose: What share of each year's gross income the household saves, as a percentage.

      Statement: projection/compare.ts#summarizeProjection publishes ProjectionSummary.savingsRates, one entry per ledger row in ledger order. Its year is the row's year, and ratePct = min(100, max(0, S / I × 100)) when I > 0, else 0, where S = contributions + employerMatch + surplusInvested and I = incomes.total, all four from that row in that year's nominal dollars. The rate is in percentage points (20 means 20%). Rounding: none.

      Formula: ratePct_y = I_y > 0 ? min(100, max(0, (C_y + M_y + U_y) / I_y × 100)) : 0

      • C_y: Contributions made in year y (YearResult.contributions) (unit: nominal USD) (domain: nonnegative)
      • M_y: Employer match made in year y (YearResult.employerMatch) (unit: nominal USD) (domain: nonnegative)
      • U_y: Surplus cash flow invested in year y (YearResult.surplusInvested) (unit: nominal USD) (domain: nonnegative)
      • I_y: Gross cash income of year y (YearResult.incomes.total) (unit: nominal USD) (domain: nonnegative)

      Timing: every projection year

      Rounding: none

      Limits:

      • The denominator is the year's gross cash income as the ledger totals it (wages, Social Security, pensions, annuities, ladder income, recurring and one-time income, taxable yield and tax-exempt interest), not wages alone, so a retired year whose surplus is reinvested shows a positive rate with no wages.
      • Savings count the employer match and the surplus the ledger invests as well as the household's own contributions. A year whose savings exceed its gross income is clamped to 100: for example a Social Security year whose surplus, reinvested from a required distribution larger than its spending, exceeds that year's income. The distribution is a withdrawal, not income (incomes.total), so it adds to the savings and not to the denominator. The floor at 0 binds only on a negative savings amount, which the ledger does not publish. A year with no gross income publishes 0 whatever it saves.
      • Evidence: summarizeProjection on four rows of the early-career-match example (wages of $65,000 with $9,000 contributed and a $2,600 match, a retired year with no income, and two Social Security years with reinvested surpluses), entered as ledger rows; the rate reads only the row, so how a projection reaches those amounts does not enter it.

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-summary-savings-rate-annual.md Mutation receipt: projection-summary-savings-rate-annual.mutation.md

      Evidence tests: compareSummary.breakdowns.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: projection-summary-savings-rate-pct-annual

      Feeds: projection-summary-average-pre-retirement-savings-rate-pct

  • Projection summary coast fire number

    Current invested amount needed to reach the FI target without further contributions.

    Field: coastFireNumber Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: results-headline (Coast FI number); report (headline-results block coast-fire-number and ReportPage KPI); mcp (run_projection.summary.coastFireNumber); mcp (compare_scenarios.a.coastFireNumber); mcp (compare_scenarios.b.coastFireNumber)

    • Projection summary coast fire number Composition record, justified by derivation

      Purpose: Discount the FI number to today at the simple real return over the whole-age horizon.

      Statement: projection/compare.ts#summarizeProjection publishes the start-year amount that reaches the upstream FI number at retirement with no further contributions by discounting it over the whole years to the household's later retirement, max(0, retirementYear - startYear) (projection-summary-fi-spending-base), at the simple real return defaultReturnPct/100 - inflationPct/100; for one person that is retirementAge - (startYear - birthYear).

      Formula: coastFireNumber = fiNumber / (1 + defaultReturnPct/100 - inflationPct/100)^max(0, retirementYear - startYear)

      • fiNumber: Upstream FI number (unit: start-year USD) (domain: finite)
      • n: Whole-age horizon to retirement (unit: years) (domain: integer >= 0)
      • realReturn: Simple real return, general inflation only (unit: 1/year) (domain: finite)

      Timing: projection start year, discrete annual compounding

      Rounding: none; no floor on the discounted amount

      Limits:

      • The real return is the subtraction of the two rates, not the Fisher ratio, and the horizon is retirement age rather than the FI-number spending year; a person already at or past retirement has a zero horizon, so Coast FIRE equals the FI number. Healthcare extra inflation, continuous compounding, intermediate rounding and a final floor are all outside the contract. An empty ledger adds no fallback beyond whatever the FI number already published.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-summary-coast-fire-number.md Mutation receipt: projection-summary-coast-fire-number.mutation.md

      Evidence tests: compareSummary.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: projection-summary-coast-fire-number

    Fed by: The household's later retirement, one rule for FI and the funded ratio (model record, 6 of 6 gates pass); Projection summary fi number (composition record, 6 of 6 gates pass); Which year and which outflows the FI figures price (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Projection summary ending investable

    Investable assets remaining at the end of the scenario projection.

    Field: endingInvestable Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: scenarios-page (ending investable assets); compare-page (Ending investable row levels, in today's (start-year) dollars when the two plans end in different years (PlanHeadlineComparison)); mcp (run_projection.summary.endingInvestable); mcp (compare_scenarios.a.endingInvestable); mcp (compare_scenarios.b.endingInvestable)

    • Projection summary ending investable Composition record, justified by derivation

      Purpose: Republish the investable balance at the projection horizon.

      Statement: projection/compare.ts#summarizeProjection republishes ProjectionResult.endingInvestable, the nominal-dollar investable balance at the projection horizon, without stated rounding.

      Formula: summary.endingInvestable = result.endingInvestable

      • result.endingInvestable: Whole-run investable endpoint (unit: nominal USD) (domain: finite)

      Timing: projection horizon

      Rounding: none stated

      Limits:

      • A selection, not an aggregation: it takes the whole-run endpoint rather than summing annual rows or selecting the largest annual balance. The valid domain is any completed ProjectionResult with a finite ending value.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-summary-ending-investable.md Mutation receipt: projection-summary-ending-investable.mutation.md

      Evidence tests: compareSummary.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: projection-summary-ending-investable

      Feeds: scenario-comparison-cell

  • Projection summary ending net worth

    Total net worth remaining at the end of the scenario projection.

    Field: endingNetWorth Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: results-headline (ending net worth); scenarios-page (Headline "Ending net worth" (summary copy)); mcp (run_projection.summary.endingNetWorth); mcp (compare_scenarios.a.endingNetWorth); mcp (compare_scenarios.b.endingNetWorth); scenarios-page (Estate table 'Gross net worth' (ScenarioEstateComparison.grossNetWorth reads the summary copy)); compare-page (Ending net worth row levels, in today's (start-year) dollars when the two plans end in different years (PlanHeadlineComparison))

    • Projection summary ending net worth Composition record, justified by derivation

      Purpose: Republish net worth at the projection horizon.

      Statement: projection/compare.ts#summarizeProjection republishes ProjectionResult.endingNetWorth, the nominal-dollar net worth at the projection horizon, without stated rounding.

      Formula: summary.endingNetWorth = result.endingNetWorth

      • result.endingNetWorth: Whole-run net-worth endpoint (unit: nominal USD) (domain: finite)

      Timing: projection horizon

      Rounding: none stated

      Limits:

      • The result type already defines annual net worth as investable plus property, insurance cash value and ladder value, less debt and non-recourse-capped HECM loans, so the summary must not rebuild that ledger identity; substituting ending investable, or adding it to the composed net worth, double-counts assets.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-summary-ending-net-worth.md Mutation receipt: projection-summary-ending-net-worth.mutation.md

      Evidence tests: compareSummary.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: projection-summary-ending-net-worth

      Feeds: projection-summary-ending-after-tax-estate, scenario-comparison-cell

  • Projection summary FI age

    Age at which modeled investable assets first reach the financial-independence target.

    Field: fiAge Unit: age in years Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: results-headline (financial independence age); results-headline (FI section "(Age N)"); report (headline-results block fiAge); mcp (run_projection.summary.fiAge); mcp (compare_scenarios.a.fiAge); mcp (compare_scenarios.b.fiAge)

    • Projection summary fi age Composition record, justified by derivation

      Purpose: Name the calendar-year attained age at the first inclusive FI crossing.

      Statement: projection/compare.ts#summarizeProjection publishes the calendar-year attained age in the first ledger row whose published end-of-year investable total, discretely deflated to the projection start year, is greater than or equal to the upstream FI number; it publishes null if no row crosses or the ledger is empty.

      Formula: fiAge = min { year - birthYear | investableTotal / (1 + inflationPct/100)^(year - startYear) >= fiNumber }, else null

      • investableTotal: Published end-of-year investable total (unit: nominal USD) (domain: finite)
      • fiNumber: Upstream FI number (unit: start-year USD) (domain: finite)
      • birthYear: ISO birth year of the person whose retirement is the household's later one (fiBasis.personId), else 1980 (unit: calendar year) (domain: integer)

      Timing: ledger order, first crossing wins

      Rounding: none

      Limits:

      • The crossing is inclusive, so equality at the threshold counts, and a later above-threshold row never replaces the first one. Age is calendar-year attained age (year minus birth year), not age on the birthday, so a December birthday does not postpone it. The published investableTotal must be read directly rather than re-summed from account categories. An empty or never-crossing ledger produces null, not age zero, the last age, or an estimate.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-summary-fi-age.md Mutation receipt: projection-summary-fi-age.mutation.md

      Evidence tests: compareSummary.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: projection-summary-fi-age

    Fed by: The household's later retirement, one rule for FI and the funded ratio (model record, 6 of 6 gates pass); Projection summary fi number (composition record, 6 of 6 gates pass); Which year and which outflows the FI figures price (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Projection summary FI number

    Today-dollar portfolio target used to identify financial independence.

    Field: fiNumber Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: results-headline (financial independence number); report (headline-results block fi-number and ReportPage KPI); chart (Path to FI chart target line via display-fi-target-annual); mcp (run_projection.summary.fiNumber); mcp (compare_scenarios.a.fiNumber); mcp (compare_scenarios.b.fiNumber)

    • Projection summary fi number Composition record, justified by derivation

      Purpose: Price one selected year of gross outflows against the safe-withdrawal-rate lens.

      Statement: projection/compare.ts#summarizeProjection publishes the FI number in projection-start-year dollars as one selected year's nominal funded expenses plus tax and penalties, discretely deflated by general inflation, divided by the safe-withdrawal-rate decimal; an empty ledger instead divides base annual lifestyle spending alone by that rate. The year is the household's later retirement, and when the plan converts to Roth in any year that year's figures come from the plan run without its conversions (projection-summary-fi-spending-base).

      Formula: fiNumber = ((expenses.total + tax + penalties) / (1 + inflationPct/100)^(spendingYear - startYear)) / (safeWithdrawalRatePct / 100); empty ledger: baseAnnual / (safeWithdrawalRatePct / 100)

      • spendingYear: max(startYear, the household's later retirement year), else the first ledger year (unit: calendar year) (domain: integer)
      • expenses.total: Published funded spending after guardrails (unit: nominal USD) (domain: nonnegative)
      • safeWithdrawalRatePct: Safe-withdrawal-rate lens, default 4 (unit: percent/year) (domain: positive)

      Timing: one selected calendar year, deflated to the projection start year

      Rounding: none; no intermediate rounding or floor

      Limits:

      • Gross outflows, not net portfolio need: guaranteed income is not subtracted, and published funded expenses.total is used rather than intended spending, so guardrail cuts are already in the base. Deflation is discrete annual general inflation, never the healthcare extra rate. The empty-ledger path is base lifestyle only, with no tax, penalties or deflation, and a horizon that ends before retirement prices the first ledger row rather than interpolating a retirement-year spend. The rate is a lens; the ledger does not spend at it.

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-summary-fi-number.md Mutation receipt: projection-summary-fi-number.mutation.md

      Evidence tests: compareSummary.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: projection-summary-fi-number

      Feeds: projection-summary-fi-age, projection-summary-coast-fire-number, display-fi-target-annual

    Fed by: The household's later retirement, one rule for FI and the funded ratio (model record, 6 of 6 gates pass); Which year and which outflows the FI figures price (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Projection summary FI year

    Calendar year in which modeled assets first reach the financial-independence target.

    Field: fiYear Unit: calendar year Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: report (financial independence year); results-headline (FI section "you reach FI in YEAR (age N)"); report (headline-results block fiYear); mcp (run_projection.summary.fiYear); mcp (compare_scenarios.a.fiYear); mcp (compare_scenarios.b.fiYear)

    • First financial-independence crossing year Formula record, justified by derivation

      Purpose: The first ledger year whose deflated investable total reaches the FI number.

      Statement: projection/compare.ts#summarizeProjection publishes fiYear as the first ledger year, in ledger order, whose published end-of-year investableTotal, deflated by (1 + inflationPct/100)^(year - startYear), is greater than or equal to fiNumber. It is null when no year crosses and when the ledger is empty. Units: calendar year or null. Rounding: none; the comparison is inclusive.

      Formula: fiYear = min { y : investableTotal_y / (1 + i)^(y - y0) >= fiNumber }, else null

      • investableTotal_y: Published end-of-year investable total (unit: usd) (domain: nonnegative)
      • i: General inflation (unit: 1) (domain: inflationPct / 100)
      • fiNumber: Upstream FI number in start-year dollars (unit: usd) (domain: positive)

      Timing: once per projection, over the ledger in order

      Rounding: none

      Limits:

      • Asserted at summarizeProjection with the worksheet's three-row crossing ledger and its three-row null ledger, both at zero inflation from a 2026 start so every deflator is exactly 1. The worksheet states its FI number as an input; the summary derives it, so the plan is built to derive exactly 500,000: a retirement age already attained puts the spending year at the start year, and 20,000 of funded outflows over the 4-percent lens is exactly 500,000
      • The empty-ledger null is asserted separately from the no-crossing null, because they reach the same published value by different paths

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: projection-summary-fi-year.md Mutation receipt: projection-summary-fi-year.mutation.md

      Evidence tests: compareSummary.evidence.test.ts

      Implemented in: compare.ts

      Is the number of: projection-summary-fi-year

    Fed by: The household's later retirement, one rule for FI and the funded ratio (model record, 6 of 6 gates pass); Which year and which outflows the FI figures price (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Spending care cost gross annual

    Gross long-term-care cost incurred during the projection year before insurance benefits.

    Field: careCost Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (careCost)

    • Annual gross care cost and the LTC benefit against it Model record, justified by derivation

      Purpose: The two published sides of one long-term-care year: what care costs, and what a policy pays.

      Statement: projection/internal/types/yearLedger.ts#YearExpenses.careCost and #YearExpenses.ltcBenefit, planned by projection/internal/annualDebtAndLongTermCare.ts#annualLongTermCarePlan, publish the two sides of one rule. An active episode (the person is alive and 0 <= ageAttained - startAge < durationYears) contributes annualCost x the health-inflation factor to gross care cost. Each LTC policy the same person owns pays min(remaining cost, cap), where cap = benefitMonthly x 12 x (1 + riderPct/100)^(year - startYear), multiplied in the episode's first year by max(0, 1 - eliminationPeriodDays/365); a policy whose benefitPeriodYears are already used pays nothing. Units: nominal USD per year. Rounding: none.

      Formula: careCost = sum_e cost_e f_h; cap_p = 12 b_p (1 + q_p)^(y - y0) [x (1 - d_p/365) in the first episode year]; ltcBenefit = sum of min(remaining, cap_p)

      • cost_e: Episode annual cost, today dollars (unit: usd/year) (domain: nonnegative)
      • f_h: Cumulative health-inflation factor (unit: 1) (domain: positive)
      • b_p: Policy monthly benefit base (unit: usd/month) (domain: nonnegative)
      • q_p: Inflation rider (unit: 1) (domain: inflationRiderPct / 100)
      • d_p: Elimination period (unit: days) (domain: 0..365)

      Timing: once per projection year, per episode then per owned policy in plan order

      Rounding: none

      Limits:

      • Asserted at the exported phase helper with the worksheet's episode, both policies, the years-used map, the health-inflation factor and the start and current years verbatim. Plan assumptions beyond the worksheet's inputs: both policies are paid-up (premium 0), which this plan does not read, and the person resolver reports the stated attained age and alive
      • The benefit is published gross of the expense fold; expenses.total subtracts it, so the same dollars are never counted twice

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-care-cost-gross-and-ltc-benefit-annual.md Mutation receipt: spending-care-cost-gross-and-ltc-benefit-annual.mutation.md

      Evidence tests: annualDebtAndLongTermCare.evidence.test.ts

      Implemented in: yearLedger.ts; annualDebtAndLongTermCare.ts

      Is the number of: spending-care-cost-gross-annual, long-term-care-benefit-annual

      Feeds: spending-total-annual

    Fed by: Per-person paid-care episode draw (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Spending debt service annual

    Principal and interest paid on modeled debts during the projection year.

    Field: debtService Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (debtService); chart (Spending by category "Debt payments"); cash-flow-drilldown (debtService use line)

    • Annual debt service under the grow-then-pay convention Formula record, justified by derivation

      Purpose: What the year's debts actually cost, once interest is charged before the payment.

      Statement: projection/internal/types/yearLedger.ts#YearExpenses.debtService, planned by projection/internal/annualDebtAndLongTermCare.ts#annualDebtServiceRows, is the sum over debt accounts with a positive balance of the year's payment, where the opening balance first grows by 1 + interestPct/100 and the year then pays the whole grown balance when payoffYear is set and reached, else min(grown balance, monthlyPayment x 12). The level payment is never inflated and self-caps at the balance. Units: nominal USD per year. Rounding: none; the ordered fold is a binary float.

      Formula: grown_i = B_i (1 + r_i); pay_i = payoff ? grown_i : min(grown_i, 12 m_i); debtService = sum_i pay_i

      • B_i: Opening balance of debt i (unit: usd) (domain: positive)
      • r_i: Annual interest rate (unit: 1) (domain: interestPct / 100)
      • m_i: Level monthly payment (unit: usd/month) (domain: nonnegative)
      • payoff: Scheduled payoff reached (unit: boolean) (domain: year >= payoffYear)

      Timing: once per projection year, before the funding solve

      Rounding: none

      Limits:

      • Asserted twice: at the exported phase helper with the worksheet's two debts verbatim, and as the published expenses.debtService of a real simulatePlan 2030 row carrying the same two debts. Plan assumptions beyond the worksheet's inputs for that ledger row: a single 60-year-old filing single in KY at a zero state rate, zero general inflation, zero account returns, and one 500,000 cash account large enough that the payments are funded without a portfolio sale
      • The worksheet's third wrong reading (ignoring payoffYear) coincides with the right answer at these inputs, so the test discriminates the first two numerically and states the third as a rule
      • Restated 2026-09-29 under decision D-2027-ROLLOVER (review L4): a payoff year before the projection start year is reached in the first year, so the ledger pays the whole grown balance then, as it always did; nothing moves. The projection now names it (projection/preStartEvents.ts#preStartEvents) with the amount paid, the balance with a year of interest, and says to set the balance to $0 if the debt was paid. From a 2027 start the reviewer's mortgage with a 2026 payoff moved ending net worth by -$189,695.85 with nothing said

      Provenance: derived by codex, implemented by claude.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-debt-service-annual.md Mutation receipt: spending-debt-service-annual.mutation.md

      Evidence tests: annualDebtAndLongTermCare.evidence.test.ts

      Implemented in: yearLedger.ts; annualDebtAndLongTermCare.ts; preStartEvents.ts

      Is the number of: spending-debt-service-annual

      Feeds: spending-total-annual

  • Spending excess requested annual

    Optional spending above the ideal lifestyle amount attempted during the projection year.

    Field: excessSpending Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (excessSpending)

    • Annual excess-layer requested spending Composition record, justified by derivation

      Purpose: The incremental opportunistic layer above ideal spending.

      Statement: projection/internal/annualExpenseSummary.ts#annualExpenseSummary publishes YearExpenses.excessSpending as excessSpendingBase + skippedExcessNominal, with excessSpendingBase = excessLifestyle + excessGoalsFunded. It is an increment above ideal, so the identity the worksheet derives holds exactly: excessSpending = intendedSpending - targetSpending - idealSpending. Units: nominal USD per year. Rounding: none.

      Formula: excessSpending = excessLifestyle + excessGoalsFunded + skippedExcessNominal = intendedSpending - targetSpending - idealSpending

      • excessLifestyle: Annual opportunistic lifestyle layer above ideal (unit: usd/year) (domain: nonnegative)
      • excessGoalsFunded: Excess-classified goals funded this year (unit: usd/year) (domain: nonnegative)
      • skippedExcessNominal: Nominal amount of excess-classified goals the scheduler skipped (unit: usd/year) (domain: nonnegative)

      Timing: once per projection year, at the expense summary

      Rounding: none

      Limits:

      • Asserted at the annualExpenseSummary seam, which is the function that computes all five layer fields at once, because the worksheet states its inputs as published year-row components. The seam call is given inputs that realize the worksheet's stated requiredSpending, targetSpending, idealSpending and intendedSpending exactly, and the published excessSpending is then read
      • The identity is asserted against the same call's other published fields rather than re-entered constants
      • Failing to remove the ideal increment, or treating excess as everything above required, are the worksheet's two wrong readings and are asserted against

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-excess-requested-annual.md Mutation receipt: spending-excess-requested-annual.mutation.md

      Evidence tests: annualExpenseSummary.evidence.test.ts

      Implemented in: annualExpenseSummary.ts

      Is the number of: spending-excess-requested-annual

      Feeds: display-upside-spending-annual

  • Spending excess shortfall annual

    Unfunded optional spending above the ideal lifestyle amount in the projection year.

    Field: excessShortfall Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (excessShortfall)

    • Spending layer shortfall attribution Formula record, justified by derivation

      Purpose: Attribute annual spending misses to required, target, ideal and excess layers.

      Statement: spending/layers.ts#attributeShortfall first reduces the spending attempted after any guardrail cut by the withdrawal shortfall to obtain actually funded dollars, then attributes the miss of each layer against those dollars: the target miss includes the deliberate guardrail cut as well as every attempted dollar the portfolio could not produce; the required miss is the floor minus actually funded dollars, floored at zero; ideal and excess misses are the gaps in their successive layers. No rounding.

      Formula: A=max(0,F-max(0,W)); Rmiss=max(0,R-A); Tmiss=max(0,T-A); Imiss=I-max(0,min(I,A-T)); Xmiss=X-max(0,min(X,A-T-I))

      • R,T,I,X: Required, target, ideal increment, excess increment (unit: nominal USD/year) (domain: nonnegative; T >= R)
      • F: Spending attempted after any guardrail cut (fundedSpending) (unit: nominal USD/year) (domain: nonnegative)
      • W: Withdrawal shortfall: attempted dollars the waterfall could not produce (unit: nominal USD/year) (domain: nonnegative)
      • A: Actually funded dollars, F less W (unit: nominal USD/year) (domain: nonnegative)

      Timing: annual after spending and withdrawals

      Rounding: none

      Limits:

      • The first derivation read fundedSpending as delivered dollars and expected a $15 target miss where production returns $20; the doc comment says attempted, so the worksheet was re-derived and now carries a second case (F=62, W=5) that exposes the guardrail cut in the required miss.

      Provenance: derived by codex, implemented by codex.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-layer-shortfall-attribution.md Mutation receipt: spending-layer-shortfall-attribution.mutation.md

      Evidence tests: layers.evidence.test.ts

      Implemented in: layers.ts

      Is the number of: spending-required-shortfall-annual, spending-target-shortfall-annual, spending-ideal-shortfall-annual, spending-excess-shortfall-annual

      Feeds: display-upside-shortfall-annual

  • Spending guardrail factor annual

    Multiplier applied to flexible spending after the projection year guardrail decision.

    Field: guardrailFactor Unit: factor Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: csv (guardrailFactor)

    • Risk-based guardrail: one year's cut, raise or hold against real-balance thresholds Model record, justified by derivation

      Purpose: The decision that rations discretionary spending when the deflated portfolio leaves its solved balance band.

      Statement: adj = (adjustmentPct ?? 10)/100; prev = clamp(prevMultiplier) into [0, max(0, maxMultiplier)]. When startingBalance is not > 0, or currentRealBalance is not finite or is negative: hold at prev. lower = (lowerBalanceThresholdPct/100) x startingBalance when that percent is supplied and > 0, else null; upper likewise from upperBalanceThresholdPct. When both are set and lower >= upper: hold. currentRealBalance < lower: multiplier = clamp(prev - adj), action "cut" when it fell by more than 1e-9, else "hold". currentRealBalance > upper: multiplier = clamp(prev + adj), action "raise" when it rose by more than 1e-9, else "hold". Otherwise hold. Units: balances in real (deflated) dollars; thresholds as percent of the starting real portfolio; the multiplier a fraction. Rounding: none. annualGuardrailFunding.ts deflates the start-of-year portfolio by the year's inflation factor and anchors startingBalance at the first solvent year's real portfolio.

      Formula: L = l/100 x S, U = u/100 x S; m = clamp(prev - adj) if B < L; m = clamp(prev + adj) if B > U; m = prev otherwise, and always when L or U is unset or L >= U

      • B: This year's real start-of-year portfolio (unit: usd, real) (domain: B >= 0 and finite)
      • S: The starting real portfolio the thresholds are scaled from (unit: usd, real) (domain: S > 0)
      • l, u: Lower and upper thresholds as percent of S (unit: percent) (domain: each > 0 when set; l < u)
      • adj: Step size as a fraction of the full discretionary layer (unit: 1) (domain: default 0.1)
      • m: This year's discretionary multiplier (unit: 1) (domain: 0 <= m <= maxMultiplier)

      Timing: once per projection year, before the funding fixed point

      Rounding: none

      Limits:

      • Thresholds come from the shared-path solver (montecarlo/riskBasedGuardrails.ts); a policy whose thresholds are absent, zero or inverted holds, so the mode never acts on unsolved numbers
      • The dollar thresholds the pages print (display-guardrail-balance-thresholds) are this step's L and U on the first-year anchor, published by montecarlo/riskBasedGuardrails.ts#guardrailThresholdDollars (the record guardrail-threshold-dollars); at a zero starting balance the anchor is the first year the portfolio has a balance, which only a simulation knows
      • Same fixed step and clamp semantics as the withdrawal-rate step; clampRange is module-private and reached through nextBalanceGuardrailMultiplier
      • The Monte Carlo action counts and cut-depth percentiles aggregate this decision's action and multiplier exactly as they do for the withdrawal-rate mode

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: balance-risk-guardrail-step.md Mutation receipt: balance-risk-guardrail-step.mutation.md

      Evidence tests: guardrails.evidence.test.ts

      Implemented in: guardrails.ts

      Is the number of: spending-guardrail-factor-annual

      Feeds: monte-carlo-guardrail-action-counts, monte-carlo-max-cut-depth-percentiles, display-guardrail-balance-thresholds

    • Withdrawal-rate guardrail: one year's cut, raise or hold of the discretionary multiplier Model record, justified by derivation

      Purpose: The Guyton-Klinger-style decision that rations discretionary spending when the withdrawal rate leaves its band.

      Statement: upper = (upperGuardrailPct ?? 120)/100; lower = (lowerGuardrailPct ?? 80)/100; adj = (adjustmentPct ?? 10)/100; prev = clamp(prevMultiplier) into [0, max(0, maxMultiplier)] with maxMultiplier defaulting to 1 and a non-finite prev read as min(1, that ceiling). When startingRate is not > 0, or currentRate is not finite or is negative: hold at prev. Otherwise ratio = currentRate/startingRate. ratio > upper: multiplier = clamp(prev - adj), action "cut" when it fell by more than 1e-9, else "hold". ratio < lower: multiplier = clamp(prev + adj), action "raise" when it rose by more than 1e-9, else "hold". Otherwise hold. Units: the multiplier is a fraction of the discretionary layer; the rates are ratios of target spending to the start-of-year portfolio whose units cancel. Rounding: none.

      Formula: ratio = current/starting; m = clamp(prev - adj) if ratio > upper; m = clamp(prev + adj) if ratio < lower; m = prev otherwise; clamp into [0, maxMultiplier]

      • prev: Last year's discretionary multiplier (unit: 1) (domain: clamped into [0, maxMultiplier])
      • current, starting: This year's and the first year's withdrawal rate (unit: 1) (domain: starting > 0, current >= 0 and finite)
      • upper, lower: Band edges as fractions of the starting rate (unit: 1) (domain: defaults 1.2 and 0.8)
      • adj: Step size as a fraction of the full discretionary layer (unit: 1) (domain: default 0.1)
      • m: This year's discretionary multiplier (unit: 1) (domain: 0 <= m <= maxMultiplier)

      Timing: once per projection year, before the funding fixed point

      Rounding: none

      Limits:

      • The signal is gross recurring target spending over the start-of-year portfolio, not the net portfolio draw: a documented simplification that keeps the rule non-circular with the spending it decides
      • The step is a fixed adjustmentPct of the full discretionary layer, not a percentage of the previous multiplier
      • A cut or raise the clamp absorbs is reported as hold, so downstream counts reflect real moves only
      • clampRange is module-private; the evidence reaches it through nextGuardrailMultiplier
      • The Monte Carlo counts each year's action (run.ts) and takes 1 - guardrailFactor as the year's cut depth, so both aggregates are fed by this decision

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: withdrawal-rate-guardrail-step.md Mutation receipt: withdrawal-rate-guardrail-step.mutation.md

      Evidence tests: guardrails.evidence.test.ts

      Implemented in: guardrails.ts

      Is the number of: spending-guardrail-factor-annual

      Feeds: monte-carlo-guardrail-action-counts, monte-carlo-max-cut-depth-percentiles

    Fed by: Risk-based guardrail thresholds and suggested adjustments by bisection (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Spending ideal requested annual

    Ideal lifestyle spending requested for the projection year.

    Field: idealSpending Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (idealSpending)

    • Annual ideal-layer requested spending Composition record, justified by derivation

      Purpose: The incremental ideal layer above target spending.

      Statement: projection/internal/annualExpenseSummary.ts#annualExpenseSummary publishes YearExpenses.idealSpending as idealSpendingBase + skippedIdealNominal, with idealSpendingBase = idealLifestyle + idealGoalsFunded. It is an increment, not a cumulative summary, so the identity the worksheet derives from the field comments holds exactly: idealSpending = intendedSpending - targetSpending - excessSpending, because intendedSpending adds the target base, the ideal base, the excess base and all four skipped amounts while targetSpending carries the target base with the target and required skips and excessSpending carries the excess base with the excess skip. Units: nominal USD per year. Rounding: none.

      Formula: idealSpending = idealLifestyle + idealGoalsFunded + skippedIdealNominal = intendedSpending - targetSpending - excessSpending

      • idealLifestyle: Annual ideal lifestyle layer above target (unit: usd/year) (domain: nonnegative)
      • idealGoalsFunded: Ideal-classified goals funded this year (unit: usd/year) (domain: nonnegative)
      • skippedIdealNominal: Nominal amount of ideal-classified goals the scheduler skipped (unit: usd/year) (domain: nonnegative)

      Timing: once per projection year, at the expense summary

      Rounding: none

      Limits:

      • Asserted at the annualExpenseSummary seam, which is the function that computes all five layer fields at once, because the worksheet states its inputs as published year-row components. The seam call is given inputs that realize the worksheet's stated requiredSpending, targetSpending, excessSpending and intendedSpending exactly, and the published idealSpending is then read
      • The identity is asserted against the same call's other published fields, not against re-entered constants, so the subtraction is evidence about this year row rather than about the worksheet's arithmetic
      • Ideal is an increment above target; treating it as the cumulative amount through the ideal layer is one of the worksheet's wrong readings

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-ideal-requested-annual.md Mutation receipt: spending-ideal-requested-annual.mutation.md

      Evidence tests: annualExpenseSummary.evidence.test.ts

      Implemented in: annualExpenseSummary.ts

      Is the number of: spending-ideal-requested-annual

      Feeds: display-upside-spending-annual

  • Spending ideal shortfall annual

    Unfunded ideal lifestyle spending in the projection year.

    Field: idealShortfall Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (idealShortfall)

    • Spending layer shortfall attribution Formula record, justified by derivation

      Purpose: Attribute annual spending misses to required, target, ideal and excess layers.

      Statement: spending/layers.ts#attributeShortfall first reduces the spending attempted after any guardrail cut by the withdrawal shortfall to obtain actually funded dollars, then attributes the miss of each layer against those dollars: the target miss includes the deliberate guardrail cut as well as every attempted dollar the portfolio could not produce; the required miss is the floor minus actually funded dollars, floored at zero; ideal and excess misses are the gaps in their successive layers. No rounding.

      Formula: A=max(0,F-max(0,W)); Rmiss=max(0,R-A); Tmiss=max(0,T-A); Imiss=I-max(0,min(I,A-T)); Xmiss=X-max(0,min(X,A-T-I))

      • R,T,I,X: Required, target, ideal increment, excess increment (unit: nominal USD/year) (domain: nonnegative; T >= R)
      • F: Spending attempted after any guardrail cut (fundedSpending) (unit: nominal USD/year) (domain: nonnegative)
      • W: Withdrawal shortfall: attempted dollars the waterfall could not produce (unit: nominal USD/year) (domain: nonnegative)
      • A: Actually funded dollars, F less W (unit: nominal USD/year) (domain: nonnegative)

      Timing: annual after spending and withdrawals

      Rounding: none

      Limits:

      • The first derivation read fundedSpending as delivered dollars and expected a $15 target miss where production returns $20; the doc comment says attempted, so the worksheet was re-derived and now carries a second case (F=62, W=5) that exposes the guardrail cut in the required miss.

      Provenance: derived by codex, implemented by codex.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-layer-shortfall-attribution.md Mutation receipt: spending-layer-shortfall-attribution.mutation.md

      Evidence tests: layers.evidence.test.ts

      Implemented in: layers.ts

      Is the number of: spending-required-shortfall-annual, spending-target-shortfall-annual, spending-ideal-shortfall-annual, spending-excess-shortfall-annual

      Feeds: display-upside-shortfall-annual

  • Spending insurance premiums annual

    Insurance premiums charged as expenses during the projection year.

    Field: insurancePremiums Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (insurancePremiums); chart (Spending by category "Insurance premiums"); cash-flow-drilldown (insurancePremium use line)

    • Annual level insurance premiums Formula record, justified by derivation

      Purpose: Which insurance policies are charged this year, and at what level nominal premium.

      Statement: projection/internal/types/yearLedger.ts#YearExpenses.insurancePremiums, selected by projection/internal/annualInsurancePremiumRows.ts#annualInsurancePremiumRows, sums the fixed-nominal annualPremium of every policy whose subject is alive: lifetime charges every year, paidUp charges nothing, and untilAge charges only while the subject's attained age is below premiumEndAge, so nothing is charged in the year the subject attains premiumEndAge or afterward. No inflation factor is applied. Units: nominal USD per year. Rounding: none.

      Formula: insurancePremiums = sum over charged policies of annualPremium

      • annualPremium: Level contractual premium (unit: usd/year) (domain: nonnegative)
      • premiumMode: lifetime | paidUp | untilAge (unit: mode) (domain: closed enum)
      • premiumEndAge: Subject age at which untilAge premiums stop (unit: years) (domain: required for untilAge)

      Timing: once per projection year, per policy occurrence in plan order

      Rounding: none

      Limits:

      • Asserted at the exported phase function with the worksheet's five policies (the primary case's four and the boundary case's Life E), their modes, premiums, subject ages and end ages verbatim; the subject resolver supplies the stated ages and alive flags. Plan assumptions beyond the worksheet's inputs: each policy carries zero benefit fields, which the premium selection does not read
      • The first derivation read untilAge as charging through and including premiumEndAge, charged its Life C at attained age 65 against an end age of 65, and expected 1,800; that derivation was corrected on 2026-09-18 under decision D-PREMIUM-END-AGE. The worksheet now states the strict stop age production holds: a policy is skipped once subject.ageAttained >= policy.premiumEndAge, so its primary case totals 1,200 with Life C not charged, and its boundary case charges Life E 600 at attained age 64, one year below the same end age. Both are asserted, the 1,800 through-the-end-age reading is asserted as a wrong reading, and no production-versus-worksheet discrepancy remains. Decision D-PREMIUM-END-AGE (2026-09-25) kept this rule, since premiumEndAge is the field a user fills as the age premiums stop; the premiumModeSchema comment, which once read "charge annualPremium through premiumEndAge", now states the same stop age

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-insurance-premiums-annual.md Mutation receipt: spending-insurance-premiums-annual.mutation.md

      Evidence tests: annualInsurancePremiumRows.evidence.test.ts

      Implemented in: yearLedger.ts; annualInsurancePremiumRows.ts

      Is the number of: spending-insurance-premiums-annual

      Feeds: spending-total-annual

  • Spending intended annual

    Total spending the plan intended to fund before available cash constrained it.

    Field: intendedSpending Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (intendedSpending); scenarios-page (Annual "Intended spending" and lifetime "Intended spending")

    • Annual intended spending with no guardrail cut Composition record, justified by derivation

      Purpose: The whole four-layer request, counted once per layer.

      Statement: projection/internal/annualExpenseSummary.ts#annualExpenseSummary publishes YearExpenses.intendedSpending as targetSpendingBase + idealSpendingBase + excessSpendingBase + skippedTargetNominal + skippedRequiredNominal + skippedIdealNominal + skippedExcessNominal. The required layer is inside targetSpendingBase, so adding the published requiredSpending on top would double-count it; ideal and excess are increments, so their bases add once each. Every skipped goal stays in its own classification layer as intended spending that never happened. Units: nominal USD per year. Rounding: none.

      Formula: intendedSpending = targetSpendingBase + idealSpendingBase + excessSpendingBase + skippedTarget + skippedRequired + skippedIdeal + skippedExcess

      • targetSpendingBase: System costs + required lifestyle + required funded goals + full target lifestyle + target funded goals (unit: usd/year) (domain: nonnegative)
      • idealSpendingBase, excessSpendingBase: Incremental ideal and excess lifestyle plus their funded goals (unit: usd/year) (domain: nonnegative)
      • skipped*: Nominal amounts of skipped goals, one per classification (unit: usd/year) (domain: nonnegative; each counted once)

      Timing: once per projection year, at the expense summary

      Rounding: none

      Limits:

      • Asserted at the annualExpenseSummary seam with the worksheet's component amounts, and cross-checked on a real simulatePlan run where the published intendedSpending equals its own year row's targetSpending plus idealSpending plus excessSpending
      • Required and target are cumulative summaries while ideal and excess are increments; adding all four published summaries double-counts the required base, which is the worksheet's second wrong reading
      • Intended spending is the no-cut request and need not equal the year's actual expenses.total

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-intended-annual.md Mutation receipt: spending-intended-annual.mutation.md

      Evidence tests: annualExpenseSummary.evidence.test.ts

      Implemented in: annualExpenseSummary.ts

      Is the number of: spending-intended-annual

    Fed by: Annual flexible-goal outcomes: four counts and two amounts (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Spending one time goals annual

    One-time goal spending paid during the projection year.

    Field: goals Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (goals); chart (Spending by category "One-time goals"); cash-flow-drilldown (oneTimeGoal use line)

    • Annual funded one-time goals Formula record, justified by derivation

      Purpose: What this year's one-time goals actually cost, as distinct from what was intended.

      Statement: projection/internal/types/yearLedger.ts#YearExpenses.oneTimeGoals, produced by projection/internal/annualOneTimeGoalFundingPhase.ts#annualOneTimeGoalFundingPhase, is the funded nominal amount of goals in the current year. With no guardrail scheduler every goal funds exactly in its target year at amount x the cumulative inflation factor; a skipped amount is an intended-but-unfunded miss tracked separately and is not in this field. Nothing funds when nobody in the household is alive. Units: nominal USD per year. Rounding: none.

      Formula: oneTimeGoals = sum over goals with targetYear = y of amount x f

      • amount: Goal amount, today dollars (unit: usd) (domain: nonnegative)
      • f: Cumulative general-inflation factor to this year (unit: 1) (domain: positive)

      Timing: once per projection year, in goal order

      Rounding: none

      Limits:

      • Asserted at the exported phase helper with the worksheet's three goals, target years, amounts, current year, null scheduler and alive flag verbatim; the helper receives the caller's already-resolved inflation factor, so the 1.10 is supplied rather than compounded from plan assumptions
      • The worksheet's third wrong reading is a guardrail case: with no scheduler the phase reports four exact zero skip accumulators, which the test asserts, so no skipped amount can reach this field here
      • Restated 2026-09-28 under decision D-2027-ROLLOVER: a goal whose target year (and, for a movable or skippable goal, whose whole window) is before the projection start year funds nothing, as before, and the projection now names it in a warning (projection/preStartEvents.ts#preStartEvents): the goal is dated before the plan starts, so it is not counted, and if it has not happened the household moves it to the start year or later. From a 2027 start the derivation's U1 household's $30,000 car goal dated 2026 dropped out with only an editor note to say so

      Provenance: derived by codex, implemented by claude.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-one-time-goals-annual.md Mutation receipt: spending-one-time-goals-annual.mutation.md

      Evidence tests: annualOneTimeGoalFundingPhase.evidence.test.ts

      Implemented in: yearLedger.ts; annualOneTimeGoalFundingPhase.ts; preStartEvents.ts

      Is the number of: spending-one-time-goals-annual

      Feeds: spending-total-annual

    Fed by: Flexible goal scheduling (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Spending property costs annual

    Property taxes, maintenance, and other modeled property costs paid during the projection year.

    Field: propertyCosts Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (propertyCosts); chart (Spending by category "Property tax + insurance"); cash-flow-drilldown (propertyCosts use line)

    • Annual property carrying costs on owned properties Formula record, justified by derivation

      Purpose: Property tax and homeowner insurance on every property still owned this year.

      Statement: projection/internal/types/yearLedger.ts#YearExpenses.propertyCosts, produced by projection/internal/annualPropertyCarryingCosts.ts#annualPropertyCarryingCosts, is the sum over property accounts that the household still owns of (propertyTaxAnnual + insuranceAnnual) x the cumulative general-inflation factor. A property contributes nothing from the year the ledger sells it onward: its planned sale year, or the projection start year when the planned year is earlier (projection/propertySaleYear.ts#effectivePropertySaleYear), the same year the sale itself runs. The charge continues after any mortgage is paid off, and no row is produced at all when nobody in the household is alive. Units: nominal USD per year. Rounding: none.

      Formula: propertyCosts = sum over owned p of (tax_p + insurance_p) x f

      • tax_p: Annual property tax, today dollars (unit: usd/year) (domain: nonnegative; absent = 0)
      • insurance_p: Annual homeowner insurance, today dollars (unit: usd/year) (domain: nonnegative; absent = 0)
      • f: Cumulative general-inflation factor to this year (unit: 1) (domain: positive)

      Timing: once per projection year, while the property is owned

      Rounding: none

      Limits:

      • Asserted at the exported phase helper with the worksheet's two properties, current year, inflation factor and alive flag verbatim; the helper receives the caller's already-resolved inflation factor, so the 1.10 is supplied rather than compounded from plan assumptions. Plan assumptions beyond the worksheet's inputs: each property carries a 400,000 value and no HECM, neither of which the carrying-cost formula reads
      • Ownership is decided by the effective sale year alone (the planned sale year, or the start year when that is earlier); a property with no sale year is owned for the whole horizon
      • Restated 2026-09-29 under decision D-2027-ROLLOVER (review H1). No source governs a sale date that has passed; the decision reads a property still on the plan with a past sale year as a sale not yet reflected, so the ledger sells it in the first year (when it has a value; a property at $0 is not sold) and the carrying costs stop from that same year. Before, the costs stopped from the planned year while the sale ran only in a year equal to it, which a later start never reaches: the reviewer's case (the example couple's $420,000 home, $6,000 of property tax and $1,800 of insurance, sale dated 2026, run from 2027) kept the home to the end and dropped its costs, adding $1,017,839 to ending net worth. The projection names the sale (projection/preStartEvents.ts#preStartEvents; for a property at $0 it says only that the costs stop) and the editor notes the field

      Provenance: derived by codex, implemented by claude.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-property-costs-annual.md Mutation receipt: spending-property-costs-annual.mutation.md

      Evidence tests: annualPropertyCarryingCosts.evidence.test.ts

      Implemented in: yearLedger.ts; annualPropertyCarryingCosts.ts; propertySaleYear.ts

      Is the number of: spending-property-costs-annual

      Feeds: spending-total-annual

  • Spending required requested annual

    Essential spending floor requested for the projection year.

    Field: requiredSpending Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (requiredSpending); results-table (Required column (layered spending))

    • Annual required-layer requested spending Composition record, justified by derivation

      Purpose: The must-fund layer a guardrail policy never cuts below, including goals it skipped.

      Statement: projection/internal/annualExpenseSummary.ts#annualExpenseSummary publishes YearExpenses.requiredSpending as requiredSpendingBase + skippedRequiredNominal, where requiredSpendingBase = systemRequired + requiredLifestyle + requiredGoalsFunded. systemRequired is the five system-computed costs the caller has already folded: debt service, property costs, healthcare, insurance premiums and net long-term care, the last being gross care cost less the LTC policy benefit. A required-classified goal the flexible-goal scheduler skipped stays in this layer as intended spending that never happened. Units: nominal USD per year. Rounding: none.

      Formula: requiredSpending = (systemRequired + requiredLifestyle + requiredGoalsFunded) + skippedRequiredNominal; systemRequired = debtService + propertyCosts + healthcare + insurancePremiums + careCost - ltcBenefit

      • systemRequired: The five system-computed costs, net of the LTC benefit (unit: usd/year) (domain: nonnegative in practice)
      • requiredLifestyle: Required-floor lifestyle layer (unit: usd/year) (domain: nonnegative)
      • requiredGoalsFunded: Required-classified goals funded this year (unit: usd/year) (domain: nonnegative)
      • skippedRequiredNominal: Nominal amount of required-classified goals the scheduler skipped (unit: usd/year) (domain: nonnegative; 0 outside guardrails)

      Timing: once per projection year, at the expense summary

      Rounding: none

      Limits:

      • Asserted at the annualExpenseSummary seam, which is the function that computes the field, because the worksheet states its inputs as already-folded year-row components: a real plan cannot present a chosen debt service, property cost, healthcare charge, care cost, LTC benefit and skipped-goal amount simultaneously at those exact values. The five system costs enter the seam as the systemRequired scalar the caller folds, so the test folds them the way the caller does and asserts the published field against the worksheet
      • The net-LTC term is gross care cost less the benefit; adding the gross without the offset is one of the worksheet's wrong readings
      • The layer summaries are not additional members of expenses.total; this figure describes how baseSpending was built

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-required-requested-annual.md Mutation receipt: spending-required-requested-annual.mutation.md

      Evidence tests: annualExpenseSummary.evidence.test.ts

      Implemented in: annualExpenseSummary.ts

      Is the number of: spending-required-requested-annual

      Feeds: spending-required-shortfall-annual

    Fed by: Lifestyle required discretionary split (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Spending required shortfall annual

    Unfunded essential spending in the projection year.

    Field: requiredShortfall Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (requiredShortfall); results-table (Layer miss "Req"); scenarios-page (Annual "Required shortfall" and lifetime "Required-floor shortfall")

    • Spending layer shortfall attribution Formula record, justified by derivation

      Purpose: Attribute annual spending misses to required, target, ideal and excess layers.

      Statement: spending/layers.ts#attributeShortfall first reduces the spending attempted after any guardrail cut by the withdrawal shortfall to obtain actually funded dollars, then attributes the miss of each layer against those dollars: the target miss includes the deliberate guardrail cut as well as every attempted dollar the portfolio could not produce; the required miss is the floor minus actually funded dollars, floored at zero; ideal and excess misses are the gaps in their successive layers. No rounding.

      Formula: A=max(0,F-max(0,W)); Rmiss=max(0,R-A); Tmiss=max(0,T-A); Imiss=I-max(0,min(I,A-T)); Xmiss=X-max(0,min(X,A-T-I))

      • R,T,I,X: Required, target, ideal increment, excess increment (unit: nominal USD/year) (domain: nonnegative; T >= R)
      • F: Spending attempted after any guardrail cut (fundedSpending) (unit: nominal USD/year) (domain: nonnegative)
      • W: Withdrawal shortfall: attempted dollars the waterfall could not produce (unit: nominal USD/year) (domain: nonnegative)
      • A: Actually funded dollars, F less W (unit: nominal USD/year) (domain: nonnegative)

      Timing: annual after spending and withdrawals

      Rounding: none

      Limits:

      • The first derivation read fundedSpending as delivered dollars and expected a $15 target miss where production returns $20; the doc comment says attempted, so the worksheet was re-derived and now carries a second case (F=62, W=5) that exposes the guardrail cut in the required miss.

      Provenance: derived by codex, implemented by codex.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-layer-shortfall-attribution.md Mutation receipt: spending-layer-shortfall-attribution.mutation.md

      Evidence tests: layers.evidence.test.ts

      Implemented in: layers.ts

      Is the number of: spending-required-shortfall-annual, spending-target-shortfall-annual, spending-ideal-shortfall-annual, spending-excess-shortfall-annual

      Feeds: display-upside-shortfall-annual

    Fed by: Annual required-layer requested spending (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Spending target requested annual

    Target lifestyle spending requested for the projection year.

    Field: targetSpending Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (targetSpending); results-table (Target column (layered spending))

    • Annual target-layer requested spending Composition record, justified by derivation

      Purpose: The full no-cut request through the target lifestyle layer.

      Statement: projection/internal/annualExpenseSummary.ts#annualExpenseSummary publishes YearExpenses.targetSpending as targetSpendingBase + skippedTargetNominal + skippedRequiredNominal, where targetSpendingBase = systemRequired + requiredLifestyle + targetLifestyle + targetGoalsFunded + requiredGoalsFunded. The base carries the FULL target lifestyle layer, not the guardrail-cut amount, and carries no skipped amount; the two skipped amounts are then added once each. Equivalently, published requiredSpending already contains skippedRequiredNominal, so targetSpending is requiredSpending + targetLifestyle + targetGoalsFunded + skippedTargetNominal. Units: nominal USD per year. Rounding: none.

      Formula: targetSpending = (systemRequired + requiredLifestyle + targetLifestyle + targetGoalsFunded + requiredGoalsFunded) + skippedTargetNominal + skippedRequiredNominal

      • targetLifestyle: Full target lifestyle layer before any guardrail cut (unit: usd/year) (domain: nonnegative)
      • targetGoalsFunded: Target-classified goals funded this year (unit: usd/year) (domain: nonnegative)
      • skippedTargetNominal, skippedRequiredNominal: Nominal amounts of skipped goals in those two layers (unit: usd/year) (domain: nonnegative; counted once each)

      Timing: once per projection year, at the expense summary

      Rounding: none

      Limits:

      • Asserted at the annualExpenseSummary seam, which is the function that computes the field, because the worksheet states its inputs as already-folded year-row components rather than as plan inputs a single year could realize at those exact values
      • The full target lifestyle layer is used here even in a cutting year; the cut amount appears in baseSpending instead, so a test that substitutes the cut layer is asserting a different field
      • Both equivalent forms are asserted, so the "counted once each" clause is evidence rather than prose: starting from the published requiredSpending and adding skippedRequiredNominal again is one of the worksheet's wrong readings

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-target-requested-annual.md Mutation receipt: spending-target-requested-annual.mutation.md

      Evidence tests: annualExpenseSummary.evidence.test.ts

      Implemented in: annualExpenseSummary.ts

      Is the number of: spending-target-requested-annual

      Feeds: spending-target-shortfall-annual

    Fed by: Lifestyle required discretionary split (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Spending target shortfall annual

    Unfunded target lifestyle spending in the projection year.

    Field: targetShortfall Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (targetShortfall); results-table (Layer miss "Target"); scenarios-page (Annual "Target shortfall" and lifetime "Target-lifestyle shortfall")

    • Spending layer shortfall attribution Formula record, justified by derivation

      Purpose: Attribute annual spending misses to required, target, ideal and excess layers.

      Statement: spending/layers.ts#attributeShortfall first reduces the spending attempted after any guardrail cut by the withdrawal shortfall to obtain actually funded dollars, then attributes the miss of each layer against those dollars: the target miss includes the deliberate guardrail cut as well as every attempted dollar the portfolio could not produce; the required miss is the floor minus actually funded dollars, floored at zero; ideal and excess misses are the gaps in their successive layers. No rounding.

      Formula: A=max(0,F-max(0,W)); Rmiss=max(0,R-A); Tmiss=max(0,T-A); Imiss=I-max(0,min(I,A-T)); Xmiss=X-max(0,min(X,A-T-I))

      • R,T,I,X: Required, target, ideal increment, excess increment (unit: nominal USD/year) (domain: nonnegative; T >= R)
      • F: Spending attempted after any guardrail cut (fundedSpending) (unit: nominal USD/year) (domain: nonnegative)
      • W: Withdrawal shortfall: attempted dollars the waterfall could not produce (unit: nominal USD/year) (domain: nonnegative)
      • A: Actually funded dollars, F less W (unit: nominal USD/year) (domain: nonnegative)

      Timing: annual after spending and withdrawals

      Rounding: none

      Limits:

      • The first derivation read fundedSpending as delivered dollars and expected a $15 target miss where production returns $20; the doc comment says attempted, so the worksheet was re-derived and now carries a second case (F=62, W=5) that exposes the guardrail cut in the required miss.

      Provenance: derived by codex, implemented by codex.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: spending-layer-shortfall-attribution.md Mutation receipt: spending-layer-shortfall-attribution.mutation.md

      Evidence tests: layers.evidence.test.ts

      Implemented in: layers.ts

      Is the number of: spending-required-shortfall-annual, spending-target-shortfall-annual, spending-ideal-shortfall-annual, spending-excess-shortfall-annual

      Feeds: display-upside-shortfall-annual

    Fed by: Annual target-layer requested spending (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Surplus invested annual

    Surplus cash flow invested this year into cash, else taxable, else unassigned.

    Field: Surplus invested Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: cash-flow-drilldown (Summary "Surplus" figure and surplusInvestment use/transfer lines)

    • Annual surplus invested, floored at zero Formula record, justified by derivation

      Purpose: The residual cash a year ends with, after every stated use, and where it lands.

      Statement: projection/internal/types/result.ts#YearResult.surplusInvested is max(0, accepted cash inflows - expenses.total - contributions - tax - penalties) at the accepted funding fixed point. The credited surplus goes to the lowest-id cash account, otherwise the lowest-id taxable account with equal cost-basis growth, otherwise unassigned cash with a warning; the amount has no cap. Units: nominal USD per year. Rounding: none.

      Formula: surplusInvested = max(0, I - X - C - T - P)

      • I: Accepted cash inflows at the funding fixed point (unit: usd/year) (domain: nonnegative)
      • X: expenses.total for the year (unit: usd/year) (domain: nonnegative)
      • C: Contributions credited (unit: usd/year) (domain: nonnegative)
      • T: Composed tax (unit: usd/year) (domain: nonnegative)
      • P: Penalties (unit: usd/year) (domain: nonnegative)

      Timing: once per projection year, at the accepted funding fixed point

      Rounding: none

      Limits:

      • Asserted as the published field of a real simulatePlan 2026 row that carries all five of the worksheet's members. Plan assumptions beyond the worksheet's inputs: a 55-year-old filing single in KY, so no Medicare or marketplace premium can move expenses.total off 50,000; cash inflows split into an 80,000 wage and a 20,000 tax-free recurring receipt, so a flat 10-percent test calculator prices tax at exactly 8,000 while inflows are exactly 100,000; the 10,000 of contributions go to one taxable brokerage account; and the 2,000 of penalties are the IRC 4974 excise on a completed five-year deadline year (opening benefit 12,000, 4,000 distributed by the 2026 deadline) asserted on an inherited Roth account
      • That excise is the only penalty a surplus year can carry: the early-withdrawal and HSA penalties are charged on need-based withdrawals, and a year whose inflows exceed its uses takes none, so no plan can produce both a positive surplus and an early-withdrawal penalty
      • The flat test calculator is a test double, not the shipped calculator; it is used only to realize the worksheet's stated tax member exactly, and the record makes no claim about federal tax arithmetic

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: surplus-invested-annual.md Mutation receipt: surplus-invested-annual.mutation.md

      Evidence tests: simulate.evidence.test.ts

      Implemented in: result.ts; annualFundingApplicationAndClosePhase.ts

      Is the number of: surplus-invested-annual

      Feeds: accounts-balance-per-account-annual, cash-flow-reconciliation-totals

    Fed by: Annual composed tax (composition record, 6 of 6 gates pass); Annual contributions credited after limit trimming (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Sustainable spending result max base annual

    Highest annual base spending the solver found feasible, rounded down to the nearest $100 (the exact level that passed when a guardrail plan fails at the rounded one), in today's dollars: the amount every surface shows, applies and measures slack from.

    Field: maxBaseAnnual Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: solver-page (maximum base annual spending); insights (spending-headroom card after Preview "sustains about $X/yr"); scenarios-page (Spending capacity "Solved annual base spending"); mcp (solve_max_spending.maxBaseAnnual)

    • Sustainable spending rounded down to the hundred Formula record, justified by derivation

      Purpose: The one amount every surface shows, applies and measures slack from once the spending solver has found the highest level that passed.

      Statement: decisions/spendingSolver.ts#roundSolvedSpending floors a nonnegative amount to a whole multiple of SOLVED_SPENDING_STEP_DOLLARS (100): floor(x / 100) × 100, refusing an amount that is negative or not finite. The solver publishes feasibleBaseAnnual, the highest level that passed (a whole number of dollars), and maxBaseAnnual, that level rounded down to $100, and measures spendingSlackDollars as maxBaseAnnual minus the current base (owner decision R4: one slack everywhere, from the amount shown). Under fixed-target spending the rounded amount is published without a run of its own, on the decision's assumption that a lower base does not fail where a higher one passed (measured, not proven; see the limits). Under withdrawal-rate or risk-based guardrails a lower base can fail, so the rounded amount is published only on a run at it that passed: the search's own probe at that level when it made one, else one more run after the search; otherwise the solver publishes feasibleBaseAnnual itself, sets maxBaseAnnualRounding to none and adds a sentence to its diagnostics saying why. A rounded amount below the plan's required spending is never published. Whether today's spending is sustained is sustainsCurrentBase, the verdict of the first probe (today's base rounded to a whole dollar, or the required floor rounded up when that is higher), never the sign of the slack. When the rounded amount is published, bestEvaluation and the unpriced premium-credit years still describe the run at feasibleBaseAnnual. For the worksheet's case A (levels up to $62,850 pass, current base $40,000) the probes end at $62,813, the published amount is $62,800 and the slack $22,800; under guardrails, with the rounded amount failing, it is $62,813 and $22,813. Units: today's dollars per year. Rounding: down to a whole $100.

      Formula: M = floor(F / 100) · 100 when that level is known to pass, else M = F; slack = M − current

      • F: feasibleBaseAnnual, the highest level that passed (unit: today USD per year) (domain: nonnegative whole number)
      • M: maxBaseAnnual, the published answer (unit: today USD per year) (domain: nonnegative; a multiple of 100 unless published as F)
      • current: The base spending the solve started from, after any base patch (unit: today USD per year) (domain: nonnegative)

      Timing: once per solve, after the search

      Rounding: down to a whole $100; the page prints whole dollars

      Limits:

      • Under fixed-target spending the rounded amount is not run on its own. That it passes is the decision's assumption, measured and not proven: every one of the 109 published amounts of the example plans and their shape solves re-simulates feasible, as do 210 fixed-target balance variants (0.70 to 1.30 times) of ten Marketplace-heavy or early-retirement examples, and a scan of every $10 level in the $3,000 below the answer on six Marketplace examples found none that fails. The mechanism it does not exclude is a lower spend dropping the household's income below 100 percent of the poverty line, where the premium tax credit is lost and the full premium is budgeted.
      • When the rounded amount is published, the evidence figures on the spending page and the unpriced premium-credit years describe the run at feasibleBaseAnnual, not a run at the published amount (under guardrails that run also passed, but its own evidence is not published).
      • Under guardrails a check of the rounded amount that the search did not already make is one more simulation after the search, outside maxSimulations, and it is counted in simulationCount.
      • A published amount under the current base by less than $100 can belong to a plan that sustains its own spending (the current base passed and is the answer, rounded down); the spending page judges that on feasibleBaseAnnual, and so should any other reader of the slack.
      • The search resolves to about $500, so answers less than $100 apart can publish the same amount, and a comparison of two plans can tie there.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: solved-spending-rounded-to-hundred.md Mutation receipt: solved-spending-rounded-to-hundred.mutation.md

      Evidence tests: spendingSolver.rounding.evidence.test.ts

      Implemented in: spendingSolver.ts

      Is the number of: solved-spending-rounded-to-hundred, sustainable-spending-result-max-base-annual

      Feeds: sustainable-spending-result-spending-slack-dollars, solved-initial-withdrawal-rate-pct, spending-shape-delta-vs-flat

    • Sustainable spending bisection Model record, justified by derivation

      Purpose: Find a feasible lower bound for constant annual base spending within a simulation budget.

      Statement: decisions/spendingSolver.ts#solveMaxSustainableSpending finds a lower-bound maximum feasible annual base spending in today's dollars using deterministic integer-dollar bracketing and bisection, where feasibility means no depletion and nominal ending after-tax estate at least the inflated today-dollar floor. Each bisection probe is the half-sum of the bracket rounded to the nearest dollar, a half rounded up. The highest level that passed, a whole number of dollars, is published as feasibleBaseAnnual; the published answer maxBaseAnnual is that level rounded down to $100 when that level is known to pass (the record solved-spending-rounding), and spendingSlackDollars is measured from maxBaseAnnual.

      Formula: probe integer midpoint; keep feasible lower and infeasible upper until upper-lower <= resolution; feasibleBaseAnnual = best feasible lower; maxBaseAnnual = its $100 floor when that level is known to pass, else feasibleBaseAnnual

      • spending: Probed annual base spending (unit: today USD/year) (domain: nonnegative integer)
      • resolution: Maximum bracket width (unit: USD/year) (domain: positive)

      Timing: whole-plan deterministic evaluations

      Rounding: integer-dollar midpoint

      Limits:

      • simulationCount has its own record (sustainable-spending-result-simulation-count); the count enters the published result, so this record feeds its family rather than computing it.
      • The public API generates its own bracket. Evidence seeds 40000, brackets at 80000, and verifies the first two midpoints reach the worksheet bracket 60000/70000 before checking its four probes and 62500 result, then runs the same search at a $100 resolution, which probes three more levels and passes 62969. It isolates the stated feasible predicate with an evaluation double, not an invented ledger oracle. Monotone feasibility is assumed at fixed-target spending (under guardrails it does not hold; see below); budgets can stop convergence.
      • A Marketplace year whose premium tax credit the ledger could not price (aca.readiness nonActionable) counts its full premium, as the ledger funds it; the credit lies between 0 and that premium (26 U.S.C. 36B(b)(2)). The solver always evaluates its probes with nonActionableAca 'disclose' (its options leave callers no way to ask for 'refuse'), so such a year is a disclosed limit, not a refusal. Those years of the run the result rests on (the best feasible probe; with no answer, the probe the failure diagnostic describes: the floor probe when it ran, else the seed), the codes that blocked pricing (every code but the informational ones, INFORMATIONAL_ACA_SUPPORT_CODES, the list the ledger's readiness reads) and acaGrossPremiumDirection are published, and the last diagnostic names them.
      • acaGrossPremiumDirection is 'conservative' only at fixed-target spending: at fixed spending a lower premium lowers what that year must withdraw, so a credit would likely leave room to spend more. That is measured, not proven for every plan: an independent check priced the stand-in years in a counterfactual and re-solved the 20 fixed-target example answers at $1 resolution (about 6,700 grid points) without finding a credit-priced answer below the gross one (gaps 0 to $6,357 a year). Under guardrails it is 'uncertain': a lower cost keeps the withdrawal rate under the upper guardrail longer, so cuts start later, and the same check found credit-priced ledgers that solve lower (the aggressive-saver example under 125/90/20 guardrails with raises: $76,707 on the gross premium, $75,170 with the credit priced) or deplete at the gross answer (the barista-fire example under the same 125/90/20 guardrails with raises).
      • Under an adaptive spending policy (guardrails) feasibility is not monotone in the base amount, so the answer is a level the search found feasible and a higher feasible level can exist. Measured with no Marketplace year at all: the example-couple plan with no Marketplace premium or credit, withdrawal-rate guardrails (upper 125%) and an $86,400 required floor depletes in 2059 at a base of $164,391 and never depletes at $166,971, because the higher base makes its first cut a year earlier (2030 against 2031). The independent check of 2026-09-26 also found it on Marketplace plans, under both the gross-premium and the credit-priced ledgers.
      • The published answer is rounded down to $100 (owner decision R4, the record solved-spending-rounding). In this record's first evidence case the level that passed, $62,500, is already a whole $100, so it is both feasibleBaseAnnual and the published answer; in the second the level that passed is $62,969 and the published answer $62,900, so the two figures differ and each is asserted.
      • When the seed is infeasible the downward bracket starts at the required spending floor (expenses.requiredAnnual rounded up, 0 when the plan has none), the lowest level the plan checks accept; no probe goes below it, and a failure there is reported as the floor failing, naming the constraint that failed. The seed itself is raised to that floor when the base spending would round below it. zeroSpendingDepletes is true only when a probe at 0 ran and depleted.

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: sustainable-spending-bisection.md Mutation receipt: sustainable-spending-bisection.mutation.md

      Evidence tests: spendingSolver.evidence.test.ts

      Implemented in: spendingSolver.ts

      Is the number of: sustainable-spending-result-max-base-annual, sustainable-spending-result-spending-slack-dollars, sustainable-spending-result-feasible-base-annual

      Feeds: sustainable-spending-result-simulation-count, solved-initial-withdrawal-rate-pct, solved-spending-rounded-to-hundred

    Fed by: Annual real spending drift compiled to five-year phase rows (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Sustainable spending result feasible base annual

    Highest annual base spending the solver's search found feasible (no depletion, and an ending after-tax estate at or above the floor), a whole number of today's dollars: the level maxBaseAnnual is rounded down from to the nearest $100, and the one on which whether today's spending is sustained is judged.

    Field: feasibleBaseAnnual Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: mcp (solve_max_spending.feasibleBaseAnnual)

    • Sustainable spending bisection Model record, justified by derivation

      Purpose: Find a feasible lower bound for constant annual base spending within a simulation budget.

      Statement: decisions/spendingSolver.ts#solveMaxSustainableSpending finds a lower-bound maximum feasible annual base spending in today's dollars using deterministic integer-dollar bracketing and bisection, where feasibility means no depletion and nominal ending after-tax estate at least the inflated today-dollar floor. Each bisection probe is the half-sum of the bracket rounded to the nearest dollar, a half rounded up. The highest level that passed, a whole number of dollars, is published as feasibleBaseAnnual; the published answer maxBaseAnnual is that level rounded down to $100 when that level is known to pass (the record solved-spending-rounding), and spendingSlackDollars is measured from maxBaseAnnual.

      Formula: probe integer midpoint; keep feasible lower and infeasible upper until upper-lower <= resolution; feasibleBaseAnnual = best feasible lower; maxBaseAnnual = its $100 floor when that level is known to pass, else feasibleBaseAnnual

      • spending: Probed annual base spending (unit: today USD/year) (domain: nonnegative integer)
      • resolution: Maximum bracket width (unit: USD/year) (domain: positive)

      Timing: whole-plan deterministic evaluations

      Rounding: integer-dollar midpoint

      Limits:

      • simulationCount has its own record (sustainable-spending-result-simulation-count); the count enters the published result, so this record feeds its family rather than computing it.
      • The public API generates its own bracket. Evidence seeds 40000, brackets at 80000, and verifies the first two midpoints reach the worksheet bracket 60000/70000 before checking its four probes and 62500 result, then runs the same search at a $100 resolution, which probes three more levels and passes 62969. It isolates the stated feasible predicate with an evaluation double, not an invented ledger oracle. Monotone feasibility is assumed at fixed-target spending (under guardrails it does not hold; see below); budgets can stop convergence.
      • A Marketplace year whose premium tax credit the ledger could not price (aca.readiness nonActionable) counts its full premium, as the ledger funds it; the credit lies between 0 and that premium (26 U.S.C. 36B(b)(2)). The solver always evaluates its probes with nonActionableAca 'disclose' (its options leave callers no way to ask for 'refuse'), so such a year is a disclosed limit, not a refusal. Those years of the run the result rests on (the best feasible probe; with no answer, the probe the failure diagnostic describes: the floor probe when it ran, else the seed), the codes that blocked pricing (every code but the informational ones, INFORMATIONAL_ACA_SUPPORT_CODES, the list the ledger's readiness reads) and acaGrossPremiumDirection are published, and the last diagnostic names them.
      • acaGrossPremiumDirection is 'conservative' only at fixed-target spending: at fixed spending a lower premium lowers what that year must withdraw, so a credit would likely leave room to spend more. That is measured, not proven for every plan: an independent check priced the stand-in years in a counterfactual and re-solved the 20 fixed-target example answers at $1 resolution (about 6,700 grid points) without finding a credit-priced answer below the gross one (gaps 0 to $6,357 a year). Under guardrails it is 'uncertain': a lower cost keeps the withdrawal rate under the upper guardrail longer, so cuts start later, and the same check found credit-priced ledgers that solve lower (the aggressive-saver example under 125/90/20 guardrails with raises: $76,707 on the gross premium, $75,170 with the credit priced) or deplete at the gross answer (the barista-fire example under the same 125/90/20 guardrails with raises).
      • Under an adaptive spending policy (guardrails) feasibility is not monotone in the base amount, so the answer is a level the search found feasible and a higher feasible level can exist. Measured with no Marketplace year at all: the example-couple plan with no Marketplace premium or credit, withdrawal-rate guardrails (upper 125%) and an $86,400 required floor depletes in 2059 at a base of $164,391 and never depletes at $166,971, because the higher base makes its first cut a year earlier (2030 against 2031). The independent check of 2026-09-26 also found it on Marketplace plans, under both the gross-premium and the credit-priced ledgers.
      • The published answer is rounded down to $100 (owner decision R4, the record solved-spending-rounding). In this record's first evidence case the level that passed, $62,500, is already a whole $100, so it is both feasibleBaseAnnual and the published answer; in the second the level that passed is $62,969 and the published answer $62,900, so the two figures differ and each is asserted.
      • When the seed is infeasible the downward bracket starts at the required spending floor (expenses.requiredAnnual rounded up, 0 when the plan has none), the lowest level the plan checks accept; no probe goes below it, and a failure there is reported as the floor failing, naming the constraint that failed. The seed itself is raised to that floor when the base spending would round below it. zeroSpendingDepletes is true only when a probe at 0 ran and depleted.

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: sustainable-spending-bisection.md Mutation receipt: sustainable-spending-bisection.mutation.md

      Evidence tests: spendingSolver.evidence.test.ts

      Implemented in: spendingSolver.ts

      Is the number of: sustainable-spending-result-max-base-annual, sustainable-spending-result-spending-slack-dollars, sustainable-spending-result-feasible-base-annual

      Feeds: sustainable-spending-result-simulation-count, solved-initial-withdrawal-rate-pct, solved-spending-rounded-to-hundred

  • Sustainable spending result simulation count

    Number of deterministic projections evaluated by the spending solver.

    Field: simulationCount Unit: count Basis: no dollar basis Computed by: Engine Status: Complete chain

    Appears in: solver-page (simulations run); scenarios-page (Spending capacity simulation count column)

    • Sustainable-spending simulation count: the probe sequence, counted Model record, justified by derivation

      Purpose: How many full-projection probes the sustainable-spending solve actually ran.

      Statement: decisions/spendingSolver.ts#solveMaxSustainableSpending counts one probe at the seed (the patched plan's own base spending rounded to a whole dollar, floored at 0, and raised to the required spending floor rounded up when it would fall below it, since the plan checks refuse a base below that floor). When the seed is feasible it counts one probe per doubling from max(2 x seed, $20,000), doubling again after each feasible one, until a probe fails or the budget or the $100,000,000 unbounded ceiling is reached; when the seed is infeasible and above the required spending floor it counts one further probe at that floor (expenses.requiredAnnual rounded up, 0 when the plan has none). It then counts one bisection probe per halving while the bracket is strictly wider than resolutionDollars and simulationCount is below maxSimulations. Under a withdrawal-rate or risk-based guardrail policy, when the level that passed is not a whole $100, rounded down it is not below the required spending floor, and the search did not already probe that rounded level, it counts one more run after the search, at that rounded level, outside maxSimulations (the record solved-spending-rounding). Units: probes (whole projections). Rounding: none; the value is an integer.

      Formula: count = 1 + doublings + bisections (+ 1 under guardrails when the answer rounded down to $100 was not already probed and is not below the floor), or 2 when a seed above the floor and the floor both fail

      • seed: max(0, round(base spending of the patched plan), ceil(expenses.requiredAnnual)) (unit: usd/year) (domain: nonnegative)
      • floor: ceil(expenses.requiredAnnual), 0 when the plan has no required spending; never above the seed (unit: usd/year) (domain: nonnegative)
      • resolution: Bracket width the bisection stops at (unit: usd/year) (domain: positive)
      • budget: maxSimulations, the hard probe cap (unit: probes) (domain: positive integer)
      • count: Projections the solve ran (unit: probes) (domain: nonnegative integer)

      Timing: once per solve; every probe is a complete simulatePlan run

      Rounding: none; integer

      Limits:

      • The worksheet supplies probe feasibility as test evidence; the evidence therefore builds a plan whose feasibility frontier really does fall between $22,500 and $25,000: four projection years, one $95,000 cash account, zero return and zero inflation, no income and no tax, so a level S is feasible exactly when 4S <= $95,000 (frontier $23,750)
      • The infeasible-seed case counts 2 only when the floor probe ALSO fails; the test plan has no required spending, so its floor is 0, and the evidence forces the failure with a $60,000 uninflated one-time goal the $5,000 portfolio cannot fund, because a feasible floor would open the bisection and raise the count
      • The count is not a measure of accuracy: it rises with the budget and falls with a looser resolution. An amortized-spending (ABW) plan returns 0 without probing; a diagnostic seed probe (an invalid basePatch) returns 1, and a seed already at the floor that fails returns 1

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: sustainable-spending-result-simulation-count.md Mutation receipt: sustainable-spending-result-simulation-count.mutation.md

      Evidence tests: spendingSolver.simulationCount.evidence.test.ts

      Implemented in: spendingSolver.ts

      Is the number of: sustainable-spending-result-simulation-count

    Fed by: Sustainable spending bisection (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Sustainable spending result spending slack dollars

    The published solved spending (rounded down to $100) minus current base spending, in today's dollars; negative means today's spending is above the published amount, which by less than $100 can still be a plan that sustains its own spending.

    Field: spendingSlackDollars Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: solver-page (spending feasibility slack); insights (spending-headroom card after Preview "$Y/yr above your current level"); scenarios-page (Spending capacity "Slack vs. current base spending"); mcp (solve_max_spending.spendingSlackDollars)

    • Sustainable spending bisection Model record, justified by derivation

      Purpose: Find a feasible lower bound for constant annual base spending within a simulation budget.

      Statement: decisions/spendingSolver.ts#solveMaxSustainableSpending finds a lower-bound maximum feasible annual base spending in today's dollars using deterministic integer-dollar bracketing and bisection, where feasibility means no depletion and nominal ending after-tax estate at least the inflated today-dollar floor. Each bisection probe is the half-sum of the bracket rounded to the nearest dollar, a half rounded up. The highest level that passed, a whole number of dollars, is published as feasibleBaseAnnual; the published answer maxBaseAnnual is that level rounded down to $100 when that level is known to pass (the record solved-spending-rounding), and spendingSlackDollars is measured from maxBaseAnnual.

      Formula: probe integer midpoint; keep feasible lower and infeasible upper until upper-lower <= resolution; feasibleBaseAnnual = best feasible lower; maxBaseAnnual = its $100 floor when that level is known to pass, else feasibleBaseAnnual

      • spending: Probed annual base spending (unit: today USD/year) (domain: nonnegative integer)
      • resolution: Maximum bracket width (unit: USD/year) (domain: positive)

      Timing: whole-plan deterministic evaluations

      Rounding: integer-dollar midpoint

      Limits:

      • simulationCount has its own record (sustainable-spending-result-simulation-count); the count enters the published result, so this record feeds its family rather than computing it.
      • The public API generates its own bracket. Evidence seeds 40000, brackets at 80000, and verifies the first two midpoints reach the worksheet bracket 60000/70000 before checking its four probes and 62500 result, then runs the same search at a $100 resolution, which probes three more levels and passes 62969. It isolates the stated feasible predicate with an evaluation double, not an invented ledger oracle. Monotone feasibility is assumed at fixed-target spending (under guardrails it does not hold; see below); budgets can stop convergence.
      • A Marketplace year whose premium tax credit the ledger could not price (aca.readiness nonActionable) counts its full premium, as the ledger funds it; the credit lies between 0 and that premium (26 U.S.C. 36B(b)(2)). The solver always evaluates its probes with nonActionableAca 'disclose' (its options leave callers no way to ask for 'refuse'), so such a year is a disclosed limit, not a refusal. Those years of the run the result rests on (the best feasible probe; with no answer, the probe the failure diagnostic describes: the floor probe when it ran, else the seed), the codes that blocked pricing (every code but the informational ones, INFORMATIONAL_ACA_SUPPORT_CODES, the list the ledger's readiness reads) and acaGrossPremiumDirection are published, and the last diagnostic names them.
      • acaGrossPremiumDirection is 'conservative' only at fixed-target spending: at fixed spending a lower premium lowers what that year must withdraw, so a credit would likely leave room to spend more. That is measured, not proven for every plan: an independent check priced the stand-in years in a counterfactual and re-solved the 20 fixed-target example answers at $1 resolution (about 6,700 grid points) without finding a credit-priced answer below the gross one (gaps 0 to $6,357 a year). Under guardrails it is 'uncertain': a lower cost keeps the withdrawal rate under the upper guardrail longer, so cuts start later, and the same check found credit-priced ledgers that solve lower (the aggressive-saver example under 125/90/20 guardrails with raises: $76,707 on the gross premium, $75,170 with the credit priced) or deplete at the gross answer (the barista-fire example under the same 125/90/20 guardrails with raises).
      • Under an adaptive spending policy (guardrails) feasibility is not monotone in the base amount, so the answer is a level the search found feasible and a higher feasible level can exist. Measured with no Marketplace year at all: the example-couple plan with no Marketplace premium or credit, withdrawal-rate guardrails (upper 125%) and an $86,400 required floor depletes in 2059 at a base of $164,391 and never depletes at $166,971, because the higher base makes its first cut a year earlier (2030 against 2031). The independent check of 2026-09-26 also found it on Marketplace plans, under both the gross-premium and the credit-priced ledgers.
      • The published answer is rounded down to $100 (owner decision R4, the record solved-spending-rounding). In this record's first evidence case the level that passed, $62,500, is already a whole $100, so it is both feasibleBaseAnnual and the published answer; in the second the level that passed is $62,969 and the published answer $62,900, so the two figures differ and each is asserted.
      • When the seed is infeasible the downward bracket starts at the required spending floor (expenses.requiredAnnual rounded up, 0 when the plan has none), the lowest level the plan checks accept; no probe goes below it, and a failure there is reported as the floor failing, naming the constraint that failed. The seed itself is raised to that floor when the base spending would round below it. zeroSpendingDepletes is true only when a probe at 0 ran and depleted.

      Provenance: derived by codex, implemented by claude-subagent.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: sustainable-spending-bisection.md Mutation receipt: sustainable-spending-bisection.mutation.md

      Evidence tests: spendingSolver.evidence.test.ts

      Implemented in: spendingSolver.ts

      Is the number of: sustainable-spending-result-max-base-annual, sustainable-spending-result-spending-slack-dollars, sustainable-spending-result-feasible-base-annual

      Feeds: sustainable-spending-result-simulation-count, solved-initial-withdrawal-rate-pct, solved-spending-rounded-to-hundred

    Fed by: Sustainable spending rounded down to the hundred (formula record, 6 of 6 gates pass); Annual real spending drift compiled to five-year phase rows (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Year result contributions

    Employee and household dollars contributed to investment accounts during the projection year.

    Field: contributions Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (contributions); results-table (Contrib. column); report (year-ledger block contributions and ReportPage year table); cash-flow-drilldown (contribution use and employeeContribution transfer lines)

    • Annual contributions credited after limit trimming Formula record, justified by derivation

      Purpose: How much of the desired contribution each owner is actually allowed to put in.

      Statement: projection/internal/types/result.ts#YearResult.contributions, planned by projection/internal/annualContributionsAndEmployerMatch.ts#annualContributionsAndEmployerMatch, sums the contributions actually credited after each desired amount is trimmed to its applicable group limit and to compensation. A jointly owned account's desired amount follows joint-account-contributions. The IRA limit in params/data/year2026.ts#year2026 is 7,500 for 2026, shared per owner across that owner's traditional and Roth IRAs, with a separate age-50 catch-up only when applicable. Units: nominal USD per year. Rounding: none.

      Formula: contributions = sum over owners and accounts of min(desired, group limit, compensation)

      • desired: Plan annual contribution for the account (unit: usd/year) (domain: nonnegative)
      • group limit: Per-owner IRA limit plus any applicable catch-up (unit: usd/year) (domain: 7,500 for 2026)
      • compensation: Owner wages available to support the contribution (unit: usd/year) (domain: nonnegative)

      Timing: once per projection year, after wages land

      Rounding: none

      Limits:

      • Asserted as the published field of a real simulatePlan 2026 row built from the worksheet's inputs: two owners aged 40 and 45 with one traditional IRA each, desired 6,000 and 9,000, wages 50,000 each, and zero general inflation. Plan assumptions beyond the worksheet's inputs: the household files jointly in KY at a zero state rate, both IRAs open at a zero balance with zero returns, there are no other accounts and no spending, and the 2026 IRA limit is read from the published parameters rather than written into the test
      • Both owners are under 50, so the test isolates the base limit and evidences no catch-up band

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: year-result-contributions.md Mutation receipt: year-result-contributions.mutation.md

      Evidence tests: simulate.evidence.test.ts

      Implemented in: result.ts; annualContributionsAndEmployerMatch.ts

      Is the number of: year-result-contributions

      Feeds: surplus-invested-annual, cash-flow-reconciliation-totals

    Fed by: HSA contribution limits by year (data record, 6 of 6 gates pass); When a jointly owned account takes contributions (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Year result employer match

    Employer matching contributions credited during the projection year.

    Field: employerMatch Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (employerMatch); results-table (Match column); report (ReportPage year table Match column); cash-flow-drilldown (employerMatch transfer line)

    • Annual employer match under the pay cap and the annual-additions limit Formula record, justified by derivation

      Purpose: What the employer actually adds once the pay cap and the IRC 415(c) ceiling are applied.

      Statement: projection/internal/types/result.ts#YearResult.employerMatch, planned by projection/internal/annualContributionsAndEmployerMatch.ts#annualContributionsAndEmployerMatch, is min(elective deferral landed, capPctOfPay/100 x wages) x matchPct/100, capped by the owner's remaining IRC 415(c) room for that plan after the elective deferrals. The 2026 tax parameters fix the 415(c) limit at 72,000. The match is computed only after every elective deferral has landed. Units: nominal USD per year. Rounding: none.

      Formula: employerMatch = min(min(E, c W) m, L - E - other additions)

      • E: Elective deferral landed in the plan (unit: usd/year) (domain: nonnegative)
      • W: Owner wages from the sponsoring employer (unit: usd/year) (domain: nonnegative)
      • c: Match cap share of pay (unit: 1) (domain: capPctOfPay / 100)
      • m: Match rate on the matched elective base (unit: 1) (domain: matchPct / 100)
      • L: IRC 415(c) annual-additions limit (unit: usd/year) (domain: 72,000 for 2026)

      Timing: once per projection year, after every elective deferral has landed

      Rounding: none

      Limits:

      • Asserted as the published field of a real simulatePlan 2026 row built from the worksheet's inputs: wages 75,000, one employer traditional plan whose desired deferral of 24,500 lands in full, a 50-percent-of-pay match cap, a 200-percent match rate, and no other annual additions. Plan assumptions beyond the worksheet's inputs: the owner is 45 and filing single in KY at a zero state rate, so no age-50 catch-up can widen either the deferral or the room; the plan opens at a zero balance with zero returns and no spending; and the 2026 415(c) limit and elective-deferral limit are read from the published parameters rather than written into the test
      • The worksheet's third wrong reading (applying the pay cap after the match rate) produces 37,500, which is discriminated numerically here only because the 415(c) cap lands at 47,500 rather than 37,500

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: year-result-employer-match.md Mutation receipt: year-result-employer-match.mutation.md

      Evidence tests: simulate.evidence.test.ts

      Implemented in: result.ts; annualContributionsAndEmployerMatch.ts

      Is the number of: year-result-employer-match

      Feeds: accounts-ending-balance-by-category, cash-flow-line-plan-dollars

  • Year result LTCG zero headroom

    Additional long-term capital gains available before leaving the zero-percent bracket.

    Field: ltcgZeroHeadroom Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: results-table (0% capital-gains headroom)

    • 0% long-term-gains headroom: the unused layer under the 15% threshold Model record, justified by derivation

      Purpose: How much more long-term gain the year could realize and still pay 0% on it.

      Statement: YearResult.ltcgZeroHeadroom, computed by tax/federalTax.ts#zeroRateLtcgHeadroom, is 0 when taxable income with no extra gain already reaches the threshold where the 15 percent rate starts (capitalGains.rate15StartsAbove in the year's tax figures) for the filing status: the published figure in a year that has its own, and in a later year the latest published figure indexed to that year by the plan's general inflation, as the brackets and the deduction are; otherwise it is the largest extra gain, found by bisection to a $0.01 bracket, that keeps max(0, ordinary income excluding Social Security + gains + qualified dividends + the extra gain + the resulting taxable Social Security − deduction) at or under that threshold. The search brackets that gain in every case: its upper end is the threshold when taxable income at a gain equal to the threshold is above it, and otherwise the threshold + deduction − (ordinary income excluding Social Security + gains + qualified dividends), where taxable income before the floor is at least the threshold. Without benefits the slope above the zero floor is exactly 1, so the root is threshold − taxable income when income before the gain covers the deduction, and the threshold plus the unused deduction when it does not (single, 2026: $55,550 of room at $10,000 of ordinary income, $65,550 at $0). Units: nominal dollars of additional gain. Rounding: bisection to $0.01, so the published figure sits at or just under the exact root.

      Formula: headroom = 0 when taxable(0) >= T; else max{ g : taxable(g) <= T }, T = rate15StartsAbove[filingStatus]

      • T: 15% long-term-gains threshold for the filing status (unit: usd taxable income) (domain: positive)
      • taxable(g): Taxable income with g of extra long-term gain, including any resulting taxable Social Security (unit: usd) (domain: nondecreasing in g; slope 0 while floored at zero, then 1 to 1.85)
      • headroom: Additional gain still taxed at 0% (unit: usd) (domain: nonnegative)

      Timing: annual, priced with the year's federal detail after the funding fixed point

      Rounding: bisection stops at a $0.01 bracket width; the at-threshold branch returns exactly 0

      Limits:

      • Beyond the worksheet's inputs the evidence plan fixes: a 63-year-old single filer (under 65, so the deduction is the base 2026 standard deduction of $16,100 with no age addition), an uninflated recurring ordinary stream sized to $16,100 above the case's taxable income, zero inflation and zero return so the 2026 threshold is unindexed, no gains and no qualified dividends, and a cash account to absorb surplus and pay tax
      • Case A is asserted at the worksheet's absolute $0.005 because the bisection lands 0.002 under the exact $12,450 root; a test that demanded exactness would fail on the algorithm's own $0.01 stopping width, not on the identity
      • The at-threshold branch returns exactly 0 before any bisection, which is why Case B is compared with toBe rather than a tolerance
      • The benefits branch is out of scope here: the worksheet states the no-benefit subtraction, and the bisection exists precisely because that subtraction is wrong once §86 inclusion moves with the gain
      • Cases C and D, added under decision D-ZERO-RATE-HEADROOM on 2026-09-25, put ordinary income below the deduction: the same plan with a $10,000 ordinary stream, and with no income at all. Their search runs from the threshold to the threshold plus the unused deduction, a wider bracket than Case A's, so the bisection lands up to $0.008 under the root (55,549.994 and 65,549.992); each is asserted within the $0.01 stopping width and at or under the root, and away from the 49,450 that a search bounded by the threshold published before the decision. Cases A and B were derived by Codex and reviewed by Cursor; Cases C and D were worked by the implementer from the decision's evidence and independently checked on 2026-09-26 by a reviewer who is not the author, as the worksheet records. The worksheet's claim was reworded on 2026-09-27 to name the indexed threshold of a projected year, and Codex reviewed the reworded claim on 2026-09-29 (DOCS/calculations/reviews/REVIEW-2026-09-29-codex-2-cash-flow.md)

      Provenance: derived by claude, implemented by claude.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: year-result-ltcg-zero-headroom.md Mutation receipt: year-result-ltcg-zero-headroom.mutation.md

      Evidence tests: simulate.ltcgZeroHeadroom.evidence.test.ts

      Implemented in: federalTax.ts; annualFundingApplicationAndClosePhase.ts

      Is the number of: year-result-ltcg-zero-headroom

  • Year result tax exempt interest

    Tax-exempt interest income received during the projection year.

    Field: taxExemptInterest Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: csv (taxExemptInterest); chart (Income by source "Tax-exempt interest" series); scenarios-page (Annual "Tax-exempt interest" and lifetime "Tax-exempt interest"); cash-flow-drilldown (taxExemptInterest source line)

    • Annual tax-exempt interest, and the ACA-year maximum Formula record, justified by derivation

      Purpose: Municipal interest the year really generates, raised to an attested household total in an ACA year.

      Statement: projection/internal/types/result.ts#YearResult.taxExemptInterest is the account-generated federally tax-exempt interest total, except in a year with an active ACA contract whose taxExemptInterest state is known, when it is max(attested household total, plan-generated subset). Generated account interest is the stated taxable-account balance times taxExemptInterestYieldPct/100. Cash and balances always follow the generated figure. Units: nominal USD per year. Rounding: none.

      Formula: generated = B x q; published = known ACA contract ? max(attested, generated) : generated

      • B: Taxable-account start-of-year balance (unit: usd) (domain: nonnegative)
      • q: Tax-exempt interest yield (unit: 1) (domain: taxExemptInterestYieldPct / 100)
      • attested: Household tax-exempt interest on a known ACA contract (unit: usd/year) (domain: nonnegative)

      Timing: once per projection year, after the account yield pass

      Rounding: none

      Limits:

      • Both cases asserted as the published field of a real simulatePlan 2026 row: one municipal sleeve at the worksheet's 200,000 balance and 2-percent tax-exempt yield, zero account return and zero inflation. Plan assumptions beyond the worksheet's inputs: a 60-year-old filing single in KY at a zero state rate, the sleeve does not reinvest its yield, and Case B adds a 2026 ACA contract at a 500-per-month enrollment premium whose taxExemptInterest state is known at the worksheet's 6,000; the enrollment premium is what makes the contract active and is not read by this field
      • The ACA maximum characterizes income only; the test also asserts that the generated 4,000 remains the cash-real income member in Case A

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: year-result-tax-exempt-interest.md Mutation receipt: year-result-tax-exempt-interest.mutation.md

      Evidence tests: simulate.evidence.test.ts

      Implemented in: result.ts; annualAggregateRothConversionPhase.ts

      Is the number of: year-result-tax-exempt-interest

      Feeds: income-total-annual, tax-total-annual

  • Cash flow line plan dollars

    The nominal plan-dollar amount of one identity-bearing cash-flow line in a projection year: a source line's amount, a use line's requested, funded and unfunded amounts, and a transfer line's paired debit and credit.

    Field: Cash-flow line amounts (nominal plan dollars) Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: cash-flow-drilldown (YearCashFlowDialog DetailTable columns Amount, Requested, Funded, Unfunded, Debit and Credit (through display-dollar-basis-conversion)); cash-flow-drilldown (Sankey links and per-node totals (the UI mapping is cash-flow-line-amount)); cash-flow-drilldown (detailCsv.ts columns nominalAmount, requested, funded, unfunded, debit, credit (unrounded nominal plan dollars))

    • Cash-flow line amounts and the annual cash identity Composition record, justified by derivation

      Purpose: Which reported lines are cash on each side, so the same dollar is never counted twice.

      Statement: The Plan-dollar amounts on projection/internal/types/cashFlow.ts#YearCashFlowCashSourceLine, #YearCashFlowUseLine and #YearCashFlowTransferLine obey the source-side annual cash identity reconciled by projection/annualCashFlowReconciliation.ts#reconcileYearCashFlow: spendable sources plus portfolio funding plus loan proceeds equal funded household uses plus settled tax plus penalties plus contributions plus surplus investment. A #YearCashFlowPostSolveDepositLine sits outside that identity, as does a tax-character annotation. Units: nominal Plan USD. Rounding: none.

      Formula: sourceTotal = spendable + portfolioFunding + loanProceeds; destinationTotal = fundedUses + tax + penalties + contributions + surplus; difference = sourceTotal - destinationTotal

      • spendable: Spendable-source lines (unit: usd) (domain: role spendableSource)
      • portfolioFunding: Portfolio-funding lines (unit: usd) (domain: role portfolioFunding)
      • loanProceeds: Loan-proceeds lines (unit: usd) (domain: role loanProceeds)
      • postSolveDeposit: Receipt deposited after the solve (unit: usd) (domain: excluded from both sides)

      Timing: once per captured projection year

      Rounding: none

      Limits:

      • Asserted at the production reconciler with the worksheet's eight published totals as line amounts, plus its 5,000 post-solve life-insurance deposit and a 5,000 contribution transfer pair. Plan assumptions beyond the worksheet's inputs: the account and property identities the line ids carry, and the reconciler's own published tolerances, which are imported rather than written in
      • The identity is asserted on the published totals, not re-derived: the test reads sourceTotalPlanDollars, destinationTotalPlanDollars and differencePlanDollars from the reconciliation result

      Provenance: derived by codex, implemented by claude.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: cash-flow-line-plan-dollars.md Mutation receipt: cash-flow-line-plan-dollars.mutation.md

      Evidence tests: annualCashFlowReconciliation.evidence.test.ts

      Implemented in: cashFlow.ts; annualCashFlowReconciliation.ts

      Is the number of: cash-flow-line-plan-dollars

      Feeds: cash-flow-reconciliation-totals

    Fed by: Annual employer match under the pay cap and the annual-additions limit (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

Insights

  • Insight annuitization headroom illustrative SPIA

    Illustrative single-premium annuity: premium = min(25% of the largest liquid account, $250,000); monthly income = premium × spiaPayoutRate(startAge) / 12.

    Field: Illustrative SPIA premium and income Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: insights (annuitization-headroom card rationale "Trading $X ... (~$Y/mo)")

    • Illustrative SPIA premium and monthly payout from unused longevity headroom Model record, justified by derivation

      Purpose: A bounded quarter-account SPIA illustration for a planning-age-95-or-later plan that holds no annuity or pension covering the floor.

      Statement: For a plan whose maximum planning age is at least 95, with a qualifying largest cash-or-taxable account of at least $100,000 and no annuity or pension covering the floor: premium = min(0.25 × liquidBalance, $250,000); monthly payout = premium × spiaPayoutRate(startAge) / 12, where startAge = min(95, max(currentAge, 65)) and currentAge is that of the person model/peopleOrder.ts#canonicalFirstPerson puts first (the older; between two people born the same day, the sex order female, male, average and then the smaller id by ordinal comparison decide, so for two people with the same birth date and sex renaming the ids can move the annuitant and every figure on that life), whoever is listed first, whom the card names and on whose life the previewed annuity is written (decision D-PEOPLE-ORDER). Units: nominal dollars. Rounding: none; the production function returns a binary float, formatted to whole dollars only at the card.

      Formula: premium = min(0.25 L, 250000); monthly = premium × r(startAge) / 12

      • L: Largest qualifying liquid (cash or taxable) account balance (unit: usd) (domain: L >= 100000)
      • r(startAge): Annual SPIA payout rate as a fraction of premium, already resolved by spiaPayoutRate (unit: 1) (domain: r > 0)
      • startAge: min(95, max(currentAge, 65)) (unit: years) (domain: 65 <= startAge <= 95)

      Timing: illustration at the projection start year; payout begins at startAge

      Rounding: the card publishes whole-dollar strings (formatWholeUsd, Math.round) and the evidence asserts the published figure; no rounding before that

      Limits:

      • An illustration, not a carrier quote, recommendation, or claim that the payout is optimal or guaranteed
      • The worksheet supplies the already-resolved spiaPayoutRate(startAge) = 6.6%/year; the evidence passes that rate through rather than re-quoting the table
      • startAge is clamped to [65, 95], so a rate below the age-65 table point is not reachable without substituting the resolved rate

      Provenance: derived by codex, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insight-annuitization-headroom-illustrative-spia.md Mutation receipt: insight-annuitization-headroom-illustrative-spia.mutation.md

      Evidence tests: annuitizationHeadroom.evidence.test.ts

      Implemented in: annuitizationHeadroom.ts; peopleOrder.ts

      Is the number of: insight-annuitization-headroom-illustrative-spia

  • Insight asset location swappable exposure

    Dollars of bond or stock exposure the preferred asset-location swap would relocate between account wrappers while holding the household mix constant.

    Field: Swappable class exposure Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: insights (asset-location card impact "Up to $X of class exposure could be relocated")

    • Swappable class exposure of the preferred asset-location candidate Model record, justified by derivation

      Purpose: The dollar amount of class exposure the preferred bounded asset-location swap would relocate while holding the household mix constant.

      Statement: Among bounded asset-location candidates generated for a plan that uses static allocation on multiple accounts, screen() selects the candidate whose id is asset-location-bonds-to-traditional when that id is present and otherwise the first candidate in generator order, then publishes that candidate's metadata.swappedDollars (0 when absent). It never prices ending-estate deltas. Units: nominal dollars. Rounding: the generator stores Math.round(dollars); the worksheet copies that metadata.

      Formula: selected = find(id = asset-location-bonds-to-traditional) ?? first; exposure = swappedDollars(selected) ?? 0

      • id: Generator candidate identifier, in generator order (unit: 1) (domain: string)
      • swappedDollars: Class exposure the selected candidate relocates between wrappers (unit: usd) (domain: >= 0, or absent)

      Timing: screen-time metadata of a bounded swap; the estate delta is ignored here and priced on the full year-by-year projection by evaluate()

      Rounding: the generator rounds swapped dollars to whole dollars; the card publishes whole-dollar strings (formatWholeUsd, Math.round) and the evidence asserts the published figure

      Limits:

      • A screening choice, not a claim that asset location always helps
      • screen() never prices candidates; selection is by preferred id then generator position, independent of exposure size
      • The largest-positive ending-after-tax-estate-delta rule belongs to evaluate(), which runs the full year-by-year projection, not to this published screen quantity

      Provenance: derived by codex, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insight-asset-location-swappable-exposure.md Mutation receipt: insight-asset-location-swappable-exposure.mutation.md

      Evidence tests: assetLocation.evidence.test.ts

      Implemented in: assetLocation.ts

      Is the number of: insight-asset-location-swappable-exposure

  • Insight HECM buffer illustrative credit line

    Initial HECM line of credit = principal limit factor (published table for the youngest borrower age) × home value; the card also sums cash, taxable, equity comp, traditional, Roth and HSA balances as the investable portfolio it compares against.

    Field: Illustrative HECM credit line Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: insights (hecm-buffer-candidate card rationale "would start near $X (P% of value)" and the portfolio total)

    • Illustrative HECM credit line for a house-rich, portfolio-thin plan Model record, justified by derivation

      Purpose: The initial HECM line of credit a house-rich, portfolio-thin household could open, together with the investable sum it is compared against.

      Statement: For a primary residence worth at least $100,000, youngest borrower age at least 62, no modeled HECM, and home-to-investable ratio at least 0.75: investable = cash + taxable + equityComp + traditional + Roth + HSA balances; credit line = (principalLimitFactorPct / 100) × homeValue. Units: nominal dollars. Rounding: none.

      Formula: investable = C+Tx+Eq+Trad+Roth+HSA; line = (PLF/100) × H; fires when H/investable >= 0.75

      • H: Primary residence value (unit: usd) (domain: H >= 100000)
      • PLF: Principal-limit factor in percent, already resolved for the youngest borrower age (unit: percent) (domain: PLF > 0)
      • investable: Sum of cash, taxable, equity-comp, traditional, Roth and HSA balances (unit: usd) (domain: > 0)

      Timing: illustration at the projection start year

      Rounding: the card publishes whole-dollar strings (formatWholeUsd, Math.round) and the evidence asserts the published figure; no rounding before that

      Limits:

      • An illustration from the published age factor, not a lender quote or a claim the line is valuable on the deterministic path
      • The worksheet supplies the already-resolved principal-limit factor of 45% at age 65; the evidence passes that factor through rather than re-reading the table in the published parameters (the age-65 factor in the 2026 parameters is 37.2%)

      Provenance: derived by codex, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insight-hecm-buffer-illustrative-credit-line.md Mutation receipt: insight-hecm-buffer-illustrative-credit-line.mutation.md

      Evidence tests: hecmBufferCandidate.evidence.test.ts

      Implemented in: hecmBufferCandidate.ts

      Is the number of: insight-hecm-buffer-illustrative-credit-line

  • Insight impact ending after tax estate delta

    Estimated change in ending after-tax estate from an insight action.

    Field: endingAfterTaxEstateDelta Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: insights (InsightCardView "Ending estate delta" after Preview impact; rough "≈ ... estate delta" when no qualitative text)

    • Insight impact: ending after-tax estate and lifetime tax deltas Formula record, justified by derivation

      Purpose: What an insight's modeled action does to the estate and to lifetime taxes, as candidate minus baseline.

      Statement: decisions/evaluateCandidate.ts#evaluateCandidate prices the candidate on its own full year-by-year projection and subtracts the shared baseline in the same direction for both fields: endingAfterTaxEstateDelta = candidateSummary.endingAfterTaxEstate - baselineSummary.endingAfterTaxEstate, and lifetimeTaxDelta = candidateSummary.lifetimeTaxesAndPenalties - baselineSummary.lifetimeTaxesAndPenalties. The estate field's comment states that order outright and the lifetime-tax field defines a negative value as savings, which is the same convention: an estate improvement is positive and a tax saving is negative. Units: nominal dollars, not today's: the estate delta is in dollars of the plan's last year (both runs end in that year), and the lifetime tax delta sums each year's own dollars. Rounding: none.

      Formula: estateDelta = E_candidate - E_baseline; taxDelta = T_candidate - T_baseline

      • E: Ending after-tax estate of a run's summary (unit: usd) (domain: finite)
      • T: Lifetime taxes and penalties of a run's summary (unit: usd) (domain: nonnegative)

      Timing: once per evaluated candidate, against the context's single shared baseline

      Rounding: none

      Limits:

      • Beyond the worksheet's inputs the evidence plan fixes two real one-year projections that land on the worksheet's four summary figures exactly: a 1963-born single filer (over 59.5 so no early-distribution rule, under 65 so no Medicare premium) with one $1,800,000 traditional account, a flat 25% tax double, heirTaxRatePct 50, zero return and zero inflation, and base spending of $600,000 in the baseline against $555,000 in the candidate scenario. At a flat rate r the withdrawal funding spending S is S / (1 - r) and the tax is r x that, and the estate is the remaining balance net of the heir rate
      • The flat calculator is a test double, never the shipped stack: it exists so the test can name exact dollars without recomputing federal law, and it must not be read as a tax result
      • Both deltas are differences of SUMMARIES, so they inherit every convention of summarizeProjection: the heir-tax haircut, charity carve-outs, and the fact that property, debts and ladder face ride through net worth without per-account estate rows
      • The irmaa-tier-edge Insight writes its annual premium cliff into endingAfterTaxEstateDelta as an avoidance signal rather than an estate change; that exception belongs to that Insight’s own record and the evidence here does not exercise it

      Provenance: derived by codex, implemented by claude.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insight-impact-estate-and-lifetime-tax-deltas.md Mutation receipt: insight-impact-estate-and-lifetime-tax-deltas.mutation.md

      Evidence tests: evaluateCandidate.evidence.test.ts

      Implemented in: evaluateCandidate.ts; types.ts; insightsAdapter.ts

      Is the number of: insight-impact-ending-after-tax-estate-delta, insight-impact-lifetime-tax-delta

    Fed by: IRMAA tier-edge household Medicare premium cliff (model record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Insight impact lifetime tax delta

    Estimated change in lifetime taxes from an insight action.

    Field: lifetimeTaxDelta Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: insights (InsightCardView "Lifetime tax delta" after Preview impact)

    • Insight impact: ending after-tax estate and lifetime tax deltas Formula record, justified by derivation

      Purpose: What an insight's modeled action does to the estate and to lifetime taxes, as candidate minus baseline.

      Statement: decisions/evaluateCandidate.ts#evaluateCandidate prices the candidate on its own full year-by-year projection and subtracts the shared baseline in the same direction for both fields: endingAfterTaxEstateDelta = candidateSummary.endingAfterTaxEstate - baselineSummary.endingAfterTaxEstate, and lifetimeTaxDelta = candidateSummary.lifetimeTaxesAndPenalties - baselineSummary.lifetimeTaxesAndPenalties. The estate field's comment states that order outright and the lifetime-tax field defines a negative value as savings, which is the same convention: an estate improvement is positive and a tax saving is negative. Units: nominal dollars, not today's: the estate delta is in dollars of the plan's last year (both runs end in that year), and the lifetime tax delta sums each year's own dollars. Rounding: none.

      Formula: estateDelta = E_candidate - E_baseline; taxDelta = T_candidate - T_baseline

      • E: Ending after-tax estate of a run's summary (unit: usd) (domain: finite)
      • T: Lifetime taxes and penalties of a run's summary (unit: usd) (domain: nonnegative)

      Timing: once per evaluated candidate, against the context's single shared baseline

      Rounding: none

      Limits:

      • Beyond the worksheet's inputs the evidence plan fixes two real one-year projections that land on the worksheet's four summary figures exactly: a 1963-born single filer (over 59.5 so no early-distribution rule, under 65 so no Medicare premium) with one $1,800,000 traditional account, a flat 25% tax double, heirTaxRatePct 50, zero return and zero inflation, and base spending of $600,000 in the baseline against $555,000 in the candidate scenario. At a flat rate r the withdrawal funding spending S is S / (1 - r) and the tax is r x that, and the estate is the remaining balance net of the heir rate
      • The flat calculator is a test double, never the shipped stack: it exists so the test can name exact dollars without recomputing federal law, and it must not be read as a tax result
      • Both deltas are differences of SUMMARIES, so they inherit every convention of summarizeProjection: the heir-tax haircut, charity carve-outs, and the fact that property, debts and ladder face ride through net worth without per-account estate rows
      • The irmaa-tier-edge Insight writes its annual premium cliff into endingAfterTaxEstateDelta as an avoidance signal rather than an estate change; that exception belongs to that Insight’s own record and the evidence here does not exercise it

      Provenance: derived by codex, implemented by claude.

      Independent review: grok

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insight-impact-estate-and-lifetime-tax-deltas.md Mutation receipt: insight-impact-estate-and-lifetime-tax-deltas.mutation.md

      Evidence tests: evaluateCandidate.evidence.test.ts

      Implemented in: evaluateCandidate.ts; types.ts; insightsAdapter.ts

      Is the number of: insight-impact-ending-after-tax-estate-delta, insight-impact-lifetime-tax-delta

  • Insight IRMAA tier edge premium cliff

    Extra annual Medicare premiums (Part B plus Part D surcharge, all Medicare-age people) that a MAGI just over an IRMAA threshold triggers two years later, versus MAGI one dollar under the threshold.

    Field: IRMAA tier-edge premium cliff Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: insights (irmaa-tier-edge card impact text "save roughly $X of Medicare premiums" and the rough estate delta)

    • IRMAA tier-edge household Medicare premium cliff Model record, justified by derivation

      Purpose: The extra annual Medicare premium a MAGI just over an IRMAA threshold triggers two years later, versus MAGI one dollar under it.

      Statement: For a selected IRMAA edge with n Medicare enrollees in the charge year (lookback MAGI year + 2): cliff = n × ((Part B + Part D surcharge)_just-above − (Part B + Part D surcharge)_one-dollar-below), using the healthcare-premium scale for the charge year. Units: nominal dollars per year. Rounding: none; the card floors a negative difference at 0.

      Formula: cliff = n (P_above − P_below); P = partBAnnual + partDSurchargeAnnual

      • n: Medicare enrollees (alive, age 65+) in the charge year (unit: people) (domain: integer n >= 1)
      • P_above: Per-person annual Part B + Part D premium just above the MAGI threshold, already resolved (unit: usd/year) (domain: finite)
      • P_below: Per-person annual Part B + Part D premium one dollar below the threshold, already resolved (unit: usd/year) (domain: finite)

      Timing: charge year = MAGI year + 2 (the statutory lookback)

      Rounding: a negative (P_above − P_below) is floored at 0 before multiplying by n; the card publishes whole-dollar strings (formatWholeUsd, Math.round) and the evidence asserts the published figure

      Limits:

      • A rough avoidance signal, not a claim that reducing current-year income changes a premium already charged
      • The worksheet supplies the already-resolved per-person premiums; the evidence passes those through rather than recomputing medicareAnnualPremiumPerPerson
      • The Insight only fires when MAGI is at most $5,000 over the next threshold; that proximity window is a screen, not part of the cliff identity

      Provenance: derived by codex, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insight-irmaa-tier-edge-premium-cliff.md Mutation receipt: insight-irmaa-tier-edge-premium-cliff.mutation.md

      Evidence tests: irmaaTierEdge.evidence.test.ts

      Implemented in: irmaaTierEdge.ts

      Is the number of: insight-irmaa-tier-edge-premium-cliff

      Feeds: insight-impact-ending-after-tax-estate-delta

  • Insight monte carlo success delta

    Change in Monte Carlo success rate, in percentage points, between the previewed plan and the plan, on the headline's model, path count and seed, so the baseline is the headline success rate.

    Field: Insight Monte Carlo success delta Unit: percent Basis: no dollar basis Computed by: UI-native Status: Complete chain

    Appears in: insights (InsightCardView "Monte Carlo success" line after Preview)

    • Monte Carlo success rate change on shared paths Composition record, justified by derivation

      Purpose: The change in Monte Carlo success rate between a plan and a previewed change to it, on the same market paths as the headline rate.

      Statement: decisions/stochastic.ts#compareMonteCarloSuccessRates publishes compareScalars(baseline.successRate, proposal.successRate): proposal minus baseline, a fraction of paths, refusing with a RangeError two runs with different path counts or from different start years (each run states the calendar year its paths start in). The Insight preview (owner decision R11) runs both plans on the headline configuration: the headline market model built from the base plan (the plan's inflation mean, 12 percent return volatility, and per-class shocks for a plan with allocated accounts), the engine's default seed (monte-carlo-default-seed, the same for every plan), and the path count and start year of the headline run it reuses for the base side (1,000 paths, or 10,000 when the Monte Carlo page published a finer run; the start year that run was simulated from, which after a New Year the plan object outlived is the previous year), so path N is one market for both plans and the baseline is the rate the reader was shown. decisions/stochastic.ts#attachStochasticMetrics prices every entry with its own plan's tax calculator when the decision context has a per-plan builder. With 912 and 948 successes of 1,000 the change is 0.03599999999999992, printed +3.6 points. Units: a fraction of paths, printed in percentage points to one decimal. Rounding: none.

      Formula: delta = r_p − r_b with r = s / N; refused when N_b ≠ N_p or Y_b ≠ Y_p

      • s: Paths on which the plan never runs short (unit: paths) (domain: 0 to N)
      • N: Paths simulated, the same seeded paths for both plans (unit: paths) (domain: >= 1)
      • Y: Calendar year the run's paths start in (unit: calendar year) (domain: integer)

      Timing: once per preview

      Rounding: none; the card prints points to one decimal

      Limits:

      • A success share on N paths moves in steps of 1/N; a change of a few steps is sampling noise even on shared paths.
      • The comparison says nothing about the paths that fail in both plans, or how deep their shortfall is.

      Provenance: derived by claude, implemented by claude-subagent.

      Independent review: codex

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insight-monte-carlo-success-delta.md Mutation receipt: insight-monte-carlo-success-delta.mutation.md

      Evidence tests: stochastic.evidence.test.ts

      Implemented in: stochastic.ts; scalarComparison.ts

      Is the number of: insight-monte-carlo-success-delta

    Fed by: Default Monte Carlo seed and the headline run's options (data record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Insight spending guardrails illustrative floor

    Required spending floor the guardrail preview uses: the plan's requiredAnnual when set, otherwise 80% of base spending generated by probabilityBandSpendingGuardrailGenerator.

    Field: Illustrative guardrail spending floor Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: insights (spending-guardrails card rationale "with a $X required floor")

    • Illustrative (or explicit) required spending floor for a guardrail preview Model record, justified by derivation

      Purpose: The required annual floor the spending-guardrails card previews: the plan's own requiredAnnual when set, otherwise 80% of base spending.

      Statement: For a plan that depletes or whose first-year investable balance is strictly greater than $100,000, and that does not already run a guardrail policy: requiredAnnual = the plan's explicit requiredAnnual when that field is a finite number, otherwise 80% of baseAnnual (the probability-band generator's default floor, then min'd with baseAnnual). Units: nominal dollars per year. Rounding: the generator rounds the 80% fallback with Math.round.

      Formula: floor = min(requiredAnnual ?? round(0.80 × baseAnnual), baseAnnual)

      • baseAnnual: Plan baseline annual spending (unit: usd/year) (domain: > 0)
      • requiredAnnual: Plan-supplied essential floor, when present (unit: usd/year) (domain: finite, or absent)

      Timing: illustration at the first projection year

      Rounding: Math.round on the 80% fallback; an explicit floor is used as supplied; the card publishes whole-dollar strings (formatWholeUsd, Math.round) and the evidence asserts the published figure

      Limits:

      • A guardrail preview, not a claim that 80% is an objectively required household budget
      • The generator also min's the floor with baseAnnual, so an explicit floor above base spending is capped; the worksheet's explicit case is below base and does not hit that cap
      • The screen alternatives are joined by OR: depletion is sufficient at any balance; a non-depleting plan at exactly $100,000 does not screen because the investable comparison is strict

      Provenance: derived by codex, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insight-spending-guardrails-illustrative-floor.md Mutation receipt: insight-spending-guardrails-illustrative-floor.mutation.md

      Evidence tests: spendingGuardrails.evidence.test.ts

      Implemented in: spendingGuardrails.ts

      Is the number of: insight-spending-guardrails-illustrative-floor

  • Insight spending headroom rough annual

    Ending after-tax estate deflated to today, minus the bequest target, divided by the years remaining in the projection.

    Field: Rough annual spending headroom Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: insights (spending-headroom card rationale "end with roughly $X" and impact "≈ $Y/yr of rough headroom")

    • Rough real annual spending headroom from excess terminal estate Model record, justified by derivation

      Purpose: A first-pass lifestyle amount: excess after-tax estate in today's dollars, spread across the remaining projection years.

      Statement: For a nondepleting, non-ABW plan: endingEstateToday = deflate(endYear, endingAfterTaxEstate); excess = endingEstateToday − bequestTarget; roughHeadroom = excess / yearsRemaining. The card screens only when excess >= $250,000 and roughHeadroom >= $2,000. N = max(1, endYear − startYear) is the number of year boundaries between the projection start and end years (9 for 2026 through 2035), not the inclusive row count. Units: today's dollars per year. Rounding: the card publishes both figures as whole dollars (formatWholeUsd, Math.round); the quotient itself is not published.

      Formula: headroom = (deflate(endYear, endingAfterTaxEstate) − bequestTarget) / N

      • endingAfterTaxEstate: Nominal ending after-tax estate at the horizon (unit: usd) (domain: finite)
      • bequestTarget: Bequest target in today's dollars (0 when unset) (unit: usd) (domain: >= 0)
      • N: Year boundaries between the start and end years, max(1, endYear − startYear) (unit: years) (domain: integer N >= 1)

      Timing: straight-line over the remaining modeled years, before the full-projection solver

      Rounding: the card publishes whole-dollar strings (formatWholeUsd, Math.round) and the evidence asserts the published figure; the quotient itself is not published

      Limits:

      • A cheap first-pass, not a claim that withdrawing this amount every year is sustainable
      • The first derivation guessed an inclusive row count (10 for 2026 through 2035) because the comment stated no convention; the comment now states N = max(1, endYear − startYear) and the worksheet was re-derived on it (44,444.44, shown as $44,444)

      Provenance: derived by codex, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insight-spending-headroom-rough-annual.md Mutation receipt: insight-spending-headroom-rough-annual.mutation.md

      Evidence tests: spendingHeadroom.evidence.test.ts

      Implemented in: spendingHeadroom.ts

      Is the number of: insight-spending-headroom-rough-annual

    Fed by: Projection summary ending after tax estate (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Insight SS bridge gap total

    Sum over delaying claimants of the bridge ladder cost and of the annual real bridge income sized by sizeBridge, for claimants whose gap years are not already covered by a plan ladder.

    Field: Social Security bridge total cost and income Unit: US dollars Basis: nominal dollars Computed by: Engine Status: Complete chain

    Appears in: insights (ss-bridge-gap card rationale "A TIPS bridge ladder (≈$X today) pays you ... (~$Y/yr)")

    • Household Social Security bridge: summed ladder cost and annual real income Composition record, justified by derivation

      Purpose: The household total of independently sized Social Security bridge ladders for delaying claimants whose gap is not already covered.

      Statement: Each delaying claimant is independently sized by sizeBridge. Eligible claimants are those whose retirement-to-claim gap is not already covered by a plan ladder. totalCost = sum of eligible ladderCost_i; annualTotal = sum of eligible annualRealAmount_i. After that aggregation, one household test reports the totals when liquidBalance >= 0.5 × totalCost. The screen does not compute or apply claimant-level funding ratios. Units: dollars (ladder cost in today's dollars; annual amount real). Rounding: none.

      Formula: totalCost = sum_eligible ladderCost_i; annualTotal = sum_eligible annualRealAmount_i

      • ladderCost_i: Quoted TIPS-ladder cost for claimant i, already resolved by sizeBridge (unit: usd) (domain: >= 0)
      • annualRealAmount_i: Level real annual bridge payout for claimant i, already resolved by sizeBridge (unit: usd/year) (domain: >= 0)

      Timing: sum over currently delaying claimants at the projection start year

      Rounding: the card publishes whole-dollar strings (formatWholeUsd, Math.round) and the evidence asserts the published figure; sums are exact before that

      Limits:

      • A scenario preview, not a claim the ladder is affordable merely because half its cost is present
      • The worksheet supplies already-sized per-claimant ladder costs and annual amounts; the evidence passes those through rather than re-running sizeBridge on the embedded curve
      • The 50% funding gate is a single household test against the summed eligible cost after aggregation, not a per-claimant ratio; an insufficiency comparison (liquid < 0.5 × totalCost) is a wrong reading

      Provenance: derived by codex, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insight-ss-bridge-gap-total.md Mutation receipt: insight-ss-bridge-gap-total.mutation.md

      Evidence tests: ssBridgeGap.evidence.test.ts

      Implemented in: ssBridgeGap.ts

      Is the number of: insight-ss-bridge-gap-total

    Fed by: Social Security bridge: age-62 replacement sized as a TIPS ladder (formula record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Insight state relocation lifetime state tax savings

    Sum over projection years of deflated (best zero-tax candidate state tax minus baseline state tax), floored at zero, for the best of FL, TX and WA.

    Field: Lifetime state tax saved by relocating Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: insights (state-relocation card impact after Preview "staying in ST costs about $X of lifetime state+local income tax")

    • Lifetime state-and-local tax saved by the best zero-tax relocation candidate Composition record, justified by derivation

      Purpose: Today's-dollar lifetime state-and-local tax saved by moving to the best of FL, TX and WA versus staying put.

      Statement: Among non-baseline sweep rows with error=null, the best candidate is the one with the lowest nominal lifetimeTaxesAndPenalties; replacement requires strict `<`, so an earlier shortlist row wins a tie. For that row and the id='baseline' row, savings = max(0, −sum_y deflate(y, candidateStateTax_y − baselineStateTax_y)) over the union of years, with a missing year treated as zero. Units: start-year dollars. Rounding: none on the sum; the display string rounds to whole dollars.

      Formula: savings = max(0, −sum_y deflate(y, S_cand,y − S_base,y)); union of years, missing = 0

      • S_base,y, S_cand,y: Nominal state-plus-local tax in year y for baseline and the selected candidate (unit: usd) (domain: finite; absent years contribute 0)
      • deflate(y, ·): Maps year-y nominal dollars to start-year dollars (unit: 1) (domain: > 0)

      Timing: lifetime over the union of the two annual series; a start-year move defaults to July (split-year origin tax)

      Rounding: the card publishes only formatWholeUsd(savings), a whole-dollar string (Math.round); the summed deflated delta is not published, so the evidence asserts the published figure and the worksheet states both the exact sum and the shown figure

      Limits:

      • Candidate selection uses all taxes and penalties; the savings identity uses state-plus-local tax only
      • A failed sweep publishes no dollar figure (evaluate degrades to the screen-level card)
      • Only the final sum is floored at zero, not each year's contribution
      • The evidence constructs the sweep rows the worksheet states rather than running four ledgers

      Provenance: derived by codex, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insight-state-relocation-lifetime-state-tax-savings.md Mutation receipt: insight-state-relocation-lifetime-state-tax-savings.mutation.md

      Evidence tests: stateRelocation.evidence.test.ts

      Implemented in: stateRelocation.ts

      Is the number of: insight-state-relocation-lifetime-state-tax-savings

    Fed by: Relocation lifetime state local tax (composition record, 6 of 6 gates pass). Open the family for each record's worksheet, receipt, tests and code.

  • Insight widows penalty bracket jump

    Federal tax on the first single-filed survivor year's MAGI computed as Single minus the same income computed as married filing jointly, deflated to today's dollars.

    Field: Survivor bracket jump Unit: US dollars Basis: today's dollars (real) Computed by: Engine Status: Complete chain

    Appears in: insights (widows-penalty-roth card rationale "cost about $X more (today's $)")

    • Rough real survivor bracket jump, single versus joint on the same MAGI Model record, justified by derivation

      Purpose: The extra federal tax of filing the first single-filed survivor year as Single rather than married-filing-jointly, deflated to today.

      Statement: On the plan's first survivor year that files Single, hold that year's MAGI fixed: J = Tax_single(M) − Tax_joint(M); J_today = J × d, where d is the deflator from that year to today. Units: today's dollars. Rounding: production rounds J_today with Math.round before publishing.

      Formula: J_today = (Tax_single(M) − Tax_joint(M)) × d

      • M: Survivor-year MAGI, held constant across the two filings (unit: usd) (domain: finite)
      • Tax_single, Tax_joint: Federal tax on M under Single and MFJ, already resolved (unit: usd) (domain: finite)
      • d: Deflation factor from the survivor year to today (unit: 1) (domain: d > 0)

      Timing: first single-filed survivor year; QSS interlude years keep joint tables and are not priced

      Rounding: Math.round on the deflated jump; the card publishes whole-dollar strings (formatWholeUsd, Math.round) and the evidence asserts the published figure

      Limits:

      • Identifies a conversion-planning question, not a forecast of the survivor's actual return
      • The worksheet supplies the already-resolved Single and MFJ tax figures; the evidence passes those through rather than recomputing federal tax
      • Production floors a negative jump at 0 before deflating; the worksheet's Single > MFJ case does not hit that floor
      • The card omits the evidence row when the rounded today-dollar jump is at most $100

      Provenance: derived by codex, implemented by grok.

      Independent review: cursor

      Gates (6 of 6 pass): fixture registers a test: pass; pins resolve: pass; families exist: pass; worksheet exists: pass; mutation receipt exists: pass; provenance independent: pass

      Worksheet: insight-widows-penalty-bracket-jump.md Mutation receipt: insight-widows-penalty-bracket-jump.mutation.md

      Evidence tests: widowsPenalty.evidence.test.ts

      Implemented in: widowsPenalty.ts

      Is the number of: insight-widows-penalty-bracket-jump

RetireGolden is educational planning software, not financial, tax, or legal advice. It models outcomes under assumptions you choose; consult a qualified professional before acting. The source and AGPL-3.0 license are public, as are the calculation index and output-family census this page renders. The tax rules those calculations apply are catalogued separately in the tax-rule registry.