← Back to Pull requests

fix(runtime): honor Kimi K3 none effort #6183

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

Summary

Kimi Code's refreshed models.dev metadata now declares none for K3. Maka resolves that as off, but the Kimi Coding Plan request builder previously dropped off, leaving K3 at its default reasoning level. When the metadata declares none, send Kimi's explicit disabled-thinking wire for Anthropic Messages and reasoning_effort: none for OpenAI Chat. Keep the current behavior for catalog entries that do not declare none. The wire mapping follows the Kimi Code model configuration.

Verification

  • npm run build:test

  • node --test packages/runtime/dist/__tests__/model-factory-thinking.test.js — 55 passed

  • node --test packages/runtime-host/dist/__tests__/execution-model-composition.test.js — 43 passed, including prompt-suggestion cases with and without none metadata

  • Biome check on the three changed files and git diff --check
  • AI use

  • No generative tool made a substantive contribution

  • Generative tooling made a substantive contribution
  • Tool(s) and scope: OpenAI Codex implemented the runtime mapping and tests.

    Checklist

  • Tests cover the change and fail without it

  • Lint, format, typecheck and the affected suites pass locally
  • Does this PR entail a change in behavior?

  • Yes — when refreshed Kimi Code metadata declares none, the least-reasoning choice now disables thinking.

  • No
  • Diff: 177 lines (+132 / -45) across 2 files Reviewer: chinawch007 Review duration: 111m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 177 lines diff across 2 files
    0.40
    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.310
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #6183"
    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.5% (MEDIUM) · Higher = larger blast radius
    40.5%
    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.5% · Safe to merge
    17.5%
    Repository