dev-manager-tauri/.blueprint/modules/blueprint-feedback.md
lanrtop c598c9b05b feat: add BlueprintPromptModal for blueprint management and sync functionality
- Implemented BlueprintPromptModal component to handle blueprint prompt generation and rule synchronization.
- Added BlueprintStatusBadge to display the current status of blueprints in ProjectCard.
- Integrated blueprint status fetching and synchronization in ProjectCard.
- Enhanced SettingsPage with a new section for MCP service configuration and batch sync for blueprint rules.
- Updated commands to include new blueprint-related functionalities and types.
- Changed application name from "Dev Manager" to "炼境" in various components.
2026-04-04 10:47:27 +09:00

3.7 KiB
Raw Permalink Blame History

id name status progress
blueprint-feedback 梦核 · 记忆巩固 done 100

概述

炼境的记忆巩固层。类比人类睡眠时大脑对记忆的主动处理——保留重要的(固化进 CONVENTIONS清理无用的归档休眠文档

梦核不是算法是一条精心设计的提示词。炼境负责收集和格式化数据飞轮数据层Claude 负责做判断:哪些跨项目重复出现的阻塞模式值得写进 CONVENTIONS哪些长期休眠的文档可以归档。用户确认后治理模块执行分发。

[飞轮数据层] 聚合跨项目数据
      ↓
[梦核提示词] 喂给 Claude Opus 做判断
      ↓
 固化 ──────────────────── 遗忘
  ↓                          ↓
CONVENTIONS 改进草稿      归档候选列表
  ↓                          ↓
[治理模块] 分发           用户确认 → 归档操作

任务卡

梦核分析入口(蓝图弹窗)

  • status: done
  • complexity: S
  • files: src/components/dashboard/BlueprintModal.tsx, src/lib/commands.ts
  • depends: blueprint-flywheel
  • acceptance: 治理面板新增「梦核分析」区块,点击"♻️ 打开飞轮面板"跳转到飞轮面板;飞轮面板生成梦核提示词(可复制);引导文字说明正确流程:「复制 → 粘贴给 Claude Opus → 将建议反馈给炼境维护者 → 更新 CONVENTIONS.md 并发布新版本」(梦核不自动写入,需手动修改源码发版)

归档候选展示

  • status: done
  • complexity: S
  • files: src/components/dashboard/BlueprintModal.tsx
  • depends: blueprint-flywheel
  • acceptance: 飞轮面板展示两类归档候选:① 飞轮停转项目usage.json 最新 at 距今超过 60 天,显示最后活跃日期)② AI文档休眠项目usage.json 最新 at 距今超过 90 天,推断 Claude 长期未读该项目的 AI 文档);每条候选显示项目名 + 最后活跃日期 + 「归档」按钮

归档 command

  • status: done
  • complexity: M
  • files: src-tauri/src/commands/blueprint.rs, src-tauri/src/lib.rs, src/lib/commands.ts
  • acceptance: archive_project_docs command接收项目路径将 .blueprint/modules/*.md 复制到 .blueprint/archive/YYYY-MM-DD-HHmmss/ 后删除原文件;写 MANIFEST.txt 记录归档信息返回归档摘要archived_files + archive_dir

💭 恢复 command

  • status: concept
  • notes: 读取 .blueprint/archive/*/MANIFEST.txt将文件还原到原路径支持选择性恢复覆盖前需用户确认

梦核提示词增加停滞模块数据

  • status: done
  • complexity: S
  • files: src-tauri/src/commands/blueprint.rs, src/lib/commands.ts
  • acceptance: get_flywheel_stats 收集所有项目最新快照的 modules.stalled聚合为 stalled_modules: Vec格式 "project/module_id"FlywheelStats 新增 stalled_modules 字段梦核提示词新增「停滞模块」摘要段同步实现迭代跳变检测iteration_jumps并补入提示词

决策记录

  • 梦核的核心是提示词工程而非算法,判断质量随 Claude 模型升级自动变强,无需维护打分公式
  • 固化输出CONVENTIONS 改进)由用户确认后交 governance 执行,不自动写入,保留人工节点
  • 遗忘操作归档提供撤销能力MANIFEST.txt + 恢复 command降低误操作风险
  • AI 文档休眠判断基于 usage.json 中 get_blueprint 的调用记录,间接反映 Claude 是否在读这些文档
  • 命名选「梦核」:梦境处理记忆(非主动学习),核心是巩固而非监控
  • 归档功能直接操作 .blueprint/modules/,用户在飞轮面板触发,清空休眠项目的模块 md 文件