← Back to Pull requests

fix(tower): steer into notification seeded turns #3998

Closed
unknown closed this pull request without merging on Sep 28, 2026 04:35 UTC
View on GitHub
unknown unknown commented on Sep 23, 2026 07:59 UTC
Author

Related Issue

<!-- Link the issue this change came from. External PRs must link an issue approved by a maintainer (an /approve comment) — PRs without one may be closed. -->

Resolve #(issue_number)

Problem

What changed

1. 用户输入可以打断 tower 的内部 turn,从而通过 tower快速控制 worker 。之前用户反馈 worker 出错了控制不及时

运行效果:

  • step1 worker 触发 tower,开始分析结果

  • step2 用户说 “不用分析了”

  • step3 tower 分析被打断,停止分析
  • <img width="1564" height="1144" alt="image" src="https://github.com/user-attachments/assets/b32427ce-6717-4c65-9d81-b0d4580f08f9" />

    2. 当用户输入图片时,提示 tower 把图以 kimi://file 形式共享给 worker
    3. 优化 teardown,目前不会误删正在进行的 worktree(例如 100 个 wt,要删掉其中已结束的 90 个释放磁盘)
    4. worker 结束前要读 Inbox
    5. 避免两个进程同时写 tower state.json 时写坏

    Checklist

  • I have read the CONTRIBUTING document.

  • I have linked a related issue (external PRs: the issue must have a maintainer's /approve).

  • I have added tests that prove my feature works.

  • Ran gen-changesets skill, or this PR needs no changeset.

  • Ran gen-docs skill, or this PR needs no doc update.
  • Diff: 142 lines (+106 / -36) across 1 files Reviewer: HelloWorldU Review duration: 6996m
    All Vouch review confidence checks passed
    Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 142 lines diff across 1 files
    0.33
    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%
    60%
    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.297
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3998"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.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: 32.7% (LOW) · Higher = larger blast radius
    32.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: 60.5% · Lower = rushed or shallow review
    60.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: 12.9% · Safe to merge
    12.9%