← Back to Pull requests

Add a public status-change history per provider #29

Open
unknown opened this pull request with 413 lines diff across 5 files
View on GitHub
unknown unknown commented on Oct 31, 2026 14:10 UTC
Author

<!-- claude-projects-attribution: {"github_login":"adamwestland"} -->
_Requested by Adam · project thread_

What does this PR change?

Adds a public record of every disclosure status change per provider, so visitors can see how each provider's disclosures have moved over time. It records statuses only (yes / partial / no), never a score.

  • data/history.json (new, with data/history.schema.json): append-only log. Each entry has date, provider, dimension, from, to, source_url, and a one-sentence note. An entry with from: null records the status when a provider was first tracked. It's seeded from the git history of data/providers.json: 50 first-tracked entries (2026-03-22, sources as cited then) and the 4 status changes from 2026-10-30 (Google per-facility, Amazon water and per-facility, Meta AI-specific). No provider data changed.

  • /changes page: a timeline of status changes with notes and source links, plus a per-provider "first tracked vs now" table. Linked from the nav, the mobile provider cards, the desktop table's detail rows, and the Data page. Also downloadable at /data/history.json.

  • check-data now checks that replaying the history ends at each provider's current status, that a status change's entry is dated with the provider's new last_updated, and (with a base ref) that existing history entries weren't edited, removed or reordered. CI also validates the history schema.

  • Data refresh skill gets a new step 5: append a history entry for every status change. CLAUDE.md, CONTRIBUTING, REVIEW, the PR template and the methodology page describe the same step.

  • Bug fix: the "Download JSON" link on /data served public/data/providers.json, a copy that hadn't been updated since March 2026. It's now generated from data/providers.json at build time, so it always matches the site.
  • Timing note: the first scheduled refresh runs 2026-11-01 using the skill on main. If it opens a PR with a status change before this merges, whichever PR merges second needs a matching history.json entry added (CI will say so).

    Data changes checklist

  • Every new or changed value has a source URL cited below (history entries reuse the sources already cited in providers.json and CHANGELOG)

  • Sources are from official reports, published papers, or reputable organizations

  • Source publication date is noted (see the 2026-10-30 CHANGELOG entry)

  • last_updated unchanged (no provider data changed)

  • CHANGELOG.md entry added

  • data/history.json entry appended for each status change
  • Sources

    No new sources. Status-change entries cite the same sources as the 2026-10-30 refresh (#24).

    Testing

  • npm run validate, npm run check-data -- origin/main and npm run build pass.

  • Checked that check-data fails when a status changes without a history entry, when the entry has the wrong date, and when an existing entry is edited.

  • Viewed /changes at desktop and 390px widths; no horizontal scroll.
  • Type of change

  • New feature

  • Bug fix

  • Documentation
  • ---
    _Generated by Claude Code_

    Diff: 413 lines (+309 / -104) across 5 files Reviewer: claude[bot] Review duration: 5m
    All Vouch review confidence checks passed
    Residual risk 0.35 = Change Risk (0.50) × (1 − Review Confidence (0.30)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 413 lines diff across 5 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 52% · Reviewer familiarity: 35%
    30%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.361
    Shallow Review Depth shallow_review_depth
    0.344
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #29"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 30.3% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 49.9% (MEDIUM) · Higher = larger blast radius
    49.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 30.3% · Lower = rushed or shallow review
    30.3%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 34.8% · Safe to merge
    34.8%