Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4a5df13
Add NEF deck on the OBR macroeconomic model
vahid-ahmadi Nov 18, 2026
2a617f1
NEF deck: tighten wording and the demo note
vahid-ahmadi Nov 18, 2026
452b375
NEF deck: Thibault's review and our answer, live site slide, public deck
vahid-ahmadi Nov 18, 2026
d5efdc8
NEF deck: drop the PolicyEngine intro slide
vahid-ahmadi Nov 18, 2026
5e7bba9
NEF deck: drop the why-an-open-model slide
vahid-ahmadi Nov 18, 2026
9f4616f
NEF deck: restore layerStatus, removed with the why-open slide
vahid-ahmadi Nov 18, 2026
3d602dc
NEF deck: icons everywhere, shorter text, one style per component
vahid-ahmadi Nov 18, 2026
30e21d4
NEF deck: clearer story, section dividers and a tracker, fewer slides
vahid-ahmadi Nov 18, 2026
84986d1
NEF deck: investment stats use the stat style, MAPE labels, notes timing
vahid-ahmadi Nov 18, 2026
d269ff0
NEF deck: drop the forecast record slide and the part 2 divider
vahid-ahmadi Nov 18, 2026
d03d8cd
NEF deck: agenda as a five-stop timeline; entrance animation on every…
vahid-ahmadi Nov 18, 2026
9aef690
NEF deck: one composition per slide, builds, plain words, 23 slides
vahid-ahmadi Nov 18, 2026
416bf31
NEF deck: income-tax time series, agenda sequence, fit guard by layout
vahid-ahmadi Nov 18, 2026
732ac79
NEF deck: income-tax chart follows the slide's base size
vahid-ahmadi Nov 18, 2026
8549b42
Viewer: opt-in hideControlsHint; NEF deck hides the hint over its logo
vahid-ahmadi Nov 18, 2026
36eb90b
NEF deck: review pass on wording, sourcing and two figures
vahid-ahmadi Nov 18, 2026
840f936
NEF deck: say whose wording slide 6 uses
vahid-ahmadi Nov 18, 2026
e8e5e59
NEF deck: move to OBR main 0e44ec8 (after #74 and #75)
vahid-ahmadi Nov 19, 2026
f94a7ae
NEF deck: header and module map follow the viewport
vahid-ahmadi Nov 19, 2026
c8fe527
NEF deck: header sizes exact at 1920x1080; live-site note
vahid-ahmadi Nov 19, 2026
329138f
NEF deck: slide 19, the unpublished AI study as an example of the pla…
vahid-ahmadi Nov 19, 2026
9eb8e44
NEF deck: space the tags above slide 19's embed
vahid-ahmadi Nov 19, 2026
ba97b9e
NEF deck: Expand fills the screen on both live embeds (slides 17, 19)
vahid-ahmadi Nov 19, 2026
f1e60a0
NEF deck: drop the PolicyEngine-costing footnote from the income-tax …
vahid-ahmadi Nov 19, 2026
b19ae2d
Merge main into vahid/nef-2026-obr-macro
vahid-ahmadi Nov 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/slideshows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ import { autumnBudget2026Config } from "@/slideshows/autumn-budget-2026/config";
import { prop40Webinar2026Config } from "@/slideshows/prop40-webinar-2026/config";
import { appam2026Config } from "@/slideshows/appam-2026/config";
import { studentDebt2026Config } from "@/slideshows/student-debt-2026/config";
import { nef2026Config } from "@/slideshows/nef-2026/config";

export const slideshows: SlideshowConfig[] = [
nef2026Config,
bist2026Config,
appam2026Config,
prop40Webinar2026Config,
Expand Down
145 changes: 145 additions & 0 deletions slideshows/nef-2026/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# New Economics Foundation meeting, November 2026

24 slides at `/slides/nef-2026`, for a meeting with the New Economics
Foundation (NEF) on working together on the OBR macroeconomic model. The deck is
public. Slide 17 embeds the in-development macro site, and slide 19 the
unpublished AI study ("AI and the UK economy: Beyond the forecast", a public
Vercel preview; provisional)
(policyengine-macro.vercel.app) live; the site allows this deck's origins to
frame it (PolicyEngine/macro#276). The exact meeting date isn't fixed, so `config.ts` uses
`2026-11-01`, which renders as "November 2026"; change it, and the footer,
once the date is set.

Five parts, after a title and an agenda. Each part opens with a section slide,
and every slide's header carries a tracker of the five parts:

1. The OBR model in Python (slides 3–7): what the OBR publishes and what we
built, layer by layer; the model's 12 modules in three groups, and how
they connect; Thibault's review checked against the code; how our build runs, with three example equations
2. How well it fits (slide 8): anchored and free-running, on one slide, with no divider
3. Policy scenarios and limits (slides 9–14): results against the OBR's
published multipliers, income tax, investment, Bank Rate, and the known
limits and whose they are
4. The macro platform (slides 15–20): the seven models, the site live, using
it from Claude, an example in use (the unpublished AI study), and one reform taken from the
microsimulation to GDP. Every slide of this part is marked "Preview, not
yet launched"
5. Working together (slides 21–23): collaboration areas and questions for NEF

On the slides a simulated change is a "scenario"; `shock` stays in code
identifiers and in the notes where it is the argument's name.

It follows PolicyEngine's July 2025 deck for NEF, which covered the
tax-benefit microsimulation (`NEF x PolicyEngine.pptx` in the private
`PolicyEngine/obr-presentation` repo, commit `f4f819a7`; it isn't linked on
the slides).

## Editing and presenting

- `config.ts` controls the slide order, the build steps and meeting metadata.
Twelve slides reveal step by step when presenting (`builds`), 44 steps in
all; a PDF export shows each slide once, complete (`exportBuilds: 1`).
The viewer's counter shows the slide, not the step (`countSlides: true`, an
opt-in in `lib/types.ts`; other decks still count steps).
- `content.ts` holds every number on the slides, each with its source pinned
to a commit, plus the tables and lists.
- `slides/index.tsx` contains the slides and the deck's components (one list,
one card, one stat, one table style; every item takes a Tabler icon). Each
slide is one composition: nothing sits in a separate strip or footnote row
under it, and detail that doesn't fit goes to the speaker notes. The `agenda` list there drives the agenda slide, the
section slides and the header tracker. One slide points at another by
number (`incomeTaxSlideNumber`): update it if
the order in `config.ts` changes.
- `slides/deck.module.css` sizes the slide body in em of a base that follows
the viewport (the smaller of its height and width), and scales the header
(tracker, title, subtitle) with the viewport too, so a slide keeps its
proportions at 1920x1080, 1440x810 and 1280x720; the 1920x1080 sizes are
the shared components' own. A
slide's `scale` enlarges a sparse body.
- `slides/BuildScope.tsx` puts the current build step on the slide body. An
element with `data-step="N"` stays hidden, keeping its place, until step N,
then animates in (`deck.module.css`); an export shows every step. The same
stylesheet holds the entrance stagger and the motion inside figures (bars
grow, marks slide along their track, the two hero numbers count up), all
off under `prefers-reduced-motion`.
- `slides/SiteEmbed.tsx` frames the live site, with buttons for its main
pages, Expand and New tab (copied from autumn-budget-2026's `DashboardEmbed`).
- `slides/figures.tsx` draws the multiplier dot plot, the income-tax path,
the Bank Rate bars and the module map (HTML, CSS and SVG, no chart
library), and renders the example equations with KaTeX.
- `module-links.json` holds the links between the model's modules, and
`module-links.py` is the script that counts them from the OBR's listing:
`python module-links.py /path/to/obr-macroeconomic-model module-links.json`.
For each pair of modules it counts the equations in the target module whose
right-hand side uses a variable the source module determines. The script
also defines the three groups the slide draws (demand: consumption,
investment and inventories, exports, imports, GDP and output; supply and
prices: labour market, prices and wages, North Sea oil; income and sectors:
income accounts, public sector, balance of payments, finance and balance
sheets) and counts the same thing between groups, an equation counting
once per source group. The slide shows the six group-to-group counts as
arrows, and four module-level links inside the demand group, dashed.
- `SPEAKER-NOTES.md` gives the presenter track, the detail behind each slide,
its sources (the slides carry no source line) and what not to claim. It
also holds the live-demo checklist and the next steps to propose, which
are no longer slides.

Run `bun install --frozen-lockfile`, then
`bun dev`. Open
`http://localhost:3000/slides/nef-2026`. Arrow keys, Page Up and Page Down
(a clicker) move between slides. Export with
`bun run export nef-2026 /path/to/output.pdf`.

## Evidence

Checked on 19 November 2026:

- `PolicyEngine/obr-macroeconomic-model` main
`0e44ec87681eba0a1f61d634875f5431ac2344c8`, after #70 (opt-in VAT price
pass-through and the capital-spending investment closure), #71 (household
taxes held on their data path), #72 (docs and caveats), #74 (the forecast
16+ population on the EFO-implied path, so anchored unemployment is the
EFO's) and #75 (the government-consumption shock carries its cash cost, so
borrowing moves). Every OBR-model number comes from this repo: the README
limits table, `docs/calibration_scorecard.md`, `docs/demo.md`,
`results/demo_shocks.json` (model commit `a822045`, the #75 branch, Actions
run 44394699022; demo.md says to regenerate it after the merge) and
`results/site_figures.json`. The
module counts and links on slide 5 and the example equations on
slide 7 come from
the OBR's listing in that repo
(`obr_macro/_data/obr_model_code_october_2025.txt`) and what
`obr_macro/transpiler.py` reads and emits for it; `content.ts` records how
the listing's groups map to the 12 modules.
- `PolicyEngine/macro` main `2e5dffe7a2b35d189c8df60ff2012abbdb675367`, after
#275: the README model table, the model comparison
(`models/index.html`), the Use page (`connect/index.html`), and the tool counts
(28 `@mcp.tool` functions in `mcp_server.py`, 27 `@main.command` functions
in `cli.py`; the README's own count of 26 tools is stale).

Where the two repos disagree, the model repo wins: at `2e5dffe7` the macro
site's OBR page still quotes the pre-#71 free-running GDP error (4.25%) and
calls capital spending dead without the #70 investment-closure route. On 19
November the live site's OBR and OBR validation pages still showed the
pre-#74 figures (anchored 0.44%, unemployment drifting); slide 17's notes
warn the presenter.

What the deck deliberately does not claim:

- the free-running GDP error (4.24%) is not an OBR forecast error, and the
anchored error (0.24%) is not forecast skill;
- anchored unemployment matching the EFO is by construction, not a forecast:
no scenario moves unemployment;
- the held-add-factor forecast fit (0.63% GDP) is left off the slides: the
forecasting framework calls its GDP line "close to circular";
- no DEFINE-UK results or multiplier: which one to headline is an open
decision;
- no result numbers on the Claude slide: it shows the steps and the tools;
- no poverty figures: the platform's population tool returns decile changes and
winners and losers, not poverty rates (slide 19 names poverty as something
the microsimulation itself reports, with no number);
- no views or plans attributed to Thibault. On slide 6 the line under each
headline point is the heading `docs/published_model_review.md` gives it
(H1, R1, V2). The three card titles are our short names for his headline
points; they are not from that write-up and have not been checked with
him.
Loading
Loading