feat(library): queue library-wide rename and retag without blocking the API #192
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.53) × (1 − Review Confidence (0.38)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.53 · 518 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 64% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.374
Shallow Review Depth
shallow_review_depth
0.344
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #192"
general
weight: 0.35
cursor[bot]
Why
An unscoped rename dry-run walked every library file on the Node event loop and froze production (~151k files) for about 10 minutes. There was also no safe way to rename or retag the whole library, unmapped deletion had no preview, and already-correct files were flagged because
relative_pathwas compared with an absolute expected path.This recovers the unfinished Cursor cloud-agent work from
bc-61436faa(all 72 edits applied, then finished and tested).What
GET /api/v1/mediaFile/rename/dry-runwithout artist/album/edition/release scope now returns 400 and points at the background preview.file_pathwith the expected path (NFC-normalized).unresolved_sidecar) are eligible in scan cleanup.Also included
Tests
yarn cipassed locally: lint (existing warning only), typecheck, 2854 API tests + 56 app test files, build.Out of scope / not closed by this PR
<!-- CURSOR_SUMMARY -->
---
<!-- /CURSOR_SUMMARY -->