xai / grok-4.7-efficient / medium / medium effort preferred over openai / gpt-6-astra / high / high effort · close win.
Primary judge: Sol 6.1, requested Low. Effective provider effort and internal attempts were not verified. A close win is still a scored preference; it does not establish a material defect.
Reviewed public evidence
Task goal
Independent review of the frozen writer candidate for assignment 17507ba8-07a6-4736-bbcb-0dca0e56782a. Review only the frozen packet identified by reviewTargetRef writer-review-target:17507ba8-07a6-4736-bbcb-0dca0e56782a:2:b895d870c0e48c46. Do not inspect the mutable source checkout, do not treat any uncommitted draft outside the frozen packet as the implementation, and do not recommend merge, install, activation, or permission changes. Do not carry forward any prior PASS; verify this packet itself.
The required implementation is a local Codex stdio MCP plugin at harness/codex-plugins/direct-computer-use that wraps only `[REDACTED: local path]` with argv `mcp`. It must expose only list_apps, get_app_state, click, type_text, and scroll; retain each tool's native input schema and other native tool fields from the driver tools/list; preserve driver text blocks and typed image blocks (png/jpeg/webp data and mimeType) without stringifying images; append a clear action receipt for click, type_text, and scroll with status reported-complete|failed|uncertain and retrySafe false; never auto-retry an uncertain timeout or send a second tools/call after timeout, disconnect, id mismatch, oversized response, or malformed post-call result; reject every other tool and MCP method without forwarding; use stdlib newline JSON-RPC only; have no generic shell, generic MCP passthrough, network listener, credentials, OS permission grant, plugin install, or OpenCode/MC/provider changes. .mcp.json must use package-relative cwd `.`, python entrypoint, and default_tools_approval_mode approve. Tests must be fake-driver unittests that do not start the real driver or perform UI actions, and must cover allowlist/native schema equality, rejection without forward, image-plus-text preservation, reported-complete not claimed verified, and uncertain timeout with exactly one tools/call. README must state the supported local Codex task-route boundary (repo change does not install or expose tools to a parent conversation; supported only on a separately reviewed local Codex task with the plugin enabled, image-capable route, existing macOS grants, and Codex per-call approval) and a harmless scratch TextEdit validation plan that does not grant permissions.
Additional required focus on this corrected packet: a malformed image mimeType such as [] after a dispatched action must produce status uncertain and retrySafe false with no uncaught TypeError; blocked and partial driver stdin writes must be inside the same deadline as the response read; uncertainty must terminate the child and never replay the action; fake-driver regressions must cover those cases. A pre-dispatch inventory failure must not be labeled as an uncertain dispatched action.
Return a PASS or FAIL verdict. FAIL if any required safety or contract item is missing, weakened, or untested. Cite frozen-packet evidence for each finding. Do not request a merge or any live UI action.
xai / grok-4.7-efficient / medium / medium effort answer
PASS
The frozen packet `writer-review-target:17507ba8-07a6-4736-bbcb-0dca0e56782a:2:b895d870c0e48c46` meets the required safety and contract items. This is an independent review of that packet only. It is not a merge, install, activation, or permission recommendation.
### Contract evidence
- Scope is only the Codex stdio package. Manifest `changedFiles` and embedded sources are the five package files. `server.py` imports only stdlib (`json`, `os`, `selectors`, `subprocess`, `sys`, `time`). Child spawn is exactly `[DRIVER, "mcp"]` with `DRIVER = "[REDACTED: local path]"` (`server.py` 11, 38–40). No `shell=True`, socket/HTTP server, credential read, doctor/install, permission grant, or OpenCode/MC/provider edit.
- `.mcp.json` 2–9: server `direct_computer_use`, `python3`, args `["scripts/server.py"]`, `cwd: "."`, `startup_timeout_sec` 10, `tool_timeout_sec` 35, `default_tools_approval_mode: "approve"`, no env secrets. `plugin.json` points at `./.mcp.json` and does not install the plugin.
- Allowlist is exactly `list_apps`, `get_app_state`, `click`, `type_text`, `scroll` (`server.py` 9–10). `tools()` returns the driver objects unchanged and fails closed on a missing or duplicate required name (`server.py` 151–165). `test_inventory_preserves_native_objects_and_schemas` asserts object identity and native `inputSchema`.
- Other tools return `isError` before any driver call (`server.py` 168–170). Other methods return `-32601` (`server.py` 211–213). Parent notifications are not proxied (`server.py` 194–195). `test_rejection_never_forwarded` expects `driver.calls == []`.
- Text and `image/png|jpeg|webp` blocks with string `data` and `mimeType` pass through; other types raise (`server.py` 124–139, 175–180). `test_text_and_images_preserved_and_arguments_unchanged` keeps image-plus-text and the original arguments object.
- Action receipt is a text JSON object with `action`, `status`, and `retrySafe: false`, plus “not independent UI verification” (`server.py` 113–117, 178–179). Success maps to `reported-complete` only when the driver did not set `isError`; driver `isError` maps to `failed`. Covered by `test_action_receipts`.
- After `sent = True`, timeout, disconnect, id mismatch, oversized response, malformed JSON, and malformed tool results become `uncertain`, then `stop()` kills the child (`server.py` 25–32, 74–110, 171–186). There is no second `tools/call` or replay loop. `test_uncertain_transport_never_retries` and `test_actual_transport_timeout_sends_one_call_and_stops` lock one call, `retrySafe` false, and child stop.
- README 30–55 states that this repo change does not install or expose tools to a parent conversation, including the current OpenCode session, and that the supported route is a separately reviewed local Codex task with the plugin enabled, an image-capable route, existing macOS grants, and Codex per-call approval. The TextEdit plan checks status without granting permissions and stops on uncertainty.
### Corrected-packet focus
- Malformed `mimeType` values `[]`, `{}`, `None`, and `42` fail the `isinstance(..., str)` guard and raise `DriverError`, not `TypeError` (`server.py` 134–138). Because validation runs after `tools/call`, `sent` is true, so the receipt is `uncertain` / `retrySafe` false, the child is stopped, and the fake driver records one `tools/call` (`test_server.py` 80–90).
- `request()` creates one deadline and passes it to `send()`; the response read uses that same deadline (`server.py` 74–87). `send()` waits only for remaining time, performs one nonblocking `os.write`, and treats a short write as terminal (`server.py` 52–70). Blocked, partial, and shared-deadline cases are in `test_server.py` 201–264: uncertain, `retrySafe` false, child killed, `sequence == 1`, no second write or second line.
- Inventory failure stays pre-dispatch. `sent` is set only after `tools()` returns (`server.py` 171–175). `test_missing_inventory_fails_closed` and `test_inventory_transport_failure_is_not_dispatched` expect status `failed`, no `tools/call`, and child stop. README 21–22 states the same split.
- Packet verification receipt: the declared unittest command completed with exit 0 (`manifest.json` 110–129). Tests use `FakeDriver` or patched `Popen` and inert pipes; they do not start `[REDACTED: local path]` or perform UI actions.
### Discarded failure hypotheses
- Empty `diff.patch` is not missing implementation. `currentHead` equals `baseSha`, and the candidate is the embedded source snapshot.
- Labeling a blocked write that transmitted zero bytes as `uncertain` is the packet’s required fail-closed behavior, not a mislabeled inventory failure. The pre-dispatch rule is separately implemented and tested.
- `stop()` calling `wait(timeout=2)` after `kill()` could theoretically raise `TimeoutExpired` and skip the receipt. `kill()` still runs first, and no replay call exists on that path. That residual cleanup edge is not an untested required contract miss.
### Missing evidence
Sibling plugin files named in `evidenceRefs` are not in this packet, so exact field-for-field parity with `opencode2-moa-bridge` was not rechecked. Required `.mcp.json` and entrypoint fields are present here. This lane did not re-execute the unittest command; the conclusion uses the frozen sources plus the packet’s exit-0 receipt.
### Next action
Record PASS for this `reviewTargetRef` only. Do not merge, install, enable the plugin, grant macOS permissions, or run the TextEdit plan.openai / gpt-6-astra / high / high effort answer
**PASS** — independently reviewed only frozen packet `writer-review-target:17507ba8-07a6-4736-bbcb-0dca0e56782a:2:b895d870c0e48c46`.
Evidence below uses paths under `writer-review/source/harness/codex-plugins/direct-computer-use/`:
- **Narrow runtime and forwarding:** `scripts/server.py:9–11,34–47` fixes the five-tool allowlist and exact driver command. Lines `151–165` preserve native tool objects and reject incomplete inventories; `167–170,188–218` prevent forwarding unsupported tools or methods.
- **Native content and receipts:** `scripts/server.py:113–139,175–185` preserves text and supported typed images, appends action receipts, sets `retrySafe: false`, and explicitly distinguishes driver-reported completion from independent verification. Tests cover these contracts at `tests/test_server.py:47–61,92–138`.
- **Malformed MIME correction:** the string guard precedes MIME-set membership at `scripts/server.py:134–136`, avoiding the unhashable-value `TypeError`. Tests at `tests/test_server.py:80–90` cover `[]`, `{}`, `None`, and integers, requiring uncertainty, child stop, and exactly one action call.
- **Transmission deadline and no replay:** `scripts/server.py:52–110` uses one shared transmission/response deadline and one nonblocking write, rejecting partial transmission. Error handling stops the child before returning uncertainty (`25–32,181–186`). Inert-pipe regressions cover response timeout, blocked writes, partial writes, and shared deadline exhaustion (`tests/test_server.py:187–264`).
- **Pre-dispatch classification:** inventory acquisition precedes `sent = True` (`scripts/server.py:171–175`). Missing inventory and inventory transport failures are tested as `failed`, with no dispatched action (`tests/test_server.py:63–78`).
- **Configuration and operational boundary:** `.mcp.json:3–9` supplies the required Python entrypoint, relative cwd, timeouts, and approval mode. `README.md:30–55` documents the separate local Codex route, existing grants, per-call approval, and harmless scratch TextEdit plan.
The complete supplied implementation uses stdlib stdio without a shell proxy, network service, credential handling, permission grants, or installation behavior.
**Verification evidence:** `writer-review/manifest.json:110–130` records successful compilation and unittest execution. I assessed that evidence and the tests statically; I did not independently execute them. No blocking defect or required regression gap identified.Primary judge's stated reason
The forced, slight preference is A: its explicit account of mocked process creation and fake drivers makes the no-real-driver assurance easier to audit against a mandatory boundary. B supplies closely equivalent evidence, and A's cleanup discussion offsets that benefit. This is not an established material quality difference; an independent reviewer could reasonably prefer B.
This reason is the judge's assessment. No independent factual-defect finding is asserted by this record.
Battle wave: 0d5bfb29-7fc6-4b87-8465-f0c30ea29f47. Pair: brp1_e88e710d43f290a9ffb9528414639c882fb4c96d5d6a46937db87ea8cec5362c. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.