← Back to Pull requests

Link related sessions by the file they edited, not its spelling #111

Closed
unknown closed this pull request without merging on Oct 28, 2026 04:35 UTC
View on GitHub
unknown unknown commented on Oct 27, 2026 05:54 UTC
Author

related step 2 ("sessions that edited a file this one also edited") joined touched rows on the stored path. Codex stores a path relative to the folder it ran in and Claude Code a full one, so:

  • src/auth.rs from /proj/api never met /proj/api/src/auth.rs (same file, not linked);

  • src/auth.rs from /proj/web met src/auth.rs from /proj/api (different files, linked).
  • Change: both sides of the join use the full path (a relative path read against its session's folder; left as stored when the session has no folder), compared ignoring case as trace does since #109.

    Test: shared_file_relatedness_reads_relative_paths_against_their_folder (a full path, a relative one from the matching folder, a case variant, and a relative one from another folder). It failed first (["web"] instead of ["cased", "full"]). Mutation check, both killed: no case folding, no folder join.

    Real data (WSL), honestly small: in a random 300 sessions, 12 related lists changed, each losing 10 false links, all between throwaway runs under /tmp linked only by relative notes.md, tmp_a.log or __pycache__/stale.pyc. No list between real projects changed: of 324 full/relative partner links I checked, 46 show both before and after, because step 1 (same project, newest first) usually fills the 10 slots before step 2 runs. related takes about 45 ms instead of 22 ms.

    Local gates: cargo fmt --check, cargo clippy --all-targets -- -D warnings, cargo test (340 passed, 0 failed).

    Diff: 186 lines (+139 / -47) across 2 files Reviewer: youdie006 Review duration: 1360m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.41) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.41 · 186 lines diff across 2 files
    0.41
    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%
    56%
    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.313
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #111"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 40.8% (MEDIUM) · Higher = larger blast radius
    40.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: 56.8% · Lower = rushed or shallow review
    56.8%
    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.6% · Safe to merge
    17.6%