projectionlab-mcp 1.4.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HOW-IT-WORKS.md +2 -2
- package/README.md +4 -2
- package/REFERENCE.md +20 -8
- package/dist/appBusy.d.ts +3 -0
- package/dist/appBusy.js +7 -0
- package/dist/appBusy.js.map +1 -0
- package/dist/appMap.d.ts +59 -0
- package/dist/appMap.js +595 -0
- package/dist/appMap.js.map +1 -0
- package/dist/appResultsPage.d.ts +31 -0
- package/dist/appResultsPage.js +427 -0
- package/dist/appResultsPage.js.map +1 -0
- package/dist/bootstrap.d.ts +3 -1
- package/dist/bootstrap.js +18 -3
- package/dist/bootstrap.js.map +1 -1
- package/dist/bridge.d.ts +42 -5
- package/dist/bridge.js +15 -1
- package/dist/bridge.js.map +1 -1
- package/dist/changeSummary.d.ts +30 -0
- package/dist/changeSummary.js +40 -0
- package/dist/changeSummary.js.map +1 -1
- package/dist/editAccess.d.ts +6 -3
- package/dist/editAccess.js +10 -3
- package/dist/editAccess.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/extensionBridge.d.ts +27 -6
- package/dist/extensionBridge.js +103 -11
- package/dist/extensionBridge.js.map +1 -1
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/dist/instructions.d.ts +1 -1
- package/dist/instructions.js +1 -1
- package/dist/largeOutput.js +2 -23
- package/dist/largeOutput.js.map +1 -1
- package/dist/planEventTemplates.d.ts +35 -0
- package/dist/planEventTemplates.js +177 -0
- package/dist/planEventTemplates.js.map +1 -0
- package/dist/planReport.d.ts +9 -0
- package/dist/planReport.js +902 -0
- package/dist/planReport.js.map +1 -0
- package/dist/plans.d.ts +2 -0
- package/dist/plans.js +6 -0
- package/dist/plans.js.map +1 -1
- package/dist/printHtml.d.ts +8 -0
- package/dist/printHtml.js +144 -0
- package/dist/printHtml.js.map +1 -0
- package/dist/prompts/index.js +41 -11
- package/dist/prompts/index.js.map +1 -1
- package/dist/reportCopy.d.ts +16 -0
- package/dist/reportCopy.js +55 -0
- package/dist/reportCopy.js.map +1 -0
- package/dist/resources/appMap.d.ts +2 -0
- package/dist/resources/appMap.js +14 -0
- package/dist/resources/appMap.js.map +1 -0
- package/dist/resources/knowledge.d.ts +1 -1
- package/dist/resources/knowledge.js +302 -71
- package/dist/resources/knowledge.js.map +1 -1
- package/dist/retention.d.ts +8 -0
- package/dist/retention.js +35 -0
- package/dist/retention.js.map +1 -0
- package/dist/settingsReport.d.ts +26 -0
- package/dist/settingsReport.js +54 -20
- package/dist/settingsReport.js.map +1 -1
- package/dist/snapshot.d.ts +12 -0
- package/dist/snapshot.js +52 -2
- package/dist/snapshot.js.map +1 -1
- package/dist/tools/addPlanEvent.d.ts +4 -0
- package/dist/tools/addPlanEvent.js +301 -0
- package/dist/tools/addPlanEvent.js.map +1 -0
- package/dist/tools/clonePlan.d.ts +1 -1
- package/dist/tools/clonePlan.js +3 -1
- package/dist/tools/clonePlan.js.map +1 -1
- package/dist/tools/deletePlan.d.ts +1 -1
- package/dist/tools/deletePlan.js +3 -1
- package/dist/tools/deletePlan.js.map +1 -1
- package/dist/tools/findInApp.d.ts +2 -0
- package/dist/tools/findInApp.js +31 -0
- package/dist/tools/findInApp.js.map +1 -0
- package/dist/tools/listChanges.d.ts +3 -0
- package/dist/tools/listChanges.js +147 -0
- package/dist/tools/listChanges.js.map +1 -0
- package/dist/tools/planReport.d.ts +3 -0
- package/dist/tools/planReport.js +62 -0
- package/dist/tools/planReport.js.map +1 -0
- package/dist/tools/projection.d.ts +3 -0
- package/dist/tools/projection.js +381 -0
- package/dist/tools/projection.js.map +1 -0
- package/dist/tools/removePlanEvent.d.ts +4 -0
- package/dist/tools/removePlanEvent.js +196 -0
- package/dist/tools/removePlanEvent.js.map +1 -0
- package/dist/tools/restore.d.ts +1 -1
- package/dist/tools/restore.js +10 -6
- package/dist/tools/restore.js.map +1 -1
- package/dist/tools/settingsReport.js +23 -4
- package/dist/tools/settingsReport.js.map +1 -1
- package/dist/tools/snapshots.d.ts +1 -1
- package/dist/tools/snapshots.js +54 -31
- package/dist/tools/snapshots.js.map +1 -1
- package/dist/tools/updateAccount.d.ts +1 -1
- package/dist/tools/updateAccount.js +3 -1
- package/dist/tools/updateAccount.js.map +1 -1
- package/dist/tools/updatePlanEvent.d.ts +1 -1
- package/dist/tools/updatePlanEvent.js +3 -1
- package/dist/tools/updatePlanEvent.js.map +1 -1
- package/dist/tools/updatePlanSection.d.ts +1 -1
- package/dist/tools/updatePlanSection.js +3 -1
- package/dist/tools/updatePlanSection.js.map +1 -1
- package/dist/tools/updatePlanSettings.d.ts +1 -1
- package/dist/tools/updatePlanSettings.js +3 -1
- package/dist/tools/updatePlanSettings.js.map +1 -1
- package/dist/types/wire.d.ts +30 -2
- package/dist/types/wire.js +8 -0
- package/dist/types/wire.js.map +1 -1
- package/package.json +1 -1
- package/skills/projectionlab/SKILL.md +139 -17
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
-
export declare const KNOWLEDGE = "# ProjectionLab 5 & FIRE Reference\n\nCurated concepts for analyzing retirement plans through this MCP server on ProjectionLab 5.\n\nProjectionLab 5 operates under Plugin API contract 2, using a multi-document export envelope.\n\n## How to use this reference\n\n- **Explain, do not recommend.** Say what a term means, what ProjectionLab does\n with it, and what the user can look at in the app to decide. Do not tell the\n user what to do with their money and do not predict a personal outcome. This\n is information and education, not personalized financial advice; the decision\n belongs to the user and a licensed professional.\n- **Concepts only; ProjectionLab owns the yearly figures.** The app applies the\n current tax brackets, standard deduction, IRMAA tiers, RMD ages, contribution\n limits and ACA subsidies, and the user sees those numbers in the app (Tax\n Analytics). Never state a yearly figure from memory: they change every year.\n Ask the user to read the current one in ProjectionLab.\n\n## Evidence legend\n\nData model entries for ProjectionLab 5 carry the tag `[export-shape]`, meaning the field and its value type appear in a ProjectionLab 5 export; its meaning is not yet confirmed by a stored-value test.\n\nWhen evaluating plan elements or answering user questions, anchor claims with tags:\n- **[EXACT]**: Verified directly from plan JSON via tool inspection or output.\n- **[INFERRED]**: Derived logically from adjacent plan data or standard rule interactions.\n- **[ASSUMPTION]**: A placeholder, default, or external benchmark where plan data is absent.\n\n## ProjectionLab 5 data model (quick map)\n\n- **Root envelope**: `{ schema: 1, exportedAt, documents: { currentFinances, plans, settings, accountHistory } }`.\n Each document carries its own internal `schema` version.\n- **documents.currentFinances**: actual financial state and baseline balance sheet.\n - **household**: member demographics under `household.people.me` and `household.people.spouse`,\n with partnership filing status under `household.partnerStatus`.\n - **accounts**: all financial accounts, debts, and real property, stored as a map keyed by account ID.\n - Each record carries a `kind` discriminator: `\"account\"` (cash, investment, and retirement accounts\n with `balance` and `costBasis`), `\"debt\"` (liabilities with `balance` and optional `securedByAssetId`),\n or `\"real-asset\"` (physical property with `value` and `purchasePrice`).\n - Archived accounts carry an `archivedOn` ISO date string.\n - Supported account types: the Solo 401k, Roth Solo 401k, and SEP IRA account types store as\n `\"401k\"` or `\"roth-401k\"` with `subtype: \"solo\"`, and `\"ira\"` with `subtype: \"sep\"`.\n Observed type strings include `\"taxable\"`, `\"401k\"`, `\"savings\"`, `\"land\"`, and `\"secured-loan\"`.\n- **documents.plans[]**: milestone-driven simulation plans.\n - Plans carry no `active` flag. `settings.plan.activeId` and `settings.plan.baselineId` are\n reported as stored; no plan is treated as the selected plan.\n - Every plan event item carries a `kind` discriminator: `\"account\"`, `\"real-asset\"`,\n `\"income\"`, `\"expense\"`, or `\"priority\"`.\n - Timing for event start and end is defined by structured objects:\n `{ type: \"date\" | \"milestone\" | \"keyword\", value, modifier? }`.\n - **milestones[]**: lifecycle events (retirement, Medicare, death) triggered by date, year, age,\n or milestone-relative criteria. Other events anchor timing to milestone IDs.\n - **income.events[]**: salary, pensions, social security, other income.\n - **expenses.events[]**: living expenses carrying a `spendingType` (`\"essential\"` vs `\"discretionary\"`).\n - **accounts.events[]**: plan investment accounts, linking to Current Finances via `accountId`.\n - **assets.events[]**: real estate and physical assets with appreciation and depreciation, linking\n to Current Finances via `assetId`.\n - **variables**: tax settings, inflation, returns, drawdown order, IRMAA, estate rules.\n - **withdrawalStrategy**: alternative withdrawal policy mode (such as fixed percentage or Guyton-Klinger).\n - **montecarlo**: Chance of Success simulation parameters.\n - **priorities.events[]**: savings contribution ordering and cash flow routing. A priority's\n `accountId` is the id of the plan account event it routes cash to, not a Current Finances account id.\n - Event names need not be unique within a section; address an event by id when its name is ambiguous.\n- **documents.settings**:\n - **plan**: viewing preferences including `activeId` and `baselineId` (reported as stored),\n the account's year alignment (`alignment.type`: `\"calendar\"`, `\"rolling\"`, `\"au-tax\"`,\n `\"uk-tax\"` or `\"custom\"`), and pinned tabs. A plan can override the alignment in\n `variables.alignment`; null or absent means it follows the account.\n - **plugins**: plugin configuration with `enabled` status and `apiKey` (authentication secret,\n redacted on reads; sits at `documents.settings.plugins.apiKey`).\n- **documents.accountHistory**:\n - End-of-year balances, tax cost basis, and asset values tracked by account ID and calendar year\n under `documents.accountHistory.<accountId>.<year>`. Replaces the separate progress section.\n- Simulation math and Chance of Success trials run only in the ProjectionLab UI.\n This server reads the plan and financial definitions; it does not compute projections.\n\n## Plan-change outcome metrics\n\nEvaluate a plan change primarily with ProjectionLab's projected ending net worth\nand Chance of Success from a completed simulation. Current Finances net worth is\nan input balance sheet, not an outcome. Mutation before/after values verify that\nthe requested input changed; they do not measure its financial impact. The\nPlugin API currently does not expose a supported calculation/result method, so\nrecalculate both outcomes in the UI after applying a change.\n\n## Account tax vocabulary\n\nUse three words for every account, and use them consistently:\n\n- **taxable**: funded with after-tax money; interest, dividends and gains are\n taxed in the year they are received.\n- **tax-deferred**: traditional 401(k) and IRA. Contributions lower taxable\n income now; withdrawals are taxed as ordinary income later.\n- **tax-free**: Roth accounts, and an HSA spent on healthcare. Qualified\n withdrawals are not taxed.\n\nDo not use \"pre-tax\" or \"post-tax\" as account names; they blur the line between\ntax-deferred and taxable.\n\n## Core FIRE / decumulation concepts\n\n- **Safe Withdrawal Rate (SWR)**: the share of the portfolio taken out in the\n first year of drawdown. The classic \"4% rule\" (Trinity study) is a starting\n heuristic for a 30-year horizon, not a guarantee; a longer horizon argues for\n a lower start. The portfolio withdrawal a plan needs falls as guaranteed\n income (Social Security, pension) switches on.\n- **Sequence-of-returns risk**: poor returns in the first years of drawdown do\n far more damage than the same returns later. Common mitigations: a cash/bond\n bridge, and a **rising-equity glidepath** (\"bond tent\" - most bonds at\n retirement, equity rising after).\n- **Asset location**: which account holds which asset. A common convention\n places bonds in tax-deferred accounts, high-growth equity in tax-free (Roth,\n HSA) accounts, and tax-efficient equity and cash in taxable. Location changes\n after-tax return without changing the overall allocation.\n- **Roth conversion**: moving money from a tax-deferred account into a tax-free\n one. The converted amount is taxed as ordinary income in the year of the\n conversion. A \"Roth conversion ladder\" converts in low-income years (often\n the window after work ends and before Social Security or RMDs start) to fill\n a low bracket, lower later RMDs, and shrink the taxable estate. Paying that\n year's tax from a taxable account rather than from withholding keeps more\n money inside the tax-free account.\n\n## Tax concepts that gate conversions\n\nOnly the shape of each rule is here. ProjectionLab computes with the\ncurrent-year figures, and the user reads them in Tax Analytics. MAGI means\nmodified adjusted gross income; each program (ACA, IRMAA, NIIT) defines it\nslightly differently.\n\n- **Federal income tax brackets**: ordinary income is taxed in bands. Income\n that fills an unused low band is cheap; income pushed into the next band\n costs more. What a conversion costs depends on where it lands.\n- **ACA premium subsidies**: marketplace health coverage is income-tested. In\n some income ranges extra income can cut a subsidy faster than tax does, so\n the effective marginal rate in those pre-Medicare years is higher than the\n bracket alone suggests. Not a factor with employer, retiree or other\n non-marketplace coverage.\n- **IRMAA**: an extra charge on Medicare Part B and Part D premiums. It is set\n by the person's MAGI from two years earlier and comes in tiers, so income\n just over a tier boundary pays the whole higher charge. A conversion in one\n year can raise premiums two years later. If the user is already on Medicare\n when the plan starts, ProjectionLab estimates that lookback income in the\n first two plan years, and the actual rule applies from year 3\n (https://projectionlab.com/help/modeling-irmaa-surcharges).\n- **NIIT (net investment income tax)**: a surtax on investment income (gains,\n dividends, interest, rent) once MAGI is above an income threshold. It raises\n the cost of a year that mixes a conversion with investment income.\n- **Long-term capital gains rate**: while taxable income stays under a\n threshold, long-term gains are taxed at 0%. A low-income year can realize\n some gains at no tax cost before that room is gone.\n- **RMDs (Required Minimum Distributions)**: once a person reaches the RMD age,\n tax-deferred accounts require a withdrawal every year, whether or not the\n cash is needed. A large tax-deferred balance can push those forced\n withdrawals into higher brackets and IRMAA tiers, which is the usual reason\n people convert while their income is still low.\n\n## Analysis checklist\n\n1. Build a lifecycle timeline (phase, date range, milestone trigger).\n2. Cash flow by phase; flag pure-drawdown years and the gap before Social\n Security starts.\n3. Withdrawal rate now and after guaranteed income begins.\n4. Sequence risk: what a poor-return start does to the plan. Only a run in the\n ProjectionLab UI can show it.\n5. Roth conversion efficiency: bracket headroom versus the ACA, IRMAA and NIIT\n ceilings; compare lifetime taxes and net legacy, not just the tax now.\n6. Longevity: does the plan last well past life expectancy?\n7. Inflation: healthcare and long-term care costs rise with inflation and are\n often decades out; check how the plan assumes them.\n\n## ProjectionLab help articles\n\nProjectionLab's own pages, linked for the user and summarized here for a model\nwith no web access. The bracketed tag is the plan section or area this reference\nuses for it. The summaries are ours, not ProjectionLab's wording. Glossary of\nfinancial terms: https://projectionlab.com/financial-terms\n\n- **Withdrawal Strategy mode** [withdrawalStrategy]\n https://projectionlab.com/help/withdrawal-strategy-mode - a comparison mode\n for classic rules (initial percentage, variable percentage withdrawal,\n Guyton-Klinger) that starts at a chosen year or milestone. While it is on,\n its rule replaces most other plan events, so most plans leave it off.\n- **Flows, the cash flow priorities** [priorities]\n https://projectionlab.com/help/cash-flow-priorities - Flows (the\n `priorities` section in the data) send income to savings goals,\n contributions, extra debt payments and transfers, earliest-added first.\n- **Mandatory goals (\"Always Fund\")** [priorities]\n https://projectionlab.com/help/mandatory-goals - an Always Fund flow is paid\n ahead of the other flows, selling from other accounts when income falls short.\n- **Milestones** [milestones]\n https://projectionlab.com/help/manage-milestones - lifecycle markers\n triggered by age, date, balance, or a combination of criteria; other events\n anchor their start and end to them. Retirement and Life Expectancy cannot be\n deleted.\n- **Drawdown order** [variables; the chart is app only]\n https://projectionlab.com/help/drawdown-order-visualization - the order\n accounts are liquidated in to cover a yearly shortfall. The graph and its red\n early-withdrawal penalty line are a UI view of that order.\n- **Roth conversions** [accounts; the optimizer is app only]\n https://projectionlab.com/help/roth-conversion - Optimize searches conversion\n strategies against brackets, IRMAA and legacy goals with a beam search, then\n writes the chosen schedule into the plan's accounts. This server can read and\n edit such a schedule; it cannot run the search.\n- **Bond allocation and location** [accounts, variables]\n https://projectionlab.com/help/bond-allocation-and-overrides - the bond\n percentage is set plan-wide and can be overridden per account, and the other\n accounts adjust to keep the plan-wide target, with a warning when it cannot\n balance. Bond location chooses which accounts hold bonds first.\n- **Custom growth and dividend rates** [accounts]\n https://projectionlab.com/help/growth-dividend-settings-chance-of-success - an\n account's custom growth or dividend rate covers its stock portion; the bond\n portion follows the plan's bond settings unless the account's bond allocation\n is overridden to 0%. In Chance of Success such a rate is either held fixed or\n sampled like the rest of the simulation.\n- **IRMAA surcharges** [variables; the optimizer is app only]\n https://projectionlab.com/help/modeling-irmaa-surcharges - tiered Medicare\n Part B and Part D surcharges set by MAGI two years earlier, where crossing a\n tier by any amount costs the whole surcharge. When the user is already on\n Medicare at plan start, ProjectionLab estimates the lookback income for the\n first two plan years.\n- **Plan vs Chance of Success** [montecarlo; results are app only]\n https://projectionlab.com/help/plan-vs-chance-of-success - the Plan tab is one\n fixed path at fixed growth; Chance of Success runs many trials over historical\n or randomized market data. All other tabs follow the Plan tab, not the trial\n outcomes.\n- **Simulation engine** [app only]\n https://projectionlab.com/help/simulation-engine - the app simulates a full\n year at a time (income, withholding, expenses, debt, dividends, prior-year\n taxes, RMDs) and turns a surplus into savings and a shortfall into\n withdrawals.\n- **Flexible spending** [expenses; the feature is app only]\n https://projectionlab.com/help/flex-spending - an optional rule that raises\n or cuts spending with portfolio performance against earlier all-time highs,\n scoped either to all spending or to discretionary expenses only.\n- **Plugins and external accounts** [Current Finances; app only]\n https://projectionlab.com/help/plugins - ProjectionLab does not link to banks;\n plugins (Lunch Money, YNAB, Monarch, or your own code) write balances into\n Current Finances through the Plugin API, which has to be enabled in account\n settings. This server uses that same API.\n";
|
|
2
|
+
export declare const KNOWLEDGE = "# ProjectionLab 5 & FIRE Reference\n\nCurated concepts for analyzing retirement plans through this MCP server on ProjectionLab 5.\n\nProjectionLab 5 operates under Plugin API contract 2, using a multi-document export envelope.\n\n## How to use this reference\n\n- **Explain, do not recommend.** Say what a term means, what ProjectionLab does\n with it, and what the user can look at in the app to decide. Do not tell the\n user what to do with their money and do not predict a personal outcome. This\n is information and education, not personalized financial advice; the decision\n belongs to the user and a licensed professional.\n- **Concepts only; ProjectionLab owns the yearly figures.** The app applies the\n current tax brackets, standard deduction, IRMAA tiers, RMD ages, contribution\n limits and ACA subsidies, and the user sees those numbers in the app (Tax\n Analytics). Never state a yearly figure from memory: they change every year.\n Ask the user to read the current one in ProjectionLab.\n\n## Evidence legend\n\nData model entries for ProjectionLab 5 carry the tag `[export-shape]`, meaning the field and its value type appear in a ProjectionLab 5 export; its meaning is not yet confirmed by a stored-value test.\n\nWhen evaluating plan elements or answering user questions, anchor claims with tags:\n- **[EXACT]**: Verified directly from plan JSON via tool inspection or output.\n- **[INFERRED]**: Derived logically from adjacent plan data or standard rule interactions.\n- **[ASSUMPTION]**: A placeholder, default, or external benchmark where plan data is absent.\n\n## ProjectionLab 5 data model (quick map)\n\n- **Root envelope**: `{ schema: 1, exportedAt, documents: { currentFinances, plans, settings, accountHistory } }`.\n Each document carries its own internal `schema` version.\n- **documents.currentFinances**: actual financial state and baseline balance sheet.\n - **household**: member demographics under `household.people.me` and `household.people.spouse`,\n with partnership filing status under `household.partnerStatus`.\n - **accounts**: all financial accounts, debts, and real property, stored as a map keyed by account ID.\n - Each record carries a `kind` discriminator: `\"account\"` (cash, investment, and retirement accounts\n with `balance` and `costBasis`), `\"debt\"` (liabilities with `balance` and optional `securedByAssetId`),\n or `\"real-asset\"` (physical property with `value` and `purchasePrice`).\n - Archived accounts carry an `archivedOn` ISO date string.\n - Supported account types: the Solo 401k, Roth Solo 401k, and SEP IRA account types store as\n `\"401k\"` or `\"roth-401k\"` with `subtype: \"solo\"`, and `\"ira\"` with `subtype: \"sep\"`.\n Observed type strings include `\"taxable\"`, `\"401k\"`, `\"savings\"`, `\"land\"`, and `\"secured-loan\"`.\n- **documents.plans[]**: milestone-driven simulation plans.\n - Plans carry no `active` flag. `settings.plan.activeId` and `settings.plan.baselineId` are\n reported as stored; no plan is treated as the selected plan.\n - Every plan event item carries a `kind` discriminator: `\"account\"`, `\"real-asset\"`,\n `\"income\"`, `\"expense\"`, or `\"priority\"`.\n - Timing for event start and end is defined by structured objects:\n `{ type: \"date\" | \"milestone\" | \"keyword\", value, modifier? }`.\n - **milestones[]**: lifecycle events (retirement, Medicare, death) triggered by date, year, age,\n or milestone-relative criteria. Other events anchor timing to milestone IDs.\n - **income.events[]**: salary, pensions, social security, other income.\n - **expenses.events[]**: living expenses carrying a `spendingType` (`\"essential\"` vs `\"discretionary\"`).\n - **accounts.events[]**: plan investment accounts, linking to Current Finances via `accountId`.\n - **assets.events[]**: real estate and physical assets with appreciation and depreciation, linking\n to Current Finances via `assetId`.\n - **variables**: tax settings, inflation, returns, drawdown order, IRMAA, estate rules.\n - **withdrawalStrategy**: alternative withdrawal policy mode (such as fixed percentage or Guyton-Klinger).\n - **montecarlo**: Chance of Success simulation parameters.\n - **priorities.events[]**: savings contribution ordering and cash flow routing. A priority's\n `accountId` is the id of the plan account event it routes cash to, not a Current Finances account id.\n - Event names need not be unique within a section; address an event by id when its name is ambiguous.\n- **documents.settings**:\n - **plan**: viewing preferences including `activeId` and `baselineId` (reported as stored),\n the account's year alignment (`alignment.type`: `\"calendar\"`, `\"rolling\"`, `\"au-tax\"`,\n `\"uk-tax\"` or `\"custom\"`), and pinned tabs. A plan can override the alignment in\n `variables.alignment`; null or absent means it follows the account.\n - **plugins**: plugin configuration with `enabled` status and `apiKey` (authentication secret,\n redacted on reads; sits at `documents.settings.plugins.apiKey`).\n- **documents.accountHistory**:\n - End-of-year balances, tax cost basis, and asset values tracked by account ID and calendar year\n under `documents.accountHistory.<accountId>.<year>`. Replaces the separate progress section.\n- Simulation math and Chance of Success trials run only in the ProjectionLab app.\n This server never computes them: it reads the results ProjectionLab computed for\n the plan open in the app (projectionlab_get_projection,\n projectionlab_get_chance_of_success).\n\n## Plan-change outcome metrics\n\nEvaluate a plan change primarily with ProjectionLab's projected ending net worth\nand Chance of Success from a completed simulation. Current Finances net worth is\nan input balance sheet, not an outcome. Mutation before/after values verify that\nthe requested input changed; they do not measure its financial impact. Read\nboth outcomes from ProjectionLab after a change: projectionlab_get_projection\n(passing the write's `projection` as `afterProjection`) for ending net\nworth, and projectionlab_get_chance_of_success (passing the write's\n`chanceOfSuccessRunRevision` as `afterRunRevision`) for a run the user has\nstarted or asked you to start with projectionlab_run_chance_of_success.\n\n## Account tax vocabulary\n\nUse three words for every account, and use them consistently:\n\n- **taxable**: funded with after-tax money; interest, dividends and gains are\n taxed in the year they are received.\n- **tax-deferred**: traditional 401(k) and IRA. Contributions lower taxable\n income now; withdrawals are taxed as ordinary income later.\n- **tax-free**: Roth accounts, and an HSA spent on healthcare. Qualified\n withdrawals are not taxed.\n\nDo not use \"pre-tax\" or \"post-tax\" as account names; they blur the line between\ntax-deferred and taxable.\n\n## Core FIRE / decumulation concepts\n\n- **Safe Withdrawal Rate (SWR)**: the share of the portfolio taken out in the\n first year of drawdown. The classic \"4% rule\" (Trinity study) is a starting\n heuristic for a 30-year horizon, not a guarantee; a longer horizon argues for\n a lower start. The portfolio withdrawal a plan needs falls as guaranteed\n income (Social Security, pension) switches on.\n- **Sequence-of-returns risk**: poor returns in the first years of drawdown do\n far more damage than the same returns later. Common mitigations: a cash/bond\n bridge, and a **rising-equity glidepath** (\"bond tent\" - most bonds at\n retirement, equity rising after).\n- **Asset location**: which account holds which asset. A common convention\n places bonds in tax-deferred accounts, high-growth equity in tax-free (Roth,\n HSA) accounts, and tax-efficient equity and cash in taxable. Location changes\n after-tax return without changing the overall allocation.\n- **Roth conversion**: moving money from a tax-deferred account into a tax-free\n one. The converted amount is taxed as ordinary income in the year of the\n conversion. A \"Roth conversion ladder\" converts in low-income years (often\n the window after work ends and before Social Security or RMDs start) to fill\n a low bracket, lower later RMDs, and shrink the taxable estate. Paying that\n year's tax from a taxable account rather than from withholding keeps more\n money inside the tax-free account.\n\nProjectionLab's glossary of the everyday financial terms used above:\nhttps://projectionlab.com/financial-terms\n\n## Tax concepts that gate conversions\n\nOnly the shape of each rule is here. ProjectionLab computes with the\ncurrent-year figures, and the user reads them in Tax Analytics. MAGI means\nmodified adjusted gross income; each program (ACA, IRMAA, NIIT) defines it\nslightly differently.\n\n- **Federal income tax brackets**: ordinary income is taxed in bands. Income\n that fills an unused low band is cheap; income pushed into the next band\n costs more. What a conversion costs depends on where it lands.\n- **ACA premium subsidies**: marketplace health coverage is income-tested. In\n some income ranges extra income can cut a subsidy faster than tax does, so\n the effective marginal rate in those pre-Medicare years is higher than the\n bracket alone suggests. Not a factor with employer, retiree or other\n non-marketplace coverage.\n- **IRMAA**: an extra charge on Medicare Part B and Part D premiums. It is set\n by the person's MAGI from two years earlier and comes in tiers, so income\n just over a tier boundary pays the whole higher charge. A conversion in one\n year can raise premiums two years later. If the user is already on Medicare\n when the plan starts, ProjectionLab estimates that lookback income in the\n first two plan years, and the actual rule applies from year 3.\n- **NIIT (net investment income tax)**: a surtax on investment income (gains,\n dividends, interest, rent) once MAGI is above an income threshold. It raises\n the cost of a year that mixes a conversion with investment income.\n- **Long-term capital gains rate**: while taxable income stays under a\n threshold, long-term gains are taxed at 0%. A low-income year can realize\n some gains at no tax cost before that room is gone.\n- **RMDs (Required Minimum Distributions)**: once a person reaches the RMD age,\n tax-deferred accounts require a withdrawal every year, whether or not the\n cash is needed. A large tax-deferred balance can push those forced\n withdrawals into higher brackets and IRMAA tiers, which is the usual reason\n people convert while their income is still low.\n\n## Analysis checklist\n\n1. Build a lifecycle timeline (phase, date range, milestone trigger).\n2. Cash flow by phase; flag pure-drawdown years and the gap before Social\n Security starts.\n3. Withdrawal rate now and after guaranteed income begins.\n4. Sequence risk: what a poor-return start does to the plan. Only a\n ProjectionLab Chance of Success run can show it; read it with\n projectionlab_get_chance_of_success.\n5. Roth conversion efficiency: bracket headroom versus the ACA, IRMAA and NIIT\n ceilings; compare lifetime taxes and net legacy, not just the tax now.\n6. Longevity: does the plan last well past life expectancy?\n7. Inflation: healthcare and long-term care costs rise with inflation and are\n often decades out; check how the plan assumes them.\n\n## ProjectionLab help articles\n\nProjectionLab's own pages, linked for the user and summarized here for a model\nwith no web access. Group headings name the plan section or Current Finances\narea a page writes to, and the bracketed tag names the fields in it that the\npage sets. Pages that set nothing the data model records are listed under\n\"Other pages\" rather than guessed into a section. Link the page for the user\nwhen a how-to question needs the app's own steps. The summaries are ours, not\nProjectionLab's wording.\n\n### Current Finances: household, accounts, debts, balances [currentFinances, accounts, accountHistory]\n\n- **Add someone to your household** [household]\n https://projectionlab.com/help/add-someone-to-your-household - a partner, a\n child, or someone else you support, with their costs and accounts.\n- **Add an account** [accounts: balance, costBasis]\n https://projectionlab.com/help/add-an-account - the bank, investment, and\n retirement accounts you already hold; what you add later is a Flow.\n- **Update your current balances** [accounts: balance]\n https://projectionlab.com/help/update-account-balances - today's account,\n property, and debt values together on Net Worth.\n- **Add or edit past balances** [accountHistory]\n https://projectionlab.com/help/add-or-correct-past-balances - a balance dated\n before today, which leaves today's balance as it is.\n- **Import or export balance history** [accountHistory]\n https://projectionlab.com/help/import-or-export-balance-history - past\n balances in from a spreadsheet, or the history out as CSV.\n- **Keep balances updated with plugins** [settings: plugins; Current Finances balances]\n https://projectionlab.com/help/plugins - ProjectionLab does not link to banks;\n plugins (Lunch Money, YNAB, Monarch, or your own code) write balances into\n Current Finances through the Plugin API, which has to be enabled in account\n settings. This server uses that same API.\n- **Change the type of an account or plan item** [accounts: type, subtype]\n https://projectionlab.com/help/change-the-type-of-an-account-or-plan-item -\n retype an account, asset, debt, income, or expense and keep its history.\n- **Add a loan or other debt** [accounts: kind debt]\n https://projectionlab.com/help/add-a-loan-or-other-debt - a mortgage, student\n loan, credit card, or line of credit you owe today.\n- **Plan student loan payments and forgiveness** [accounts: kind debt]\n https://projectionlab.com/help/student-loans - when payments begin, an earlier\n payoff, and a forgiveness date.\n- **Add property or another asset you already own** [accounts: kind real-asset]\n https://projectionlab.com/help/add-property-or-an-asset-you-own - a home,\n rental, or vehicle at its full value today, with its loan entered separately.\n- **Choose when you can use each account** [accounts: withdraw, withdrawAge, liquidity]\n https://projectionlab.com/help/when-you-can-use-each-account - when an account\n becomes available to draw on, and which available account comes first.\n- **Why is there an early withdrawal penalty?** [accounts: EWAge, hasEWPenalty, EWPenaltyRate]\n https://projectionlab.com/help/early-withdrawal-penalty - the account being\n used before its qualified age and the settings behind the penalty.\n- **Plan RMDs and other required withdrawals** [accounts: rmdType]\n https://projectionlab.com/help/plan-required-withdrawals - each account's\n required-withdrawal regime and the taxable income it adds.\n- **Add an Inherited IRA** [accounts: rmdType]\n https://projectionlab.com/help/plan-with-an-inherited-ira - the inherited\n account type that drives its required distributions.\n- **Set account growth, dividends, and fees** [accounts: investmentGrowthType, dividendType, yearlyFee]\n https://projectionlab.com/help/set-account-growth-dividends-and-fees - a\n custom rate covers the account's stock portion while its bond portion keeps\n following the plan's bond rates, unless its bond share is set to 0%. A custom\n rate can stay fixed or move with the Chance of Success trials.\n- **Schedule a manual Roth conversion** [accounts: the event's rothConversions]\n https://projectionlab.com/help/schedule-a-manual-roth-conversion - set\n conversion amounts and years on one retirement account instead of following a\n tax target.\n\n### Plan income events [income]\n\n- **Add income to your plan** [income]\n https://projectionlab.com/help/add-income-to-your-plan - salary, hourly pay,\n bonus, side income, and one-time money, with raises and part-time cutbacks.\n- **Add retirement contributions** [income]\n https://projectionlab.com/help/retirement-contributions - a contribution hangs\n off the salary that funds it, along with the employer match.\n- **Add Social Security and other government benefits** [income: estimateIncome, primaryInsuranceAmount, expectedPercent]\n https://projectionlab.com/help/social-security - estimate the benefit from\n earnings history or enter a known figure, and compare claiming ages.\n- **Add pension or annuity income** [income]\n https://projectionlab.com/help/add-pension-or-annuity-income - payments you\n already know, a pension estimated from salary, and survivor payments.\n- **Model self-employment income** [income]\n https://projectionlab.com/help/model-self-employment-income - Side Hustle\n income entered as business profit before personal tax.\n- **Model RSU grants and vesting** [income]\n https://projectionlab.com/help/rsu-grants - the value that vests each year,\n the tax on it, and what is left to save or spend.\n\n### Plan expense events [expenses]\n\n- **Add expenses to your plan** [expenses: spendingType, healthcareType, taxDeductible, fundWithAccounts]\n https://projectionlab.com/help/adding-expenses-to-your-plan - everyday and\n later spending, essential versus discretionary, and which account pays.\n- **Plan for ACA Marketplace coverage** [expenses: healthcareType aca]\n https://projectionlab.com/help/plan-for-aca-marketplace-coverage - the full\n premium, the Premium Tax Credit, and the years you expect coverage.\n- **Plan for Medicare costs** [expenses: healthcareType]\n https://projectionlab.com/help/medicare-costs - the Medicare expense each\n adult carries from 65, with coverage and premium choices.\n- **Plan charitable giving during your lifetime** [expenses]\n https://projectionlab.com/help/plan-charitable-giving-during-your-lifetime -\n gifts entered as expenses; giving from the estate is a separate setting.\n- **Set up Flexible Spending** [expenses: spendingType; the rule runs in the app]\n https://projectionlab.com/help/flex-spending - spending rules keyed to how the\n portfolio sits against its previous high, scoped to all spending or to\n discretionary spending only.\n\n### Plan priorities (Flows) [priorities]\n\n- **Plan your savings with Flows** [priorities: desiredContribution, amount, accountId]\n https://projectionlab.com/help/plan-your-savings-with-flows - Fund with Income\n flows are funded in the order you set within each section; an Always Fund flow\n runs ahead of them all and can use other eligible accounts when income falls\n short. An unlimited Maximize Contribution flow takes everything left at its\n position, so it normally goes last.\n- **Build a cash reserve or emergency fund** [priorities]\n https://projectionlab.com/help/build-a-cash-reserve-or-emergency-fund - a flow\n that builds an account to a target balance and tops it back up.\n- **Plan extra debt payments** [priorities]\n https://projectionlab.com/help/extra-debt-payments - a flow that pays a debt\n beyond its required payment.\n- **Plan a Backdoor Roth IRA contribution** [priorities]\n https://projectionlab.com/help/backdoor-roth - the yearly-contribution-limit\n choice on a Roth IRA flow, which lifts the direct income restriction.\n- **Plan a Mega Backdoor Roth contribution** [priorities]\n https://projectionlab.com/help/model-mega-backdoor-roth - a Roth workplace\n flow with the Mega Backdoor contribution type and the salary it comes from.\n\n### Plan assets and real property [assets]\n\n- **Plan a home or property purchase** [assets: start, downPayment, interestRate, monthlyPayment]\n https://projectionlab.com/help/plan-a-home-or-property-purchase - when and how\n to buy, with the tax, insurance, and maintenance the property starts with.\n- **Plan a property sale** [assets]\n https://projectionlab.com/help/plan-a-property-sale - the sale date, selling\n costs, and where the proceeds go.\n- **Model a rental property** [assets: generateIncome, maintenanceRate, insuranceRate, monthlyHOA, taxRate]\n https://projectionlab.com/help/rental-property - the rent it brings in, what\n it costs to own, and a future sale.\n- **Plan recurring purchases and replacements** [assets: repeat]\n https://projectionlab.com/help/recurring-purchases - the same asset bought\n again on a cadence.\n\n### Plan milestones [milestones]\n\n- **Use milestones to time changes in your plan** [milestones: criteria]\n https://projectionlab.com/help/manage-milestones - lifecycle markers triggered\n by age, date, year, or balance; other events anchor their start and end to\n them. Retirement and Life Expectancy cannot be deleted.\n- **Use Life Map to see your plan's milestones** [milestones; the timeline is app only]\n https://projectionlab.com/help/use-life-map - the milestones on one timeline,\n with how long each chapter of the plan runs.\n\n### Plan settings: variables [variables]\n\n- **Set growth and inflation rates** [variables: assumptionsMode, inflation, investmentReturn, dividendRate, bondInvestmentReturn, bondDividendRate]\n https://projectionlab.com/help/set-growth-and-inflation-rates - steady rates, a\n backtested sequence of good and bad years, or custom curves.\n- **Reinvest dividends or spend them, and set your bond mix** [variables: dividendSettings, bondSettings]\n https://projectionlab.com/help/dividends-and-bonds - whether dividends stay\n invested or pay into cash flow, the bond percentage over time that the plan\n rebalances to each year, and which accounts hold bonds first. An account with\n its own bond setting keeps it.\n- **Change an amount over time** [income, expenses, assets: yearlyChange]\n https://projectionlab.com/help/change-an-amount-over-time - one steady rate for\n a salary or cost, or a different pattern at each life stage.\n- **Choose how to enter future amounts** [income, expenses: amount]\n https://projectionlab.com/help/future-amounts - whether an amount starting in a\n later year means today's money, the money actually paid then, or money grown\n from today.\n- **Set a Surplus Strategy for leftover income** [variables: cashFlowDefault]\n https://projectionlab.com/help/leftover-income - Save Anything Left Over adds\n the remainder to cash; Spend Anything Left Over makes it discretionary\n spending.\n- **Set up taxes for your plan** [variables: filingStatus, estimateTaxes; currentFinances: location]\n https://projectionlab.com/help/set-your-tax-assumptions - location, filing\n status, and the tax assumptions the plan estimates with.\n- **Use a custom tax model** [variables: estimateTaxes]\n https://projectionlab.com/help/use-a-custom-tax-model - replace the built-in\n estimate with your own rates where it does not cover the location, or to test\n another tax system.\n- **Set up a Tax Strategy** [variables: taxStrategy]\n https://projectionlab.com/help/set-up-a-tax-strategy - conversions,\n withdrawals, and sales working toward one limit, such as a bracket, a Medicare\n surcharge cliff, or a subsidy, with guardrails.\n- **Compare tax strategies** [variables: taxStrategy.type compare]\n https://projectionlab.com/help/compare-tax-strategies - ready-made strategies\n side by side across taxes, withdrawals, and end-of-plan results.\n- **Plan Roth conversions** [variables: rothConversionStrategy, taxStrategy; the search runs in the app]\n https://projectionlab.com/help/roth-conversion - yearly conversions up to a tax\n target you choose, from a ready-made strategy, one you build, or a search.\n The schedule lands in the plan's accounts, which this server can read and\n edit; it cannot run the search.\n- **Use Strategy Optimizer to find a tax strategy** [variables: taxStrategy; the search runs in the app]\n https://projectionlab.com/help/use-strategy-optimizer - searches combinations\n of targets, guardrails, and actions against a goal such as lower lifetime tax\n or a larger legacy, then ranks the results.\n- **Use Gain Harvesting** [variables: gainHarvestingStrategy.enabled]\n https://projectionlab.com/help/set-up-gain-harvesting - realize gains up to a\n tax target, such as the 0% federal capital gains bracket, and rebuild cost\n basis by buying back.\n- **Keep withdrawals under a tax limit with Withdrawal Shielding** [variables: drawdownBlendingStrategy.enabled]\n https://projectionlab.com/help/set-up-withdrawal-shielding - prefer tax-free\n sources when a taxable withdrawal would pass the income limit you set.\n- **Choose your withdrawal order** [variables: drawdownOrder]\n https://projectionlab.com/help/withdrawal-order - the order account categories\n cover a shortfall. The chart beside each source and its early-withdrawal\n warning are a view of that order.\n- **Set your estate assumptions and heirs** [variables: estate]\n https://projectionlab.com/help/set-estate-assumptions-and-heirs - the taxes and\n costs expected when the estate is settled, and who receives the remainder.\n\n### Plan settings: montecarlo (Chance of Success) [montecarlo]\n\n- **Run Chance of Success** [montecarlo: trials, sampling, mode, trialMetric]\n https://projectionlab.com/help/run-chance-of-success - run the trials, choose\n the market data, and choose how trials are drawn and scored.\n- **Why Chance of Success can differ from your Plan** [montecarlo; results are app only]\n https://projectionlab.com/help/plan-vs-chance-of-success - the Plan tab is one\n fixed path at fixed growth; Chance of Success runs many trials over historical\n or randomized market data. All other tabs follow the Plan tab, not the trial\n outcomes.\n\n### Plan settings: withdrawalStrategy [withdrawalStrategy]\n\n- **Use Textbook Withdrawals** [withdrawalStrategy: strategy, start, income, spendMode]\n https://projectionlab.com/help/textbook-withdrawals - systematic rules such as\n Initial Percentage, Fixed Percentage, Variable Percentage Withdrawal, and\n Guyton-Klinger, starting at a year or milestone. From that start it replaces\n ordinary spending with its own withdrawal expense, while property purchases\n and sales, transfers, and required distributions still run; the plan's\n drawdown order still funds them.\n\n### Application and plan settings [settings]\n\n- **Change when a plan year starts** [settings: plan.alignment]\n https://projectionlab.com/help/change-year-alignment - calendar years, a tax\n year, or a month you choose, for every plan without its own alignment.\n- **Set a Main Plan** [settings: plan]\n https://projectionlab.com/help/set-a-main-plan - which plan represents the\n real household and Net Worth, and what changing it moves across plans.\n\n### How the app works the numbers out [app only]\n\n- **How ProjectionLab estimates a year of your plan** [app only]\n https://projectionlab.com/help/how-each-year-is-estimated - the order of\n contributions, withdrawals, and growth inside a year, which is why a balance\n is not balance times return.\n- **Explore a year in Tax Analytics** [app only]\n https://projectionlab.com/help/tax-analytics - the income, taxes, deductions,\n and credits behind the plan, with one year open in detail.\n- **Why is tax withheld different from tax owed?** [variables: withholding; the figures are app only]\n https://projectionlab.com/help/tax-withheld-vs-tax-owed - withholding paid\n during the year against the tax owed, settled by the next year's refund or\n payment, including after a Roth conversion.\n- **Why did my Medicare premium change?** [variables: taxStrategy.irmaaCeiling; the surcharge is computed in the app]\n https://projectionlab.com/help/medicare-premium-change - the IRMAA surcharge on\n Parts B and D, set by the income of the year two years earlier and charged in\n tiers, so crossing a cliff by any amount costs the whole surcharge. Where the\n user is already on Medicare at plan start, ProjectionLab estimates that\n lookback income for the first two plan years.\n- **Why did my ACA subsidy change?** [variables: taxStrategy.acaCeiling; computed in the app]\n https://projectionlab.com/help/aca-subsidy-reconciliation - the Premium Tax\n Credit follows the whole year's household income, so a conversion or a sale\n moves it even when the healthcare expense did not change.\n- **What is Net Legacy and how is it calculated?** [variables: estate; the figure is app only]\n https://projectionlab.com/help/net-legacy - what heirs and charities could\n receive at the end of the plan, after tax and the costs of settling the\n estate.\n\n### Other pages [no field the data model records]\n\n- **Transfer money between accounts**\n https://projectionlab.com/help/account-transfers - a Transfer under Plan >\n Flows moves an existing balance between accounts, to a debt, or to Gift or\n External; the data model records no transfer fields.\n- **Plan early withdrawals with 72(t)/SEPP**\n https://projectionlab.com/help/plan-72t-sepp-withdrawals - an equal-payment\n schedule on the account's 72(t) settings, which lifts the early-withdrawal\n penalty but not the tax.\n- **Create, copy, and switch plans**\n https://projectionlab.com/help/create-new-plan - another saved plan for\n another possibility, what a copy takes, and what every plan shares.\n- **Set Custom Starting Conditions for a plan**\n https://projectionlab.com/help/set-custom-starting-conditions-for-a-plan - one\n plan keeps its own starting accounts and balances instead of the latest Net\n Worth.\n- **Use a Fixed Date plan and track Actual Progress**\n https://projectionlab.com/help/fixed-date-plans - a projection frozen at one\n date and its starting finances, compared with the balances actually recorded.\n- **Choose what your plan metrics include**\n https://projectionlab.com/help/choose-what-your-plan-metrics-include - what\n counts as Spending, Effective Tax Rate, Liquid Net Worth, and Net Legacy.\n";
|
|
3
3
|
export declare function registerKnowledgeResource(server: McpServer): void;
|
|
@@ -71,17 +71,22 @@ When evaluating plan elements or answering user questions, anchor claims with ta
|
|
|
71
71
|
- **documents.accountHistory**:
|
|
72
72
|
- End-of-year balances, tax cost basis, and asset values tracked by account ID and calendar year
|
|
73
73
|
under \`documents.accountHistory.<accountId>.<year>\`. Replaces the separate progress section.
|
|
74
|
-
- Simulation math and Chance of Success trials run only in the ProjectionLab
|
|
75
|
-
This server
|
|
74
|
+
- Simulation math and Chance of Success trials run only in the ProjectionLab app.
|
|
75
|
+
This server never computes them: it reads the results ProjectionLab computed for
|
|
76
|
+
the plan open in the app (projectionlab_get_projection,
|
|
77
|
+
projectionlab_get_chance_of_success).
|
|
76
78
|
|
|
77
79
|
## Plan-change outcome metrics
|
|
78
80
|
|
|
79
81
|
Evaluate a plan change primarily with ProjectionLab's projected ending net worth
|
|
80
82
|
and Chance of Success from a completed simulation. Current Finances net worth is
|
|
81
83
|
an input balance sheet, not an outcome. Mutation before/after values verify that
|
|
82
|
-
the requested input changed; they do not measure its financial impact.
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
the requested input changed; they do not measure its financial impact. Read
|
|
85
|
+
both outcomes from ProjectionLab after a change: projectionlab_get_projection
|
|
86
|
+
(passing the write's \`projection\` as \`afterProjection\`) for ending net
|
|
87
|
+
worth, and projectionlab_get_chance_of_success (passing the write's
|
|
88
|
+
\`chanceOfSuccessRunRevision\` as \`afterRunRevision\`) for a run the user has
|
|
89
|
+
started or asked you to start with projectionlab_run_chance_of_success.
|
|
85
90
|
|
|
86
91
|
## Account tax vocabulary
|
|
87
92
|
|
|
@@ -120,6 +125,9 @@ tax-deferred and taxable.
|
|
|
120
125
|
year's tax from a taxable account rather than from withholding keeps more
|
|
121
126
|
money inside the tax-free account.
|
|
122
127
|
|
|
128
|
+
ProjectionLab's glossary of the everyday financial terms used above:
|
|
129
|
+
https://projectionlab.com/financial-terms
|
|
130
|
+
|
|
123
131
|
## Tax concepts that gate conversions
|
|
124
132
|
|
|
125
133
|
Only the shape of each rule is here. ProjectionLab computes with the
|
|
@@ -140,8 +148,7 @@ slightly differently.
|
|
|
140
148
|
just over a tier boundary pays the whole higher charge. A conversion in one
|
|
141
149
|
year can raise premiums two years later. If the user is already on Medicare
|
|
142
150
|
when the plan starts, ProjectionLab estimates that lookback income in the
|
|
143
|
-
first two plan years, and the actual rule applies from year 3
|
|
144
|
-
(https://projectionlab.com/help/modeling-irmaa-surcharges).
|
|
151
|
+
first two plan years, and the actual rule applies from year 3.
|
|
145
152
|
- **NIIT (net investment income tax)**: a surtax on investment income (gains,
|
|
146
153
|
dividends, interest, rent) once MAGI is above an income threshold. It raises
|
|
147
154
|
the cost of a year that mixes a conversion with investment income.
|
|
@@ -160,8 +167,9 @@ slightly differently.
|
|
|
160
167
|
2. Cash flow by phase; flag pure-drawdown years and the gap before Social
|
|
161
168
|
Security starts.
|
|
162
169
|
3. Withdrawal rate now and after guaranteed income begins.
|
|
163
|
-
4. Sequence risk: what a poor-return start does to the plan. Only a
|
|
164
|
-
ProjectionLab
|
|
170
|
+
4. Sequence risk: what a poor-return start does to the plan. Only a
|
|
171
|
+
ProjectionLab Chance of Success run can show it; read it with
|
|
172
|
+
projectionlab_get_chance_of_success.
|
|
165
173
|
5. Roth conversion efficiency: bracket headroom versus the ACA, IRMAA and NIIT
|
|
166
174
|
ceilings; compare lifetime taxes and net legacy, not just the tax now.
|
|
167
175
|
6. Longevity: does the plan last well past life expectancy?
|
|
@@ -171,72 +179,295 @@ slightly differently.
|
|
|
171
179
|
## ProjectionLab help articles
|
|
172
180
|
|
|
173
181
|
ProjectionLab's own pages, linked for the user and summarized here for a model
|
|
174
|
-
with no web access.
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
- **
|
|
184
|
-
https://projectionlab.com/help/
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
- **
|
|
196
|
-
https://projectionlab.com/help/
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
- **Roth conversions** [accounts; the optimizer is app only]
|
|
200
|
-
https://projectionlab.com/help/roth-conversion - Optimize searches conversion
|
|
201
|
-
strategies against brackets, IRMAA and legacy goals with a beam search, then
|
|
202
|
-
writes the chosen schedule into the plan's accounts. This server can read and
|
|
203
|
-
edit such a schedule; it cannot run the search.
|
|
204
|
-
- **Bond allocation and location** [accounts, variables]
|
|
205
|
-
https://projectionlab.com/help/bond-allocation-and-overrides - the bond
|
|
206
|
-
percentage is set plan-wide and can be overridden per account, and the other
|
|
207
|
-
accounts adjust to keep the plan-wide target, with a warning when it cannot
|
|
208
|
-
balance. Bond location chooses which accounts hold bonds first.
|
|
209
|
-
- **Custom growth and dividend rates** [accounts]
|
|
210
|
-
https://projectionlab.com/help/growth-dividend-settings-chance-of-success - an
|
|
211
|
-
account's custom growth or dividend rate covers its stock portion; the bond
|
|
212
|
-
portion follows the plan's bond settings unless the account's bond allocation
|
|
213
|
-
is overridden to 0%. In Chance of Success such a rate is either held fixed or
|
|
214
|
-
sampled like the rest of the simulation.
|
|
215
|
-
- **IRMAA surcharges** [variables; the optimizer is app only]
|
|
216
|
-
https://projectionlab.com/help/modeling-irmaa-surcharges - tiered Medicare
|
|
217
|
-
Part B and Part D surcharges set by MAGI two years earlier, where crossing a
|
|
218
|
-
tier by any amount costs the whole surcharge. When the user is already on
|
|
219
|
-
Medicare at plan start, ProjectionLab estimates the lookback income for the
|
|
220
|
-
first two plan years.
|
|
221
|
-
- **Plan vs Chance of Success** [montecarlo; results are app only]
|
|
222
|
-
https://projectionlab.com/help/plan-vs-chance-of-success - the Plan tab is one
|
|
223
|
-
fixed path at fixed growth; Chance of Success runs many trials over historical
|
|
224
|
-
or randomized market data. All other tabs follow the Plan tab, not the trial
|
|
225
|
-
outcomes.
|
|
226
|
-
- **Simulation engine** [app only]
|
|
227
|
-
https://projectionlab.com/help/simulation-engine - the app simulates a full
|
|
228
|
-
year at a time (income, withholding, expenses, debt, dividends, prior-year
|
|
229
|
-
taxes, RMDs) and turns a surplus into savings and a shortfall into
|
|
230
|
-
withdrawals.
|
|
231
|
-
- **Flexible spending** [expenses; the feature is app only]
|
|
232
|
-
https://projectionlab.com/help/flex-spending - an optional rule that raises
|
|
233
|
-
or cuts spending with portfolio performance against earlier all-time highs,
|
|
234
|
-
scoped either to all spending or to discretionary expenses only.
|
|
235
|
-
- **Plugins and external accounts** [Current Finances; app only]
|
|
182
|
+
with no web access. Group headings name the plan section or Current Finances
|
|
183
|
+
area a page writes to, and the bracketed tag names the fields in it that the
|
|
184
|
+
page sets. Pages that set nothing the data model records are listed under
|
|
185
|
+
"Other pages" rather than guessed into a section. Link the page for the user
|
|
186
|
+
when a how-to question needs the app's own steps. The summaries are ours, not
|
|
187
|
+
ProjectionLab's wording.
|
|
188
|
+
|
|
189
|
+
### Current Finances: household, accounts, debts, balances [currentFinances, accounts, accountHistory]
|
|
190
|
+
|
|
191
|
+
- **Add someone to your household** [household]
|
|
192
|
+
https://projectionlab.com/help/add-someone-to-your-household - a partner, a
|
|
193
|
+
child, or someone else you support, with their costs and accounts.
|
|
194
|
+
- **Add an account** [accounts: balance, costBasis]
|
|
195
|
+
https://projectionlab.com/help/add-an-account - the bank, investment, and
|
|
196
|
+
retirement accounts you already hold; what you add later is a Flow.
|
|
197
|
+
- **Update your current balances** [accounts: balance]
|
|
198
|
+
https://projectionlab.com/help/update-account-balances - today's account,
|
|
199
|
+
property, and debt values together on Net Worth.
|
|
200
|
+
- **Add or edit past balances** [accountHistory]
|
|
201
|
+
https://projectionlab.com/help/add-or-correct-past-balances - a balance dated
|
|
202
|
+
before today, which leaves today's balance as it is.
|
|
203
|
+
- **Import or export balance history** [accountHistory]
|
|
204
|
+
https://projectionlab.com/help/import-or-export-balance-history - past
|
|
205
|
+
balances in from a spreadsheet, or the history out as CSV.
|
|
206
|
+
- **Keep balances updated with plugins** [settings: plugins; Current Finances balances]
|
|
236
207
|
https://projectionlab.com/help/plugins - ProjectionLab does not link to banks;
|
|
237
208
|
plugins (Lunch Money, YNAB, Monarch, or your own code) write balances into
|
|
238
209
|
Current Finances through the Plugin API, which has to be enabled in account
|
|
239
210
|
settings. This server uses that same API.
|
|
211
|
+
- **Change the type of an account or plan item** [accounts: type, subtype]
|
|
212
|
+
https://projectionlab.com/help/change-the-type-of-an-account-or-plan-item -
|
|
213
|
+
retype an account, asset, debt, income, or expense and keep its history.
|
|
214
|
+
- **Add a loan or other debt** [accounts: kind debt]
|
|
215
|
+
https://projectionlab.com/help/add-a-loan-or-other-debt - a mortgage, student
|
|
216
|
+
loan, credit card, or line of credit you owe today.
|
|
217
|
+
- **Plan student loan payments and forgiveness** [accounts: kind debt]
|
|
218
|
+
https://projectionlab.com/help/student-loans - when payments begin, an earlier
|
|
219
|
+
payoff, and a forgiveness date.
|
|
220
|
+
- **Add property or another asset you already own** [accounts: kind real-asset]
|
|
221
|
+
https://projectionlab.com/help/add-property-or-an-asset-you-own - a home,
|
|
222
|
+
rental, or vehicle at its full value today, with its loan entered separately.
|
|
223
|
+
- **Choose when you can use each account** [accounts: withdraw, withdrawAge, liquidity]
|
|
224
|
+
https://projectionlab.com/help/when-you-can-use-each-account - when an account
|
|
225
|
+
becomes available to draw on, and which available account comes first.
|
|
226
|
+
- **Why is there an early withdrawal penalty?** [accounts: EWAge, hasEWPenalty, EWPenaltyRate]
|
|
227
|
+
https://projectionlab.com/help/early-withdrawal-penalty - the account being
|
|
228
|
+
used before its qualified age and the settings behind the penalty.
|
|
229
|
+
- **Plan RMDs and other required withdrawals** [accounts: rmdType]
|
|
230
|
+
https://projectionlab.com/help/plan-required-withdrawals - each account's
|
|
231
|
+
required-withdrawal regime and the taxable income it adds.
|
|
232
|
+
- **Add an Inherited IRA** [accounts: rmdType]
|
|
233
|
+
https://projectionlab.com/help/plan-with-an-inherited-ira - the inherited
|
|
234
|
+
account type that drives its required distributions.
|
|
235
|
+
- **Set account growth, dividends, and fees** [accounts: investmentGrowthType, dividendType, yearlyFee]
|
|
236
|
+
https://projectionlab.com/help/set-account-growth-dividends-and-fees - a
|
|
237
|
+
custom rate covers the account's stock portion while its bond portion keeps
|
|
238
|
+
following the plan's bond rates, unless its bond share is set to 0%. A custom
|
|
239
|
+
rate can stay fixed or move with the Chance of Success trials.
|
|
240
|
+
- **Schedule a manual Roth conversion** [accounts: the event's rothConversions]
|
|
241
|
+
https://projectionlab.com/help/schedule-a-manual-roth-conversion - set
|
|
242
|
+
conversion amounts and years on one retirement account instead of following a
|
|
243
|
+
tax target.
|
|
244
|
+
|
|
245
|
+
### Plan income events [income]
|
|
246
|
+
|
|
247
|
+
- **Add income to your plan** [income]
|
|
248
|
+
https://projectionlab.com/help/add-income-to-your-plan - salary, hourly pay,
|
|
249
|
+
bonus, side income, and one-time money, with raises and part-time cutbacks.
|
|
250
|
+
- **Add retirement contributions** [income]
|
|
251
|
+
https://projectionlab.com/help/retirement-contributions - a contribution hangs
|
|
252
|
+
off the salary that funds it, along with the employer match.
|
|
253
|
+
- **Add Social Security and other government benefits** [income: estimateIncome, primaryInsuranceAmount, expectedPercent]
|
|
254
|
+
https://projectionlab.com/help/social-security - estimate the benefit from
|
|
255
|
+
earnings history or enter a known figure, and compare claiming ages.
|
|
256
|
+
- **Add pension or annuity income** [income]
|
|
257
|
+
https://projectionlab.com/help/add-pension-or-annuity-income - payments you
|
|
258
|
+
already know, a pension estimated from salary, and survivor payments.
|
|
259
|
+
- **Model self-employment income** [income]
|
|
260
|
+
https://projectionlab.com/help/model-self-employment-income - Side Hustle
|
|
261
|
+
income entered as business profit before personal tax.
|
|
262
|
+
- **Model RSU grants and vesting** [income]
|
|
263
|
+
https://projectionlab.com/help/rsu-grants - the value that vests each year,
|
|
264
|
+
the tax on it, and what is left to save or spend.
|
|
265
|
+
|
|
266
|
+
### Plan expense events [expenses]
|
|
267
|
+
|
|
268
|
+
- **Add expenses to your plan** [expenses: spendingType, healthcareType, taxDeductible, fundWithAccounts]
|
|
269
|
+
https://projectionlab.com/help/adding-expenses-to-your-plan - everyday and
|
|
270
|
+
later spending, essential versus discretionary, and which account pays.
|
|
271
|
+
- **Plan for ACA Marketplace coverage** [expenses: healthcareType aca]
|
|
272
|
+
https://projectionlab.com/help/plan-for-aca-marketplace-coverage - the full
|
|
273
|
+
premium, the Premium Tax Credit, and the years you expect coverage.
|
|
274
|
+
- **Plan for Medicare costs** [expenses: healthcareType]
|
|
275
|
+
https://projectionlab.com/help/medicare-costs - the Medicare expense each
|
|
276
|
+
adult carries from 65, with coverage and premium choices.
|
|
277
|
+
- **Plan charitable giving during your lifetime** [expenses]
|
|
278
|
+
https://projectionlab.com/help/plan-charitable-giving-during-your-lifetime -
|
|
279
|
+
gifts entered as expenses; giving from the estate is a separate setting.
|
|
280
|
+
- **Set up Flexible Spending** [expenses: spendingType; the rule runs in the app]
|
|
281
|
+
https://projectionlab.com/help/flex-spending - spending rules keyed to how the
|
|
282
|
+
portfolio sits against its previous high, scoped to all spending or to
|
|
283
|
+
discretionary spending only.
|
|
284
|
+
|
|
285
|
+
### Plan priorities (Flows) [priorities]
|
|
286
|
+
|
|
287
|
+
- **Plan your savings with Flows** [priorities: desiredContribution, amount, accountId]
|
|
288
|
+
https://projectionlab.com/help/plan-your-savings-with-flows - Fund with Income
|
|
289
|
+
flows are funded in the order you set within each section; an Always Fund flow
|
|
290
|
+
runs ahead of them all and can use other eligible accounts when income falls
|
|
291
|
+
short. An unlimited Maximize Contribution flow takes everything left at its
|
|
292
|
+
position, so it normally goes last.
|
|
293
|
+
- **Build a cash reserve or emergency fund** [priorities]
|
|
294
|
+
https://projectionlab.com/help/build-a-cash-reserve-or-emergency-fund - a flow
|
|
295
|
+
that builds an account to a target balance and tops it back up.
|
|
296
|
+
- **Plan extra debt payments** [priorities]
|
|
297
|
+
https://projectionlab.com/help/extra-debt-payments - a flow that pays a debt
|
|
298
|
+
beyond its required payment.
|
|
299
|
+
- **Plan a Backdoor Roth IRA contribution** [priorities]
|
|
300
|
+
https://projectionlab.com/help/backdoor-roth - the yearly-contribution-limit
|
|
301
|
+
choice on a Roth IRA flow, which lifts the direct income restriction.
|
|
302
|
+
- **Plan a Mega Backdoor Roth contribution** [priorities]
|
|
303
|
+
https://projectionlab.com/help/model-mega-backdoor-roth - a Roth workplace
|
|
304
|
+
flow with the Mega Backdoor contribution type and the salary it comes from.
|
|
305
|
+
|
|
306
|
+
### Plan assets and real property [assets]
|
|
307
|
+
|
|
308
|
+
- **Plan a home or property purchase** [assets: start, downPayment, interestRate, monthlyPayment]
|
|
309
|
+
https://projectionlab.com/help/plan-a-home-or-property-purchase - when and how
|
|
310
|
+
to buy, with the tax, insurance, and maintenance the property starts with.
|
|
311
|
+
- **Plan a property sale** [assets]
|
|
312
|
+
https://projectionlab.com/help/plan-a-property-sale - the sale date, selling
|
|
313
|
+
costs, and where the proceeds go.
|
|
314
|
+
- **Model a rental property** [assets: generateIncome, maintenanceRate, insuranceRate, monthlyHOA, taxRate]
|
|
315
|
+
https://projectionlab.com/help/rental-property - the rent it brings in, what
|
|
316
|
+
it costs to own, and a future sale.
|
|
317
|
+
- **Plan recurring purchases and replacements** [assets: repeat]
|
|
318
|
+
https://projectionlab.com/help/recurring-purchases - the same asset bought
|
|
319
|
+
again on a cadence.
|
|
320
|
+
|
|
321
|
+
### Plan milestones [milestones]
|
|
322
|
+
|
|
323
|
+
- **Use milestones to time changes in your plan** [milestones: criteria]
|
|
324
|
+
https://projectionlab.com/help/manage-milestones - lifecycle markers triggered
|
|
325
|
+
by age, date, year, or balance; other events anchor their start and end to
|
|
326
|
+
them. Retirement and Life Expectancy cannot be deleted.
|
|
327
|
+
- **Use Life Map to see your plan's milestones** [milestones; the timeline is app only]
|
|
328
|
+
https://projectionlab.com/help/use-life-map - the milestones on one timeline,
|
|
329
|
+
with how long each chapter of the plan runs.
|
|
330
|
+
|
|
331
|
+
### Plan settings: variables [variables]
|
|
332
|
+
|
|
333
|
+
- **Set growth and inflation rates** [variables: assumptionsMode, inflation, investmentReturn, dividendRate, bondInvestmentReturn, bondDividendRate]
|
|
334
|
+
https://projectionlab.com/help/set-growth-and-inflation-rates - steady rates, a
|
|
335
|
+
backtested sequence of good and bad years, or custom curves.
|
|
336
|
+
- **Reinvest dividends or spend them, and set your bond mix** [variables: dividendSettings, bondSettings]
|
|
337
|
+
https://projectionlab.com/help/dividends-and-bonds - whether dividends stay
|
|
338
|
+
invested or pay into cash flow, the bond percentage over time that the plan
|
|
339
|
+
rebalances to each year, and which accounts hold bonds first. An account with
|
|
340
|
+
its own bond setting keeps it.
|
|
341
|
+
- **Change an amount over time** [income, expenses, assets: yearlyChange]
|
|
342
|
+
https://projectionlab.com/help/change-an-amount-over-time - one steady rate for
|
|
343
|
+
a salary or cost, or a different pattern at each life stage.
|
|
344
|
+
- **Choose how to enter future amounts** [income, expenses: amount]
|
|
345
|
+
https://projectionlab.com/help/future-amounts - whether an amount starting in a
|
|
346
|
+
later year means today's money, the money actually paid then, or money grown
|
|
347
|
+
from today.
|
|
348
|
+
- **Set a Surplus Strategy for leftover income** [variables: cashFlowDefault]
|
|
349
|
+
https://projectionlab.com/help/leftover-income - Save Anything Left Over adds
|
|
350
|
+
the remainder to cash; Spend Anything Left Over makes it discretionary
|
|
351
|
+
spending.
|
|
352
|
+
- **Set up taxes for your plan** [variables: filingStatus, estimateTaxes; currentFinances: location]
|
|
353
|
+
https://projectionlab.com/help/set-your-tax-assumptions - location, filing
|
|
354
|
+
status, and the tax assumptions the plan estimates with.
|
|
355
|
+
- **Use a custom tax model** [variables: estimateTaxes]
|
|
356
|
+
https://projectionlab.com/help/use-a-custom-tax-model - replace the built-in
|
|
357
|
+
estimate with your own rates where it does not cover the location, or to test
|
|
358
|
+
another tax system.
|
|
359
|
+
- **Set up a Tax Strategy** [variables: taxStrategy]
|
|
360
|
+
https://projectionlab.com/help/set-up-a-tax-strategy - conversions,
|
|
361
|
+
withdrawals, and sales working toward one limit, such as a bracket, a Medicare
|
|
362
|
+
surcharge cliff, or a subsidy, with guardrails.
|
|
363
|
+
- **Compare tax strategies** [variables: taxStrategy.type compare]
|
|
364
|
+
https://projectionlab.com/help/compare-tax-strategies - ready-made strategies
|
|
365
|
+
side by side across taxes, withdrawals, and end-of-plan results.
|
|
366
|
+
- **Plan Roth conversions** [variables: rothConversionStrategy, taxStrategy; the search runs in the app]
|
|
367
|
+
https://projectionlab.com/help/roth-conversion - yearly conversions up to a tax
|
|
368
|
+
target you choose, from a ready-made strategy, one you build, or a search.
|
|
369
|
+
The schedule lands in the plan's accounts, which this server can read and
|
|
370
|
+
edit; it cannot run the search.
|
|
371
|
+
- **Use Strategy Optimizer to find a tax strategy** [variables: taxStrategy; the search runs in the app]
|
|
372
|
+
https://projectionlab.com/help/use-strategy-optimizer - searches combinations
|
|
373
|
+
of targets, guardrails, and actions against a goal such as lower lifetime tax
|
|
374
|
+
or a larger legacy, then ranks the results.
|
|
375
|
+
- **Use Gain Harvesting** [variables: gainHarvestingStrategy.enabled]
|
|
376
|
+
https://projectionlab.com/help/set-up-gain-harvesting - realize gains up to a
|
|
377
|
+
tax target, such as the 0% federal capital gains bracket, and rebuild cost
|
|
378
|
+
basis by buying back.
|
|
379
|
+
- **Keep withdrawals under a tax limit with Withdrawal Shielding** [variables: drawdownBlendingStrategy.enabled]
|
|
380
|
+
https://projectionlab.com/help/set-up-withdrawal-shielding - prefer tax-free
|
|
381
|
+
sources when a taxable withdrawal would pass the income limit you set.
|
|
382
|
+
- **Choose your withdrawal order** [variables: drawdownOrder]
|
|
383
|
+
https://projectionlab.com/help/withdrawal-order - the order account categories
|
|
384
|
+
cover a shortfall. The chart beside each source and its early-withdrawal
|
|
385
|
+
warning are a view of that order.
|
|
386
|
+
- **Set your estate assumptions and heirs** [variables: estate]
|
|
387
|
+
https://projectionlab.com/help/set-estate-assumptions-and-heirs - the taxes and
|
|
388
|
+
costs expected when the estate is settled, and who receives the remainder.
|
|
389
|
+
|
|
390
|
+
### Plan settings: montecarlo (Chance of Success) [montecarlo]
|
|
391
|
+
|
|
392
|
+
- **Run Chance of Success** [montecarlo: trials, sampling, mode, trialMetric]
|
|
393
|
+
https://projectionlab.com/help/run-chance-of-success - run the trials, choose
|
|
394
|
+
the market data, and choose how trials are drawn and scored.
|
|
395
|
+
- **Why Chance of Success can differ from your Plan** [montecarlo; results are app only]
|
|
396
|
+
https://projectionlab.com/help/plan-vs-chance-of-success - the Plan tab is one
|
|
397
|
+
fixed path at fixed growth; Chance of Success runs many trials over historical
|
|
398
|
+
or randomized market data. All other tabs follow the Plan tab, not the trial
|
|
399
|
+
outcomes.
|
|
400
|
+
|
|
401
|
+
### Plan settings: withdrawalStrategy [withdrawalStrategy]
|
|
402
|
+
|
|
403
|
+
- **Use Textbook Withdrawals** [withdrawalStrategy: strategy, start, income, spendMode]
|
|
404
|
+
https://projectionlab.com/help/textbook-withdrawals - systematic rules such as
|
|
405
|
+
Initial Percentage, Fixed Percentage, Variable Percentage Withdrawal, and
|
|
406
|
+
Guyton-Klinger, starting at a year or milestone. From that start it replaces
|
|
407
|
+
ordinary spending with its own withdrawal expense, while property purchases
|
|
408
|
+
and sales, transfers, and required distributions still run; the plan's
|
|
409
|
+
drawdown order still funds them.
|
|
410
|
+
|
|
411
|
+
### Application and plan settings [settings]
|
|
412
|
+
|
|
413
|
+
- **Change when a plan year starts** [settings: plan.alignment]
|
|
414
|
+
https://projectionlab.com/help/change-year-alignment - calendar years, a tax
|
|
415
|
+
year, or a month you choose, for every plan without its own alignment.
|
|
416
|
+
- **Set a Main Plan** [settings: plan]
|
|
417
|
+
https://projectionlab.com/help/set-a-main-plan - which plan represents the
|
|
418
|
+
real household and Net Worth, and what changing it moves across plans.
|
|
419
|
+
|
|
420
|
+
### How the app works the numbers out [app only]
|
|
421
|
+
|
|
422
|
+
- **How ProjectionLab estimates a year of your plan** [app only]
|
|
423
|
+
https://projectionlab.com/help/how-each-year-is-estimated - the order of
|
|
424
|
+
contributions, withdrawals, and growth inside a year, which is why a balance
|
|
425
|
+
is not balance times return.
|
|
426
|
+
- **Explore a year in Tax Analytics** [app only]
|
|
427
|
+
https://projectionlab.com/help/tax-analytics - the income, taxes, deductions,
|
|
428
|
+
and credits behind the plan, with one year open in detail.
|
|
429
|
+
- **Why is tax withheld different from tax owed?** [variables: withholding; the figures are app only]
|
|
430
|
+
https://projectionlab.com/help/tax-withheld-vs-tax-owed - withholding paid
|
|
431
|
+
during the year against the tax owed, settled by the next year's refund or
|
|
432
|
+
payment, including after a Roth conversion.
|
|
433
|
+
- **Why did my Medicare premium change?** [variables: taxStrategy.irmaaCeiling; the surcharge is computed in the app]
|
|
434
|
+
https://projectionlab.com/help/medicare-premium-change - the IRMAA surcharge on
|
|
435
|
+
Parts B and D, set by the income of the year two years earlier and charged in
|
|
436
|
+
tiers, so crossing a cliff by any amount costs the whole surcharge. Where the
|
|
437
|
+
user is already on Medicare at plan start, ProjectionLab estimates that
|
|
438
|
+
lookback income for the first two plan years.
|
|
439
|
+
- **Why did my ACA subsidy change?** [variables: taxStrategy.acaCeiling; computed in the app]
|
|
440
|
+
https://projectionlab.com/help/aca-subsidy-reconciliation - the Premium Tax
|
|
441
|
+
Credit follows the whole year's household income, so a conversion or a sale
|
|
442
|
+
moves it even when the healthcare expense did not change.
|
|
443
|
+
- **What is Net Legacy and how is it calculated?** [variables: estate; the figure is app only]
|
|
444
|
+
https://projectionlab.com/help/net-legacy - what heirs and charities could
|
|
445
|
+
receive at the end of the plan, after tax and the costs of settling the
|
|
446
|
+
estate.
|
|
447
|
+
|
|
448
|
+
### Other pages [no field the data model records]
|
|
449
|
+
|
|
450
|
+
- **Transfer money between accounts**
|
|
451
|
+
https://projectionlab.com/help/account-transfers - a Transfer under Plan >
|
|
452
|
+
Flows moves an existing balance between accounts, to a debt, or to Gift or
|
|
453
|
+
External; the data model records no transfer fields.
|
|
454
|
+
- **Plan early withdrawals with 72(t)/SEPP**
|
|
455
|
+
https://projectionlab.com/help/plan-72t-sepp-withdrawals - an equal-payment
|
|
456
|
+
schedule on the account's 72(t) settings, which lifts the early-withdrawal
|
|
457
|
+
penalty but not the tax.
|
|
458
|
+
- **Create, copy, and switch plans**
|
|
459
|
+
https://projectionlab.com/help/create-new-plan - another saved plan for
|
|
460
|
+
another possibility, what a copy takes, and what every plan shares.
|
|
461
|
+
- **Set Custom Starting Conditions for a plan**
|
|
462
|
+
https://projectionlab.com/help/set-custom-starting-conditions-for-a-plan - one
|
|
463
|
+
plan keeps its own starting accounts and balances instead of the latest Net
|
|
464
|
+
Worth.
|
|
465
|
+
- **Use a Fixed Date plan and track Actual Progress**
|
|
466
|
+
https://projectionlab.com/help/fixed-date-plans - a projection frozen at one
|
|
467
|
+
date and its starting finances, compared with the balances actually recorded.
|
|
468
|
+
- **Choose what your plan metrics include**
|
|
469
|
+
https://projectionlab.com/help/choose-what-your-plan-metrics-include - what
|
|
470
|
+
counts as Spending, Effective Tax Rate, Liquid Net Worth, and Net Legacy.
|
|
240
471
|
`;
|
|
241
472
|
export function registerKnowledgeResource(server) {
|
|
242
473
|
server.registerResource("knowledge", "projectionlab://knowledge", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knowledge.js","sourceRoot":"","sources":["../../src/resources/knowledge.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG
|
|
1
|
+
{"version":3,"file":"knowledge.js","sourceRoot":"","sources":["../../src/resources/knowledge.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsdxB,CAAC;AAEF,MAAM,UAAU,yBAAyB,CAAC,MAAiB;IACzD,MAAM,CAAC,gBAAgB,CACrB,WAAW,EACX,2BAA2B,EAC3B;QACE,KAAK,EAAE,gCAAgC;QACvC,WAAW,EACT,2EAA2E;YAC3E,gFAAgF;YAChF,uEAAuE;YACvE,gCAAgC;QAClC,QAAQ,EAAE,eAAe;KAC1B,EACD,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;QACd,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;KAC1E,CAAC,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deletes the files in `dir` ending in `extension` whose last modification is
|
|
3
|
+
* older than `days`. Files with other extensions are left alone, and a file
|
|
4
|
+
* it cannot read or delete is skipped with a warning. `scope` names the
|
|
5
|
+
* caller in log lines. A `days` that is not a positive number deletes
|
|
6
|
+
* nothing.
|
|
7
|
+
*/
|
|
8
|
+
export declare function pruneOlderThan(dir: string, extension: string, days: number, scope: string): Promise<void>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { readdir, stat, unlink } from "node:fs/promises";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
import { log } from "./logger.js";
|
|
4
|
+
/**
|
|
5
|
+
* Deletes the files in `dir` ending in `extension` whose last modification is
|
|
6
|
+
* older than `days`. Files with other extensions are left alone, and a file
|
|
7
|
+
* it cannot read or delete is skipped with a warning. `scope` names the
|
|
8
|
+
* caller in log lines. A `days` that is not a positive number deletes
|
|
9
|
+
* nothing.
|
|
10
|
+
*/
|
|
11
|
+
export async function pruneOlderThan(dir, extension, days, scope) {
|
|
12
|
+
if (!Number.isFinite(days) || days <= 0) {
|
|
13
|
+
log.warn(scope, `Not pruning ${dir}: retention must be a positive number of days, not ${days}`);
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const cutoff = Date.now() - days * 24 * 60 * 60 * 1000;
|
|
17
|
+
const files = await readdir(dir);
|
|
18
|
+
for (const file of files) {
|
|
19
|
+
if (!file.endsWith(extension))
|
|
20
|
+
continue;
|
|
21
|
+
const filePath = join(dir, file);
|
|
22
|
+
try {
|
|
23
|
+
const info = await stat(filePath);
|
|
24
|
+
if (info.mtimeMs < cutoff) {
|
|
25
|
+
await unlink(filePath);
|
|
26
|
+
log.info(scope, `Pruned expired file ${file}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
catch (err) {
|
|
30
|
+
// A file that cannot be read or deleted is skipped and logged by name.
|
|
31
|
+
log.warn(scope, `Could not prune ${file}: ${err}`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=retention.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retention.js","sourceRoot":"","sources":["../src/retention.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,GAAW,EACX,SAAiB,EACjB,IAAY,EACZ,KAAa;IAEb,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,CAAC;QACxC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,eAAe,GAAG,sDAAsD,IAAI,EAAE,CAAC,CAAC;QAChG,OAAO;IACT,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IACvD,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;IAEjC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;YAAE,SAAS;QACxC,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACjC,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC;YAClC,IAAI,IAAI,CAAC,OAAO,GAAG,MAAM,EAAE,CAAC;gBAC1B,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACvB,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,uBAAuB,IAAI,EAAE,CAAC,CAAC;YACjD,CAAC;QACH,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,uEAAuE;YACvE,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,mBAAmB,IAAI,KAAK,GAAG,EAAE,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/dist/settingsReport.d.ts
CHANGED
|
@@ -5,6 +5,24 @@ export interface SettingsReportOptions {
|
|
|
5
5
|
section?: PlanSettingSection;
|
|
6
6
|
/** Two-plan reports only: leave out the rows whose values match. */
|
|
7
7
|
differencesOnly?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* For a document that includes this report: leave out the title, the
|
|
10
|
+
* count and the introduction, and nest every heading one level deeper.
|
|
11
|
+
*/
|
|
12
|
+
embedded?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* List only the settings in effect in these topics, by title, in report
|
|
15
|
+
* order: no settings left unused by the plan's choices and no stored paths
|
|
16
|
+
* without a name. An empty list filters nothing.
|
|
17
|
+
*/
|
|
18
|
+
topics?: readonly string[];
|
|
19
|
+
/**
|
|
20
|
+
* The calendar year of plan year 1. Points on the plan timeline, such as
|
|
21
|
+
* the bond allocation, then read as calendar years instead of plan years.
|
|
22
|
+
*/
|
|
23
|
+
firstPlanYear?: number;
|
|
24
|
+
/** Stored paths of settings to leave out, from topic rows and "Other stored settings". */
|
|
25
|
+
omit?: readonly string[];
|
|
8
26
|
}
|
|
9
27
|
/**
|
|
10
28
|
* The settings of one plan, or of two plans side by side, as a markdown
|
|
@@ -32,3 +50,11 @@ export declare function words(code: string): string;
|
|
|
32
50
|
export declare function parseEnabledBy(enabledBy: string | undefined): RowCondition[];
|
|
33
51
|
/** A stored value in the form the app shows it, scaled by its units. */
|
|
34
52
|
export declare function formatValue(value: unknown, units?: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* A point's x on the plan timeline as its calendar year: plan year 1 is
|
|
55
|
+
* `firstPlanYear`, per the data model note on bondSettings.allocation. Any
|
|
56
|
+
* other x, or no `firstPlanYear`, is returned unchanged.
|
|
57
|
+
*/
|
|
58
|
+
export declare function calendarYear(x: unknown, firstPlanYear: number | undefined): unknown;
|
|
59
|
+
/** A markdown table cell: pipes escaped, line breaks flattened. */
|
|
60
|
+
export declare function cell(text: string): string;
|