Skip to content

Windows: activation/CLI coordination fails when OpenAI Codex CLI sandbox group holds profile ACEs (v0.10.4) #1650

Description

@Mc-kndll

Summary

On Windows 10 Pro (19045), install and every cli invocation fail with:

error: activation could not reserve exclusive access; no activation was committed.
codebase-memory-mcp: secure CLI coordination could not be created (endpoint)

The first failure I hit (running from a directory with a third-party ACL) named the cause explicitly:

error: failed to stage install candidate: activation transaction I/O failed:
acl-grants-cross-account-mutation to S-1-5-21-...-1005 (os 0)

That SID resolves to a local group created by OpenAI Codex CLI's sandbox: MC\CodexSandboxUsers.

Root cause (as far as I can tell)

That group holds ACEs across the user profile:

Path Rights Inherited
C:\Users\<user>\.cache ReadAndExecute No
C:\Users\<user>\AppData\Local ReadAndExecute Yes
C:\Users\<user>\AppData\Local\Temp Modify No

CBM's admission/coordination layer appears to refuse any location a second account can write to — which is correct behaviour, but on a machine that also has Codex CLI installed there is no reachable location left, so CBM cannot start at all.

What I tried (all still fail identically)

  1. Elevation — ran install --skip-config -y from an elevated PowerShell; script confirmed IsInRole(Administrator) = True. Same error, so this is not a privilege problem.
  2. Isolated cache dir — created a directory with inheritance disabled and only SYSTEM, Administrators, <user> (no Codex group), pointed CBM_CACHE_DIR at it.
  3. Clean TEMP — additionally redirected TEMP and TMP into that protected directory.
  4. Windows DefenderGet-MpThreat / Get-MpThreatDetection are both empty; nothing was quarantined.
  5. Ran from a plain user-owned directory (C:\Users\<user>\cbm-kurulum) rather than a temp path.

No log file is ever written — ${CBM_CACHE_DIR}/logs stays empty, so the failure happens before logging is initialised.

Environment

  • Windows 10 Pro 19045 (amd64)
  • codebase-memory-mcp v0.10.4, codebase-memory-mcp-windows-amd64.zip
  • SHA-256 verified against checksums.txt: 54176ed9f7b69a862b3b5c4a9fec31e14639f85f1e48a4f895fca9799c2cd000
  • --version and --help work fine; only coordination/activation fails
  • Binary at C:\Users\<user>\.local\bin\codebase-memory-mcp.exe (ACL clean: SYSTEM / Administrators / user only)

Suggestions

  • The error text would be much more actionable if it named which path failed the cross-account check — right now (endpoint) gives nothing to fix.
  • Consider an opt-in escape hatch (e.g. --allow-foreign-acl or an explicit acknowledged-risk flag) for machines where another agent sandbox has already claimed profile-wide ACEs. Codex CLI is common enough that this combination will likely be hit by others.

Happy to run any diagnostic build or extra command you want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeditor/integrationEditor compatibility and CLI integrationwindowsWindows-specific issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions