diff --git a/.blueprint/CONVENTIONS.md b/.blueprint/CONVENTIONS.md index 0253e1e..55f6f31 100644 --- a/.blueprint/CONVENTIONS.md +++ b/.blueprint/CONVENTIONS.md @@ -1,6 +1,6 @@ --- -version: 1.8.0 -updated: 2026-06-29 +version: 1.9.0 +updated: 2026-07-02 source: dev-manager-tauri --- @@ -80,6 +80,7 @@ source: dev-manager-tauri | `planned` | 已规划,需求明确 | 🟡 黄色 | | `concept` | 构思中,信息不完整 | ⚪ 灰色 | | `blocked` | 执行受阻,需架构师介入 | 🔴 红色 | +| `abandoned` | 方向已放弃或功能已退役,模块保留作历史记录 | ⚫ 深灰 | ## 任务卡格式 @@ -823,6 +824,20 @@ describe("myFunction", () => { 项目私有规则(`rules.md`)无需 scope 字段,默认对本项目全部生效。 +### boundaries 与 failure_cases 字段(可选) + +scope 描述规则的正向适用范围,**boundaries 描述已知的反向边界**——规则在什么条件下会失效。失败案例是边界的证据来源: + +```markdown +- **boundaries**: <已知不适用条件,如"squash merge 项目下 commit 数≈轮数 不成立"> +- **failure_cases**: + - YYYY-MM-DD:<触发条件> → <规则未能阻止的现象>(项目:xxx) +``` + +- 规则**没有 failure_cases ≠ 规则完美**,只说明边界还未被探测到 +- 梦核分析时应把 failure_cases 视为最高价值信号:同一条件下反复失效 → 拆分规则为带条件的变体(原规则收窄 scope + 新增变体规则),而非简单降低 confidence +- 边界记录使经验"细化"而不是"被推翻"——这是规则库因果自洽的核心机制 + ### 规则列表 #### R01 — 新增 Tauri command 时检查前端封装层 @@ -905,6 +920,14 @@ describe("myFunction", () => { - **evidence_count**: 3 - **derived_from**: Claude Code MCP 客户端用 GET 发起 SSE 握手,炼境只接受 POST 导致 405,MCP 整体失效 +#### R11 — 自动执行规则失效时必须记录失败案例 +- **scope**: `universal` +- **触发条件**:confidence ≥ 0.80 的规则被自动执行后,其本应阻止的问题仍然发生(返工、报错、验收失败) +- **自动动作**:在该规则条目下追加一条 failure_case(日期 + 触发条件 + 现象 + 项目);若为项目私有规则写入 rules.md,全局规则则在复盘笔记中记录并标注 rule_effectiveness=无效,等梦核汇总 +- **confidence**: 0.80 +- **evidence_count**: 1 +- **derived_from**: 规则库只有正向 scope 无反例结构,失败信息流失导致置信度虚高、边界永远探测不到(2026-07-02 经验飞轮设计评审) + ### 规则演进路径 ``` diff --git a/.blueprint/manifest.yaml b/.blueprint/manifest.yaml index c8ad307..e627343 100644 --- a/.blueprint/manifest.yaml +++ b/.blueprint/manifest.yaml @@ -106,14 +106,14 @@ modules: - id: github-auth name: GitHub OAuth area: backend - status: deprecated + status: abandoned progress: 100 position: [250, 350] - id: github-publish name: GitHub 发布 area: backend - status: deprecated + status: abandoned progress: 100 position: [500, 350] diff --git a/.blueprint/modules/cicd-workflow.md b/.blueprint/modules/cicd-workflow.md index 61ad550..87ce0c9 100644 --- a/.blueprint/modules/cicd-workflow.md +++ b/.blueprint/modules/cicd-workflow.md @@ -9,6 +9,10 @@ progress: 100 CI/CD 配置管理和 GitHub Actions Workflow 文件生成。支持两种部署类型:Web SSH 部署和 Tauri OSS 分发。 完整部署教程见 docs/tauri-cicd-guide.md。 +> ⚠️ **改造中(2026-07-02)**:GitHub 已退役,本模块产出的 GitHub Actions 模板即将作废。 +> 改造为 Gitea Actions 的任务卡在 gitea-integration 模块(「Gitea Actions workflow 生成」,单一事实来源在彼处)。 +> 「Actions 运行历史」功能已随 github-decommission 移除(CicdModal runs tab),Gitea Actions 接入后重建。 + ## 任务卡 ### ✅ CI/CD 配置 CRUD @@ -40,3 +44,5 @@ CI/CD 配置管理和 GitHub Actions Workflow 文件生成。支持两种部署 - files: src/components/dashboard/CicdModal.tsx 查看 GitHub Actions 运行状态,支持手动触发。 + +> ⚠️ 已随 github-decommission(2026-07-02)移除,仅作历史记录;Gitea Actions 接入后按新事实源重建。 diff --git a/.blueprint/modules/flywheel-intelligence.md b/.blueprint/modules/flywheel-intelligence.md index 73e3a86..184a2cb 100644 --- a/.blueprint/modules/flywheel-intelligence.md +++ b/.blueprint/modules/flywheel-intelligence.md @@ -134,13 +134,14 @@ > 背景:复盘笔记进料口枯竭(70 条仅 4 条结构化),rule_effectiveness 闭环是死链,R01-R10 的 confidence 全是人工拍的。本卡把规则有效性数据改为 git 被动自吸——与 L0 同构,是 CONVENTIONS 置信度自动进化(阶段三)的真实数据前提。 -### 📋 R2. CONVENTIONS 规则边界字段 + R11 失败记录规则 -- status: todo +### ✅ R2. CONVENTIONS 规则边界字段 + R11 失败记录规则 +- status: done - complexity: S -- files: src-tauri/内嵌 CONVENTIONS.md 源文件 +- files: .blueprint/CONVENTIONS.md(即内嵌 master 源,blueprint.rs include_str! 引用) - acceptance: 规则格式新增可选字段 boundaries(已知不适用条件)与 failure_cases(日期+条件+现象);新增 R11——confidence ≥ 0.80 的规则自动执行后仍未阻止问题时,必须在该规则下追加 failure_case;版本号递增,治理面板分发 > 背景:"失败定边界、经验细化为变体"是经验飞轮的因果自洽核心,当前规则库只有正向 scope,无反例结构。 +> 完成记录(2026-07-02):CONVENTIONS 升 v1.9.0,新增 boundaries/failure_cases 字段说明 + R11 + abandoned 模块状态定义;向其他项目的分发随下次发版生效(CONVENTIONS 编译进二进制)。 ### 阶段三:执行质量预测层 - status: todo diff --git a/.blueprint/modules/github-auth.md b/.blueprint/modules/github-auth.md index 0ef8a99..dba7b84 100644 --- a/.blueprint/modules/github-auth.md +++ b/.blueprint/modules/github-auth.md @@ -1,7 +1,7 @@ --- id: github-auth name: GitHub OAuth -status: deprecated +status: abandoned progress: 100 --- diff --git a/CLAUDE.md b/CLAUDE.md index cd3fbf3..da988c9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -8,7 +8,8 @@ Git 多空间开发管理器,Tauri v2 + React + TypeScript + Rust。 - 前端:React 19 + TypeScript + TailwindCSS + React Query + Zustand + React Flow - 后端:Rust + Tauri v2 + SQLite (rusqlite + r2d2) - 包管理:pnpm(禁止 npm/yarn) -- CI/CD:GitHub Actions + 阿里云 OSS(详见 docs/tauri-cicd-guide.md) +- Git 后端:自建 Gitea(GitHub 已退役,见 .blueprint/modules/github-decommission.md) +- CI/CD:Gitea Actions 迁移中;发布产物走阿里云 OSS(历史方案见 docs/tauri-cicd-guide.md) - 客户端更新:tauri-plugin-updater(详见 docs/tauri-updater-guide.md) ## 目录结构 diff --git a/src/components/dashboard/BlueprintModal.tsx b/src/components/dashboard/BlueprintModal.tsx index 3ec0f99..fa96367 100644 --- a/src/components/dashboard/BlueprintModal.tsx +++ b/src/components/dashboard/BlueprintModal.tsx @@ -63,6 +63,7 @@ const STATUS_CONFIG: Record = {