Skip to content

Connect every model page to the microsimulation scoring pipeline - #142

Open
vahid-ahmadi wants to merge 4 commits into
mainfrom
connect-models-to-microsim
Open

Connect every model page to the microsimulation scoring pipeline#142
vahid-ahmadi wants to merge 4 commits into
mainfrom
connect-models-to-microsim

Conversation

@vahid-ahmadi

Copy link
Copy Markdown
Contributor

Why

An audit found the micro→macro plumbing already exists in integration/ (score_reform with the OBR static-costing bridge and the two-way OLG coupling), but the website barely tells that story: no pipeline visual anywhere, /pe never linked to /score, /olg's body never mentioned the microsim, and /us-hank had zero cross-model links.

What

  • Pipeline strip (reform → pe-microsim → obr-macro → scored result) as a small reusable .pipeline component, shown on /score and inside the /models scoring Q&A.
  • /pe declares itself the hub of the suite, describes the og+microsim feedback loop, and links to /score.
  • /olg body now explains the two-way coupling: tax functions from PolicyEngine microdata in, og+microsim dynamic scoring back out.
  • /svar, /frb-us, /us-hank callouts now say explicitly why no reform bridge exists and route to /pe and /score — honest "not bridged, here's why" instead of silence.
  • Homepage gains a fourth "Score a reform" strategy card (2×2 grid).
  • /connect gains the pe-macro score CLI card and a /score link.
  • /economy ties the baseline data to what scored reforms perturb.

All site_contract.py checks and site_nav.py pass.

🤖 Generated with Claude Code

- Pipeline strip (reform → pe-microsim → obr-macro → score) on /score and /models
- /pe declares itself the hub and links to /score
- /olg body now describes the two-way micro coupling incl. og+microsim
- /svar, /frb-us, /us-hank callouts route to /pe and /score with the
  reason no bridge exists
- Homepage gains a Score-a-reform strategy card; /connect gains the
  score CLI command and a /score link; /economy ties the baseline to
  scoring and the forecast record

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
macromod Ready Ready Preview Aug 1, 2026 5:19pm

Request Review

vahid-ahmadi and others added 2 commits August 1, 2026 00:01
- score.py picks the newest boe-svar round instead of hardcoding 2026-07-21;
  §03 names the displayed round and explains the surge-sample mean reversion
  behind the sticky CPI path; §02 states the error-sign convention
- us-hank: 'It cannot' callout becomes a bullet list
- connect: centered client tabs, full-width hero lede, compact Python picker
- forecasts charts widen to 1080px

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Integration:
- EconomicAssumptions.from_frbus_result / from_hank_result: annual-mean
  wage(+hours/labor) deviations become a pre-tax earnings factor with the
  OG overlay's double-counting invariant and plausibility gates
- frbus_shock_incidence, hank_shock_incidence, svar_inflation_incidence:
  reform-free automatic-stabilizer incidence via _pe_population_incidence;
  score_reform refusals unchanged, now pointing at the incidence tools
- hank_shock surfaces the pre-tax real wage w and labor N IRFs
- svar_inflation_incidence prices the SVAR-vs-EFO CPI gap through a
  curated slice of CPI-uprated benefits (validated run: +0.94pp gap ->
  GBP 0.09bn in 2028, gains in deciles 2-5)
- frbus_payload/hank_payload two-process escape hatches (8GB hosts
  jetsam-kill the combined solve+microsim process); CLI flags to match
- 30 unit tests; full suite 245 passed

Website:
- DEFINE-UK added as model 07 (experimental, pre-validation; unlicensed
  upstream run unmodified at a pinned commit via PolicyEngine/define-uk-model)
- /svar, /frb-us, /us-hank gain incidence examples; /pe and /score
  describe the macro-to-micro return direction; counts six -> seven

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ero steady state raises instead of omitting; stale connect comment

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant