← Back to Pull requests

fix: preserve image atlas across patchless resolves (rebase of #1664) #2090

Open
unknown opened this pull request with 146 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 18, 2026 19:16 UTC
Author

This is #1664 by @waywardmonkeys, rebased onto main. Fixes #1948. Fixes #1809.

#1664 was approved in June but now conflicts with main. This is the same commit, with its authorship, moved to the research/ paths. The only changes from the original are in the regression test: the import list, and an unwrap() on get_mapped_range() for wgpu 30.

A frame with no image, gradient or glyph patches makes the renderer free the persistent image atlas while the resolver still records its images as uploaded, so every later image draws transparent. This still reproduces on 0.12.0.

Testing (Apple M5, Metal):

  • The reproduction in #1948 fails on 0.12.0 and passes on this branch.

  • glyph_image_brush_survives_image_free_render fails on main and passes here.

  • cargo test -p vello_encoding, clippy and fmt are clean.

  • Snapshot tests were not run locally (no Git LFS), so those are left to CI.
  • The changelog entry is in the second commit. The third switches the test to as_chunks, which clippy 1.99 requires.

    @waywardmonkeys, happy to close this if you would rather update #1664.

    LLM disclosure: the rebase was done with LLM assistance and reviewed by me.

    Diff: 146 lines (+109 / -37) across 1 files Reviewer: waywardmonkeys Review duration: 18875m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.33) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 146 lines diff across 1 files
    0.33
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.299
    Real PR Conversation Timeline
    1 comments
    "Review active on #2090"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 32.8% (LOW) · Higher = larger blast radius
    32.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: 46.7% · Lower = rushed or shallow review
    46.7%
    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.5% · Safe to merge
    17.5%