feat(chv-muse-round11): 执行器接 nspawn 单元(P2 差距表 §4)
客内 host.py 调用改为 chv-cell run -- python3 /app/host.py --state /home/chv/.codex/host-state.json --codex-home /home/chv/.codex --sandbox danger-full-access …,其余原参数 原样保留。--sandbox 放全局参数最后(argparse 后胜出), 单元内恒为 danger-full-access,调用方 read-only 不得盖回 bwrap;非单元路径(本地/Docker/冷启动回落)不动。 开关 CHV_CELL_ENABLED:只认 0/1,默认 1 开;非法值 ValueError(_to_switch 同款口径)。关时走原命令,给 lite10 及更早无单元的旧镜像留逃生口。 测试:新 test_chv_muse_round11_cell.py 7 项(开/关 argv、 原参数保留、sandbox 只在单元路径、非法值报错、SSH 层 接线);test_host_command_options_identical_across_executors 显式关单元测三执行器参数全等,断言本身未动。 全量 cloud 套件 2011 OK(skipped=8)。
This commit is contained in:
1 parent
304707b372
commit
73176e135c
3 files changed
+231
-3
No files matched your search
@@ -244,7 +244,14 @@ class SharedGoalTest(unittest.TestCase):
|
||||
chv = ChvOptCase()
|
||||
chv.setUp()
|
||||
try:
|
||||
ex = chv.make_exec()
|
||||
# 单元路径(CHV_CELL_ENABLED 默认开)有意加 CHV
|
||||
# 专属 argv:chv-cell 前缀 + --state/--codex-home
|
||||
# + 强制 --sandbox danger-full-access,三执行器
|
||||
# 顶层参数全等只在非单元路径上有意义,故这里显式
|
||||
# 关单元;单元路径的“原参数一个不少”由
|
||||
# test_chv_muse_round11_cell.py 钉死。
|
||||
ex = chv.make_exec(
|
||||
env_extra={"CHV_CELL_ENABLED": "0"})
|
||||
local = LocalExecutor("/tmp/host.py")
|
||||
docker = DockerExecutor()
|
||||
for kwargs in (
|
||||
|
||||
Reference in new issue
Block a user