← Back to Pull requests

Respect transcript logging settings in ZeroGPU error paths #846

Merged
salignatmoandal merged 4 files (79 lines) on Nov 23, 2026 09:18 UTC
View on GitHub
salignatmoandal salignatmoandal commented on Nov 17, 2026 22:03 UTC
Author

Summary

ZeroGPU STT and TTS use logger.exception() directly, so an exception containing conversation content writes that content and its traceback even with transcript logging disabled. This also affects the STT language-detection fallback.

Before / after

| Before | After |
| --- | --- |
| ZeroGPU exceptions expose their message and traceback with transcript logging disabled. | Exception details follow the transcript logging setting; ERROR diagnostics and failure behavior are preserved. |

What changes

Use the existing log_exception() helper at all three sites. Errors retain their ERROR level, diagnostic message and exception type; exception messages and tracebacks require explicit transcript logging. Failure events and fallback behavior are preserved.

Related to #836, which reports the same logging-policy concern in the separate tool-call parser. This change covers the ZeroGPU paths, rather than the parser fix in #837.

Test plan

  • Eight parameterized logging cases cover STT failures, language-detection fallback and both ZeroGPU TTS provider configurations, with transcript logging disabled/enabled. The four disabled cases fail on the unchanged handlers and pass with the fix.

  • ZeroGPU and transcript/handler logging regression cohort: 104 passed.

  • Mypy: 173 source files, no issues.

  • Ruff lint/format and git diff --check pass.
  • Tests use synthetic exception content and stubbed workers; no live GPU or provider calls were made. The full repository suite was not run.

    Diff: 79 lines (+73 / -6) across 4 files Reviewer: andimarafioti Review duration: 7875m
    All Vouch review confidence checks passed
    Residual risk 0.11 = Change Risk (0.34) × (1 − Review Confidence (0.68)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.34 · 79 lines diff across 4 files
    0.34
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.35 · 1 substantive comment(s)
    0.35
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    67%
    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.262
    Real PR Conversation Timeline
    2 items
    andimarafioti andimarafioti approved these changes on Nov 23, 2026 09:18 UTC
    Approved Reviewer
    Reviewers
    Assignees
    salignatmoandal salignatmoandal
    Labels
    risk: low confidence: 67.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.6% (LOW) · Higher = larger blast radius
    33.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: 67.5% · Lower = rushed or shallow review
    67.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: 10.9% · Safe to merge
    10.9%