Skip to content

阶段0: 文件模型收敛行为基线冻结 - #280

Merged
taekchef merged 1 commit into
mainfrom
codex/filemodel-phase0-baseline
Aug 21, 2026
Merged

taekchef merged 1 commit into
mainfrom
codex/filemodel-phase0-baseline

Conversation

@taekchef

@taekchef taekchef commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator

[growth-exempt: WorkspaceStore.swift +2 行为计划引用注释(repair→retry 顺序锁出处),阶段4拆除时随注释一并删除]

实际改动

  • 新增 FileModelPhase0BaselineTests:两个用例描述阶段 2 目标行为,当前实现不满足,XCTExpectFailure 标注预期失败(非严格),不进 CI 门槛;阶段 2 落地后转正式
    • externalDeleteKeepsUnsavedInput:编辑中外部删除文件,未落盘输入应可从备份环找回
    • useDiskConflictKeepsUserVersion:冲突条选「使用磁盘版本」,用户版本应可从备份环找回
  • repair→retry 顺序锁与唯一底层写盘函数处补计划文档引用注释

未做内容

  • 全量测试基线确认由 CI 执行

共享核心面占用

  • WorkspaceStore.swift / NotesPersistence.swift 各 +2 行注释、Tests/ 新文件;合并即释放

验证命令

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

回退自查表

1-6 全部 N/A:零行为变化

- 新增两个预期失败测试(XCTExpectFailure,阶段2转正式): 外部删除保未落盘输入、冲突选磁盘版保用户版本
- repair→retry 顺序锁与唯一写盘函数处补计划引用注释
@taekchef
taekchef marked this pull request as ready for review August 21, 2026 20:30
@taekchef taekchef added the growth-exempt 维护者批准冻结核心文件超过 50 行的净增长 label Aug 21, 2026
@taekchef taekchef closed this Aug 21, 2026
@taekchef taekchef reopened this Aug 21, 2026
@taekchef
taekchef merged commit 6aa803d into main Aug 21, 2026
3 of 8 checks passed
taekchef added a commit that referenced this pull request Aug 22, 2026
…gence

revert: 回退文件模型收敛与库迁移方案全部已合并 PR(#277 #280 #281 #286)
@taekchef
taekchef deleted the codex/filemodel-phase0-baseline branch August 22, 2026 01:19
wang-kaopu pushed a commit to wang-kaopu/weibei that referenced this pull request Aug 22, 2026
…model-phase0-baseline"

This reverts commit 6aa803d, reversing
changes made to cc24f6a.
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