From 23de433ee42a46f71de6c141f8310391e252b3a6 Mon Sep 17 00:00:00 2001 From: lanrtop Date: Fri, 3 Jul 2026 09:02:46 +0900 Subject: [PATCH] =?UTF-8?q?fix(agent-infra):=20=E7=94=9F=E6=88=90=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E8=A1=A5=20commit=20=E6=8F=90=E7=A4=BA=20+=20?= =?UTF-8?q?=E5=90=88=E5=B9=B6=20enterprise=20=E5=8F=8C=20project=5Fid=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AgentInfraPanel 生成结果区新增提示:文件需 git commit 后腐化评分才生效 (与诊断指引死循环修复同源,闭合最后一处引导缺口) - 数据修复:enterprise-system 废弃工作区(无路径的重复注册)的 50 条 commit_metrics 迁移到真实 project_id,跨项目聚合不再把它算成两个项目 Rules-Applied: R11 --- .blueprint/modules/agent-infrastructure.md | 2 +- src/components/dashboard/AgentInfraPanel.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.blueprint/modules/agent-infrastructure.md b/.blueprint/modules/agent-infrastructure.md index 7276023..60b3e22 100644 --- a/.blueprint/modules/agent-infrastructure.md +++ b/.blueprint/modules/agent-infrastructure.md @@ -133,7 +133,7 @@ 是否返工: 是(用户按指引"重新生成三件套"操作两轮无效) 返工原因: 腐化评分基于 git 提交时间(防"改了不提交"假新鲜,设计正确),但修复指引只说"重新生成"未说"需 commit"——生成动作只改工作区文件,git 时间戳不变,诊断永远无法清除,形成指引死循环 有效策略: 修复指引文案显式说明评分依据("必须 git commit 该文件——评分基于 git 提交时间而非文件修改时间");enterprise-system 实测 commit 后转绿 -遗留风险: 生成三件套的结果提示未加"记得提交"引导(文案在前端 AgentInfraPanel,影响小,下次顺手) +遗留风险: ~~生成三件套的结果提示未加"记得提交"引导~~(2026-07-03 已补:生成结果区显示琥珀色提示"需 git commit 后才对腐化评分生效") auto_applied_rules: R11 rule_effectiveness: R11=有效(首次实战触发:诊断建议执行后未解决问题 → 修指引 + 记录失败案例) diff --git a/src/components/dashboard/AgentInfraPanel.tsx b/src/components/dashboard/AgentInfraPanel.tsx index a65bf02..7dcd6f2 100644 --- a/src/components/dashboard/AgentInfraPanel.tsx +++ b/src/components/dashboard/AgentInfraPanel.tsx @@ -262,6 +262,9 @@ export function AgentInfraPanel({ {f.detail}

))} +

+ ⚠ 生成的文件需 git commit 后才对腐化评分生效(评分基于提交时间) +

)}