AI & Agent Dev Bug Sandbox logo
AI & Agent Dev Bug Sandbox
Back to Radar

Fix Incorrect Attribution Of MacOS Seatbelt To Anthropic In CodexSandboxExecutionPolicy Docstring

Documentation-only bug in LangChain: the docstring for CodexSandboxExecutionPolicy incorrectly states that Seatbelt (macOS) is provided by Anthropic. In reality, Seatbelt is Apple's macOS sandbox facility and Codex CLI is OpenAI's tool. The proposed fix updates the phrase to accurately reflect the technology and vendor.

lowConfidence 95%LangchainAffected V1.4.0

Origin Analysis

The docstring conflates Apple's Seatbelt with Anthropic and implies Codex CLI is from Anthropic. The correct attribution is Apple for Seatbelt and OpenAI for Codex CLI.
Run `python -c "from langchain.agents.middleware import CodexSandboxExecutionPolicy; print(CodexSandboxExecutionPolicy.__doc__)"` and observe the text contains: '... filesystem restrictions provided by **Anthropic's Seatbelt (macOS)** or Landlock/seccomp (Linux) profiles.'

Fixing Code Block

import pathlib path = pathlib.Path("langchain/agents/middleware/_execution.py") text = path.read_text(encoding="utf-8") old = "filesystem restrictions provided by **Anthropic's Seatbelt (macOS)** or Landlock/seccomp (Linux) profiles." new = "filesystem restrictions provided by the Codex CLI's sandbox: macOS Seatbelt profiles or Landlock/seccomp on Linux." if old not in text: raise SystemExit("Target phrase not found") path.write_text(text.replace(old, new), encoding="utf-8")
Replaces the inaccurate attribution phrase with a factually correct statement that Apple's Seatbelt is a macOS sandbox and Codex CLI is OpenAI's tool. This is a documentation-only change with no functional impact.

Edge Case Audit

Documentation-only change with no runtime risk. If any tests or documentation snapshots assert the exact old text, they will need updating. Rollback is trivial via version control (`git revert`). The replacement intentionally removes the Markdown bold formatting around the vendor name.

Ecosystem Topology