Skip to content

Site currency fixes, UI defects, and the corrected GDP claim#87

Merged
vahid-ahmadi merged 3 commits into
mainfrom
site-currency-and-ui-fixes
Jul 24, 2026
Merged

Site currency fixes, UI defects, and the corrected GDP claim#87
vahid-ahmadi merged 3 commits into
mainfrom
site-currency-and-ui-fixes

Conversation

@vahid-ahmadi

Copy link
Copy Markdown
Contributor

Three commits from a four-agent review (content currency, UI/accessibility, comparable-site research, chart design).

1. Contradicted claims

  • frb-us page said "no stochastic simulation ... confidence bands are not available". stochsim_bands() has existed since us-frb-model Site: rename to PolicyEngine Macro + P0 accuracy/honesty pass #5 and is exported from frbus/__init__.py; the validation page already said the opposite, so the site contradicted itself. Row split: mcontrol is genuinely absent, and the honest limit is that the hosted MCP path returns a deterministic projection.
  • frb-us page said "two invariants" and described one cross-validated shock; VALIDATION.md gates four.
  • svar page attributed 6,000 draws / 430 accepted / ESS 197.9 to the hosted forecast. Those belong to the Section-5 revision run — the hosted default is 2,000 / 135 / 65.3. The misattribution overstated posterior precision ~3x.
  • svar page said claims are "scored on the paper's original sample"; they are scored on the extended 1992Q1–2025Q1 window.
  • capabilities.py still described frb-us fidelity as "a reference shock".
  • oguk in core.py was 0.3.0; OG-UK's pyproject.toml says 0.3.2.
  • 5.3e-12 → 5.23e-12, and a "7–8 points" heading left behind when Refresh boe-svar published figures to the 2026Q1 data vintage #85 updated the body and table to 6–10.

2. The GDP claim was wrong

Adding Diebold–Mariano tests (boe-var-model #5) shows UK GDP's ratio of 1.06–1.09 carries p = 0.38 to 0.67. The site said "CPI beats no change; GDP does not in rolling tests", which reads as an established loss. It is not — the model is statistically indistinguishable from a random walk for GDP. Only 3 of 64 cells are significant at 5%.

3. UI defects

  • --brand-wash and --radius-card were referenced 5+ times but never defined, so those backgrounds resolved to nothing — the PUBLISHED ANCHOR chips rendered as bare text while STATUTE/CALIBRATED rendered as pills, breaking the site's own three-class visual claim.
  • --brand and --brand-strong both resolve to --primary (a deliberate AA fix), which silently made .vc-s1 and .vc-s2 the same colour in every chart while the legend styled them as two.
  • .vc-b2/.vc-b3 measured ~2.3:1 and ~1.3:1, under the WCAG 1.4.11 3:1 floor.
  • .vc-warn used the same teal as links, so "Weak" rendered in the affirmative accent.
  • field.js removed. style.css documented that it was "now deleted along with its markup" because animated ornament behind technical prose is a reading hazard — but it was still loaded on all 12 pages and still drifting behind the body copy.

183 integration tests pass.

Known follow-ups, deliberately not in this PR

The benchmark itself is questionable: against a random walk with drift (the correct naive for a trending log level) the CPI win largely evaporates (0.63 → 0.83 at h=1, 0.67 → 1.03 at h=8), while Bank Rate improves to 0.79–0.85. And excluding 6 Covid quarters, UK GDP flips to 0.77. Both verified. Fixing that is model-repo work and will change published conclusions, so it is sequenced separately.

🤖 Generated with Claude Code

vahid-ahmadi and others added 3 commits July 24, 2026 16:20
Content corrections, each verified against the repos:

- frb-us page claimed "no stochastic simulation ... confidence bands are
  not available". stochsim_bands() has existed since us-frb-model #5 and is
  exported from frbus/__init__.py; the validation page already said the
  opposite, so the site contradicted itself. Split the row: mcontrol is
  still genuinely absent, and the honest limit is that the hosted MCP path
  returns a deterministic projection, not that the engine is missing.
- frb-us page said "two invariants" and described a single cross-validated
  shock; VALIDATION.md gates four like-for-like scenarios.
- svar page attributed 6,000 draws / 430 accepted / ESS 197.9 to the hosted
  forecast. Those belong to the Section-5 revision run; the hosted default
  is 2,000 draws, 135 accepted, ESS 65.3 -- the misattribution overstated
  posterior precision roughly threefold.
- svar page said replication claims are "scored on the paper's original
  sample"; they are scored on the extended 1992Q1-2025Q1 window.
- capabilities.py still described frb-us fidelity as "a reference shock".
- oguk version in core.py was 0.3.0; OG-UK's pyproject.toml says 0.3.2.
- 5.3e-12 -> 5.23e-12; and the "7-8 points" summary heading was left behind
  when #85 updated the body and table beneath it to 6-10.

UI defects:

- --brand-wash and --radius-card were referenced 5+ times but never
  defined, so those backgrounds resolved to nothing -- the PUBLISHED ANCHOR
  chips rendered as bare text while STATUTE/CALIBRATED rendered as pills,
  breaking the site's own three-class visual claim.
- --brand and --brand-strong both resolve to --primary (a deliberate AA
  fix), which silently made .vc-s1 and .vc-s2 the same colour in every
  chart while .vc-lab/.vc-lab2 styled the legend as two colours. Series 2
  now uses a dark slate that survives greyscale.
- .vc-b2/.vc-b3 measured ~2.3:1 and ~1.3:1, under the WCAG 1.4.11 3:1
  floor, on the comparison bars our numbers are judged against.
- .vc-warn used the same teal as links and series 1, so "Weak" rendered in
  the affirmative accent; now --brand-warning.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adding Diebold-Mariano tests to boe-var-model's rolling evaluation shows
only 3 of 64 (variable, horizon) cells differ significantly from the
benchmark at 5%. The site said "CPI beats no change; GDP does not in
rolling tests", which reads as an established loss. It is not: UK GDP's
ratio of 1.06-1.09 carries p = 0.38 to 0.67, so the model is statistically
indistinguishable from a random walk for GDP rather than worse than it.

The CPI win survives at short horizons (0.63, p < 0.005 at h=1) but not at
h=8 (p = 0.11). The one significant adverse result is the exchange rate at
h=8 (1.41, p = 0.03).

Updates the audit cell, the chart description and the capabilities
registry, and syncs the regenerated artifact carrying dm_stat, dm_pvalue
and per-origin errors.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
style.css documented at length that field.js was "now deleted along with
its markup" and replaced by a static lattice, because animated ornament
behind continuous technical prose is a reading hazard. The deletion was
never carried out in the HTML: the canvas was still loaded on all 12 pages
and still drifting behind the body copy, and the stylesheet's own comments
contradicted the rendered page.

Removes the script and canvas from all 12 pages, deletes field.js, and
drops the now-dead #field rules including the dark-mode override.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 24, 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, Comment Jul 24, 2026 3:34pm

Request Review

@vahid-ahmadi
vahid-ahmadi merged commit 9f541e7 into main Jul 24, 2026
3 checks passed
@vahid-ahmadi
vahid-ahmadi deleted the site-currency-and-ui-fixes branch July 24, 2026 15:36
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