# WSUP Budget Simulator, My Province: scenario guide

My Province ([the Budget Simulator](./)) explores Nova Scotia's 2026–27 budget. It is an independent estimate, not a Government of Nova Scotia publication or official costing. Read the [methodology](./methodology.html) for data sources, model assumptions, and limitations. Amounts in exported results are Canadian dollars; rates and spending changes below are percentages.

The ranges and preset list below describe the live `/budget/` page. The standalone `/canvas/` source currently has older limits for some levers; consult its `clampState` implementation if using that build.

## Link formats

A readable scenario link can set a preset, then override individual levers:

```text
/budget/?preset=s3&hst=16&dept.advanced=-2
/budget/?guard=1&hst=16&dept.advanced=-5&prog.education%3Achildcare=3
```

The query string is the only way a scenario is addressed. There is no fragment form, so the server sees the scenario and can describe it: `/budget/` serves the page with Open Graph tags for that scenario, and `/budget/card.png` takes the same query and draws the share card.

The Share button and the address bar write the canonical form. It lists only the levers that differ from the tabled budget, in a fixed order, with a preset already expanded into its levers, followed by `model` and `data` (the revenue model version, and the fiscal year plus a hash of the reference data), and `lang=fr` for French:

```text
/budget/?hst=16&dept.advanced=-5&model=2.4.0&data=2026-27.2b5607a5
```

`model` and `data` record what produced a link. They are not checked: a link is always read under the current model and data. `window.budgetCanvas.canonicalSearch(reference, revenueModel, state, lang)` writes the canonical query and `readableState(reference, revenueModel, search)` reads any query (canonical or hand-written) into the same normalized state. `lang` and unrelated query parameters are kept in the address bar.

The query starts from the tabled budget, or from `preset` if supplied. Explicit parameters override the preset. Invalid IDs and values are ignored and displayed on the page; numeric values outside model limits are clamped and displayed. `guard=1` enables consultation guardrails; `guard=0` disables them. A preset may set its own guardrail value. Use decimal points, not locale commas, for single numeric parameters.

| Parameter | Meaning and range |
| --- | --- |
| `hst` | Combined HST rate, 5–25%. Default 14%. |
| `citG`, `citS` | Corporate general rate 0–25%, small business rate 0–10%. Defaults 14% and 1.5%. |
| `pit` | Five personal income tax rates, comma separated, each 0–30%. |
| `reverseCredits`, `reverseIndexation` | Reverse the 2025 personal-credit expansion and income-tax indexation using published 2026–27 costs; 0/1, default 0. Direct API calls take booleans. |
| `bpa` | Basic personal amount, $0–$50,000. Default $11,932. |
| `nb.on`, `nb.threshold`, `nb.rate` | Optional new top bracket: 0/1, $160,000–$5,000,000, and 0–40%. |
| `dept.ID` | Department spending change against its baseline. With guardrails off: −100% to +300%; with guardrails on: each department’s own limits. Locked departments cannot change. |
| `prog.ID` | Program spending change against its baseline. With guardrails off: −100% to +300%; with guardrails on: −5% to +5%. Locked programs cannot change. |
| `other.ID` | Assumed change to another provincial revenue stream, −50% to +50%. These are estimates, not calculated from tax rates. |
| `setting.ID` | Revenue model assumptions. Values use the same bounds as the Assumptions panel; boolean settings use 0/1. |

Department and program adjustments add against their respective baseline amounts. Find stable `deptId`, `programId`, and revenue `itemKey` values in [reference data](./data/reference.json). Program IDs contain a colon, so URL encode them. Spending changes apply annually; the `months` model setting prorates revenue changes.

Saved scenario IDs are `undo2025`, `a`, `d`, `s1`, `s2`, `s25`, `s3`, `s35`, `l1`, `l2`, `l3`, `qc`, `nl`, `pei`, `nb`, `mb`, `sk`, `on`, `bc`, `ab`, and `dk`. Preset contents may evolve, so a shared link always spells out its levers instead of naming a preset. These scenario presets differ from the response assumptions shown in the Assumptions panel.

## JavaScript API

After data loads, `window.budgetCanvas.app` provides the current page state:

```js
const api = window.budgetCanvas.app;
api.getState();                   // normalized lever state
api.getResult();                  // JSON scenario, results, warnings, sources
api.listPresets();                // IDs, groups, and exact lever states
api.setLevers({hst: 16, dept: {health: -2}}); // updates page, history, URL
api.exportScenario('json');       // object
api.exportScenario('csv');        // string
```

`setLevers` applies an atomic patch to the current scenario. Supply `preset` to replace the current scenario before applying other fields. Direct JavaScript calls require finite numeric values, actual booleans for guardrails and boolean settings, and valid new-bracket field names. It rejects invalid IDs or values before changing the page and returns the effective state, scenario, and clamping details. The pure helpers on `window.budgetCanvas` include `defaultState`, `stateFromPreset`, `clampState`, `compute`, `encodeState`, `decodeState`, `readableState`, `scenarioJson`, and `scenarioCsv`; calculation helpers need the loaded reference data and `window.revenueModel`.

Where WebMCP is available, the page registers `set_levers`, `get_result`, `list_presets`, and `export_scenario` with JSON input schemas. These tools operate on the same visible scenario. WebMCP requires a compatible browser and a visit to the page; the JavaScript API and links work without it.

## Reverse the 2025 tax cuts

`/budget/?preset=undo2025` restores 15% HST and reverses the personal-credit expansion and income-tax indexation introduced in 2025. It starts from the tabled budget with spending unchanged. Each reversal can be undone separately; the two income-tax switches are also in the income-tax drawer. The energy rebate and small-business measures remain in place.

HST uses the live revenue model and its selected behavioural response. The income-tax changes add the published 2026–27 costs: $122 million for extending enhanced basic personal, age, spousal and eligible-dependant amounts to all eligible filers, and $115.8 million for indexation including its 2026 effect. Source: [Budget 2026–27, printed pages 31–32](https://www.novascotia.ca/sites/default/files/documents/6-4173/ftb-bfi-046-en-budget-2026-2027.pdf#page=33). These fixed additions are prorated by months in effect, included in exports and sensitivity totals, and do not change with elasticities or the income base. No additional behavioural, household-spending or interaction effects are calculated for them. Additional PIT rate/BPA edits are costed against the existing 2026 schedule; combining them with these fixed additions is an approximation.

The preset does not set every filer’s BPA to $8,744: lower earners already had income-tested supplements before 2025. Nor does it claim to reproduce the government’s $547.1 million static package total: its HST component uses this simulator’s separate model and reference snapshot.
