← Back to Pull requests

feat(web): track viewed Git changes #468

Closed
unknown closed this pull request without merging on Nov 10, 2026 10:28 UTC
View on GitHub
unknown unknown commented on Nov 09, 2026 18:52 UTC
Author

改动

已阅使用项目的标准行尾操作,鼠标悬停或键盘聚焦时出现,触屏常驻。暂存内容变化或工作树文件的 mtime、大小、模式变化会使标记失效。

用户故事 US-I06。

T3 Code 设计参考

验证

桌面弹窗 E2E 验证已阅同步。轮询每 5 秒运行一次,代码工作区不可见、标签页在后台或已有检查运行时会跳过。只有提供修改列表版本时才逐项检查,未暂存和未跟踪项各执行一次 Lstat。

界面证据

隔离实例使用同一组演示会话、假 Agent 与工作区文件。截图覆盖桌面、平板和手机 Chromium,含浅色和深色。触屏使用浏览器模拟。

| 视口 | 修改前 | 修改后 | 操作结果 |
| --- | --- | --- | --- |
| 桌面 1280 × 900 · 浅色 | !桌面 1280 × 900 · 浅色 修改前 | !桌面 1280 × 900 · 浅色 修改后 | !桌面 1280 × 900 · 浅色 操作结果 |
| 桌面 1280 × 900 · 深色 | !桌面 1280 × 900 · 深色 修改前 | !桌面 1280 × 900 · 深色 修改后 | !桌面 1280 × 900 · 深色 操作结果 |
| 平板 768 × 800 · 浅色 | !平板 768 × 800 · 浅色 修改前 | !平板 768 × 800 · 浅色 修改后 | !平板 768 × 800 · 浅色 操作结果 |
| 平板 768 × 800 · 深色 | !平板 768 × 800 · 深色 修改前 | !平板 768 × 800 · 深色 修改后 | !平板 768 × 800 · 深色 操作结果 |
| 手机 390 × 844 · 浅色 | !手机 390 × 844 · 浅色 修改前 | !手机 390 × 844 · 浅色 修改后 | !手机 390 × 844 · 浅色 操作结果 |
| 手机 390 × 844 · 深色 | !手机 390 × 844 · 深色 修改前 | !手机 390 × 844 · 深色 修改后 | !手机 390 × 844 · 深色 操作结果 |

桌面 1280 × 900 浅色,使用相同演示数据。

!操作演示

Diff: 458 lines (+343 / -115) across 5 files Reviewer: mzdluo123 Review duration: 935m
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 458 lines diff across 5 files
0.46
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.367
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #468"
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: 45.5% (MEDIUM) · Higher = larger blast radius
45.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: 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: 18.0% · Safe to merge
18.0%