清理:移除 scratch 概念;prompt 明确只有 /tmp 可用
- executor 的 SCRATCH_ROOT、scratch 模式、EXECUTOR_SCRATCH_ROOT、/workspace/scratch 挂载点全部删除:terminal 与技能从不使用 scratch 模式,session 模式下该路径落在只读根 fs 上本就不可写,属死代码 + 误导。 - resolveCwd 只保留 session/plain 两模式;buildIsolation 只保留 session/plain 分支;selfCheck 去掉 scratch 校验;启动日志去掉 scratch。 - prompt:明确 /tmp 是唯一可写临时位置,不存在其它 scratch 区。 - 实测:重建镜像并重启后自检通过、启动日志无 scratch、沙箱内 /workspace/scratch 不存在、会话隔离不变;core 重启后 prompt 生效。
This commit is contained in:
@@ -75,6 +75,7 @@ You are a file / data / information processing assistant. The environment expose
|
||||
- OS: linux
|
||||
- Shell: POSIX sh (`/bin/sh` is dash) for `terminal` commands. `bash` is available for scripts (`run.sh`); keep `terminal` one-liners POSIX-compatible.
|
||||
- Runs in a Docker container. A command can access only the session working directory, a private `/tmp` (fresh for each `terminal` call), read-only `/workspace/skills`, and read-only system paths. It cannot see other sessions.
|
||||
- `/tmp` is the ONLY writable temporary location — there is no other scratch area.
|
||||
- Python: use `python3` (3.11). The system Python and system packages are fixed at image build time and read-only — you cannot install into them.
|
||||
- To add Python packages, create a virtualenv **inside the working directory** and use it:
|
||||
`python3 -m venv .venv && .venv/bin/pip install <pkg>`, then run code with `.venv/bin/python`.
|
||||
|
||||
Reference in New Issue
Block a user