← Back to Pull requests

Add weekly source link check #28

Closed
unknown closed this pull request without merging on Oct 31, 2026 14:11 UTC
View on GitHub
unknown unknown commented on Oct 31, 2026 14:05 UTC
Author

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

What does this PR change?

Adds a weekly check that every source URL in data/providers.json still works, so dead citations get caught between monthly refreshes.

  • scripts/check-links.mjs (npm run check-links): fetches each unique source URL (no dependencies, Node's built-in fetch, 3 attempts, 30s timeout). It sorts results into:

  • - Broken: 404/410, a domain that no longer resolves, or a deep link that now redirects to the site's home page. These fail the run.
    - Could not verify: 401/403/429, 5xx, timeouts. These are reported but don't fail, because several sources (DatacenterDynamics, Business Wire, OpenAI) block automated requests while the page is fine.
  • .github/workflows/link-check.yml: runs Mondays 15:00 UTC (09:00 Mexico City) and on demand. When links are broken it opens one issue labelled link-check (or updates the open one), and closes it automatically once everything passes. It also runs on PRs that touch providers.json as a non-required check, so a typo'd URL in a refresh PR shows up without a flaky site blocking a merge.

  • Data-refresh skill: step 2 now picks up an open link-check issue and fixes those sources that month.

  • CLAUDE.md and package.json list the new command.
  • No data changes, so this doesn't conflict with the Nov 1 refresh PR.

    Tested against the live dataset: 24 unique URLs, 20 OK, 0 broken, 4 could not be verified (403 from DatacenterDynamics ×2, Business Wire, and GitHub from the test environment's proxy). A test file with a made-up 404 URL was correctly reported as broken with exit code 1.

    Type of change

  • New feature
  • ---
    _Generated by Claude Code_

    Diff: 243 lines (+182 / -61) across 3 files Reviewer: claude[bot] Review duration: 6m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 243 lines diff across 3 files
    0.44
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 99% · Reviewer familiarity: 35%
    60%
    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.329
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #28"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.4% 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: 43.8% (MEDIUM) · Higher = larger blast radius
    43.8%
    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: 60.4% · Lower = rushed or shallow review
    60.4%
    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: 17.3% · Safe to merge
    17.3%