Commit Graph

133 Commits

Author SHA1 Message Date
lanrtop
ead35ad12a feat(toolchain): 增加项目级运行时能力包
以 .nvmrc 与 packageManager 作为 Node/pnpm 版本事实,新增 Windows-only 的状态诊断、受控 mise 准备、MCP/Tauri/UI 双投影及 onboarding 自检。

Feature-Confirmed: true

Rules-Applied: R01,R04,R06,R07,R08,R10,R12
2026-09-22 01:08:31 +09:00
lanrtop
057c2b3a10 fix(onboarding): recognize custom lefthook checks
All checks were successful
Push & PR Check / check (pull_request) Successful in 1m1s
2026-09-21 22:42:03 +09:00
lanrtop
f5b66aba4a feat(onboarding): version capability packs
Feature-Confirmed: true
2026-09-21 19:23:54 +09:00
lanrtop
250adfba24 feat(codex-plugin): add lian-jing skill
Feature-Confirmed: true
2026-09-21 18:37:53 +09:00
lanrtop
122864f340 feat(onboarding): add capability pack status
Feature-Confirmed: true
2026-09-21 18:33:12 +09:00
lanrtop
167fcf9880 feat(agent-context): add canonical project context
Feature-Confirmed: true
2026-09-21 18:16:32 +09:00
lanrtop
383b5b35d7 feat(delivery): add project delivery status
All checks were successful
Push & PR Check / check (push) Successful in 1m0s
Push & PR Check / check (pull_request) Successful in 58s
Feature-Confirmed: true
2026-09-21 15:16:40 +09:00
lanrtop
fdae4a8034 chore(blueprint): update usage snapshots
All checks were successful
Push & PR Check / check (push) Successful in 1m20s
2026-09-21 12:56:21 +09:00
lanrtop
c8abb130d5 chore(blueprint): archive retrospective notes 2026-09-21 12:53:55 +09:00
lanrtop
99d41d5939 chore(blueprint): plan Codex model switch 2026-09-21 12:53:25 +09:00
lanrtop
8c592943f6 chore(blueprint): dsh-takeover 纪律1补三行归因留痕——格式主场 enterprise,T3 随薄指针带入
All checks were successful
Push & PR Check / check (push) Successful in 57s
辩证收敛:不建案例库/不加 note 类别/不立独立规则文件(消化端未修不扩生产端),
commit message 为唯一自带消费路径的落点

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-11 23:19:04 +09:00
lanrtop
1e1acad60e chore(blueprint): notes 档案真机终验留痕——156/156 归档,同路径覆盖 bug 修复实证
All checks were successful
Push & PR Check / check (push) Successful in 57s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-11 22:33:23 +09:00
lanrtop
87494ba055 chore(blueprint): 三卡收官——ship 体检实补3处/envoy 零改动收官/分诊先核现状教训入账
All checks were successful
Push & PR Check / check (push) Successful in 55s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-11 22:27:30 +09:00
lanrtop
e345cc6a90 chore(blueprint): notes 档案卡收官——归宿翻转声明 + 验收留痕
All checks were successful
Push & PR Check / check (push) Successful in 1m10s
Push & PR Check / check (pull_request) Successful in 55s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-11 22:23:02 +09:00
lanrtop
797b3e5030 chore(blueprint): DSH 三件套辩证收敛落账——envoy 挂触发/CI 门主体归位/纸上模板否决,消化端优先
All checks were successful
Push & PR Check / check (push) Successful in 55s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-11 22:14:29 +09:00
lanrtop
b7f937d606 chore(blueprint): DSH 子项目友好性盘点——三断点入卡(CI 门舰队洞/技能双轨/回传断流)
All checks were successful
Push & PR Check / check (push) Successful in 57s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-11 22:06:10 +09:00
lanrtop
91d9ca1346 chore(blueprint): 使者回传第二轮分诊 36 条落账——已消化6/过时1/待行动3卡/归档19,回执缺口实锤升级
All checks were successful
Push & PR Check / check (push) Successful in 54s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-11 22:03:12 +09:00
lanrtop
d2818b2832 chore(blueprint): T1/T2 跟进建议辩证收敛落账——4 项仅存 1.5,AGENTS 补双层校验事实
All checks were successful
Push & PR Check / check (push) Successful in 54s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-11 21:37:03 +09:00
lanrtop
ed2b95b90d chore(blueprint): dsh-takeover T1/T2 收官——记忆回流 AGENTS/cicd-workflow + CI 校验验收留痕
All checks were successful
Push & PR Check / check (push) Successful in 55s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-11 21:28:39 +09:00
lanrtop
246d562b15 chore(blueprint): 立项 dsh-takeover-readiness(DSH 接管准备,协作模式=DSH 干活+Claude 调教)
All checks were successful
Push & PR Check / check (push) Successful in 2m31s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-11 21:10:46 +09:00
lanrtop
4c7580ccda chore(blueprint): 同步 usage 统计数据
All checks were successful
Push & PR Check / check (push) Successful in 2m27s
2026-08-23 18:08:29 +09:00
lanrtop
2a6d902e5d chore(blueprint): 存档 enterprise 框架重构否决结论 + DevPath 双卡 💭 + 模式库闸门敲响 2026-08-23 16:54:31 +09:00
lanrtop
0d4c2adc54 feat(onboarding): 同源同边界补收束语与需求对称两时间尺度(v1.7.0 内补遗)
「人在意的点 agent 读得懂」补机制脚注使其自洽,不做空头承诺:
- 当下会话:同源路径即时对称(结构直接保证,无需额外机制)
- 跨会话:否决理由落账→复盘笔记→梦核蒸馏,反复在意的维度迁移进可断言规则
- 人裁决区是飞轮推进的前线,不是墙上的洞
- 1.7.0 尚未分发,内容补遗不再升号

