← Back to Pull requests

fix(desktop): route Rive diagnostics through core redaction #4930

Open
unknown opened this pull request with 242 lines diff across 3 files
View on GitHub
unknown unknown commented on Sep 06, 2026 18:33 UTC
Author

Summary

Fixes #4925.

Route Rive text and structured diagnostics through the shared Core secret redactor. Preserve standalone Bearer tokens and whole quoted assignments, including spaces, escaped quotes, and multiline values, so CLI output and error tails cannot expose the remainder of a quoted password.

Verification

Current head ae69dba43 merges main 2463d86c3. Quoted assignment matching now consumes each key-character run once, preserving main's bounded scanner instead of restarting at every hyphen. The fake Rive CLI retains main's cross-platform Node fixture and emits the quoted-secret diagnostics through it.

  • Full repository build/typecheck/lint/format, Desktop/UI knip, ASF headers and diff checks pass.

  • 917 Core tests pass, including 36 redaction tests and the upstream long-input CPU-budget regression.

  • Compiled Rive workflow/CLI tests: 9/9.

  • Original quoted-assignment and fake-CLI regression failures remain documented in the earlier review. No new claim of full Desktop/Electron E2E coverage is made.

  • New hosted CI is pending; the previous head's successful check does not establish this merge result.
  • AI use

  • No generative tool made a substantive contribution

  • Generative tooling made a substantive contribution
  • Tool(s) and scope: OpenAI Codex authored the implementation, regression tests, and PR description for @seekskyworld. Human review and merge remain with the maintainers.

    Checklist

  • Tests cover the change and fail without it

  • Lint, format, typecheck and the affected suites pass locally
  • Does this PR entail a change in behavior?

  • Yes — described under Summary above

  • No
  • Known nonblocking limitation: a sensitive quoted assignment nested in a non-sensitive quoted value can still retain trailing words (for example, label="token='abc def'"). This gap also exists on main; this PR does not claim a complete nested diagnostic grammar.

    Diff: 242 lines (+181 / -61) across 3 files Reviewer: seekskyworld Review duration: 63204m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.46) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 242 lines diff across 3 files
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    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.329
    Real PR Conversation Timeline
    1 comments
    "Review active on #4930"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.7% 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: 45.8% (MEDIUM) · Higher = larger blast radius
    45.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: 44.7% · Lower = rushed or shallow review
    44.7%
    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: 25.3% · Safe to merge
    25.3%
    Repository