codex-supervisor-mcp 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codex-supervisor-mcp",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"mcpName": "io.github.zriyox/codex-supervisor-mcp",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "MCP server that dispatches and supervises parallel Codex CLI workers, one isolated Git worktree each, with a persisted work state machine.",
|
|
@@ -40,7 +40,7 @@ worker 默认不是调度员:启动时会禁用它继承到的 `codex-supervis
|
|
|
40
40
|
|
|
41
41
|
`probeCommands` 会自动加入这次 probe worker 的 guard-only allowlist,不会进入目标 worker 的 runtime contract;目标 worker 仍只声明自己真正需要的 `allowedCommands`。ssh 等联网探针仍要显式 `networkAccess: true`,需要写 `known_hosts` 时同时声明 `writableRoots: ["~/.ssh"]`。
|
|
42
42
|
|
|
43
|
-
预检结论以 probe command evidence 为准,不把模型最终 JSON
|
|
43
|
+
预检结论以 probe command evidence 为准,不把模型最终 JSON 或进程 close handler 当环境事实:所有探针都实际执行且通过、没有失败命令时,最终报告格式错误不会让预检失败;probe-only worker 即使最终变 `lost` 且退出码未记录,也只记诊断,不重跑。命令未执行、非零或取消仍失败。
|
|
44
44
|
| `sandbox` | 默认 `workspace-write`,worker 提交不了(Codex 把 `.git` 设成只读)。要它自己提交就 `danger-full-access`,否则收活时让 supervisor 替它提交 |
|
|
45
45
|
|
|
46
46
|
验收用 Bash 的 `errexit` + `pipefail`:`npm test | tail` 不能吞失败;文件存在只可做附加门禁,不能单独证明业务完成。预期失败用 `if` / `||` 显式判。超时、`no tests to run`、`[no test files]` 都失败,别只看退出码 0。Windows 要有 Git for Windows Bash;缺失先修工具,别换回 cmd。
|
package/src/worker-preflight.js
CHANGED
|
@@ -122,7 +122,8 @@ export function readPreflightResult(task) {
|
|
|
122
122
|
const probesPassed = probes.every((probe) => probe.passed);
|
|
123
123
|
const exitConfirmed = task.status === "completed" && task.exit_code === 0;
|
|
124
124
|
const reportWasInvalid = task.attention_reason === "invalid_report";
|
|
125
|
-
const
|
|
125
|
+
const probesProveEnvironment = probesPassed && failedCommands.length === 0;
|
|
126
|
+
const exitWasLost = task.status === "lost" && probesProveEnvironment;
|
|
126
127
|
// A preflight proves the worker environment through its command evidence.
|
|
127
128
|
// Its own final report and close-handler completion are useful diagnostics,
|
|
128
129
|
// but neither changes what those commands already proved. A completed turn
|