S0 first shape: task workspace overlay with frozen base and CAS apply (pin bd4b3bc) #318

Merged
weichen merged 6 commits from feature/agent-s0-workspace-overlay into main 2026-10-11 02:29:02 +00:00
Owner

S0-1(提案 §4.4,用户「继续完成下一步」授权):sandbox 档会话目录由直写改为冻结基底 overlay——

  • 执行前硬链接冻结 + sha256 基线(.agentx 排除)
  • 执行期 bwrap overlay 三件套,写入只落私有 upper;超时/中止整体丢弃(半写状态不落地)
  • 正常退出 CAS 写回(基线一致→原子替换/删除;外部已改→双存 .conflict-)
  • -ws 壳目录用后即清;工具输出尾附变更摘要(模型可见)
  • 入口 --exec-workspace overlay / AGENT_SYSTEM_EXEC_WORKSPACE(仅 sandbox 后端;缺省行为不变)

Evidence: Backend #135/#136 CI success(GATE);bwrap 集成 3(overlay 往返含 whiteout、超时丢弃、壳清理)+ 单测 4;live 三件套端到端(失败执行零落地→[工作区变更:无]、成功 build 新增 1(docx 落地)、重 build 修改 1、-ws 清理);make test 全绿(收据)。

任务卡:feature/agent-s0-workspace-overlay。S0-2(fs 联合读/任务级工作区/封存)待授权。

S0-1(提案 §4.4,用户「继续完成下一步」授权):sandbox 档会话目录由直写改为冻结基底 overlay—— - 执行前硬链接冻结 + sha256 基线(.agentx 排除) - 执行期 bwrap overlay 三件套,写入只落私有 upper;超时/中止整体丢弃(半写状态不落地) - 正常退出 CAS 写回(基线一致→原子替换/删除;外部已改→双存 *.conflict-*) - -ws 壳目录用后即清;工具输出尾附变更摘要(模型可见) - 入口 --exec-workspace overlay / AGENT_SYSTEM_EXEC_WORKSPACE(仅 sandbox 后端;缺省行为不变) Evidence: Backend #135/#136 CI success(GATE);bwrap 集成 3(overlay 往返含 whiteout、超时丢弃、壳清理)+ 单测 4;live 三件套端到端(失败执行零落地→[工作区变更:无]、成功 build 新增 1(docx 落地)、重 build 修改 1、-ws 清理);make test 全绿(收据)。 任务卡:feature/agent-s0-workspace-overlay。S0-2(fs 联合读/任务级工作区/封存)待授权。
weichen added 5 commits 2026-10-11 02:24:17 +00:00
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-agent-s0-workspace-overlay.md; R0=73c901fa341a3653d6e0826d0da3497507995482.

Impact: task metadata only; the feature workspace starts at 73c901fa34.

Refs: .task/feature-agent-s0-workspace-overlay.md
Record the sync checkpoint
ci / test (pull_request) Failing after 1m44s
e46f34065e
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=73c901fa341a3653d6e0826d0da3497507995482; candidate=b332b2e9ee22690de76cb82fa54e74b3442d1dd0.

Impact: task metadata only.

Refs: .task/feature-agent-s0-workspace-overlay.md
weichen added 1 commit 2026-10-11 02:24:20 +00:00
Fill the task record PR link
ci / test (pull_request) Successful in 2m20s
cc57c1f4dd
weichen merged commit 92ca774e94 into main 2026-10-11 02:29:02 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Dev#318