Skip to content

Concurrent Deep Agents Code MCP adds both roll back without a winner #9764

Closed

Description

@rsliter

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

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

  1. self-assigned this
    on Aug 20, 2026
  2. added 2 commits that reference this issue on Aug 20, 2026
    81fb891
    46e10df
  3. cjagwani commented on Aug 20, 2026

    @cjagwani
    Collaborator

    Post-merge live control: the landed fix is still insufficient

    A control run on PR #9715 rules out stale branch ancestry as the explanation:

    • Exact head 8dcba9704c514cb919ac2233a6f9581291849446 contains fix(mcp): refresh credentials after observed absence #9769 merge commit 81fb891a675e6565a4b44511a9b3e10b46a72d3f (behind_by: 0 from that merge).
    • Run 32406480746 passed exact all-agent managed activation.
    • Both independent exact OpenClaw MCP replicas then failed: pass 1 and pass 2.
    • Downloaded artifacts show four serialized add attempts and zero winners. In each replica, one command ran for about 59–61 seconds and the other for about 119–120 seconds; every command exited 1 after loading its policy versions.
    • All four terminate with the same fail-closed signature: OpenShell did not synchronize the expected credential revision for placeholder FAKE_MCP_SECRET into sandbox ... after provider attachment or update.
    • Artifact cleanup passed and the fixture-credential scan did not report a disclosure.

    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.

  4. added
    area: integrations
    on Aug 20, 2026
  5. jyaunches commented on Sep 9, 2026

    @jyaunches
    Contributor

    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.

  6. added
    area: security
    integration: dcode
    on Nov 3, 2026
  7. added theissue type on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: integrationsarea: securityintegration: dcode

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions