Repository navigation
Conversation
JasonW404
marked this pull request as ready for review
October 8, 2026 11:07
JasonW404
requested review from
Dallas98,
WMC001,
YehongPan,
hhhhsc701 and
jeffwu-1999
as code owners
October 8, 2026 11:07
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…ayout-preparation
This branch has not been deployed
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.
调整方式和目的
为后续自建 NativeAgent 准备目录,迁移现有实现并明确公共入口与内部模块的边界。
agents/execution/code/legacy_agent.pyagents/resources/gateway/llm/adapter.pygateway/llm/providers/openai.py根据评审收敛入口
agents/core_agent.py,仅显式导出CoreAgent;agents/__init__.py延迟导出保持。未来运行时选择在此公共边界实现。agents/managed_mcp.py、agents/tool_user_context.py、gateway/modality/llm/llm_adapter.py、gateway/modality/llm/openai.py。sys.modules兼容别名。资源、LLM、内部辅助符号及测试 patch 使用实际实现路径;NexentAgent 通过公共 CoreAgent 入口接入。本次没有实现 NativeAgent、运行时开关、组合调度门面、新模型档案注册或统一 HTTP sender;smolagents 版本、请求算法、API、数据库和 UI 行为保持。
目录设计、范围和验证证据仅保存在独立 nexent-doc 的
runtime-model-capability-execution/中,不纳入本代码 PR。本次整改验证
git diff --check通过。VM 验证与 CI
最新整改提交
ab9274406(同步 develop8fe2381e2) 已完成本地和 VM 验证:v2-6-1-docker-cache快照,原生挂载工作树;构建 ARM64 main/web/mcp。local-latest模式取 latest 标签,将本次镜像标记为 latest 后部署 infrastructure/application/supabase;确认运行中镜像及八个 SDK 文件哈希匹配本次源码。此前 CI 因 develop 新合入的 Windows 沙箱重复引入旧辅助符号路径而失败;已同步最新基线、清除重复导入,并补充真实 NexentAgent 组装导入回归。39 个失败文件的 1,104 项回归经补齐本地测试依赖后通过;正式 D1/D2 5 PASS。再次恢复干净 VM 验证,运行中的 NexentAgent 加载、八个关键 SDK 哈希及四个健康接口 PASS。复用未受影响且已验证的 web/MCP 构建镜像,main 按最终源码重建。
最终 CI 状态
代码验证提交
ab92744060688ce80e3ae3f2a12fae79133af6ac全部检查 PASS:全量 unit-test、各镜像 AMD64/ARM64、CodeQL、SonarCloud、codecov/patch。Codecov patch 100.00%(目标 90.00%),所有可统计修改行有测试覆盖。PR 为 ready for review,未合并。回滚:revert 本 PR,无数据迁移。本 PR 未合并。
按评审要求,文档清理提交
df7caac15从本 PR 移除docs/runtime-layout-preparation.md,说明和证据保留在独立 nexent-doc;此提交不修改代码。