← Back to Pull requests

fix(doctor): print the note for a fixed-upstream finding #71

Closed
unknown closed this pull request without merging on Nov 23, 2026 06:30 UTC
View on GitHub
unknown unknown commented on Nov 16, 2026 18:05 UTC
Author

<!-- claude-projects-attribution: {"github_login":"connabyss"} -->
_Requested by CH · project thread_

What this changes

Fixes #56. summarize() kept only each known issue's URL, so doctor said "Tracked at" even for findings the library has already fixed. Now a fixed-upstream finding prints its note with the link (Fixed upstream: Fixed in openinference-instrumentation-anthropic 3.1.0, by … <url>), and a reported one keeps "Tracked at". In --json, upstream stays a list of URLs because the skill reads it, and a new upstream_issues list next to it carries each link's url, status and note. SKILL.md now suggests the upgrade that the note names for a fixed-upstream finding.

How it was tested

  • uv run pytest -m "not slow": 474 passed. Four new tests in tests/test_doctor.py; with the doctor.py change reverted, three of them fail (fixed-upstream line, JSON fields, note kept on one line). The fourth guards that a reported finding keeps "Tracked at".

  • uv run pytest -m slow: 12 passed, 1 failed in the full run (test_action.py::test_the_action_compares_with_an_expectation_file). It passes alone, both with this change and on main, so it looks like timing in the parallel run, not this change.

  • uv run ruff check . && uv run ruff format --check .: clean.
  • Checklist

  • The title is a Conventional Commit, for example feat(subjects): add logfire.

  • A test covers the change, and it fails when the change is reverted.

  • control-honest passes, and control-faulty fails exactly its expected checks.

  • Every new red cell is explained: the line of code that causes it, or a note that I could not find it. (No new red cells.)

  • CHANGELOG.md is updated under Unreleased.
  • 🤖 Generated with Claude Code

    https://claude.ai/code/session_0175Q8iDaZjw11QYbMTXMCw4

    Diff: 249 lines (+186 / -63) across 3 files Reviewer: chrikrah Review duration: 9384m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 249 lines diff across 3 files
    0.44
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.330
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #71"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.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: 44.0% (MEDIUM) · Higher = larger blast radius
    44.0%
    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: 60.5% · Lower = rushed or shallow review
    60.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: 17.4% · Safe to merge
    17.4%