Skip to content

Site quality follow-ups: model versions for all seven models, a stale-data notice, long descriptions #292

Backlog

Description

@vahid-ahmadi

Follow-ups from the site quality pass in #290. Each was seen on the locally served site on 27 Nov 2026. None changes a number. They are grouped here because each is small; split out any that grows.

1. Three models show no version on their pages

#290 adds a chip with the pinned commit to the hero strip of the OBR emulator, BoE SVAR, FRB/US and US HANK pages. The other three have no chip, because nothing in integration/pyproject.toml pins them by commit:

Proposed: add a code_version field to each MODELS[...] entry in capabilities.py ({"repo": ..., "ref": ..., "kind": "commit" | "package"}), have tools/model_hero.py read the chip from there for all seven models, and assert in integration/tests/test_capabilities.py that the four commit pins equal the ones in pyproject.toml. Then get_model_status returns the same version the page shows.

2. The chip shows what the repository pins, not what the hosted server runs

Between a re-pin and the next deploy the two differ (the changelog entry for the 17f5d82 re-pin says "after a redeploy the hosted forecast_uk and latest_shocks run this pin"). A reader of /svar cannot tell which state the site is in.

Proposed: have the MCP server report the installed commit of each model package (from the wheel's direct_url.json) in get_model_status, and have validate-deployment.yml compare it with pyproject.toml after each deploy. The page can then keep its static chip, and the workflow is the alarm.

3. A page does not say when the data store is behind

The store was last updated on 16 Nov 2026; the scheduled fetch has failed every weekday since (#223). The pages are accurate about it but quiet. /forecasts reads "data store updated 16 Nov 2026" in small grey text under the Scoreboard heading. /economy reads "10 announced releases, all after the store's last update on 16 Nov 2026" above the release calendar, and flags one series in the data table: real business investment shows 2026Q2 with the note "2026Q3 not yet ingested", visible only when the row is expanded. The topic pages give each value's vintage date (for example "2026Q3 · vintage 2026-11-16") and nothing else.

That is enough for a reader who looks. A reader who lands on /economy/topics/growth ten days after the last fetch has no cue that the store may be behind the publisher.

Proposed: economy/build.py already knows the store's last update and the release calendar. When a release date in the calendar has passed and the store has no snapshot of that series from on or after it, render an amber notice at the top of the affected topic page: "Newer official data may exist: the ONS was due to publish this series on ; the latest snapshot here is ." It is generated from committed data, so --check still passes offline. It would fire today: of the ten releases in data/calendar.ics, seven were announced for 17, 18 and 20 Nov 2026 (average weekly earnings, unemployment, vacancies, CPI, core CPI, public-sector net borrowing and net debt), and the store has no snapshot after 16 Nov. So on 27 Nov the UK inflation, jobs and public-finances pages are each one announced release behind. I did not check the ONS site to confirm each release went out on its date.

4. Meta descriptions are long

43 of the 61 in-scope pages have a description over 160 characters and 19 over 200; search engines cut them at about 155 to 160. The longest are /us-hank (339), /define/validation (331) and /define (294). Each reads as a full abstract. They need a hand rewrite to one sentence that leads with what the page is; the full text can stay as the on-page lede. A length test (<= 200) can follow the rewrite.

5. ISO dates in running prose

The site's convention is "12 Nov 2026" in prose and ISO dates only as identifiers (vintage and round ids). Four places use ISO in prose: /define/validation ("PASS (2026-08-04)"), /svar outlook chart caption ("Forecast made 2026-11-12"), /us-hank/validation ("Solved 2026-07-29") and /reports/define-uk-replication ("re-checked 2026-11-16"). The /svar one is generated by assets/make_current_outlooks.py.

6. Links to main from pages that quote pinned figures

After #286 and #290, three source links on /models/compare still point at main: obr-macroeconomic-model/docs/monetary_conditioning.md and us-frb-model/VALIDATION.md (twice). Both files have changed since the pins. The OBR one is deliberate today, because the page draws on a section that exists only on main. They resolve themselves at the next re-pin; tests/test_model_pins.py could then also reject blob/main links into pinned repositories.

7. External links a script cannot verify

tools/check_external_links.py (in #290) found 0 dead links out of 272. Five were refused or failed certificate checks from a script and were not opened by hand: define-model.org/define-uk, define-model.org/wp-content/uploads/2026/04/define_uk_1.1.pdf, two openicpsr.org project pages cited on /reports/us-hank-open-source, and one econweb.ucsd.edu PDF on /models. Worth one manual click each.

Checked and found clean

So nobody repeats it: no console errors, failed resources or broken images on the 61 pages; no horizontal scroll at 375px on any of them, and tables stack into labelled cards; one display name per model ("FRB-US" appears only where pages cite the Fed's 2010 model as Coenen et al. name it); pp, bp and £bn used uniformly; every reference to a model's current pin matches pyproject.toml.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions