link2026
b80fae35c9
docs(w2): mark plan tasks 1-7/9 done + sync CLAUDE.md §8 + write W2 retro
...
- plan: flip 43 checkboxes done across Task 1-7/9; Task 8 (manual speed
baseline) and Task 10 (this retro) intentionally left open
- CLAUDE.md §8: AI/ ⚠️ partial (AIRuntime/LLMSession/ModelStore/TokenChunk
done, VLSession/Prompts/ pending); FileVault ✅ ; add Debug/DebugAIRunner ✅ ;
drop bold from "W2 当前" and tag W2-W3 row 进行中
- new retros/2026-05-31-w2.md: status table, TBD speed baseline,
off-plan Symptom/Timeline/ArchiveListView/AppIcon/Swift6 cleanup,
Swift 6 + Simulator sandbox learnings, W3 prep checklist
2026-05-25 23:36:16 +08:00
link2026
53da442424
chore: rename Tiji→Kangkang test imports + scheme + sync docs
...
Rename @testable imports across all test/UI test files after the Tiji→Kangkang
project rename in 44ed01a . Add shared scheme. Sync CLAUDE.md / W2 plan / spec
v1.0 to current scope (Symptom feature noted, C1/C2 flow lockdown).
2026-05-25 23:18:00 +08:00
link2026
193e478425
docs: 记录 MLX-Swift-Examples 2.29.1 真实 API 与 plan 草稿的偏差
...
W2 plan Task 6 写的 LLMSession 草稿在 4 处与真实 API 不符:
- container.perform 的 context 是具体 ModelContext struct
- MLXLMCommon.generate 是顶层函数,只 try 不 await,返回 AsyncStream 非 Throwing
- Generation 有第三个 case .toolCall,switch 必须穷举
- GenerateParameters 需要 maxTokens,且 temperature/topP 是 Float
- 取消传播需 continuation.onTermination = { _ in task.cancel() }
本笔记含完整修正版 LLMSession.swift,Task 6 implementer 必用此为准。
参考:mlx-swift-examples tag 2.29.1,commit 9bff95ca。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-25 15:53:54 +08:00
link2026
771b28e7ef
fix(ai): ModelKind rawValue 改为真实 HF mlx-community 仓库名
...
实际查 HuggingFace 后,mlx-community 下的仓库名:
- Qwen3-1.7B-4bit(不是 Qwen3-1.7B-MLX-4bit)
- Qwen2.5-VL-3B-Instruct-4bit(VL 模型带 Instruct 后缀)
改动:
- ModelKind.llm/vl rawValue 改名,这也是沙盒 Models/ 下的子目录名
- 加 huggingFaceRepo computed:"mlx-community/\(rawValue)"
- CLAUDE.md §2 表格补 HF 仓库 ID
- spec §2.2 模型来源行修正
W2 plan 中的下载脚本已陈旧(用了 huggingface-cli + 错名),
W2 retro 时会修正。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-25 15:50:20 +08:00
link2026
96cae73d8f
docs(plan): W2 实现计划 — AI 基座 + Schema 重建
...
10 个任务,TDD where possible:
- T1 MLX SPM 接入
- T2 Models.swift 扩展(Asset/ChatTurn + 字段 + cascade)
- T3 FileVault + 3 个单元测试
- T4 ModelStore + 3 个单元测试
- T5 TokenChunk + AIRuntime actor 骨架
- T6 LLMSession 接 MLX 跑 Qwen3-1.7B
- T7 DebugAIRunner 自检入口
- T8 模拟器跑通里程碑(含 R1 红线决断)
- T9 Schema 烟测 + 关系测试
- T10 retro + 状态更新
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-25 14:35:37 +08:00
link2026
c2c40f33c5
docs: 康记 v1.0 功能设计 spec + CLAUDE.md 工程前提
...
把原始功能清单收敛为方案 B(核心 5 模块 + Live Activity)。
关键决策:MLX Swift 运行时、结构化 RAG 不做 embedding、
系统级 file protection 不造 AES 轮子、统一拍照合并快拍与归档、
补回 C1/C2 档案库视图、加回报告对比(16.1)。
CLAUDE.md 锁定工程红线供后续 IDE 会话对齐。
Spec 含 6 周时间表、风险预案、与原始清单完整映射。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-25 14:27:33 +08:00