📝 docs(architecture): 制定多平台修正与稳定板保护计划 - #236
Draft
ZhaoXingPeng wants to merge 2 commits into
Draft
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
结论
本 PR 提交多平台重构的架构修正与可恢复基线计划,供当前和后续开发分支作为前置约束。请 Reviewer 重点确认:VoiceLife PCB 与 SparkBot 是否被正确建模为同级板型,以及
PlatformAssembly、事件单写者与显示 Adapter 的边界是否足以避免新板适配继续侵入 Runtime。Refs #94
变更
main@0bc930d固定为 VoiceLife PCB 的首个可恢复基线,并定义每个受影响 Profile 的真机回归、可刷写产物和回退门禁;PlatformAssembly、能力模型与InteractionEventLoop的演进路径;PresentationPortAdapter:Runtime 仅提交DisplaySnapshot,图片/GIF 受逻辑asset_id、资源清单、许可证、哈希和内存预算约束;明确未包含:
架构与兼容
文档提出的接口为后续 Design Issue/骨架 PR 的评审边界,尚未引入生产代码。实际实施必须先完成可编译的
PlatformAssembly、PresentationPort与事件循环骨架,并逐边界迁移。main@0bc930d是 VoiceLife PCB 的可恢复对照点,不是对 GPIO、I2S、Codec、SSD1306 或交互行为的永久冻结。任何板型的行为变更都需要新的 Profile/固件身份、差异说明、真机证据和可刷回上一产物的步骤。验证
git diff --check./scripts/check_architecture.shctest --test-dir build-host --output-on-failure:44/44 通过python3 scripts/firmware.py validate:3 个 ESP32-S3 Profile 通过idf.py证据:
docs/architecture/multi-platform-correction-plan.md包含公开规范链接、PR 对照、资源/内存/回退门禁与验收标准。TDD 记录
风险与回退
风险是将文档误作已完成的多平台实现,或把彩屏素材、LVGL 和板级条件继续写入
runtime.cc。本 PR 保持 Draft 且不应合并;正式实现按 Issue 拆分为骨架、VoiceLife PCB 显示 Adapter、彩屏资源清单与 SparkBot Adapter 等小 PR。回退方式:关闭本 Draft PR 或回退单独的文档提交,不影响
main、任一板型固件或其他开发工作树。Review 清单
main@0bc930d、已关闭 ✨ feat(display): 完成小智式牛牛屏幕适配 #226 和 📝 docs(board): 制定 ESP-SparkBot 适配执行计划 #232 的实际范围一致