Feature-Confirmed: true
2026-08-23 16:41:14 +09:00
lanrtop
08db3c2323 chore(blueprint): 同步 onboarding-pack V2 卡收官 2026-08-23 16:31:42 +09:00
lanrtop
1bb4ce978e chore(blueprint): 沉淀开发侧世界模型透镜 + staleness 卡收官 + notes 档案卡就绪 2026-08-23 15:46:41 +09:00
lanrtop
c13f6ec97e chore(blueprint): 同步飞轮快照
All checks were successful
Push & PR Check / check (push) Successful in 2m34s
2026-07-31 07:26:17 +09:00
lanrtop
1bc0629827 chore(blueprint): 知识库模板任务卡收卡——agent_verify 已过,human_verify 待实测
All checks were successful
Push & PR Check / check (push) Successful in 54s
2026-07-18 10:26:07 +09:00
lanrtop
55ee5a483c feat(templates): 新增内置模板「知识库(择升环)」
三层晋升结构的知识沉淀文档库初始化:dialogues 对话原料 → concepts 概念卡
→ CORE.md 稳定核心(上限 300 行强制过滤),cases/ 为检验层。
晋升/降级规则与写作纪律内置于模板 AGENTS.md,agent 进库即按择升环工作流运转;
init_commands 为 git init,建库即版本化。

Feature-Confirmed: true
2026-07-18 10:25:01 +09:00
lanrtop
cbc1d46c4e fix(mcp-inject): inject 链路空路径单点防护——补齐 07-15 空路径事故第二入口
All checks were successful
Push & PR Check / check (push) Successful in 52s
辩证收缩实战产出:清理污染文件时追问「删文件是不是正确动作层」,
发现 473cf7e 只拦了 apply 链路,inject 链路 project_root() 对空串
win_path 穿透(ok_or_else 拦 NULL 不拦空串),settings.json/
liangjing.json 正是经此写进 src-tauri/。

- validate_registered_path 单点校验:拒空串/空白/相对路径(顺带堵
  相对路径解析到 cwd 的边角),WSL 分支拒空 wsl_path
- 2 条回归测试驻军(纯函数无 DB,cargo test 105 全绿)
- 台账同步:污染文件已移出、两条空路径僵尸登记已注销

Rules-Applied: R06,R07
2026-07-18 10:24:03 +09:00
lanrtop
d15d3895d7 docs(conventions): v1.12.0——动工前辩证收缩进约定 + 使者回传处置台账
All checks were successful
Push & PR Check / check (push) Successful in 1m24s
- CONVENTIONS 飞轮工作流阶段 2 末新增「动工前辩证收缩」(M/L 卡必做),
  附 07-15 实证:3 张初稿卡直做会错 2/3,辩证后 U3/B4 零返工
- governance-feedback-loop 落 23 条使者回传处置台账:本轮 3 项落地
  (/ship 铁律与规模闸修正、MCP 重试说明、envoy 硬门槛)、
  11 条核实此前已落地、5 项 log_for_review 待观察、2 个遗留尾巴
