← Back to Pull requests

fix: make partial parallel recall config internally consistent #42

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

Why

Closes #41.

ParallelRecallManager.execute() treated missing top_k_per_path entries as optional in its guards, then indexed the same entries as required in the body. That is not merely a hypothetical partial-config case: core/pipeline.py deliberately passes a reduced BGE+BM25 mapping for simple queries.

Change

  • Preserve the existing meaning of a caller-supplied mapping: it is the request-scoped recall topology, so an omitted path is disabled for that request.

  • Preserve None as "use the canonical full topology".

  • Bind each present path config once and use the same resolved value for the enabled check and top_k access.

  • Preserve default top_k when a path is present with an empty config.

  • Add focused regression coverage proving a simple-query BGE+BM25 mapping does not silently restore CLIP or rewrite paths.
  • Scope

    No change to canonical recall topology, RRF, default Top-K values, model routing, evidence levels, docs, deployment, or benchmark claims.

    Review follow-up

    The first revision merged caller mappings over the full defaults. Codex review correctly identified that this would re-enable paths intentionally omitted by the simple-query router. The implementation was revised to preserve omission-as-disabled semantics.

    Verification

    The new tests are deterministic and require no real model/GPU/service assets. GitHub Actions is the authoritative run result for the current head.

    Diff: 180 lines (+135 / -45) across 2 files Reviewer: Xander-Xai Review duration: 74m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.64) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.64 · 180 lines diff across 2 files
    0.64
    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.311
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.064
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #42"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed sensitive_module
    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: 63.7% (MEDIUM) · Higher = larger blast radius
    63.7%
    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: 27.6% · Safe to merge
    27.6%