← Back to Pull requests

Reset retried README when page data changes #14972

Merged
ai-yang merged 2 files (37 lines) on Oct 15, 2026 07:37 UTC
View on GitHub
ai-yang ai-yang commented on Oct 15, 2026 06:33 UTC
Author

Fixes #14971.

A successful README retry overrides later route data while CrateVersionPage is reused. Following an internal link to another crate or version can therefore display the previous README under the destination's heading.

Use a writable $derived(readmePromise) so a retry overrides only the current request and a new route promise resets the displayed content. Add Playwright coverage for navigation to another crate and to another version after a successful retry, checking the URL, heading, version, and README.

Validation:

  • Both new regressions fail on the original code with the previous README still visible.

  • All seven tests in e2e/acceptance/readme-rendering.spec.ts pass after the fix.

  • All 255 Svelte unit/component tests pass. Svelte check, repository ESLint, changed-file Prettier, and the production build pass.

  • Full Playwright run: 345 passed, 1 skipped, and 1 versions-page ARIA snapshot failure. The same snapshot mismatch reproduces with both application fixes removed; it is present in the unchanged baseline.
  • Related: #13545 covers a different, previously closed Ember/history-navigation problem. This fix addresses the current Svelte retry state.

    AI assistance was used to implement the fix, and write the regression tests.

    Diff: 37 lines (+34 / -3) across 2 files Reviewer: Turbo87 Review duration: 63m
    All Vouch review confidence checks passed
    Residual risk 0.09 = Change Risk (0.26) × (1 − Review Confidence (0.68)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.26 · 37 lines diff across 2 files
    0.26
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.35 · 1 substantive comment(s)
    0.35
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    67%
    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.218
    Real PR Conversation Timeline
    2 items
    Turbo87 Turbo87 approved these changes on Oct 15, 2026 07:37 UTC
    Approved Reviewer
    Reviewers
    Assignees
    ai-yang ai-yang
    Labels
    risk: low confidence: 67.5% 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: 26.2% (LOW) · Higher = larger blast radius
    26.2%
    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: 67.5% · Lower = rushed or shallow review
    67.5%
    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: 8.5% · Safe to merge
    8.5%