Compare commits

..

No commits in common. "c13f6ec97ed3ec2da70685cdf7866268f03085e3" and "c12e8df0ae8b0a12789c94375ee6048024a4fa6c" have entirely different histories.

4 changed files with 6 additions and 2577 deletions

File diff suppressed because it is too large Load Diff

View File

@ -16,16 +16,7 @@
## Step 3分类每条洞察 ## Step 3分类每条洞察
**⛔ 前置过滤(先于分类执行)** **📦 带回炼境**(满足任一条):
对每条候选洞察问一个问题:**"这个教训,是否只有经历过这次具体的失败/实验之后才可知?"**
- 若是(踩过才知道)→ 继续分类
- 若否(公认设计原则、文档有记载、有经验的工程师提前能预判)→ **直接归入「留本项目」**,不带回炼境
> 炼境收的是"经验增量",不是"知识图谱"。外键比业务字段关联更好——这不是教训,是常识。
**📦 带回炼境**(通过前置过滤后,满足任一条):
- 炼境分发的模板 / 约定 / 接入包有 bug 或可改进 - 炼境分发的模板 / 约定 / 接入包有 bug 或可改进
- 某工作流或实践有明确代价或验证结果(有具体证据) - 某工作流或实践有明确代价或验证结果(有具体证据)
- 会影响多个项目的体系级改进(哪怕还是假设) - 会影响多个项目的体系级改进(哪怕还是假设)

View File

@ -12,12 +12,7 @@
} }
] ]
}, },
"mcpServers": { "mcpServers": {},
"lian-jing": {
"type": "sse",
"url": "http://127.0.0.1:27190/mcp"
}
},
"permissions": { "permissions": {
"defaultMode": "bypassPermissions" "defaultMode": "bypassPermissions"
} }

View File

@ -781,7 +781,6 @@ pub fn gitea_api_get_ci_status(project_id: &str, commit_sha: &str) -> Result<Str
let mut lines = vec![format!("## CI 状态commit `{}`\n", short_sha)]; let mut lines = vec![format!("## CI 状态commit `{}`\n", short_sha)];
let mut all_pass = true; let mut all_pass = true;
let mut has_failure = false;
for (ctx, s) in &latest { for (ctx, s) in &latest {
// Gitea 1.22 Actions 使用 "status" 字段;传统 commit status API 用 "state" // Gitea 1.22 Actions 使用 "status" 字段;传统 commit status API 用 "state"
let state = s["status"].as_str() let state = s["status"].as_str()
@ -789,18 +788,16 @@ pub fn gitea_api_get_ci_status(project_id: &str, commit_sha: &str) -> Result<Str
.unwrap_or("unknown"); .unwrap_or("unknown");
let desc = s["description"].as_str().unwrap_or(""); let desc = s["description"].as_str().unwrap_or("");
let icon = match state { let icon = match state {
"success" => "", "success" => "",
"failure" | "error" => { all_pass = false; has_failure = true; "" }, "failure" | "error" => { all_pass = false; "" },
_ => { all_pass = false; "" }, _ => { all_pass = false; "" },
}; };
lines.push(format!("- {} `{}` — {} {}", icon, ctx, state, desc)); lines.push(format!("- {} `{}` — {} {}", icon, ctx, state, desc));
} }
let conclusion = if all_pass { let conclusion = if all_pass {
"✅ 全部通过,可以合并" "✅ 全部通过,可以合并"
} else if has_failure {
"❌ 存在失败检查,暂不建议合并"
} else { } else {
"⏳ 检查进行中,请稍后再查" "❌ 存在失败或等待中的检查,暂不建议合并"
}; };
lines.push(format!("\n**结论:{}**", conclusion)); lines.push(format!("\n**结论:{}**", conclusion));