2026-07-18 09:43:57 +09:00
lanrtop
ade767894f docs(blueprint): 补 U1 复盘笔记——实调双坑与辩证收缩的返工率对照
All checks were successful
Push & PR Check / check (push) Successful in 52s
2026-07-15 23:05:42 +09:00
lanrtop
f7ab6dbbb8 chore(self-onboarding): 炼境自身接入产物治理——块外恢复被抹定制 + lefthook 检查段补齐
All checks were successful
Push & PR Check / check (push) Successful in 50s
批量分发实调反噬实锤:分支策略表/Agent 按钮清单/降级约定/启动协议
第 4 条曾写在 MANAGED 托管块内,v1.6.0/1.11.0 块升级原位覆盖时被抹。
全部恢复至块外「炼境自身约定」区,教训入决策记录(本地定制严禁写
进托管块)。顺带:块外与块内重复的通用约束去重(单一事实来源)、
lefthook 补齐 blueprint-gate/conventional/feature-confirmed 检查段
(verify_onboarding 复验 7/7)、收编 envoy/blueprint-gate 接入产物。

Rules-Applied: R13
2026-07-15 22:19:16 +09:00
lanrtop
7cfbfb1b86 chore(blueprint): onboarding-pack 模块收官——U1/U3/B4 实调终验通过
All checks were successful
Push & PR Check / check (push) Successful in 51s
批量分发 25 项目 0 失败(envoy/gate 全托管升级生效)、ingest 清洗
链路贯通、verify 七项链准确检出 lefthook 缺失键。模块 status→done。
2026-07-15 19:53:49 +09:00
lanrtop
1672b071e4 feat(onboarding/upgrade-channel): 全托管文件升级通道 + 批量重分发(U1)
All checks were successful
Push & PR Check / check (push) Successful in 51s
Push & PR Check / check (pull_request) Successful in 51s
三档升级语义落地:envoy.md/blueprint-gate.cjs 切全托管
(内容不一致即覆盖,CRLF 归一化防抖动),文件头加托管声明;
verify_onboarding 第 7 项「lefthook 检查段齐全」从内嵌模板自省
键集合,零硬编码;MCP apply_onboarding_pack 缺省 project_id
时批量分发全部已登记项目,替代 batch_apply.py 手摇脚本。

Rules-Applied: R06,R07

Feature-Confirmed: true
2026-07-15 14:20:22 +09:00
lanrtop
2fe576b75a feat(mcp/diagnostics): get_diagnostics 新增使者回传覆盖率「沉默项目」信号(B4)
All checks were successful
Push & PR Check / check (push) Successful in 49s
近 30 天有 commit 采集但零使者回传的已登记项目浮出水面,
提示去该项目跑 /envoy——回流触发不自动化(辩证决策 2026-07-15),
用可观测性让遗忘可见,人留在过滤环里。

Rules-Applied: R06,R07
2026-07-15 14:10:28 +09:00
lanrtop
aaf3343133 feat(flywheel/rules-validation): Rules-Applied 规则 ID ingest 层真实性校验(U3)
All checks were successful
Push & PR Check / check (push) Successful in 1m17s
校验单点放统计消费端(R12 边界单点):extract_rule_ids 从项目
CONVENTIONS.md 提取合法 ID 集合,filter_valid_rules 在入库前剔除
幻觉/typo ID(无 CONVENTIONS.md 时 fail-open 不校验)。接入全部
4 条写入链路(buff 增量/webhook/gitea 轮询/全量导入);
sanitize_rules_applied 提供回溯清洗,重跑全量导入即可清历史污染。

Rules-Applied: R01,R06,R07
2026-07-15 14:05:13 +09:00
lanrtop
be2f69578a docs(conventions): v1.11.0——同步使者回传的四项治理修复
- Session 结束汇总加限定语,不得作为跳过确认卡的通道
- acceptance 格式补 agent_verify/human_verify 分层说明
- 阶段2末尾引用 AGENTS.md 需求对齐协议(Bug Fix/Feature 分类)
- Rust/Tauri 专属章节顶部加 scope 前置提示,避免污染 web 项目
- lefthook.yml.tmpl:API typecheck 注释由警告升级为 REQUIRED 措辞
2026-07-15 12:16:31 +09:00
lanrtop
86995f7472 docs(conventions): 自验报告纪律三条——负面披露/改断言报备/两把尺子
All checks were successful
Push & PR Check / check (push) Successful in 51s
用户确立 agent 协作协议执行版(多角度辩证后选最小成本版落地):
1. 交人终验前反馈必含「没验什么」一节(负面披露收窄已知盲区)
2. 自修中改断言/验收标准需显式声明(封 Goodhart 最短路径,diff 可审计)
3. agent 自验对 acceptance、人终验对意图(acceptance 可能继承需求
   理解偏差,两把尺子不可合一)

