docs(hygiene): 文档卫生 batch-1——11 项漂移修复(Source Map/ADR 撞车/死引用/路径过期)(#2154) - #2202
Merged
Conversation
- web: Source Map 重写为真实结构(App.tsx + platform/ + components/ + api/ + stores/hooks), 删除引用已删目录的假路由表,改述为 @agenthub/workbench WorkbenchRoutes 状态式路由 - desktop: DesktopLayout.tsx/src/views 两行改为 AppShell->App + workbench 包 - 两文件最后更新 marker 更新至 2026-09-02 Co-authored-by: Cursor <cursor@vectorcontrol.tech>
表内最大号为 ADR-026,按 ADR-012 行声明的续号规则将 2026-09-01 的 OTel GenAI tracing 裁决重编为 ADR-027 并移至 ADR-026 之后,保持编号与时间序; 原 ADR-021(2026-08-09 安全门禁四修)保持不变。 Co-authored-by: Cursor <cursor@vectorcontrol.tech>
- 07-design-system-ssot: 删除 §7 glass 表中 Card variant 行,改写 consumer rule 与 §8 applied-first 行的 Card glass/elevated 提及(组件已随 ed846d2 删除) - shared README: import 示例改用现存导出 Button/StatusBadge(核对 ui/index.ts) - 孤儿文件 app/shared/src/ui/Pill.module.css 仍存在,登记待代码侧清理 Co-authored-by: Cursor <cursor@vectorcontrol.tech>
文件已随 service 领域子包化移至 hub-server/internal/service/agent/, 修正路径并更新过期 marker(2026-07-27 -> 2026-09-02)。 Co-authored-by: Cursor <cursor@vectorcontrol.tech>
- 11-protocol-capability-mapping: target_handler.go 实为 execution_target.go; 删除 router.go 行号锚(:326-340/:316-318),只留文件+节名 - 02-edge-server: decision_loop.go 已删除,DecisionLoop 行改指 process_executor_pure_adapter.go(pure-helper 族现存证据); internal/adapters/testdata/ 实为 internal/adapters/sdk/testdata/ - 02-edge-server marker 更新至 2026-09-02 Co-authored-by: Cursor <cursor@vectorcontrol.tech>
- ui-core: Toast 测试实为 ToastStack.test.tsx(toastStore.test.ts 保留), 删除失实的「2026-08-23 复核存在」声明;表单族重复迁移背景段合并进 信息更全的段首(保留 radius 分叉值与三件套事实),删除近似重复段 - component-acceptance: 删除无正文的「范本表」空壳节,信息并入「范本索引」; marker 更新至 2026-09-02 Co-authored-by: Cursor <cursor@vectorcontrol.tech>
原指向 Unreleased 的升级注意段已随发布落空,v0.6.1 节含实际升级注意内容; 该文件 marker 已为 2026-09-02,不再变动。 Co-authored-by: Cursor <cursor@vectorcontrol.tech>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
文档卫生 batch-1(#2154)
只读探索报告 11 项逐项处置,全部仅改
*.md,每条修复前已复核现场证据。逐项处置
app/web/README.mdSource Map / Current Routes 失真main.tsx→App.tsx挂载AgentHubWorkbench、platform/、api/、components/、stores/hooks/i18n);删除引用已删目录(src/layouts/、viewRegistryConfig.ts、src/views/、src/pages/、router.tsx)的假路由表,改述为@agenthub/workbenchWorkbenchRoutes.tsx状态式路由;marker → 2026-09-02app/desktop/README.md:23,25指向已删文件DesktopLayout.tsx→AppShell.tsx -> App.tsx;src/views/→ workbench 包WorkbenchRoutes各 route view;其余有效行保留;marker → 2026-09-02docs/decisions.mdADR-021 编号撞车Card variant行(:99)、改写 consumer rule(:102)与 §8 applied-first(:115);shared README import 示例改用现存导出Button, StatusBadge(已核对ui/index.ts)。孤儿app/shared/src/ui/Pill.module.css仍存在——属代码文件,本 PR 不删,登记待代码侧清理api/events.md:16owner 路径漂移service/agent_edge_callback.go→service/agent/agent_edge_callback.go(随领域子包化迁移);:3 marker → 2026-09-0211-protocol-capability-mapping.md:88-90target_handler.go→execution_target.go(已核实存在);删除router.go:326-340/:316-318行号锚,只留文件+节名02-edge-server.md:56,97decision_loop.go已不存在——DecisionLoop 逻辑并入process_executor_pure_*.go族(现存证据为process_executor_pure_adapter.go的 stdin gating/interrupt 注释与辅助函数),行内如实改述;internal/adapters/testdata/→internal/adapters/sdk/testdata/;marker → 2026-09-02ui-core.md:34Toast 测试文件名过期Toast.test.tsx→ToastStack.test.tsx(已核实toast/__tests__/内实为ToastStack.test.tsx+toastStore.test.ts);删除失实的「2026-08-23 复核存在」声明05-deployment.md:142指向 CHANGELOG Unreleased 落空component-acceptance.md:72-79空壳节 +ui-core.md:42,64重复段06-auth-identity.md与agent-protocol-compat.md本次未修改,按「未修改的不乱动」不动;无 marker 的文件(shared README、11-protocol-capability-mapping、ui-core)不新增验证(真实跑过)
遗留(不在本 lane 职权内)
app/shared/src/ui/Pill.module.css(Card/Pill 组件已删,CSS 残留)——需代码侧清理CHANGELOG.md:42「Tauri 安全加固(ADR-021)」引用的内容与 decisions.md ADR-023 对应,疑为历史笔误;不在本批清单,未动