Repository navigation
docs(agents): develop-lithe 的 Rust 规则指向 Core CONTRIBUTING,平台测试放进 lithe-platform-tests - #1957
Merged
Merged
Conversation
xiaoyumuxi
marked this pull request as ready for review
November 15, 2026 05:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 Issue / Linked issue
PR 类型 / Type
改动说明 / What changes
背景 / Why
Core 新增了
CONTRIBUTING.md,规定平台差异写成Platform数据、结果取决于真实操作系统的测试放进lithe-platform-tests、CI 只运行受影响的 crate。develop-lithe Skill 还是旧写法,“Windows 平台适配”一节写着“Core 行为在所属 crate 中测试”,和新规范冲突:照着做,就会在其他 crate 里写#[cfg(windows)]测试,而这类测试 CI 不会在 Windows 上运行。改动 / Changes
只改
.agents/skills/develop-lithe/SKILL.md:CONTRIBUTING.md和本文件第六节“Rust”。CONTRIBUTING.md,然后分三个小节:cargo fmt、确定性、C ABI 的原有要求;新增“平台差异写成数据,cfg只用于调用操作系统接口”。Platform的规则对两个平台各测一次;真实系统行为放进lithe-platform-tests;允许留在原 crate 的三种情况,细节见 CONTRIBUTING。affected-crates.mjs和verify-platform-tests.mjs自查;手边没有 Windows 时运行 Windows 目标的 clippy,并在 PR 写明。lithe-platform-tests。verify-platform-tests.mjs和affected-crates.mjs列出的 crate 的测试。“旧 Core 验证脚本移除后不得记为通过”保留,因为已删除的scripts/architecture/verify-core.sh检查的是服务边界和共享契约,不是 Rust 测试,Core CI 不能替代它。不在本 PR 范围内 / Out of scope
CONTRIBUTING.md,本 PR 不复制。类型专属:docs
.agents/notes/:决策和取舍记录在 Core 的CONTRIBUTING.md和 ci(rust-core): 只运行受影响 crate 的 Rust Core CI 与平台测试放置规范 Lithe-IDEA/Lithe-core-rust#50,本 PR 没有改 NoteCONTRIBUTING.md,Skill 只写判定原则和指针CONTRIBUTING.md、scripts/rust-core/{affected-crates.mjs,verify-platform-tests.mjs,verify-rust-core-comments.sh}、rust/crates/platform{,-tests}/、.github/workflows/rust-core.yml都已通过 GitHub API 确认在 Core main 上范围检查 / Scope checks
功能矩阵 / Feature matrix
N/A:只改 Skill,没有用户可见能力或跨平台行为变化。
插件归属 / Plugin ownership
UI 验证 / UI evidence
N/A:没有界面改动。
统一日志系统 / Structured logging
N/A:没有代码改动。
界面文案 / i18n
N/A:没有用户可见文案。
逻辑归属 / Logic placement
N/A:没有业务逻辑改动。
性能与内存 / Performance and memory
N/A:没有代码改动。
设置 / Settings
N/A:没有设置改动。
插件契约 / Plugin contract
N/A:不涉及插件契约。
发行包与资源 / Bundle and resources
N/A:没有资源改动。
无用代码与重构 / Dead code and refactoring
N/A:没有代码改动。
验证 / Verification
rg ... desktop scripts shared .github docs/ci-builds.md)rg 'Core 行为在所属 crate'等,检查仓库里有没有残留的冲突写法未能执行的检查和原因: 无。本 PR 只改 Skill,没有可运行的代码检查。
提交前确认 / Final checks
preview(c21374c4f)创建;目标分支preview