三处同步:AGENTS.md(单一来源)+ 接入包模板(分发子项目)+
agents-meta-rules(设计草案)。完整辩证(五张力/四调节器/三缝隙)
存档于 governance-feedback-loop 模块设计档案节。
实证案例:mcp-single-server 自验全绿但 git-bash 层全挂,端到端终验抓住。
2026-07-06 22:46:04 +09:00
lanrtop
4226372423 docs(blueprint): 登记 governance-feedback-loop concept 模块——治理反馈闭环
All checks were successful
Push & PR Check / check (push) Successful in 50s
老板-员工手册隐喻:用户反馈子项目问题 → 结构化落账 → 梦核蒸馏进
规则/模板 → 批量分发 → 飞轮观测生效。治理管线已存在大半
(governance 规则同步 / feedback 梦核 / onboarding 模板版本化),
三处断环:治理反馈入口、反馈进梦核高权重输入、接入包批量重分发。
L 级,待 /architect。
2026-07-06 21:35:41 +09:00
lanrtop
9355c07a6f chore: 迁移收尾——本项目 settings.json 换单一 lian-jing key + package.json 版本对齐 0.1.19
All checks were successful
Push & PR Check / check (push) Successful in 50s
- .claude/settings.json:由 migrate_to_single_server 自动重写(组级 key → lian-jing)
- package.json:0.1.18 → 0.1.19,与 Cargo.toml / tauri.conf.json 对齐(发版脚本此前漏更)
- .blueprint/usage.json:飞轮快照累积数据
2026-07-06 21:16:53 +09:00
lanrtop
a05fb49347 docs(blueprint): mcp-single-server 模块收官——T4 端到端终验通过
All checks were successful
Push & PR Check / check (push) Successful in 49s
验证:~/.claude.json 仅剩 lian-jing(12 条旧注册清零)、3 项目抽查
新格式通过、新路由握手 + get_diagnostics 实调通过、旧路由 404。
T4 暴露 git-bash 硬编码存量 bug 已修(0d1427f)。
遗留:同路径重复登记(legacy id 与 uuid id 并存)待登记卫生清理。
2026-07-06 20:18:32 +09:00
lanrtop
df7d52a084 feat(mcp): T6 删除旧 /mcp/group 路由与兼容层——提前并入本次发版
All checks were successful
Push & PR Check / check (push) Successful in 1m6s
Push & PR Check / check (pull_request) Successful in 49s
原计划后置一个版本,经评估提前:迁移在新版启动时自动重写全部
客户端配置(settings.json/liangjing.json/全局注册),旧路由的实际
消费者只剩升级前的存量会话,而服务重启后它们本就断开重连。
单人环境下双路由过渡的保留价值趋近于零,一次收口减少一轮发版。

- tools_call 签名去 Option 组上下文,process_rpc 单参数化
- list_group_projects 的 group_id 改为 required 参数
- grep 'mcp/group' src-tauri/src/ 零命中,cargo test 93 全绿
2026-07-06 19:34:51 +09:00
lanrtop
a41161f7d1 feat(mcp): 单一全局 lian-jing 服务器——组级挂载收敛(T1-T3+T5)
All checks were successful
Push & PR Check / check (push) Successful in 1m4s
T1 服务器层:新增全局 /mcp + /mcp/messages 路由,process_rpc 组上下文
Option 化;旧 /mcp/group/:gid 路由保留过渡,T6 移除。驻军测试 2 条。
T2 工具层:resolve_project_root 按 project_id 直查 project_workspaces,
删除 3 处组归属校验(实测无隔离价值);list_group_projects 改显式传参。
T3 注入层:settings.json 收敛为单 "lian-jing" key(URL /mcp),注入时
清理旧 lian-jing:group-* key;liangjing.json 主动删除 group_id;
启动时一次性迁移(重注入全量 + 清理旧全局注册两种命名格式,标记位防重)。
T5 同步:git-workflow 文档/模板、retro-catchup 技能 Python 兜底、
设置页 URL 展示、mcp-config-inject 模块取代注记。

