← Back to Pull requests

fix: skip concurrently deleted manifests when listing drive objects #108

Closed
unknown closed this pull request without merging on Oct 21, 2026 15:15 UTC
View on GitHub
unknown unknown commented on Oct 19, 2026 20:20 UTC
Author

Closes #95.

What

1. Manifest overwrite stranding trailing chunks. On main, delete_object already deletes every object under TenantPaths::drive_object_prefix(tenant, object_id) rather than iterating 0..manifest.chunk_count, which is the second option the issue allows. This PR adds a comment saying why and a regression test, delete_after_shrinking_manifest_removes_trailing_chunks: it writes three chunks, overwrites the manifest with chunk_count: 1, deletes, and checks that nothing is left under the object prefix. put_manifest stays an overwrite; the create-only alternative waits on P41's PutMode::Create.
2. Concurrent delete failing list_objects with 404. A per-manifest vault.get that returns StorageError::NotFound is now skipped. Other storage errors still fail the request. Regression test: listing_skips_manifests_deleted_concurrently uses a test VaultStore that deletes each manifest right after listing it. It returns 404 without the fix and 200 with an empty list with it.

Notes

  • Both tests are in drive_api.rs and use its current local helpers. #106 moves those helpers to tests/common, so whichever PR merges second needs a small rebase.

  • scripts/check.sh passes.
  • Diff: 153 lines (+114 / -39) across 1 files Reviewer: abendrothj Review duration: 2574m
    All Vouch review confidence checks passed
    Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 153 lines diff across 1 files
    0.33
    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.301
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #108"
    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: 33.1% (LOW) · Higher = larger blast radius
    33.1%
    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: 13.1% · Safe to merge
    13.1%