Repository navigation
Description
Description
The Deep Agents Code MCP bridge E2E no longer commits a winner when two identical nemoclaw mcp add commands target the same sandbox and server concurrently.
The commands are serialized in the captured artifacts. Each command completes its own policy versions, but each add then rolls back because OpenShell does not report the expected placeholder credential revision. The second command sees the rolled-back state and repeats the full transaction, so both commands exit nonzero instead of one succeeding and the other reporting that the server already exists.
Evidence
- Source failure: run 32378489657, job 96456013232 at
bed2590be34617f75185499e46e584a3a6c39f5e - Last pass: run 32330051811, job 96309075656 at
7689b4a3831e4abc7a992c54d84c48ee60368dac - First failure: run 32335841665, job 96325411367 at
66f69d4d6d1ea5936998fd221478245bb4ab2c8c - Assertion:
test/e2e/live/mcp-bridge.test.ts:277expected exactly one successful command, but observed zero. - Both the first and latest failures have the same no-winner signature.
Commit 8cddceec is the strongest temporal candidate between the last pass and first failure because it updates OpenShell and MCP integration. It does not change the lifecycle lock implementation, and earlier OpenClaw and Hermes runs showed the same concurrent-add symptom. Treat this association as unproven rather than agent-specific or a confirmed regression source.
Expected behavior
- Exactly one concurrent duplicate add commits successfully.
- The losing command reports that the MCP server already exists after observing the committed winner.
- Provider, policy, adapter, and bridge state remain coherent.
- Credentials remain redacted from diagnostics.
Acceptance evidence
- Add a deterministic process-boundary regression test that reproduces the no-winner path without live infrastructure.
- Keep the existing live E2E concurrency assertion intact.
- Verify one winner, one duplicate rejection, coherent final state, and no credential disclosure.
Activity
fix(mcp): refresh credentials after observed absence (#9769)
test(mcp): count concurrent credential refreshes (#9772)
cjagwani commentedon Aug 20, 2026
Post-merge live control: the landed fix is still insufficient
A control run on PR #9715 rules out stale branch ancestry as the explanation:
8dcba9704c514cb919ac2233a6f9581291849446contains fix(mcp): refresh credentials after observed absence #9769 merge commit81fb891a675e6565a4b44511a9b3e10b46a72d3f(behind_by: 0from that merge).OpenShell did not synchronize the expected credential revision for placeholder FAKE_MCP_SECRET into sandbox ... after provider attachment or update.This reproduces #9764 against OpenShell 0.0.106 with the landed #9769 fix present. Refreshing #9723 or #9762 onto current main is therefore not sufficient to clear their identical exact-MCP failures.
Recommended acceptance evidence for the next correction: keep the deterministic two-process regression, then require both independent exact OpenClaw MCP jobs to show one committed winner, one duplicate rejection, coherent final state, and clean credential scans on a head containing the correction.
jyaunches commentedon Sep 9, 2026
Closing with current-main control evidence.
Focused MCP E2E run 34289949764, attempt 2 passed all relevant jobs:
The OpenClaw artifacts prove the #9764 contract: one concurrent add exited 0, the other exited 1 with
MCP server 'concurrent' already exists, and final status reported the provider present and attached, credential ready, policy present, adapter registered, and no warnings. The fixture-credential scan passed. Cleanup removed the concurrent bridge and sandbox with no recorded failures.The candidate was a signed empty control commit directly above main SHA
b0d4650c6cc506c2a07ddf4c909035378a0626c7, so this validates the main behavior without a product diff. The temporary control PR #11245 is closed and its branch is deleted.