diff --git a/CHANGELOG.md b/CHANGELOG.md index c9e7a2b25..b6da16711 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,19 @@ heading here; `tests/test_repo_hygiene.py` asserts that they do. ## [Unreleased] +### Site quality pass: titles, link previews, contrast, a pinned-commit chip and new checks + +No published number changes. + +- **Pinned commit on every model page.** The hero strip on the four tabs of the OBR emulator, BoE SVAR, FRB/US and US HANK now carries a chip with the model commit this repository installs, linking the model repository at that commit. `tools/model_hero.py` reads it from the `[models]` extra in `integration/pyproject.toml`, and `tests/test_model_pins.py` fails if a page shows, or links a source file at, any other commit (one deliberate link to the pre-refresh SVAR commit is listed there). The microsimulation, OG-UK and DEFINE-UK are not pinned by commit in that file and get no chip. +- **Page titles.** The UK and US topic pages shared a title in four pairs ("Growth — PolicyEngine Macro" twice, and likewise inflation, jobs and reform). Each now leads with the country, as its heading does: "UK growth", "US growth". +- **Link previews.** The 12 release digests and the release-notes index had no Open Graph tags, so a shared link showed a bare URL. They now carry the same set as the rest of the site. +- **Contrast.** Chart source lines (`.vc-source`) and the "No" pills in the `/models` comparison table used the faint text colour on a grey surface, 4.39:1 against the 4.5:1 small text needs. Both use the muted text colour now (about 7:1). In dark mode the primary buttons ("Run a hosted model", "Run a model") set white text on the dark-mode primary teal, 2.58:1; they now use `--primary-foreground`, the token paired with that teal (about 7.5:1). Light mode is unchanged. +- **Source links.** Two links on `/svar/validation` (the unemployment-satellite validation file and the band decision note) pointed at `main`; they now point at the pinned commit `17f5d82`, where both files are byte-identical to `main` today. +- **`/models/compare`, two corrections from the audit in #293** (results file `2026-11-19.3`; no verdict changes). FRB/US spending row: a 1% rise in federal purchases is 0.045% of GDP, not 0.046% (`egfe` is 4.51% of `xgdp` in 2026Q3 in the October 2026 LONGBASE at `162cfe6`), so the impact ratio the page derives from it is 0.83, not 0.81; the stored GDP path is untouched. BoE SVAR row: the response no longer "builds" to h = 8. It is there on impact and roughly flat to h = 8 (−0.39% per 25bp on impact and −0.42% at h = 8 in the audit's 6,000-draw run at the pin). The row's medians still come from the 600-draw fixture. +- **Checks.** `tests/test_site_integrity.py` gains six structural tests: unique page titles, link-preview metadata, unique ids within a page, labelled form controls, header cells on every table, and `rel="noopener"` on new-tab links. `tools/check_external_links.py` checks every external link at a polite rate; it is a manual tool, not a CI gate, because its result depends on other servers. +- **Docs.** `CONTRIBUTING.md` and `tests/README.md` give the current page count (71) and describe the new script, test file and tool. + ### Model pages: provenance review of the SVAR, FRB/US, HANK and DEFINE-UK pages Every change was checked against the model repository at the pinned commit; no model was run. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ca37ad504..593265d67 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,7 +3,7 @@ Thanks for helping. This repository holds three separable things, and each has its own rules: -- **the site** — 84 static HTML pages, no build step, many of them *generated* +- **the site** — 71 static HTML pages, no build step, many of them *generated* - **the integration layer** (`integration/`) — the `pe-macro` CLI and the MCP server, published as the `policyengine-macro` package - **two append-only archives** — `data/vintages/` and `forecasts/rounds/` @@ -48,6 +48,13 @@ cd integration && pytest tests -q # integration layer (fast) cd integration && pytest tests -q --runslow # + real model solves (slow) ``` +External links are checked by hand, because the answer depends on other +people's servers: + +```bash +python3 tools/check_external_links.py # every http(s) link, politely +``` + And the two contract scripts, which are checks rather than tests and are what `site-provenance.yml` finishes with: @@ -86,6 +93,7 @@ hand-written and part generated. Edit outside the markers freely; never inside. | `forecasts/ingest_outturns.py` | `forecasts/outturns.json` — the data store mapped onto the variables the models forecast. Appends, never edits. | `forecast-archive.yml` | | `forecasts/nowcast.py` | generates a forecast round from the hosted MCP server and archives it *before* the outturn exists. No `--check`; it is scheduled (`nowcast-round.yml`) and refuses far more often than it writes. | scheduled only | | `validation/figures/make_charts.py` | every inline `` on `obr/validation`, `svar/validation`, `frb-us/validation` and `us-hank/validation`. | `site-provenance.yml` | +| `tools/model_hero.py` | the hero strip on every model page (`
`): icon, kind line, title, lede and the fact chips, **including the pinned-commit chip read from the `[models]` extra in `integration/pyproject.toml`**. Re-run it after a re-pin. | `site-tests.yml` (`tests/test_model_pins.py`) | | `assets/make_hero.py` | the `hero-fan` inline SVG in the homepage hero. | `site-provenance.yml` | | `assets/make_current_outlooks.py` | `obr-current-outlook` on `obr/methodology/index.html` and `boe-current-outlook` on `svar/index.html`. | `site-provenance.yml` | | `olg/figures/make_showcase.py` | the `olg-stats` headline table on `olg/index.html`. | `site-provenance.yml` | diff --git a/economy/topics.py b/economy/topics.py index 2d4fab5a4..72411772d 100644 --- a/economy/topics.py +++ b/economy/topics.py @@ -3193,18 +3193,22 @@ def page(topic: dict) -> str: f'
', ) short = SHORT_LEDES.get((topic["country"], slug)) + # The same words as the

: "UK growth", "US growth". The bare topic + # title gave four UK/US pairs one each, so two browser tabs or two + # search results could not be told apart. + page_title = f'{topic["country"].upper()} {topic["title"][0].lower() + topic["title"][1:]}' head = f"""<!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> -<title>{esc(topic["title"])} — PolicyEngine Macro +{esc(page_title)} — PolicyEngine Macro - + @@ -3224,7 +3228,7 @@ def page(topic: dict) -> str: body = f"""
-

{topic_icon(slug, 24)}{esc(topic["country"].upper())} {esc(topic["title"][0].lower() + topic["title"][1:])}

+

{topic_icon(slug, 24)}{esc(page_title)}

{esc(short) if short else esc(topic["heading"])}

diff --git a/economy/topics/growth/index.html b/economy/topics/growth/index.html index 2eb990340..789b2bf2e 100644 --- a/economy/topics/growth/index.html +++ b/economy/topics/growth/index.html @@ -3,13 +3,13 @@ -Growth — PolicyEngine Macro +UK growth — PolicyEngine Macro - + diff --git a/economy/topics/inflation/index.html b/economy/topics/inflation/index.html index efbf6b9f5..daca2fba0 100644 --- a/economy/topics/inflation/index.html +++ b/economy/topics/inflation/index.html @@ -3,13 +3,13 @@ -Inflation — PolicyEngine Macro +UK inflation — PolicyEngine Macro - + diff --git a/economy/topics/jobs/index.html b/economy/topics/jobs/index.html index dcb008e57..49a27c5b7 100644 --- a/economy/topics/jobs/index.html +++ b/economy/topics/jobs/index.html @@ -3,13 +3,13 @@ -Jobs — PolicyEngine Macro +UK jobs — PolicyEngine Macro - + diff --git a/economy/topics/public-finances/index.html b/economy/topics/public-finances/index.html index acf450a29..ae0d8b83a 100644 --- a/economy/topics/public-finances/index.html +++ b/economy/topics/public-finances/index.html @@ -3,13 +3,13 @@ -Public finances — PolicyEngine Macro +UK public finances — PolicyEngine Macro - + diff --git a/economy/topics/rates/index.html b/economy/topics/rates/index.html index 95f4694bc..70978cffb 100644 --- a/economy/topics/rates/index.html +++ b/economy/topics/rates/index.html @@ -3,13 +3,13 @@ -Rates and gilts — PolicyEngine Macro +UK rates and gilts — PolicyEngine Macro - + diff --git a/economy/topics/reform/index.html b/economy/topics/reform/index.html index 27a1d8a8a..32c7c4b66 100644 --- a/economy/topics/reform/index.html +++ b/economy/topics/reform/index.html @@ -3,13 +3,13 @@ -Tax and benefit reform — PolicyEngine Macro +UK tax and benefit reform — PolicyEngine Macro - + diff --git a/economy/us/topics/growth/index.html b/economy/us/topics/growth/index.html index 34d7434f5..00780e6b7 100644 --- a/economy/us/topics/growth/index.html +++ b/economy/us/topics/growth/index.html @@ -3,13 +3,13 @@ -Growth — PolicyEngine Macro +US growth — PolicyEngine Macro - + diff --git a/economy/us/topics/inflation/index.html b/economy/us/topics/inflation/index.html index 31df17d56..a17e4fbb4 100644 --- a/economy/us/topics/inflation/index.html +++ b/economy/us/topics/inflation/index.html @@ -3,13 +3,13 @@ -Inflation — PolicyEngine Macro +US inflation — PolicyEngine Macro - + diff --git a/economy/us/topics/jobs/index.html b/economy/us/topics/jobs/index.html index 9b3154709..a581773bd 100644 --- a/economy/us/topics/jobs/index.html +++ b/economy/us/topics/jobs/index.html @@ -3,13 +3,13 @@ -Jobs — PolicyEngine Macro +US jobs — PolicyEngine Macro - + diff --git a/economy/us/topics/rates/index.html b/economy/us/topics/rates/index.html index c3f35e6f7..f1380c88f 100644 --- a/economy/us/topics/rates/index.html +++ b/economy/us/topics/rates/index.html @@ -3,13 +3,13 @@ -Rates and Treasuries — PolicyEngine Macro +US rates and Treasuries — PolicyEngine Macro - + diff --git a/economy/us/topics/reform/index.html b/economy/us/topics/reform/index.html index d69502b98..fe872cfe7 100644 --- a/economy/us/topics/reform/index.html +++ b/economy/us/topics/reform/index.html @@ -3,13 +3,13 @@ -Tax and benefit reform — PolicyEngine Macro +US tax and benefit reform — PolicyEngine Macro - + diff --git a/frb-us/code/index.html b/frb-us/code/index.html index 0091ec45b..70f53db92 100644 --- a/frb-us/code/index.html +++ b/frb-us/code/index.html @@ -52,6 +52,7 @@

FRB/US

  • Replicates the Fed’s solver
  • Hosted
  • Quarterly
  • +
  • 162cfe6
  • diff --git a/frb-us/index.html b/frb-us/index.html index be7b05f36..28aeba0c3 100644 --- a/frb-us/index.html +++ b/frb-us/index.html @@ -52,6 +52,7 @@

    FRB/US

  • Replicates the Fed’s solver
  • Hosted
  • Quarterly
  • +
  • 162cfe6
  • diff --git a/frb-us/methodology/index.html b/frb-us/methodology/index.html index dfb32266e..87ff61099 100644 --- a/frb-us/methodology/index.html +++ b/frb-us/methodology/index.html @@ -53,6 +53,7 @@

    FRB/US

  • Replicates the Fed’s solver
  • Hosted
  • Quarterly
  • +
  • 162cfe6
  • diff --git a/frb-us/validation/index.html b/frb-us/validation/index.html index d50de4648..2e527bdf7 100644 --- a/frb-us/validation/index.html +++ b/frb-us/validation/index.html @@ -52,6 +52,7 @@

    FRB/US

  • Replicates the Fed’s solver
  • Hosted
  • Quarterly
  • +
  • 162cfe6
  • diff --git a/models/compare/index.html b/models/compare/index.html index 9bae3b2ca..fffa0ce42 100644 --- a/models/compare/index.html +++ b/models/compare/index.html @@ -49,7 +49,7 @@

    Same question, every model

    Models are in the hub order, not ranked. The sourced benchmark sits in the first row; each model row gives its peak effects and a verdict, and Details holds the run, full units and caveats.

    How to read the verdicts -

    Each verdict starts with one of six words: plausible, off, questionable, unresolved, not tested or no instrument; some add a qualifier (such as “off, sign right”), and each carries its reason and the open issue. These words grade one experiment; each model’s overall standing uses the status vocabulary on its model card. Results file version 2026-11-19.2; how it is checked and regenerated.

    +

    Each verdict starts with one of six words: plausible, off, questionable, unresolved, not tested or no instrument; some add a qualifier (such as “off, sign right”), and each carries its reason and the open issue. These words grade one experiment; each model’s overall standing uses the status vocabulary on its model card. Results file version 2026-11-19.3; how it is checked and regenerated.

    Where and when each row was run

    The battery was first put on 6 Nov 2026; each row’s Details give its exact call and commit.

      @@ -73,8 +73,8 @@

      Same question, every model

      Benchmark
      Fed FRB/US, 100bp funds-rate shock (VAR expectations), current model (US). The Board's own simulation of the current (post-2018) model: output gap trough −0.486pp, core PCE inflation trough −0.0345pp and unemployment peak +0.219pp, all at quarter 8. The previous model gives −0.459pp, −0.062pp and +0.215pp. The −0.4pp and −0.08pp in the 2014 FEDS Note describe the pre-2018 model.
      Source
      Laforte, Overview of the changes to the FRB/US model (2018), FEDS Notes, 7 Dec 2018, doi:10.17016/2380-7172.2306, Fig. 2 (accessible data table)
      OBR emulator UK−0.058at q40no responseGDP peak q40.014%OffGDP 3–6× below the BoE range; prices flat
      Run
      local run at obr-macroeconomic-model 0e44ec8 (October 2026 EFO), 2026-11-19obr_shock(var="R", shock=1, periods=4)
      Rate path
      +1pp held 4 quarters, then zero; 4 pp-quarters
      Timing
      GDP peaks at q4; no price response
      Peak GDP
      −0.058, % of GDP, peak, at q4
      Peak inflation
      0, pp, annual rate, CPI does not respond
      GDP per pp-quarter
      0.014% of GDP per pp-quarter
      Verdict
      Off. GDP is 3–6× below the BoE 1999 range (−0.2% to −0.35%), through consumption only; inflation and unemployment are exactly zero.
      Solver
      converged in all 12 quarters (nominal-GDP pin)
      Issue
      obr-macroeconomic-model #50 (closed)
      -BoE SVAR UK−1.6h = 8−2.5CPI level, h = 20Builds, no reversion0.2%Off, sign right4.6–8× the BoE peak; 2–4× per pp-quarter -
      Run
      committed output sourcecommitted fig3 fixture + PR #17: shock="UK monetary-policy shock normalised to +25bp on Bank Rate on impact (one s.d. is about 10bp), scaled ×4"
      Rate path
      +25bp on impact, still +0.17pp at h = 12 (a unit root: the rate does not revert); about 1.9 pp-quarters to h = 8 per 25bp
      Timing
      Builds from impact to −0.39% per 25bp by h = 8; no reversion within 5 years
      Peak GDP
      −1.6, % of GDP, at h = 8, scaled from −0.39% per 25bp, at h = 8
      Peak inflation
      −2.5, % on the CPI level at h = 20, scaled from −0.63% per 25bp, CPI level, still falling
      GDP per pp-quarter
      0.2% of GDP per pp-quarter
      Verdict
      Off, sign right. At h = 8 GDP is −1.6% (scaled to 100bp) against the BoE's −0.2% to −0.35% after about a year: 4.6–8× the peak, or 2–4× per pp-quarter once the SVAR's longer rate path is allowed for. It builds to h = 8 and does not revert within 5 years (the rate path has a unit root), against the BoE's fullest effect after about a year.
      Draws
      The medians are from the repository's fast test fixture (600 posterior draws, about 50 accepted, unweighted; tests/conftest.py), not the published replication run (10,000 draws, 731 accepted, effective sample size 333.3; results/summary.md at 17f5d82). The sense check on that run gives about the same effect per basis point: a GDP trough of about −0.16% for a surprise of about 10bp (results/sense_check.md at 17f5d82).
      Open issue
      boe-var-model #11
      +BoE SVAR UK−1.6h = 8−2.5CPI level, h = 20On impact, no reversion0.2%Off, sign right4.6–8× the BoE peak; 2–4× per pp-quarter +
      Run
      committed output sourcecommitted fig3 fixture + PR #17: shock="UK monetary-policy shock normalised to +25bp on Bank Rate on impact (one s.d. is about 10bp), scaled ×4"
      Rate path
      +25bp on impact, still +0.17pp at h = 12 (a unit root: the rate does not revert); about 1.9 pp-quarters to h = 8 per 25bp
      Timing
      On impact and roughly flat to h = 8 (−0.39% per 25bp at h = 8); no reversion within 5 years
      Peak GDP
      −1.6, % of GDP, at h = 8, scaled from −0.39% per 25bp, at h = 8
      Peak inflation
      −2.5, % on the CPI level at h = 20, scaled from −0.63% per 25bp, CPI level, still falling
      GDP per pp-quarter
      0.2% of GDP per pp-quarter
      Verdict
      Off, sign right. At h = 8 GDP is −1.6% (scaled to 100bp) against the BoE's −0.2% to −0.35% after about a year: 4.6–8× the peak, or 2–4× per pp-quarter once the SVAR's longer rate path is allowed for. The effect is there on impact, is roughly flat to h = 8 and does not revert within 5 years (the rate path has a unit root), against the BoE's fullest effect after about a year. A 6,000-draw run at the pin gives −0.39% per 25bp on impact and −0.42% at h = 8 (macro #293).
      Draws
      The medians are from the repository's fast test fixture (600 posterior draws, about 50 accepted, unweighted; tests/conftest.py), not the published replication run (10,000 draws, 731 accepted, effective sample size 333.3; results/summary.md at 17f5d82). The sense check on that run gives about the same effect per basis point: a GDP trough of about −0.16% for a surprise of about 10bp (results/sense_check.md at 17f5d82).
      Open issue
      boe-var-model #11
      FRB/US US−0.552at q8 (2028Q2)−0.034at q8Hump, peak q80.15%PlausibleCore PCE matches; unemployment 1.04× on the Board's design
      Run
      local run at frbus 162cfe6 (October 2026 LONGBASE), 2026-11-18, shocks from 2026Q3 (the first quarter after LONGBASE history)frbus_shock(var="rffintay_aerr", shock=1.0, periods=1, horizon=12, start="2026Q3", policy_rule="inertial_taylor")
      Rate path
      +1.00pp on impact, decays under the inertial rule, crosses zero at q8, undershoots; 3.6 pp-quarters, q1–q8
      Timing
      Hump: GDP and inflation peak at q8
      Peak GDP
      −0.552, % of GDP, peak, at q8 (2028Q2)
      Peak inflation
      −0.034, pp, annual rate, core PCE, at q8
      GDP per pp-quarter
      0.15% of GDP per pp-quarter
      Verdict
      Plausible; within 10% of the Board on its own design. The Board's simulation of the current model gives an output-gap trough of −0.486pp, core PCE −0.0345pp and an unemployment peak of +0.219pp at quarter 8 (Laforte 2018). This run gives core PCE −0.034pp at quarter 8 and an output-gap trough of −0.50pp, and an unemployment peak of +0.28pp, 1.28× the Board's. That ratio depends on the start date: on the Board's own 2020Q1 design the model gives +0.228pp, 1.04×, with core PCE 0.96× and the output gap 0.97× (us-frb-model results/inflation_transmission.md at 162cfe6). The −0.08pp in earlier Fed notes describes the pre-2018 model.
      US HANK US−0.361at impact−1.34at impactPeak on impact0.16%Plausible in-modelInflation peaks on impact, not after two years @@ -83,7 +83,7 @@

      Same question, every model

    -

    GDP per pp-quarter divides the peak GDP effect by the rate path's size to the peak. HANK's GDP peaks on impact, so its figure divides by the realised real-rate path over all 12 quarters instead; the other rows use the nominal policy rate, which is close to the real rate in FRB/US because its inflation barely moves. On HANK's rstar path (10 pp-quarters at ρ = 0.9) the figure would be about 0.04%, so HANK's 0.16 and FRB/US's 0.15 are not like-for-like.

    HANK reports inflation as a quarterly rate; this page multiplies it by 4 to give an annual rate.

    Why the two UK rows sit either side of the Bank of England's range

    The OBR emulator is 3–6× below the range and the BoE SVAR is above it. The three are different models answering different experiments.

    • Benchmark. The Bank's 1999 illustration: Bank Rate 1pp higher for one year, then back. Output is −0.2% to −0.35% lower after about a year. It is one published range from 1999, not a current Bank estimate.
    • Model, OBR emulator. The OBR's published equations. Bank Rate reaches consumption and household interest payments, and nothing else. The mortgage rate, gilt yields, sterling and house prices are inputs with no equation; investment, trade, prices and unemployment do not respond. A small answer is the expected result of the missing channels.
    • Model, BoE SVAR. A statistical model: our replication of the Bank's own structural vector autoregression (Macro Technical Paper No. 3), estimated on 1992Q1–2025Q1. It has no named channels. Its answer is how GDP moved after past policy surprises.
    • Shock. The OBR row imposes the benchmark's own rate path (+1pp for four quarters) with everything else held. The SVAR row is a one-standard-deviation policy surprise identified by sign restrictions, scaled linearly to 100bp. A surprise and an announced path are different experiments.
    • Horizon. The benchmark and the OBR row are read at about a year (the OBR row peaks at q4). The SVAR row is read at h = 8 and is still building: its rate path has a unit root (a shock never fully dies out), so neither Bank Rate nor GDP returns within five years.
    • Monetary response. In the benchmark the rate returns after a year by assumption. The OBR emulator has no policy rule and no price response, so nothing feeds back to the rate. In the SVAR the Bank's usual reaction is part of the estimated dynamics and the rate stays high, so more tightening accumulates: per pp-quarter the gap narrows from 4.6–8× to 2–4×.
    • What narrows the gap, OBR emulator. Moving the mortgage rate with Bank Rate at the listing's own 0.9 pass-through (the opt-in monetary_conditioning) gives −0.149% at the peak, still below the range. Interest received has no equation, so neither figure is a bound on the full effect. (obr-macroeconomic-model docs/monetary_conditioning.md)
    • What narrows the gap, BoE SVAR. Part of it is the replication, not the method. For a one-standard-deviation surprise (8bp on Bank Rate on impact in the Bank's paper, 9bp in the replication), the paper's GDP response is −0.12% on impact and fades to −0.07% by five years, while the replication's persists: −0.14% on impact, −0.16% at two years and −0.17% at five. The figures are from the benchmark in boe-var-model #37, not yet merged; the paper's medians are read from its figures. The row above uses the fast test fixture and normalises the surprise to 25bp on impact; the effect per basis point is about the same. Scaled to 100bp the same way, the paper's own figure is also above the 1999 range. Open. (boe-var-model #37, results/irf_vs_paper.md (open pull request))
    +

    GDP per pp-quarter divides the peak GDP effect by the rate path's size to the peak. HANK's GDP peaks on impact, so its figure divides by the realised real-rate path over all 12 quarters instead; the other rows use the nominal policy rate, which is close to the real rate in FRB/US because its inflation barely moves. On HANK's rstar path (10 pp-quarters at ρ = 0.9) the figure would be about 0.04%, so HANK's 0.16 and FRB/US's 0.15 are not like-for-like.

    HANK reports inflation as a quarterly rate; this page multiplies it by 4 to give an annual rate.

    Why the two UK rows sit either side of the Bank of England's range

    The OBR emulator is 3–6× below the range and the BoE SVAR is above it. The three are different models answering different experiments.

    • Benchmark. The Bank's 1999 illustration: Bank Rate 1pp higher for one year, then back. Output is −0.2% to −0.35% lower after about a year. It is one published range from 1999, not a current Bank estimate.
    • Model, OBR emulator. The OBR's published equations. Bank Rate reaches consumption and household interest payments, and nothing else. The mortgage rate, gilt yields, sterling and house prices are inputs with no equation; investment, trade, prices and unemployment do not respond. A small answer is the expected result of the missing channels.
    • Model, BoE SVAR. A statistical model: our replication of the Bank's own structural vector autoregression (Macro Technical Paper No. 3), estimated on 1992Q1–2025Q1. It has no named channels. Its answer is how GDP moved after past policy surprises.
    • Shock. The OBR row imposes the benchmark's own rate path (+1pp for four quarters) with everything else held. The SVAR row is a one-standard-deviation policy surprise identified by sign restrictions, scaled linearly to 100bp. A surprise and an announced path are different experiments.
    • Horizon. The benchmark and the OBR row are read at about a year (the OBR row peaks at q4). The SVAR row is read at h = 8; its response is there on impact, roughly flat to h = 8, and does not fade: its rate path has a unit root (a shock never fully dies out), so neither Bank Rate nor GDP returns within five years.
    • Monetary response. In the benchmark the rate returns after a year by assumption. The OBR emulator has no policy rule and no price response, so nothing feeds back to the rate. In the SVAR the Bank's usual reaction is part of the estimated dynamics and the rate stays high, so more tightening accumulates: per pp-quarter the gap narrows from 4.6–8× to 2–4×.
    • What narrows the gap, OBR emulator. Moving the mortgage rate with Bank Rate at the listing's own 0.9 pass-through (the opt-in monetary_conditioning) gives −0.149% at the peak, still below the range. Interest received has no equation, so neither figure is a bound on the full effect. (obr-macroeconomic-model docs/monetary_conditioning.md)
    • What narrows the gap, BoE SVAR. Part of it is the replication, not the method. For a one-standard-deviation surprise (8bp on Bank Rate on impact in the Bank's paper, 9bp in the replication), the paper's GDP response is −0.12% on impact and fades to −0.07% by five years, while the replication's persists: −0.14% on impact, −0.16% at two years and −0.17% at five. The figures are from the benchmark in boe-var-model #37, not yet merged; the paper's medians are read from its figures. The row above uses the fast test fixture and normalises the surprise to 25bp on impact; the effect per basis point is about the same. Scaled to 100bp the same way, the paper's own figure is also above the 1999 range. Open. (boe-var-model #37, results/irf_vs_paper.md (open pull request))
    How the response unfolds, quarter by quarter. The paths behind the peaks and timing in the table; each panel has its own scale.

    Source: each row’s stored path (FRB/US and US HANK local runs of 18 Nov 2026 at 162cfe6 and 58353e5) · results.json

    FRB/US

    GDP, % deviation

    @@ -233,8 +233,8 @@

    Same question, every model

    OBR emulator UK1.01–1.02+1.014at q1–q40no responseOffAn accounting identity; the OBR's own figure is 0.6
    Run
    local run at obr-macroeconomic-model 0e44ec8 (October 2026 EFO), 2026-11-19obr_shock(var="CGG", shock=7000, periods=4)
    Experiment
    CGG +£7,000m a quarter (about 1.0% of GDP) for 4 quarters
    Multiplier
    1.01 on impact, 1.02 by q4. In the model, borrowing rises by the cash cost (obr #75); obr_shock does not return it
    Peak GDP
    +1.014, % of GDP, peak (+1.007% to +1.014% over q1–q4, +0.01% at q5, fading), at q1–q4
    Peak inflation
    0, pp, annual rate, prices do not respond
    Verdict
    Off. 1.01→1.02 comes from an identity, not estimated behaviour. It falls inside CBO's range but sits above Ramey's upper bound of 1 and the OBR's own 0.6.
    Solver
    converged in all 12 quarters (nominal-GDP pin); the tool's own caveat calls the result an upper bound
    See also
    OBR emulator limits
    BoE SVAR UKNo instrumentThe BoE SVAR identifies no fiscal shock. -FRB/US US0.81 on impact; 0.75 year 1+0.037per 0.046% of GDP+0.0008at q2Plausible0.747 yr 1: inside both ranges -
    Run
    local run at frbus 162cfe6 (October 2026 LONGBASE), 2026-11-18, shocks from 2026Q3 (the first quarter after LONGBASE history)frbus_shock(var="egfe_aerr", shock=0.01, periods=1, horizon=12, start="2026Q3", policy_rule="inertial_taylor")
    Experiment
    Federal purchases +1% (about 0.046% of GDP), one quarter
    Multiplier
    about 0.81 on impact; 0.747 in year 1 for a committed sustained run from 2026Q1 (inertial rule; us-frb-model results/benchmark_multipliers.md)
    Peak GDP
    +0.037, % of GDP, peak, per 0.046% of GDP spent, at impact
    Peak inflation
    +0.0008, pp, annual rate, core PCE, at q2
    Verdict
    Inside CBO and Ramey ranges. Year-1 0.747 sits inside CBO's 0.45–1.82 (CBO's quarterly path converted to a calendar-year ratio) and Ramey's 0.6–1; the impact ratio is 0.81. It is about 0.2 below the 2010 FRB-US line in Coenen et al. (≈0.95, a chart reading for the same no-accommodation regime). The fiscal closure and the expectations mode do not explain that gap (us-frb-model docs/benchmarks.md).
    Open issue
    macro #212
    +FRB/US US0.83 on impact; 0.75 year 1+0.037per 0.045% of GDP+0.0008at q2Plausible0.747 yr 1: inside both ranges +
    Run
    local run at frbus 162cfe6 (October 2026 LONGBASE), 2026-11-18, shocks from 2026Q3 (the first quarter after LONGBASE history)frbus_shock(var="egfe_aerr", shock=0.01, periods=1, horizon=12, start="2026Q3", policy_rule="inertial_taylor")
    Experiment
    Federal purchases +1% (about 0.045% of GDP), one quarter
    Multiplier
    about 0.83 on impact; 0.747 in year 1 for a committed sustained run from 2026Q1 (inertial rule; us-frb-model results/benchmark_multipliers.md)
    Peak GDP
    +0.037, % of GDP, peak, per 0.045% of GDP spent, at impact
    Peak inflation
    +0.0008, pp, annual rate, core PCE, at q2
    Verdict
    Inside CBO and Ramey ranges. Year-1 0.747 sits inside CBO's 0.45–1.82 (CBO's quarterly path converted to a calendar-year ratio) and Ramey's 0.6–1; the impact ratio is 0.83. It is about 0.2 below the 2010 FRB-US line in Coenen et al. (≈0.95, a chart reading for the same no-accommodation regime). The fiscal closure and the expectations mode do not explain that gap (us-frb-model docs/benchmarks.md).
    Open issue
    macro #212
    US HANK US0.175 (ρ = 0.8)+0.175at impact+0.84at impactQuestionableSign flips while spending is still high
    Run
    local run at us-hank-model 58353e5, 2026-11-18hank_shock(kind="fiscal_spending", size=0.01, persistence=0.8, horizon=12, variant="two_asset")
    Experiment
    G +1% of GDP on impact, AR(1) ρ = 0.8, financed by the labour tax
    Multiplier
    0.175 (ρ = 0.8); 0.075 at ρ = 0.9. Output turns negative from q4 (impact is q1; the model page counts impact as quarter 0 and says quarter 3) while spending is still 51–73% of impact
    Peak GDP
    +0.175, % of GDP, peak, at impact
    Peak inflation
    +0.84, pp, annual rate (+0.21pp a quarter × 4), at impact
    Verdict
    Questionable. Impact 0.175 at ρ 0.8 is below the CBO floor of 0.45 and Ramey's floor of 0.6. Labour-tax financing differs from the benchmark setups, so it cannot be ruled off.
    Issue
    us-hank-model #5 (closed)
    DEFINE-UK UK2.25 nominal, 2027 to 2040not reportednot reportedNo benchmarkAnnual, investment-led; not comparable @@ -242,7 +242,7 @@

    Same question, every model

    -

    Multipliers take the sign of the OBR’s table (EFO July 2015, Box 3.2): GDP gained per unit of extra spending, GDP lost per unit of extra tax, so the usual response is a positive number. A tax cut or a spending cut has the same multiplier with the GDP sign reversed. Signed effects are in the Peak GDP column.

    FRB/US's hosted tool cannot run a sustained +1%-of-GDP experiment: the stored run is a one-quarter impulse of about 0.046% of GDP, and the year-1 figure comes from a committed sustained run (macro #212).

    +

    Multipliers take the sign of the OBR’s table (EFO July 2015, Box 3.2): GDP gained per unit of extra spending, GDP lost per unit of extra tax, so the usual response is a positive number. A tax cut or a spending cut has the same multiplier with the GDP sign reversed. Signed effects are in the Peak GDP column.

    FRB/US's hosted tool cannot run a sustained +1%-of-GDP experiment: the stored run is a one-quarter impulse of about 0.045% of GDP, and the year-1 figure comes from a committed sustained run (macro #212).

    How the response unfolds, quarter by quarter. The paths behind the peaks and timing in the table; each panel has its own scale.

    Source: each row’s stored path (FRB/US and US HANK local runs of 18 Nov 2026 at 162cfe6 and 58353e5) · results.json

    FRB/US

    GDP, % deviation

    diff --git a/models/compare/results.json b/models/compare/results.json index 385e64929..116e76e1a 100644 --- a/models/compare/results.json +++ b/models/compare/results.json @@ -1,6 +1,6 @@ { "schema": 1, - "version": "2026-11-19.2", + "version": "2026-11-19.3", "date": "2026-11-19", "title": "Same question, every model: cross-model scenario battery", "issue": "https://github.com/PolicyEngine/macro/issues/213", @@ -161,7 +161,7 @@ }, { "label": "Horizon", - "text": "The benchmark and the OBR row are read at about a year (the OBR row peaks at q4). The SVAR row is read at h = 8 and is still building: its rate path has a unit root (a shock never fully dies out), so neither Bank Rate nor GDP returns within five years." + "text": "The benchmark and the OBR row are read at about a year (the OBR row peaks at q4). The SVAR row is read at h = 8; its response is there on impact, roughly flat to h = 8, and does not fade: its rate path has a unit root (a shock never fully dies out), so neither Bank Rate nor GDP returns within five years." }, { "label": "Monetary response", @@ -233,7 +233,7 @@ "short": { "tag": "Off, sign right", "why": "4.6–8× the BoE peak; 2–4× per pp-quarter", - "timing": "Builds, no reversion", + "timing": "On impact, no reversion", "gdp": "h = 8", "inflation": "CPI level, h = 20" }, @@ -259,11 +259,11 @@ "units": "% on the CPI level at h = 20, scaled from −0.63% per 25bp", "measure": "CPI level, still falling" }, - "timing": "Builds from impact to −0.39% per 25bp by h = 8; no reversion within 5 years", + "timing": "On impact and roughly flat to h = 8 (−0.39% per 25bp at h = 8); no reversion within 5 years", "gdp_per_ppq": 0.2, "verdict": "off", "verdict_label": "Off, sign right", - "reason": "At h = 8 GDP is −1.6% (scaled to 100bp) against the BoE's −0.2% to −0.35% after about a year: 4.6–8× the peak, or 2–4× per pp-quarter once the SVAR's longer rate path is allowed for. It builds to h = 8 and does not revert within 5 years (the rate path has a unit root), against the BoE's fullest effect after about a year.", + "reason": "At h = 8 GDP is −1.6% (scaled to 100bp) against the BoE's −0.2% to −0.35% after about a year: 4.6–8× the peak, or 2–4× per pp-quarter once the SVAR's longer rate path is allowed for. The effect is there on impact, is roughly flat to h = 8 and does not revert within 5 years (the rate path has a unit root), against the BoE's fullest effect after about a year. A 6,000-draw run at the pin gives −0.39% per 25bp on impact and −0.42% at h = 8 (macro #293).", "draws": "The medians are from the repository's fast test fixture (600 posterior draws, about 50 accepted, unweighted; tests/conftest.py), not the published replication run (10,000 draws, 731 accepted, effective sample size 333.3; results/summary.md at 17f5d82). The sense check on that run gives about the same effect per basis point: a GDP trough of about −0.16% for a surprise of about 10bp (results/sense_check.md at 17f5d82).", "issue": "boe-11" }, @@ -741,7 +741,7 @@ } ], "notes": [ - "FRB/US's hosted tool cannot run a sustained +1%-of-GDP experiment: the stored run is a one-quarter impulse of about 0.046% of GDP, and the year-1 figure comes from a committed sustained run (macro #212)." + "FRB/US's hosted tool cannot run a sustained +1%-of-GDP experiment: the stored run is a one-quarter impulse of about 0.045% of GDP, and the year-1 figure comes from a committed sustained run (macro #212)." ], "cells": [ { @@ -798,8 +798,8 @@ "short": { "tag": "Plausible", "why": "0.747 yr 1: inside both ranges", - "multiplier": "0.81 on impact; 0.75 year 1", - "gdp": "per 0.046% of GDP" + "multiplier": "0.83 on impact; 0.75 year 1", + "gdp": "per 0.045% of GDP" }, "run": { "kind": "hosted", @@ -817,13 +817,13 @@ "adapter": "0.2.0", "label": "local run at frbus 162cfe6 (October 2026 LONGBASE), 2026-11-18, shocks from 2026Q3 (the first quarter after LONGBASE history)" }, - "experiment": "Federal purchases +1% (about 0.046% of GDP), one quarter", + "experiment": "Federal purchases +1% (about 0.045% of GDP), one quarter", "gdp": { "value": 0.037, - "units": "% of GDP, peak, per 0.046% of GDP spent", + "units": "% of GDP, peak, per 0.045% of GDP spent", "when": "impact" }, - "multiplier": "about 0.81 on impact; 0.747 in year 1 for a committed sustained run from 2026Q1 (inertial rule; us-frb-model results/benchmark_multipliers.md)", + "multiplier": "about 0.83 on impact; 0.747 in year 1 for a committed sustained run from 2026Q1 (inertial rule; us-frb-model results/benchmark_multipliers.md)", "inflation": { "value": 0.0008, "units": "pp, annual rate", @@ -832,7 +832,7 @@ }, "verdict": "plausible", "verdict_label": "Inside CBO and Ramey ranges", - "reason": "Year-1 0.747 sits inside CBO's 0.45–1.82 (CBO's quarterly path converted to a calendar-year ratio) and Ramey's 0.6–1; the impact ratio is 0.81. It is about 0.2 below the 2010 FRB-US line in Coenen et al. (≈0.95, a chart reading for the same no-accommodation regime). The fiscal closure and the expectations mode do not explain that gap (us-frb-model docs/benchmarks.md).", + "reason": "Year-1 0.747 sits inside CBO's 0.45–1.82 (CBO's quarterly path converted to a calendar-year ratio) and Ramey's 0.6–1; the impact ratio is 0.83. It is about 0.2 below the 2010 FRB-US line in Coenen et al. (≈0.95, a chart reading for the same no-accommodation regime). The fiscal closure and the expectations mode do not explain that gap (us-frb-model docs/benchmarks.md).", "issue": "macro-212", "benchmark": null, "path": { diff --git a/notes/generate_release_notes.py b/notes/generate_release_notes.py index eba271e5a..4d4946c8c 100644 --- a/notes/generate_release_notes.py +++ b/notes/generate_release_notes.py @@ -238,14 +238,28 @@ def digest_page(vintage: str) -> str:
    """) + # One sentence for both and the link preview, so + # a shared digest link carries the same summary a search result does. + description = ( + f"Factual digest of the {len(items)} official data series with a new committed snapshot on " + f"{vintage}: latest value, change, and whether it is a new observation or a revision." + ) return f""" Data stored {day} — PolicyEngine Macro - + + + + + + + + + diff --git a/notes/releases/2026-07-29/index.html b/notes/releases/2026-07-29/index.html index b2361c5e2..0802c5065 100644 --- a/notes/releases/2026-07-29/index.html +++ b/notes/releases/2026-07-29/index.html @@ -6,6 +6,14 @@ Data stored 29 Jul 2026 — PolicyEngine Macro + + + + + + + + diff --git a/notes/releases/2026-08-04/index.html b/notes/releases/2026-08-04/index.html index 33478f542..b06ec94bd 100644 --- a/notes/releases/2026-08-04/index.html +++ b/notes/releases/2026-08-04/index.html @@ -6,6 +6,14 @@ Data stored 4 Aug 2026 — PolicyEngine Macro + + + + + + + + diff --git a/notes/releases/2026-08-05/index.html b/notes/releases/2026-08-05/index.html index 515c6dff0..7aa445cb8 100644 --- a/notes/releases/2026-08-05/index.html +++ b/notes/releases/2026-08-05/index.html @@ -6,6 +6,14 @@ Data stored 5 Aug 2026 — PolicyEngine Macro + + + + + + + + diff --git a/notes/releases/2026-08-06/index.html b/notes/releases/2026-08-06/index.html index 09f1ba645..107586668 100644 --- a/notes/releases/2026-08-06/index.html +++ b/notes/releases/2026-08-06/index.html @@ -6,6 +6,14 @@ Data stored 6 Aug 2026 — PolicyEngine Macro + + + + + + + + diff --git a/notes/releases/2026-08-07/index.html b/notes/releases/2026-08-07/index.html index 7f97cb853..053216d84 100644 --- a/notes/releases/2026-08-07/index.html +++ b/notes/releases/2026-08-07/index.html @@ -6,6 +6,14 @@ Data stored 7 Aug 2026 — PolicyEngine Macro + + + + + + + + diff --git a/notes/releases/2026-08-10/index.html b/notes/releases/2026-08-10/index.html index 0d4bf5545..50aa7b1e8 100644 --- a/notes/releases/2026-08-10/index.html +++ b/notes/releases/2026-08-10/index.html @@ -6,6 +6,14 @@ Data stored 10 Aug 2026 — PolicyEngine Macro + + + + + + + + diff --git a/notes/releases/2026-08-12/index.html b/notes/releases/2026-08-12/index.html index 303cad85e..7149fcf6c 100644 --- a/notes/releases/2026-08-12/index.html +++ b/notes/releases/2026-08-12/index.html @@ -6,6 +6,14 @@ Data stored 12 Aug 2026 — PolicyEngine Macro + + + + + + + + diff --git a/notes/releases/2026-08-26/index.html b/notes/releases/2026-08-26/index.html index d055a4379..2dd3e4c63 100644 --- a/notes/releases/2026-08-26/index.html +++ b/notes/releases/2026-08-26/index.html @@ -6,6 +6,14 @@ Data stored 26 Aug 2026 — PolicyEngine Macro + + + + + + + + diff --git a/notes/releases/2026-11-10/index.html b/notes/releases/2026-11-10/index.html index 1db9e3eef..ea32dd3ed 100644 --- a/notes/releases/2026-11-10/index.html +++ b/notes/releases/2026-11-10/index.html @@ -6,6 +6,14 @@ Data stored 10 Nov 2026 — PolicyEngine Macro + + + + + + + + diff --git a/notes/releases/2026-11-12/index.html b/notes/releases/2026-11-12/index.html index 210f2a65c..19b12f1d1 100644 --- a/notes/releases/2026-11-12/index.html +++ b/notes/releases/2026-11-12/index.html @@ -6,6 +6,14 @@ Data stored 12 Nov 2026 — PolicyEngine Macro + + + + + + + + diff --git a/notes/releases/2026-11-13/index.html b/notes/releases/2026-11-13/index.html index 599eae178..db895ee90 100644 --- a/notes/releases/2026-11-13/index.html +++ b/notes/releases/2026-11-13/index.html @@ -6,6 +6,14 @@ Data stored 13 Nov 2026 — PolicyEngine Macro + + + + + + + + diff --git a/notes/releases/2026-11-16/index.html b/notes/releases/2026-11-16/index.html index 143bf2f61..c8bb2687c 100644 --- a/notes/releases/2026-11-16/index.html +++ b/notes/releases/2026-11-16/index.html @@ -6,6 +6,14 @@ Data stored 16 Nov 2026 — PolicyEngine Macro + + + + + + + + diff --git a/notes/releases/index.html b/notes/releases/index.html index 59ba7fc79..b75149e5e 100644 --- a/notes/releases/index.html +++ b/notes/releases/index.html @@ -6,6 +6,14 @@ Release notes — PolicyEngine Macro + + + + + + + + diff --git a/obr/code/index.html b/obr/code/index.html index eeb94ca45..7409b2b11 100644 --- a/obr/code/index.html +++ b/obr/code/index.html @@ -52,6 +52,7 @@

    OBR emulator

  • Anchored, not validated
  • Hosted
  • Quarterly
  • +
  • 0e44ec8
  • diff --git a/obr/index.html b/obr/index.html index e61397e21..2bacdd648 100644 --- a/obr/index.html +++ b/obr/index.html @@ -52,6 +52,7 @@

    OBR emulator

  • Anchored, not validated
  • Hosted
  • Quarterly
  • +
  • 0e44ec8
  • diff --git a/obr/methodology/index.html b/obr/methodology/index.html index 48c0d43ba..e22a9b491 100644 --- a/obr/methodology/index.html +++ b/obr/methodology/index.html @@ -53,6 +53,7 @@

    OBR emulator

  • Anchored, not validated
  • Hosted
  • Quarterly
  • +
  • 0e44ec8
  • diff --git a/obr/validation/index.html b/obr/validation/index.html index 0ca5bfd95..fe0be4b8b 100644 --- a/obr/validation/index.html +++ b/obr/validation/index.html @@ -52,6 +52,7 @@

    OBR emulator

  • Anchored, not validated
  • Hosted
  • Quarterly
  • +
  • 0e44ec8
  • diff --git a/style.css b/style.css index 422ecd541..a6aaba650 100644 --- a/style.css +++ b/style.css @@ -5510,7 +5510,9 @@ a .model-id, a:hover .model-id { text-decoration: none; display: inline-block; } .round-table td.mono, .round-table th .mono { white-space: nowrap; } .round-table thead th.num { text-align: right; } /* chart foot line (chartkit source=) */ -:is(.doc, .prose, .band, body) .vc-fig p.vc-source { margin: var(--s-2) 0 0; color: var(--text-faint); font-size: var(--fs-label); line-height: 1.45; } +/* --text-muted, not --text-faint: the line sits on a grey inset (#F3F4F6 as + rendered), where --text-faint is 4.39:1, under the 4.5:1 small text needs. */ +:is(.doc, .prose, .band, body) .vc-fig p.vc-source { margin: var(--s-2) 0 0; color: var(--text-muted); font-size: var(--fs-label); line-height: 1.45; } .vc-fig .vc-source code { font-size: 0.95em; } /* y labels sit inside the plot: a card-coloured halo keeps them legible over bands and lines */ .vc-fig .vc-t.vc-y { padding: 0 3px; margin-left: -3px; border-radius: 3px; background: color-mix(in srgb, var(--surface-card) 82%, transparent); } @@ -7463,7 +7465,7 @@ main .table-scroll > table :is(th, td).num { text-align: right; white-space: now .mp #compare .tbl-stack tbody tr > [data-label] { align-items: center; } #compare .yn { width: auto; height: auto; margin: 0; vertical-align: baseline; } #compare .yn-yes { color: var(--ab-teal-700); } -#compare .yn-no { color: var(--text-faint); } +#compare .yn-no { color: var(--text-muted); } /* the pill is #F3F4F6: --text-faint is 4.39:1 on it */ .mp #compare td:nth-child(4), .mp #compare td:nth-child(5) { white-space: nowrap; } @media (max-width: 560px) { main .table-scroll > table.tbl-stack tbody tr > [data-label]:not(:first-child) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; } @@ -8790,7 +8792,9 @@ main .band-head[data-icon]::before, main .band-head::before { /* 42k. Dark mode: quiet footer, readable primary buttons, readable fan bands */ @media (prefers-color-scheme: dark) { .foot.foot-bar { background: #0B1220 !important; border-top: 1px solid var(--border); } - .btn-primary, .btn-inv { background: var(--ab-teal-700) !important; color: #FFFFFF !important; border-color: var(--ab-teal-700) !important; } + /* --ab-teal-700 is var(--primary) in dark mode (#38B2AC), where white text is + 2.58:1. --primary-foreground is the token paired with it (#0B0E14, about 7.5:1). */ + .btn-primary, .btn-inv { background: var(--ab-teal-700) !important; color: var(--primary-foreground) !important; border-color: var(--ab-teal-700) !important; } } .hub2 .uc a { align-items: stretch !important; } diff --git a/svar/code/index.html b/svar/code/index.html index 2927f9580..1b9c101c7 100644 --- a/svar/code/index.html +++ b/svar/code/index.html @@ -52,6 +52,7 @@

    BoE SVAR

  • Partial replication
  • Hosted
  • Quarterly
  • +
  • 17f5d82
  • diff --git a/svar/index.html b/svar/index.html index 6aba663a2..4211c3775 100644 --- a/svar/index.html +++ b/svar/index.html @@ -52,6 +52,7 @@

    BoE SVAR

  • Partial replication
  • Hosted
  • Quarterly
  • +
  • 17f5d82
  • diff --git a/svar/methodology/index.html b/svar/methodology/index.html index 95d1011a8..12f5931aa 100644 --- a/svar/methodology/index.html +++ b/svar/methodology/index.html @@ -53,6 +53,7 @@

    BoE SVAR

  • Partial replication
  • Hosted
  • Quarterly
  • +
  • 17f5d82
  • diff --git a/svar/validation/index.html b/svar/validation/index.html index 6bec15842..bd5269416 100644 --- a/svar/validation/index.html +++ b/svar/validation/index.html @@ -52,6 +52,7 @@

    BoE SVAR

  • Partial replication
  • Hosted
  • Quarterly
  • +
  • 17f5d82
  • @@ -429,7 +430,7 @@

    The four tests

  • Each origin uses 1,000 draws and the Cholesky shock factor, so coverage is the same on every machine (boe-var-model #26, #30).
  • No variable beats a drifting random walk at any horizon once the 64 tests are adjusted together (test 4); three attempts to recalibrate the bands after the fact are in the limits.
  • -

    The svar-unemployment satellite, over 73 origins at h=1–4 (67 targets a horizon once the Covid quarters are excluded; specification on the methodology tab; unemployment_satellite_validation.json):

    +

    The svar-unemployment satellite, over 73 origins at h=1–4 (67 targets a horizon once the Covid quarters are excluded; specification on the methodology tab; unemployment_satellite_validation.json):

    • Point forecast: RMSE relative to no-change 0.82–0.98 excluding the Covid quarters, not significant; on all 73 targets 0.99 at h=1, then 1.12–1.34. The published path is capped at four quarters.
    • Bands in the archived 28 Jul 2026 round (GDP uncertainty only): 22–48% of outturns inside the 68% band, 30–61% inside the 90% band.
    • @@ -810,7 +811,7 @@

      Where this departs from the Bank’s model

    • Conformal factors: 83.0% on the same specification (#20).
    • Lenza–Primiceri Covid volatility scaling: 83.6% on the same held-out origins (80.7% over all 50), or 87.4% combined with the rescaling (#21).
    • 88% of the misses fall in three episodes, each mostly on one side of the band: 2014Q3–2016Q4, 2020Q1–2021Q2 and 2021Q3–2023Q4. Outside them the raw 90% band covers 94%.
    • -
    • So the shortfall is mostly the central forecast missing for several quarters, not tail shape; stochastic-volatility variants, tried and not adopted, left the below-band misses in place (band decision note, #12).
    • +
    • So the shortfall is mostly the central forecast missing for several quarters, not tail shape; stochastic-volatility variants, tried and not adopted, left the below-band misses in place (band decision note, #12).
    • Read the 90% fan as under-covering, not as a 90% probability.
    diff --git a/tests/README.md b/tests/README.md index eeaf88d4b..61883dd46 100644 --- a/tests/README.md +++ b/tests/README.md @@ -16,7 +16,7 @@ vintage, and each message names the file and line at fault. ### `test_site_integrity.py` -Everything about the 78 public HTML pages that can break without anyone +Everything about the 71 public HTML pages that can break without anyone noticing. Resolution follows `vercel.json`: `cleanUrls`, `trailingSlash: false`, and the `redirects` table (a link to a redirect *source* is fine — the destination is what must exist). @@ -38,6 +38,10 @@ destination is what must exist). public page appears. Deliberate omissions go in `SITEMAP_EXCLUSIONS` at the top of the file, with the reason. - **Domain** — internal links use paths, not the current Vercel hostname. +- **Second-pass checks** — page titles are unique across the site; every page + has `og:title`, `og:description` and `og:image`; ids are unique within a + page; every form control has a label; every table has header cells; every + `target="_blank"` link carries `rel="noopener"`. The canonical origin is read from the first `` in `sitemap.xml` rather than hardcoded, so moving the site to a new domain is a one-line edit. @@ -46,6 +50,23 @@ This complements `site_contract.py` and `site_nav.py` rather than replacing them: those assert on prose and navigation markup, these assert only on structure, so a copy rewrite cannot fail them and a broken link cannot pass. +### `test_model_pins.py` + +Ties the model commit a page shows to the commit `integration/pyproject.toml` +installs. + +- The hero strip on every model page is what `tools/model_hero.py` would stamp + today. After a re-pin this fails until the script is re-run. +- The four tabs of each commit-pinned model (OBR emulator, BoE SVAR, FRB/US, + US HANK) carry a chip linking the model repository at the pinned commit. +- Every link from the site into one of those repositories *at a commit* names + the pinned commit. Deliberate links to an older commit are listed in + `HISTORICAL_PINS` with the reason. + +Not covered: links to `blob/main`, and external links in general. The second +is `tools/check_external_links.py`, a manual tool because its result depends on +the network. + ### `test_data_store.py` Integrity of the append-only vintage store under `data/`. diff --git a/tests/test_model_pins.py b/tests/test_model_pins.py new file mode 100644 index 000000000..5e82f8b0b --- /dev/null +++ b/tests/test_model_pins.py @@ -0,0 +1,105 @@ +"""The model commit a page shows is the commit this repository installs. + +The class of regression this prevents +------------------------------------- +``integration/pyproject.toml`` pins four model repositories by commit. The +model pages quote figures "at 0e44ec8" and link source files at that commit. +A re-pin edits one line of the pyproject and, until now, nothing connected it +to the forty-odd links and the hero strips that name the old commit: the pages +would go on citing artifacts from a commit the hosted tools no longer run. + +Three checks, all structural: + +* the hero strip on every model page is what ``tools/model_hero.py`` would + stamp today, which includes the pin chip read from the pyproject; +* each pinned model's four tabs carry that chip; +* every link from the site into a pinned repository *at a commit* names the + pinned commit, apart from the few listed below that cite an older commit on + purpose. + +Links to ``blob/main`` are not checked here. Some are deliberate (a section +that exists only on ``main``), and telling those from an oversight needs a +person; the pin chip gives the reader the pinned commit either way. +""" + +from __future__ import annotations + +import importlib.util +import re +import sys +from pathlib import Path + +import pytest + +ROOT = Path(__file__).resolve().parents[1] + +# (page, 7-character commit) pairs that link an older commit deliberately. +# Each needs the reason: this list is where a stale link would hide. +HISTORICAL_PINS = { + # "the figures before that are at c827ab8": the pre-refresh run, named as such. + ("svar/validation/index.html", "c827ab8"), +} + + +def _model_hero(): + spec = importlib.util.spec_from_file_location("model_hero", ROOT / "tools" / "model_hero.py") + module = importlib.util.module_from_spec(spec) + sys.modules.setdefault("model_hero", module) + spec.loader.exec_module(module) + return module + + +HERO = _model_hero() +PINS = HERO.model_pins() +COMMIT_LINK = re.compile( + r"github\.com/(PolicyEngine/[\w.-]+)/(?:blob|tree|commit|raw)/([0-9a-f]{7,40})(?=[/\"#?])" +) + + +def test_every_pinned_model_declares_a_full_commit(): + """Forty hex characters: a branch or a tag would move under the pages.""" + assert set(PINS) == set(HERO.PIN_REPOS) + for key, (repo, commit) in PINS.items(): + assert re.fullmatch(r"[0-9a-f]{40}", commit), f"{key}: {repo} is pinned to {commit!r}" + + +@pytest.mark.parametrize("rel", sorted(HERO.PAGES)) +def test_model_hero_is_current(rel): + """``python3 tools/model_hero.py`` would change nothing on this page.""" + source = (ROOT / rel).read_text() + assert HERO.stamp(rel, source) == source, ( + f"{rel}: the model hero strip is stale. Run `python3 tools/model_hero.py` " + "(after a re-pin in integration/pyproject.toml this is expected)." + ) + + +@pytest.mark.parametrize("key", sorted(HERO.PIN_REPOS)) +def test_model_tabs_show_the_pinned_commit(key): + repo, commit = PINS[key] + href = f'href="https://github.com/{repo}/tree/{commit}"' + for sub in ("", "methodology/", "validation/", "code/"): + rel = f"{key}/{sub}index.html" + source = (ROOT / rel).read_text() + assert 'class="mh-chip mh-pin"' in source and href in source, ( + f"{rel}: no pin chip linking {repo} at {commit[:7]}" + ) + + +def test_commit_links_into_pinned_repositories_name_the_pin(pages): + """A source link at a commit other than the pin cites a superseded artifact.""" + pinned = {repo: commit for repo, commit in PINS.values()} + stale = [] + for page in pages: + for match in COMMIT_LINK.finditer(page.source): + repo, commit = match.groups() + if repo not in pinned or pinned[repo].startswith(commit): + continue + if (page.rel, commit[:7]) in HISTORICAL_PINS: + continue + line = page.source.count("\n", 0, match.start()) + 1 + stale.append(f"{page.rel}:{line}: {repo} at {commit[:7]}, pinned at {pinned[repo][:7]}") + assert not stale, ( + "links cite a commit other than the one integration/pyproject.toml pins " + "(move them, or list the pair in HISTORICAL_PINS with the reason):\n " + + "\n ".join(stale) + ) diff --git a/tests/test_site_integrity.py b/tests/test_site_integrity.py index b49aa126a..c2e0a544a 100644 --- a/tests/test_site_integrity.py +++ b/tests/test_site_integrity.py @@ -556,3 +556,122 @@ def test_no_page_rebinds_the_shared_copy_handler(page): f"{page.rel} defines its own [data-copy] click handler; reveal.js " "already binds one for every page, and both would fire" ) + + +# ------------------------------------------------- 8. second-pass checks +# +# Added by the November 2026 quality pass. Each one failed on, or was written +# after auditing, the site as it stood; none asserts on prose. + +def test_page_titles_are_unique(pages): + """No two pages share a ````. + + The UK and US topic pages were generated from the same topic name, so + ``/economy/topics/growth`` and ``/economy/us/topics/growth`` were both + "Growth — PolicyEngine Macro": identical in a tab strip, in browser + history and in a search result. A generator is the usual culprit, which is + why this is one whole-site test and not a per-page one. + """ + seen: dict[str, list[str]] = {} + for page in pages: + titles = page.elements("title") + # The first <title> under <head>; inline SVGs carry their own. + text = " ".join(titles[0].visible_text().split()) if titles else "" + seen.setdefault(text, []).append(page.rel) + shared = {title: rels for title, rels in seen.items() if len(rels) > 1} + assert not shared, "pages share a <title>:\n " + "\n ".join( + f"{title!r}: {', '.join(rels)}" for title, rels in sorted(shared.items()) + ) + + +def test_page_carries_link_preview_metadata(page): + """Every page has the Open Graph tags a shared link is rendered from. + + Without ``og:title`` and ``og:image`` a link pasted into Slack, LinkedIn or + a message shows a bare URL. The generated release digests had none, and + they are the pages most likely to be shared on the day they are written. + """ + present = {node.attrs.get("property", "") for node in page.elements("meta")} + missing = [ + name for name in ("og:title", "og:description", "og:image") + if name not in present + ] + assert not missing, f"{page.rel}: no {', '.join(missing)} meta tag" + + +def test_ids_are_unique_within_a_page(page): + """An ``id`` names one element. + + A duplicate makes ``href="#id"``, ``aria-controls`` and ``<label for>`` + resolve to whichever comes first, silently. The anchor test above only + asks whether a target exists, so it cannot see this. + """ + lines: dict[str, list[int]] = {} + for node in page.nodes: + identifier = node.attrs.get("id") + if identifier: + lines.setdefault(identifier, []).append(node.line) + repeated = {key: where for key, where in lines.items() if len(where) > 1} + assert not repeated, f"{page.rel}: duplicate id(s):\n " + "\n ".join( + f"#{key} on lines {', '.join(map(str, where))}" for key, where in sorted(repeated.items()) + ) + + +def test_form_controls_have_a_label(page): + """Every input, select and textarea has a programmatic label. + + A placeholder is not a label: it disappears on input and many screen + readers do not announce it. Accepted: a wrapping ``<label>``, a + ``<label for>`` naming the control's id, ``aria-label`` or + ``aria-labelledby``. + """ + labelled_ids = { + node.attrs["for"] for node in page.elements("label") if node.attrs.get("for") + } + problems = [] + for node in page.elements("input", "select", "textarea"): + if node.attrs.get("type") in ("hidden", "submit", "button", "reset", "image"): + continue + if node.attrs.get("aria-label", "").strip() or node.attrs.get("aria-labelledby"): + continue + if node.attrs.get("id") in labelled_ids: + continue + if any(ancestor.tag == "label" for ancestor in node.ancestors()): + continue + problems.append( + f"line {node.line}: <{node.tag} " + f"id=\"{node.attrs.get('id', '')}\" name=\"{node.attrs.get('name', '')}\"> has no label" + ) + assert not problems, f"{page.rel}:\n " + "\n ".join(problems) + + +def test_data_tables_have_header_cells(page): + """Every ``<table>`` has at least one ``<th>``. + + The phone layout stacks table rows into cards and labels each value from + its column header, and a screen reader announces a cell by its header. A + table of bare ``<td>`` gets neither. + """ + problems = [ + f"line {table.line}: <table class=\"{table.attrs.get('class', '')}\"> has no <th>" + for table in page.elements("table") + if table.attrs.get("role") not in ("presentation", "none") + and not any(node.tag == "th" for node in table.descendants()) + ] + assert not problems, f"{page.rel}:\n " + "\n ".join(problems) + + +def test_new_tab_links_do_not_expose_the_opener(page): + """``target="_blank"`` carries ``rel="noopener"``. + + Current browsers imply it, older ones do not, and the cost of stating it + is nothing. + """ + problems = [ + f"line {node.line}: <a href=\"{node.attrs.get('href', '')}\" target=\"_blank\"> " + "without rel=\"noopener\"" + for node in page.elements("a") + if node.attrs.get("target") == "_blank" + and "noopener" not in node.attrs.get("rel", "") + ] + assert not problems, f"{page.rel}:\n " + "\n ".join(problems) diff --git a/tools/check_external_links.py b/tools/check_external_links.py new file mode 100644 index 000000000..27a8cfd5c --- /dev/null +++ b/tools/check_external_links.py @@ -0,0 +1,183 @@ +"""Check every external link on the site. Network-dependent, so not a CI gate. + + python3 tools/check_external_links.py # all pages + python3 tools/check_external_links.py svar obr # only these directories + python3 tools/check_external_links.py --json out.json + +The repo-root suite (tests/test_site_integrity.py) resolves internal links +against the filesystem. This script covers the other half: http(s) links to +other sites. It is a manual tool rather than a test because the result depends +on the network and on third-party servers, several of which refuse automated +clients, so a red run would not mean the site is broken. + +Stdlib-only, like every other site script. Polite by design: one request per +host at a time, a pause between requests to the same host, HEAD first and a +ranged GET only when the server rejects HEAD. + +Exit status is 1 when a link is definitely dead (404 or 410, or DNS failure). +A 401, 403, 429 or timeout is reported as "unverified", not as broken: many +publishers (ons.gov.uk, doi.org targets, bankofengland.co.uk) answer bots that +way for pages that load in a browser. +""" + +from __future__ import annotations + +import argparse +import json +import socket +import ssl +import sys +import time +import urllib.error +import urllib.request +from collections import defaultdict +from concurrent.futures import ThreadPoolExecutor +from html.parser import HTMLParser +from pathlib import Path +from urllib.parse import urldefrag, urlsplit + +ROOT = Path(__file__).resolve().parents[1] +EXCLUDED_DIRS = {".git", "vendor", "node_modules", ".venv", "venv"} +USER_AGENT = "Mozilla/5.0 (compatible; site-link-check/1.0)" +TIMEOUT = 20 +PAUSE_PER_HOST = 1.0 +DEAD = {404, 410} +UNVERIFIED = {401, 403, 405, 406, 429, 500, 502, 503, 504, 999} +# Hosts that are placeholders or local examples in code samples, never links +# a reader is meant to follow. +SKIP_HOSTS = {"localhost", "127.0.0.1", "example.com", "www.w3.org"} + + +def _tls_context() -> ssl.SSLContext: + """Default trust store, plus the system bundle a python.org macOS build + does not load on its own. Without it every HTTPS link reads as unverified.""" + context = ssl.create_default_context() + for bundle in ("/etc/ssl/cert.pem", "/etc/ssl/certs/ca-certificates.crt"): + if Path(bundle).exists(): + context.load_verify_locations(bundle) + break + return context + + +TLS = _tls_context() + + +class _Links(HTMLParser): + def __init__(self) -> None: + super().__init__(convert_charrefs=True) + self.found: list[tuple[str, int]] = [] + + def handle_starttag(self, tag, attrs): + if tag not in ("a", "link", "script", "img", "iframe"): + return + attrs = dict(attrs) + if tag == "link" and attrs.get("rel") in ("canonical", "preconnect", "dns-prefetch"): + return + url = attrs.get("href") or attrs.get("src") or "" + if url.startswith(("http://", "https://")): + self.found.append((url, self.getpos()[0])) + + +def collect(only: list[str]) -> dict[str, list[str]]: + """Map each external URL (fragment removed) to the places that cite it.""" + cited: dict[str, list[str]] = defaultdict(list) + for path in sorted(ROOT.rglob("*.html")): + rel = path.relative_to(ROOT) + if EXCLUDED_DIRS & set(rel.parts): + continue + if only and rel.parts[0] not in only: + continue + parser = _Links() + parser.feed(path.read_text(encoding="utf-8")) + for url, line in parser.found: + url = urldefrag(url)[0] + if urlsplit(url).hostname in SKIP_HOSTS: + continue + cited[url].append(f"{rel}:{line}") + return cited + + +def _request(url: str, method: str) -> int: + headers = {"User-Agent": USER_AGENT, "Accept": "*/*"} + if method == "GET": + headers["Range"] = "bytes=0-2047" + request = urllib.request.Request(url, method=method, headers=headers) + with urllib.request.urlopen(request, timeout=TIMEOUT, context=TLS) as response: + return response.status + + +def probe(url: str) -> tuple[str, str]: + """Return (verdict, detail). Verdict is ok, dead or unverified.""" + last = "" + for method in ("HEAD", "GET"): + try: + status = _request(url, method) + return "ok", str(status) + except urllib.error.HTTPError as error: + last = str(error.code) + if error.code in DEAD and method == "GET": + return "dead", last + if error.code in DEAD or error.code in UNVERIFIED: + continue + return "unverified", last + except urllib.error.URLError as error: + reason = error.reason + if isinstance(reason, socket.gaierror): + return "dead", f"DNS: {reason}" + last = f"{type(reason).__name__}: {reason}" + except (TimeoutError, ssl.SSLError, ConnectionError, OSError) as error: + last = f"{type(error).__name__}: {error}" + return ("dead" if last in {str(code) for code in DEAD} else "unverified"), last + + +def check_host(urls: list[str]) -> dict[str, tuple[str, str]]: + results = {} + for index, url in enumerate(urls): + if index: + time.sleep(PAUSE_PER_HOST) + results[url] = probe(url) + return results + + +def main() -> int: + parser = argparse.ArgumentParser(description=__doc__.split("\n")[0]) + parser.add_argument("only", nargs="*", help="top-level directories to scan") + parser.add_argument("--json", metavar="PATH", help="also write results as JSON") + args = parser.parse_args() + + cited = collect(args.only) + by_host: dict[str, list[str]] = defaultdict(list) + for url in cited: + by_host[urlsplit(url).hostname or ""].append(url) + + results: dict[str, tuple[str, str]] = {} + with ThreadPoolExecutor(max_workers=8) as pool: + for chunk in pool.map(check_host, by_host.values()): + results.update(chunk) + + counts = defaultdict(int) + for verdict, _ in results.values(): + counts[verdict] += 1 + for verdict in ("dead", "unverified"): + for url in sorted(u for u, (v, _) in results.items() if v == verdict): + print(f"{verdict.upper():10} {results[url][1]:>6} {url}") + for place in cited[url][:5]: + print(f"{'':19}{place}") + if len(cited[url]) > 5: + print(f"{'':19}... and {len(cited[url]) - 5} more") + print( + f"{len(results)} external URLs on {len(by_host)} hosts: " + f"{counts['ok']} ok, {counts['unverified']} unverified, {counts['dead']} dead" + ) + if args.json: + Path(args.json).write_text( + json.dumps( + {u: {"verdict": v, "detail": d, "cited": cited[u]} for u, (v, d) in sorted(results.items())}, + indent=2, + ) + ) + return 1 if counts["dead"] else 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/tools/model_hero.py b/tools/model_hero.py index 186cbaa22..06fe752f8 100644 --- a/tools/model_hero.py +++ b/tools/model_hero.py @@ -2,9 +2,11 @@ One template for the seven models' pages (Overview, Methodology, Validation, Code, Paper): icon tile, kind line, name, the page's own lede, and a meta row -(country, trust status, access, cadence). The trust chip links to the same -glossary entry the Overview verdict uses, so the status reads identically on -every tab. Idempotent: re-running replaces the strip in place. +(country, trust status, access, cadence, pinned code). The trust chip links to +the same glossary entry the Overview verdict uses, so the status reads +identically on every tab. The pin chip is read from the ``[models]`` extra in +``integration/pyproject.toml``, so a re-pin there makes ``--check`` fail until +the pages are re-stamped. Idempotent: re-running replaces the strip in place. python3 tools/model_hero.py # rewrite pages python3 tools/model_hero.py --check # exit 1 if any page is stale @@ -33,8 +35,48 @@ "hosted": '<path d="M7 18a4.5 4.5 0 0 1-.5-9 6 6 0 0 1 11.5 1.5A3.8 3.8 0 0 1 17.5 18H7Z"/>', "local": '<rect x="3" y="4" width="18" height="12" rx="2"/><path d="M8 20h8"/><path d="M12 16v4"/>', "cadence": site_nav.ICONS["clock"], + # Lucide git-commit-horizontal + "pin": '<circle cx="12" cy="12" r="3"/><line x1="3" x2="9" y1="12" y2="12"/><line x1="15" x2="21" y1="12" y2="12"/>', } +# Model key -> the GitHub repository the integration layer installs it from. +# Only models pinned by commit in integration/pyproject.toml are listed: the +# microsimulation is pinned by package version, OG-UK and DEFINE-UK are not +# installed from that file, and a chip that guessed a version would be worse +# than none. +PIN_REPOS = { + "obr": "PolicyEngine/obr-macroeconomic-model", + "svar": "PolicyEngine/boe-var-model", + "frb-us": "PolicyEngine/us-frb-model", + "us-hank": "PolicyEngine/us-hank-model", +} +PYPROJECT = ROOT / "integration" / "pyproject.toml" +PIN_RE = re.compile(r"git\+https://github\.com/([\w.-]+/[\w.-]+?)(?:\.git)?@([0-9a-f]{40})\b") + + +def model_pins() -> dict[str, tuple[str, str]]: + """Model key -> (repository, 40-character commit) from pyproject.toml. + + The one place a model commit is declared. Raises if a model in PIN_REPOS + has no commit pin there, so a move to a branch or a tag cannot leave the + pages showing a commit nothing installs. + """ + declared = dict(PIN_RE.findall(PYPROJECT.read_text())) + missing = [repo for repo in PIN_REPOS.values() if repo not in declared] + if missing: + raise ValueError(f"{PYPROJECT.relative_to(ROOT)}: no commit pin for {', '.join(missing)}") + return {key: (repo, declared[repo]) for key, repo in PIN_REPOS.items()} + + +def is_model_tab(rel: str) -> bool: + """The four tabs of a model, not its paper or report. + + A paper or a report is a dated document built at the commit it names; the + pin chip states what this repository installs today, so it goes only on + the pages that are kept in step with the pin. + """ + return not rel.startswith(("papers/", "reports/")) + # kind line, country, (trust label, glossary anchor), access, cadence MODELS = { "pe": ("Tax-benefit microsimulation", "UK · US", ("Exact for rules", "exact-for-rules"), "hosted", "Annual"), @@ -95,6 +137,17 @@ def hero(rel: str, old: str) -> str: f' <li><a class="mh-chip mh-trust" href="/glossary#{anchor}">{svg(META_ICONS["trust"], 14)}{trust}</a></li>', f' <li class="mh-chip mh-{access}">{svg(META_ICONS[access], 14)}{access_label}</li>', f' <li class="mh-chip">{svg(META_ICONS["cadence"], 14)}{cadence}</li>', + ] + if key in PIN_REPOS and is_model_tab(rel): + repo, commit = model_pins()[key] + short = commit[:7] + lines.append( + f' <li><a class="mh-chip mh-pin" href="https://github.com/{repo}/tree/{commit}" ' + f'title="Model code this site is pinned to: {repo.split("/")[1]} at commit {short} ' + f'(integration/pyproject.toml)" aria-label="Model code pinned at commit {short}">' + f'{svg(META_ICONS["pin"], 14)}{short}</a></li>' + ) + lines += [ ' </ul>', ' </div>', ' </div>', diff --git a/us-hank/code/index.html b/us-hank/code/index.html index a359cbeec..b8cc9eb59 100644 --- a/us-hank/code/index.html +++ b/us-hank/code/index.html @@ -52,6 +52,7 @@ <h1 class="page-title">US HANK</h1> <li><a class="mh-chip mh-trust" href="/glossary#partial-replication"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/></svg>Partial replication</a></li> <li class="mh-chip mh-hosted"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 18a4.5 4.5 0 0 1-.5-9 6 6 0 0 1 11.5 1.5A3.8 3.8 0 0 1 17.5 18H7Z"/></svg>Hosted</li> <li class="mh-chip"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>Quarterly IRFs</li> + <li><a class="mh-chip mh-pin" href="https://github.com/PolicyEngine/us-hank-model/tree/58353e5f821b869198a6b179f15e2183beb68c54" title="Model code this site is pinned to: us-hank-model at commit 58353e5 (integration/pyproject.toml)" aria-label="Model code pinned at commit 58353e5"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="3"/><line x1="3" x2="9" y1="12" y2="12"/><line x1="15" x2="21" y1="12" y2="12"/></svg>58353e5</a></li> </ul> </div> </div> diff --git a/us-hank/index.html b/us-hank/index.html index 687a31ff5..10af3d2e4 100644 --- a/us-hank/index.html +++ b/us-hank/index.html @@ -52,6 +52,7 @@ <h1 class="page-title">US HANK</h1> <li><a class="mh-chip mh-trust" href="/glossary#partial-replication"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/></svg>Partial replication</a></li> <li class="mh-chip mh-hosted"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 18a4.5 4.5 0 0 1-.5-9 6 6 0 0 1 11.5 1.5A3.8 3.8 0 0 1 17.5 18H7Z"/></svg>Hosted</li> <li class="mh-chip"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>Quarterly IRFs</li> + <li><a class="mh-chip mh-pin" href="https://github.com/PolicyEngine/us-hank-model/tree/58353e5f821b869198a6b179f15e2183beb68c54" title="Model code this site is pinned to: us-hank-model at commit 58353e5 (integration/pyproject.toml)" aria-label="Model code pinned at commit 58353e5"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="3"/><line x1="3" x2="9" y1="12" y2="12"/><line x1="15" x2="21" y1="12" y2="12"/></svg>58353e5</a></li> </ul> </div> </div> diff --git a/us-hank/methodology/index.html b/us-hank/methodology/index.html index 15f3ab649..84af9f538 100644 --- a/us-hank/methodology/index.html +++ b/us-hank/methodology/index.html @@ -53,6 +53,7 @@ <h1 class="page-title">US HANK</h1> <li><a class="mh-chip mh-trust" href="/glossary#partial-replication"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/></svg>Partial replication</a></li> <li class="mh-chip mh-hosted"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 18a4.5 4.5 0 0 1-.5-9 6 6 0 0 1 11.5 1.5A3.8 3.8 0 0 1 17.5 18H7Z"/></svg>Hosted</li> <li class="mh-chip"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>Quarterly IRFs</li> + <li><a class="mh-chip mh-pin" href="https://github.com/PolicyEngine/us-hank-model/tree/58353e5f821b869198a6b179f15e2183beb68c54" title="Model code this site is pinned to: us-hank-model at commit 58353e5 (integration/pyproject.toml)" aria-label="Model code pinned at commit 58353e5"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="3"/><line x1="3" x2="9" y1="12" y2="12"/><line x1="15" x2="21" y1="12" y2="12"/></svg>58353e5</a></li> </ul> </div> </div> diff --git a/us-hank/validation/index.html b/us-hank/validation/index.html index 2fe42b69d..f9ac5f725 100644 --- a/us-hank/validation/index.html +++ b/us-hank/validation/index.html @@ -52,6 +52,7 @@ <h1 class="page-title">US HANK</h1> <li><a class="mh-chip mh-trust" href="/glossary#partial-replication"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/></svg>Partial replication</a></li> <li class="mh-chip mh-hosted"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 18a4.5 4.5 0 0 1-.5-9 6 6 0 0 1 11.5 1.5A3.8 3.8 0 0 1 17.5 18H7Z"/></svg>Hosted</li> <li class="mh-chip"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>Quarterly IRFs</li> + <li><a class="mh-chip mh-pin" href="https://github.com/PolicyEngine/us-hank-model/tree/58353e5f821b869198a6b179f15e2183beb68c54" title="Model code this site is pinned to: us-hank-model at commit 58353e5 (integration/pyproject.toml)" aria-label="Model code pinned at commit 58353e5"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="3"/><line x1="3" x2="9" y1="12" y2="12"/><line x1="15" x2="21" y1="12" y2="12"/></svg>58353e5</a></li> </ul> </div> </div>