← Back to Pull requests

fix(types)!: remove unused sessionStore/messageBroker options, export AllowedOrigins #277

Merged
mcollina merged 3 files (20 lines) on Oct 14, 2026 10:08 UTC
View on GitHub
mcollina mcollina commented on Oct 13, 2026 11:19 UTC
Author

Summary

MCPPluginOptions declared sessionStore?: 'memory' | 'redis' and messageBroker?: 'memory' | 'redis', but nothing in src/ read them. Backends are chosen only from opts.redis, so sessionStore: 'redis' without redis was silently ignored.

  • Remove both options from MCPPluginOptions (src/types.ts).

  • Export the AllowedOrigins type (the type of MCPPluginOptions.allowedOrigins) from the package entry.

  • tsd tests: the two options are now rejected, and AllowedOrigins is importable and matches MCPPluginOptions['allowedOrigins'].
  • README and CLAUDE.md did not mention these options, so no doc changes were needed.

    Breaking change

    sessionStore and messageBroker are no longer accepted by MCPPluginOptions. TypeScript code that passes them will fail to compile. Runtime behaviour does not change because the options were never read. Remove them, and set redis to use the Redis session store and message broker.

    Fixes #266

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01UF4S3w7iA83V9DVsasLJzM

    Diff: 20 lines (+12 / -8) across 3 files Reviewer: rozzilla Review duration: 1368m
    All Vouch review confidence checks passed
    Residual risk 0.09 = Change Risk (0.29) × (1 − Review Confidence (0.68)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.29 · 20 lines diff across 3 files
    0.29
    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.182
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    2 items
    rozzilla rozzilla approved these changes on Oct 14, 2026 09:08 UTC
    Approved Reviewer

    good we marked it as a semver major 👍🏼

    Reviewers
    Assignees
    mcollina mcollina
    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: 29.1% (LOW) · Higher = larger blast radius
    29.1%
    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: 9.5% · Safe to merge
    9.5%