← Back to Pull requests

Fix case-insensitive status filtering in MCP list_tasks #27

Merged
shm379 merged 1 files (4 lines) on Nov 04, 2026 20:04 UTC
View on GitHub
shm379 shm379 commented on Nov 04, 2026 10:05 UTC
Author

Fixes #20

Summary


  • Normalize the MCP list_tasks status argument by trimming and ASCII-lowercasing it before matching or validating.

  • Accept Done and ALL as well as done and all, matching the behavior of create_task / update_task.

  • Preserve rejection of unknown statuses; no dependencies, database changes, or UI changes.
  • Verification


  • cargo fmt --check

  • cargo clippy --all-targets --locked -- -D warnings

  • cargo test --locked — 36 passed, 0 failed

  • cargo build --locked

  • MCP stdio smoke test: Done, ALL, done, all accepted; INVALID rejected

  • Browser check not applicable (no UI changes)

  • README update not applicable (internal input normalization; no new feature)
  • Merge considerations


    Small, reversible change limited to src/mcp.rs. The same validation path remains in use after the normalization step.

    Diff: 4 lines (+2 / -2) across 1 files Reviewer: emanuele-em Review duration: 598m
    All Vouch review confidence checks passed
    Residual risk 0.07 = Change Risk (0.13) × (1 − Review Confidence (0.48)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.13 · 4 lines diff across 1 files
    0.13
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.00 · 1 substantive comment(s)
    0.00
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    48%
    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.350
    Diff Size diff_size
    0.096
    Real PR Conversation Timeline
    2 items
    emanuele-em emanuele-em approved these changes on Nov 04, 2026 20:03 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    shm379 shm379
    Labels
    risk: low confidence: 48.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: 12.6% (LOW) · Higher = larger blast radius
    12.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: 48.5% · Lower = rushed or shallow review
    48.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: 6.5% · Safe to merge
    6.5%