You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix Roc client wire semantics and execution safety #12466
Codex's review of the merged Roc Approach B implementation in PR #12465 identified behavior gaps in pkgs/mcpx/internal/codegen/roc.go and Roc runner dispatch. These are follow-up fixes; Approach C (a custom Roc platform) remains out of scope. Use Roc nightly 2026-11-13-03dce41 with basic-cli 0.28.1 as the compiler oracle.
Required fixes
Forward MCPX_RUN as X-Mcpx-Run so daemon dry-run interception is preserved; never allow a dry-run request to execute a real tool.
Forward MCPX_TRANSPORT_BEARER_TOKEN as Authorization: Bearer ... when configured.
Preserve original schema property names on the wire even when Roc identifiers are sanitized or collide.
Preserve omission of optional schema properties rather than serializing mandatory placeholders.
Encode {} for tools with no input properties.
Treat MCP tool envelopes with isError: true as a Roc Err, not a successful 2xx response.
Allow Roc compiler lookup to be resolved inside configured flake devshells, consistently with other runtimes.
Acceptance
Add regression tests for each listed behavior, including a mock-daemon dry-run proving the real tool handler is not called.
The generated client passes the specified Roc compiler oracle and focused go test -count=1 ./internal/api ./internal/codegen ./internal/runner in pkgs/mcpx.
Do not modify the merged Approach B implementation history or remove the preserved untracked task notes.
Claimed and checkpointed. Fresh verification: #12466 is OPEN with no hard-stop labels or assignees; prerequisite PR #12465 is MERGED at 2a3979644bf6efee50d837e8ac06e44f71380016. The laptop primary clone is clean on main. I will inspect and preserve existing task notes/work before creating the task worktree; scope remains the listed Roc wire-safety/codegen/runner regressions, excluding Approach C.
Implementation is complete and pushed in PR #12475: #12475. Roc requests now include MCPX_RUN for fail-closed dry-run interception, and retain original JSON wire semantics, optional-field omission, bearer auth, and daemon/tool error propagation. Roc compiler lookup also works through flake devshells. Verified with go test -count=1 ./internal/api ./internal/codegen ./internal/runner and go test -race -shuffle=on -count=5 -run 'Roc' ./internal/codegen ./internal/runner from pkgs/mcpx using Roc nightly 2026-11-13-03dce41 and basic-cli 0.28.1.
Reclaimed the expired task and resumed its existing PR #12475 (no competing branch). Fresh checks show the PR is open, unheld, and clean; prior acceptance tests are recorded in the PR. Codex has one unresolved P1 asking for property-based serialization coverage, so I am adding that test before considering merge.
Merged PR #12475 at 668d92d. Added seeded generated-schema and generated-argument property coverage against decoded mock-daemon requests; replied to Codex P1 at #12475 (comment). Focused runner and race/shuffle tests pass. The unrelated codegen compiler-oracle test fails on the host Roc nightly 2026-10-06 and reproduces on primary main; previous PR verification records the pinned 2026-11-13 oracle.
Activity
developing-today commentedon Nov 22, 2026
CODE-4595
dezren39 commentedon Nov 22, 2026
agent-note:v1
state: picked_up
task: 21022
issue: #12466
lane: oc-code-06
worker: repo-worker-code
origin: openchamber-scheduled-lane
stage: claimed -> verified
Claimed and checkpointed. Fresh verification: #12466 is OPEN with no hard-stop labels or assignees; prerequisite PR #12465 is MERGED at
2a3979644bf6efee50d837e8ac06e44f71380016. The laptop primary clone is clean on main. I will inspect and preserve existing task notes/work before creating the task worktree; scope remains the listed Roc wire-safety/codegen/runner regressions, excluding Approach C.Fix Roc client wire semantics
dezren39 commentedon Nov 22, 2026
Implementation is complete and pushed in PR #12475: #12475. Roc requests now include MCPX_RUN for fail-closed dry-run interception, and retain original JSON wire semantics, optional-field omission, bearer auth, and daemon/tool error propagation. Roc compiler lookup also works through flake devshells. Verified with
go test -count=1 ./internal/api ./internal/codegen ./internal/runnerandgo test -race -shuffle=on -count=5 -run 'Roc' ./internal/codegen ./internal/runnerfrom pkgs/mcpx using Roc nightly 2026-11-13-03dce41 and basic-cli 0.28.1.dezren39 commentedon Nov 22, 2026
agent-note:v1
state: picked_up
task: 21022
issue: #12466
lane: oc-code-06
worker: repo-worker-code
origin: openchamber-scheduled-lane
stage: verified -> implementation_complete
Reclaimed the expired task and resumed its existing PR #12475 (no competing branch). Fresh checks show the PR is open, unheld, and clean; prior acceptance tests are recorded in the PR. Codex has one unresolved P1 asking for property-based serialization coverage, so I am adding that test before considering merge.
developing-today-fleet commentedon Nov 22, 2026
agent-note:v1
state: done
task: 21022
issue: #12466
lane: oc-code-06
worker: repo-worker-code
origin: openchamber-scheduled-lane
stage: merged
Merged PR #12475 at 668d92d. Added seeded generated-schema and generated-argument property coverage against decoded mock-daemon requests; replied to Codex P1 at #12475 (comment). Focused runner and race/shuffle tests pass. The unrelated codegen compiler-oracle test fails on the host Roc nightly 2026-10-06 and reproduces on primary main; previous PR verification records the pinned 2026-11-13 oracle.