← Back to Pull requests

feat(skill): preview XLSX row shifts #4738

Open
unknown opened this pull request with 181 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 04, 2026 01:27 UTC
Author

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

  • Public CLI, API, configuration, or documented behavior changed

  • Privileged or security-sensitive behavior changed

  • Cross-component contract changed

  • Migration or rollback guidance is needed
  • 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.

    Diff: 181 lines (+135 / -46) across 2 files Reviewer: copilot-pull-request-reviewer[bot] Review duration: 3m
    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
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 87% · Reviewer familiarity: 35%
    39%
    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.311
    Real PR Conversation Timeline
    1 comments
    "Review active on #4738"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 39.9% 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: 35.6% (MEDIUM) · Higher = larger blast radius
    35.6%
    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: 39.9% · Lower = rushed or shallow review
    39.9%
    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: 21.4% · Safe to merge
    21.4%