Pick up the agent-exec terminal wrapper fix and worker git rules #610

Merged
weichen merged 6 commits from fix/agent-exec-terminal-wrapper into main 2026-10-18 03:30:19 +00:00
3 changed files with 301 additions and 1 deletions
File diff suppressed because one or more lines are too long
+5
View File
@@ -105,6 +105,11 @@ agy `stream-json` 的 `result` 事件或 `json` 输出对象、PI `json` 模式
每个外部 worker 只接收一个有界单元。Worker 不得扩围、提交、推送、打开或合并 PR、派遣同伴、
改变路由或模型、部署,或清理规范 worktree。
单元包不得要求 worker 暂存或修改 Git 索引、配置或引用(`git add`、`git update-index`、
`git commit`、`git stash`、`git submodule init/update`、`git config`);需要改 gitlink 时,
只在子模块目录内检出目标提交并保持未暂存。host 在 `scripts/agent-exec run` 前提交自己的改动,
运行期间不修改规范检出(包括 `.task/**`)。
`run-everything` 仅在隔离单元内取消逐步命令批准提示;不扩大用户授权范围,也不授予 worker
规范 Git、推送、PR、合入、部署或清理权威。