收益:MCP 客户端配置成本 O(N组)→O(1),授权一次永久生效;
group_id 缺失/过期/移组同步一整类问题从根上消失。
2026-07-06 19:30:01 +09:00
lanrtop
daed723438 docs(blueprint): mcp-single-server 设计定稿 + 拆卡 T1-T6
All checks were successful
Push & PR Check / check (push) Successful in 47s
方案 B 双路由过渡:全局 /mcp 新路由与旧 /mcp/group/:gid 并存一个版本。
关键决策:工具层 resolve_project_root 去组化(组归属校验实测无隔离价值)、
迁移内建于重注入(reinject_all_mcp 即批量迁移器)、旧全局注册两种命名
格式(完整 UUID/短 8 位)都清理。webhook 路由已核实不受影响。
2026-07-06 19:15:59 +09:00
lanrtop
138a06aa17 docs(blueprint): 登记 mcp-single-server concept 模块——组级挂载收敛为单一全局服务器
All checks were successful
Push & PR Check / check (push) Successful in 48s
动机:MCP 客户端配置成本随产品组数线性增长(12 组 × 28 工具),
与飞轮'项目越多越强'方向相反;实测组级挂载无隔离价值(任意组
服务器可操作任意项目)。单一服务器后 liangjing.json 只需
project_id,group_id 同步问题从根上消失。L 级,待 /architect。
2026-07-06 19:04:04 +09:00
lanrtop
cf86ab688a docs(conventions): 梦核蒸馏——规则置信度更新 + 梦核写入纪律
- R01 confidence 0.90→0.95(12 命中 0% 返工,最稳信号)
- R13 confidence 0.80→0.88(11 命中 9% 返工,高频高效)
- R08 confidence 0.87→0.72(3 命中 100% 返工,补 failure_case + boundaries)
- R10 confidence 0.85→0.60(6 命中 83% 返工,补 failure_case + boundaries)
- 追加梦核写入纪律:蒸馏替换而非追加,规则上限 ≤ 25 条
- 数据来源:2026-07-04 梦核分析,40 条复盘笔记 + Rules-Applied trailer
2026-07-04 16:42:02 +09:00
lanrtop
a914c8c219 docs(blueprint): unregister_project 登记卫生工具对补卡(事后登记)
All checks were successful
Push & PR Check / check (push) Successful in 49s
Push & PR Check / check (pull_request) Successful in 50s
Rules-Applied: R13
2026-07-04 15:04:29 +09:00
lanrtop
94d8be6eb6 docs(blueprint): 阶段三消费者终验通过,flywheel-intelligence 模块收官
All checks were successful
Push & PR Check / check (push) Successful in 53s
Push & PR Check / check (pull_request) Successful in 48s
Rules-Applied: R13
2026-07-04 14:41:29 +09:00
lanrtop
a77cb4ec96 feat(flywheel): ingest_git_history agent 按钮——全量导入双投影
All checks were successful
Push & PR Check / check (push) Successful in 53s
Push & PR Check / check (pull_request) Successful in 58s
消费者验证暴露的死角:「全量导入」只有 UI 投影,agent 够不到,
存量 trailer 回填只能靠人点按钮。按双投影原则补 MCP 投影:

- 不传 project_id 遍历所有 win_path 项目跑 ingest_full_git_history,
  传则单项目;返回逐项目 imported/skipped 汇总,单项目失败不中断
- 能力本体(ingest_full_git_history)不动,UI 与 MCP 调同一函数
- tools_list_result 断言驻军,92 测试全绿

Rules-Applied: R12,R13
2026-07-04 14:36:28 +09:00
lanrtop
a5cb30734d feat(flywheel): 返工热区 UI + get_high_risk_scopes 命令,阶段三收官
All checks were successful
Push & PR Check / check (push) Successful in 50s
Push & PR Check / check (pull_request) Successful in 50s
- risk.rs 新增 Tauri command get_high_risk_scopes(薄包装)+ lib.rs 注册
- commands.ts 封装 HighRiskScope 类型与调用(R01)
- FlywheelPanel 新增「返工热区」块:跨项目返工率降序,
  分级配色与 classify_risk 阈值一致(≥35% 红 / ≥15% 琥珀)
- 蓝图:P3-A~E 五卡全部 done,附 L 级复盘笔记,模块 progress 98

Rules-Applied: R01,R13
2026-07-04 14:22:52 +09:00