修复:安全初始化首次 scoped Session Root - #3
Merged
jubilee-hub merged 2 commits intoJul 26, 2026
Merged
Conversation
Owner
Author
|
合并前 Codex 复核已完成,无阻断项。 验证证据:
本机曾启动仓库全量测试,但本地未安装 ACP/Anthropic 等非本阶段可选 extra,相关收集/适配器测试不具备判定意义,且没有调用 Anthropic 或任何模型服务;权威全矩阵已由本 PR CI 完整通过。 |
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.
背景
Agent SaaS 在生产完成 shared → scoped 串行代次验收后,首次 scoped 文件对话仍失败:控制面已有 fresh Workspace
OK证据,但确定性 Session Root 子目录尚不存在;file tool 因 strict resolve 正确 fail-closed。跟踪任务:jubilee-hub/agent-saas#700。变更
/workspace/profiles/<profile-uuid>/workspaces/<workspace-uuid>的规范化路径;O_NOFOLLOW的逐级 mkdir/open 初始化;..、symlink base/parent 和普通文件父节点;安全边界
验证
本地按仓库测试包装器运行:
覆盖 Chat/Responses 的流式与非流式入口、Runs、Session Chat、24 路并发初始化、已有内容保留、未认证零副作用、挂载缺失、越界与 symlink 对抗。