Skip to content

阶段3: 容断与 iCloud 占位符 - #288

Closed
taekchef wants to merge 3 commits into
mainfrom
codex/filemodel-phase3-transient-tolerance
Closed

taekchef wants to merge 3 commits into
mainfrom
codex/filemodel-phase3-transient-tolerance

Conversation

@taekchef

@taekchef taekchef commented Aug 22, 2026 •

Copy link
Copy Markdown
Collaborator

[growth-exempt: WorkspaceStore.swift 净增(占位符加载提示、失败条内状态、横幅降格判定),阶段4 冗余锁拆除将大幅净减]

实际改动

  • 扫描器:不再一刀切 skipsHiddenFiles;.名字.ext.icloud 占位符还原为逻辑路径登记,其余隐藏文件与隐藏目录仍跳过
  • entryPresence 新增 .presentUnmaterialized:逻辑路径实体缺席但同名占位符在 ⇒ 永不判 absent
  • 灰态:占位符在场不进灰态;可携带状态校验路径视未物化为缺席
  • 启动指纹断链拆除(笔记部分);资料项世代保护保留
  • 笔记不可用场景横幅降格为条内状态;占位符条目「正在从 iCloud 下载…」/失败「当前不可用」

未做内容

  • swift test 由 CI 执行

共享核心面占用

  • CourseProjectRootSupport / WorkspaceStore / GoneImportedItems / LibraryRoot / NotesPersistence / Tests/;合并即释放

验证命令

  • swift build ✅ / WeiBeiSelfCheck ✅ / check_file_growth ✅(豁免)
  • swift test → CI

回退自查表(六条)

  1. 可见性:条内状态替代横幅,不静默,通过
  2. 数据安全:占位符不再被判删除,通过
  3. 编辑:写闸门兜底比对,通过
  4. 性能:低频 lstat,通过
  5. 功能:全保功能,通过
  6. 可逆:可整体回滚,通过

- 扫描器识别 .名字.ext.icloud 占位符并还原为逻辑路径;其余隐藏项仍跳过
- entryPresence 新增 presentUnmaterialized:逻辑路径缺席但占位符在,永不判 absent
- 灰态不因占位符触发;可携带状态校验路径视未物化为缺席
- 启动指纹断链拆除(笔记部分):digest 不符不再切断 urlPath;资料项世代保护保留
- 笔记不可用场景横幅降格为条内状态;占位符条目显示「正在从 iCloud 下载…」,失败条内「当前不可用」
@taekchef
taekchef marked this pull request as ready for review August 22, 2026 00:34
@taekchef taekchef added the growth-exempt 维护者批准冻结核心文件超过 50 行的净增长 label Aug 22, 2026
@taekchef taekchef closed this Aug 22, 2026
@taekchef taekchef reopened this Aug 22, 2026
@taekchef

Copy link
Copy Markdown
Collaborator Author

按用户要求整体回退文件模型收敛计划,本 PR 不合并。

@taekchef taekchef closed this Aug 22, 2026
taekchef added a commit that referenced this pull request Aug 22, 2026
WEIBEI_AGENT_BACKEND=native 走 NativeStudyAgentRuntime(OpenAI 兼容族 +
live 学习记忆刷新);未设置时仍走 Pi。开关实现放在
WorkspaceStore+NativeAgent.swift,主文件净减 38 行。

SelfCheck 挂 runNativeAgentSelfChecks()。#279 已合入;#288 仍占
WorkspaceStore.swift,本次只动 agent 调度区,与其占位符 hunk 不相交。
@taekchef
taekchef deleted the codex/filemodel-phase3-transient-tolerance branch August 22, 2026 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

growth-exempt 维护者批准冻结核心文件超过 50 行的净增长

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant