feat(skill): preview XLSX row shifts #4738
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.36) × (1 − Review Confidence (0.40)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 181 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 87% · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.311
Real PR Conversation Timeline
1 comments
"Review active on #4738"
general
weight: 0.35
copilot-pull-request-reviewer[bot]
Why
Workbook row-shift operations publish XML changes immediately, preventing users from inspecting the affected references before applying an edit.
What changed
Add --dry-run using the existing transformations and change counts while gating writes for worksheets, charts, tables and pivot caches. Provide argparse help and preview output.
Related issue
Closes #4720.
User / Agent impact
Users can preview insertion or deletion effects and then apply the same operation without --dry-run.
Risk and compatibility
Valid existing commands retain their behavior. Invalid CLI syntax now uses argparse exit 2. Named ranges, structured references and external links keep their documented limits.
Validation
Three regressions verify insertion/deletion byte preservation, identical preview/apply per-part and total counts, and no-op behavior; two fail on main. Existing XLSX tests pass. A composed scratch tree with XML writer, table/rule shifts, format/border and insertion fixes passes all 28 tests. Formatting, compile, diff and docs checks pass.
Documentation and rollback
Paired component README and user guides plus row-edit reference document preview use and limits. Revert this single commit to roll back.