Skip to content

修复 CI 全部失败:模块边界、暗色检查锚点与两处测试 - #8

Open
w8123 wants to merge 1 commit into
mainfrom
claude/project-thread-4ajqth
Open

w8123 wants to merge 1 commit into
mainfrom
claude/project-thread-4ajqth

Conversation

@w8123

@w8123 w8123 commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Requested by r7q85Ay · project thread

main 上的 CI(e101060 及之前几次推送)三个任务全部失败,这个 PR 逐个修好。

仓库级检查

  • check-internal-module-boundaries 报 50 个问题,根源是 4 个新的双向依赖和 4 处跨模块 Mapper 引用:
    • ControlPageAssistantSmokeGateway 改成 runtime 里的接口,实现 PlatformPageAssistantSmokeGateway 放到 platform(它本来就依赖嵌入令牌和会话),消除 runtime↔platform。
    • PersonalMemoryIdentityChallengeService / PersonalMemoryIdentityLinkService / PersonalMemoryIdentityAdminController 移到 platform,消除 memory↔platform、memory↔mcp、identity↔memory。接口路径不变。
    • BusinessIdentityErasureGuard 改用 identity 的 ExternalUserBindingErasureLookup 和 platform 的 PlatformEmbedSessionErasureLookup,查询逻辑原样搬过去。
  • report-platform-ai-coverage 测试:新增的记忆身份关联接口、复用已保存连接的两个模型接口登记到未开放清单;员工门户记忆接口的路径键跟随 memory.ts 的改动更新。
  • check-physical-service-route-contracts 测试偶发失败:脚本用 process.exit(1) 时管道里的长报告会被截断,改为 process.exitCode = 1。

管理端检查与测试

  • check:dark-theme-compatibility:SDK 样式里作为结束锚点的注释被改写,检查脚本跟着换成新注释。

后端测试(Maven)

  • ControlRuntimeAgentCookieAuthenticationTest 的测试上下文补上冒烟网关 Bean。
  • Runtime WorkflowTrustedIdentityEntryTest:新的 forAgentExecution 会拒绝项目对不上的嵌入会话,测试里的嵌入身份改成和网关一样不带项目,并新增一个跨项目被拒绝的用例。

本地验证

  • 前端:全部 check、15 组单测、npm run build 通过
  • 仓库级:verify-architecture、SQL 检查、node --test scripts/*.test.mjs(103/103)、managed-executor-worker 通过
  • 后端:Control 1553 个测试、Runtime 2095 个测试及其余模块全部通过

注意:开源库由 sync-open-source.mjs 从开发库同步,同步结果等于开发库的快照。这些改动也需要进开发库,否则下次同步会被覆盖。


Generated by Claude Code

- 仓库级:页面冒烟网关改为 runtime 端口 + platform 实现;记忆身份关联的
  服务与管理接口移入 platform;合规擦除改用 identity / platform 各自的只读
  查询,不再跨模块引用 Mapper,模块循环依赖与持久化越界清零
- 仓库级:新接口(记忆身份关联、复用已保存连接建模型/试测)登记到平台 AI
  覆盖清单;路由契约脚本改用 exitCode,避免管道里报告被截断导致测试偶发失败
- 管理端:暗色兼容检查的结束锚点跟随 SDK 样式里改写的注释
- 后端:Cookie 鉴权测试补上冒烟网关 Bean;Runtime 身份测试按新的项目校验
  规则让嵌入会话不带项目,并新增跨项目嵌入会话被拒绝的用例

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JGHXH4C36MT6izHgdkBgHb
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T01:50:28.694515Z 0d82390 PR opened
🔒 Security Review ✅ Completed 2026-11-03T01:51:43.766874Z 0d82390 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@w8123 w8123 self-assigned this Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants