← Back to Pull requests

fix(table): preserve files after replayed snapshot publication #1417

Closed
unknown closed this pull request without merging on Nov 17, 2026 15:36 UTC
View on GitHub
unknown unknown commented on Nov 16, 2026 13:27 UTC
Author

<!--
Thank you very much for contributing to Paimon Rust - we are happy that you want to help us improve it. To help the community review your contribution in the best possible way, please go through the checklist below, which will get the contribution into a shape in which it can be best reviewed.

Contribution Checklist

- Make sure that the pull request corresponds to a GitHub issue. Exceptions are made for typos in documentation or comments, which need no issue.

- Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.

- Make sure that the change passes the automated tests, i.e., cargo test passes.

- Each pull request should address only one issue, not mix up code from multiple issues.

(The sections below can be removed for hotfixes or typos)
-->

Purpose

<!-- Linking this pull request to the issue -->
A conditional snapshot write can succeed before its response is lost, then report a conflict on retry. Treating this as a failed commit can delete DV or index files already referenced by the published snapshot.

<!-- What is the purpose of the change -->

Brief change log

<!-- Please describe the changes made in this pull request and explain how they address the issue -->

Verify snapshot ownership directly from storage before cleanup. Preserve files when ownership is uncertain, with regression coverage for replay, legacy snapshots, and stale caches after rollback.

Tests

<!-- List unit tests or integration cases to verify this change -->

  • 216 commit tests and the OSS conditional-write replay test passed.

  • Rust 1.98.0 formatting and workspace Clippy passed.
  • API and Format

    <!-- Does this change affect API or storage format -->

    Documentation

    <!-- Does this change introduce a new feature or require documentation updates -->

    Diff: 243 lines (+182 / -61) across 3 files Reviewer: JeonDaehong Review duration: 1568m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 243 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · 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
    Real PR Conversation Timeline
    1 comments
    "Review active on #1417"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.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: 38.8% (MEDIUM) · Higher = larger blast radius
    38.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.5% · Lower = rushed or shallow review
    60.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: 15.3% · Safe to merge
    15.3%