Skip to content

fix: conservatively refuse exec-server and remote options in macOS argument evidence #95

Closed

Description

@abruption

Priority: P1. Baseline: v0.4.3, 543b661f64f65f65154e3322847be1756deb778e.

Evidence and limits

A pure parser diagnostic confirmed that reconcileArguments("codex exec-server", null) and reconcileArguments("codex --remote unix:///example", null) return isSharedService: false; app-server and daemon controls return true. This confirms a classification gap only. Actual Codex ownership of a local thread lock in these modes, and an end-to-end unsafe signal, were not reproduced. No live Codex process was signaled for this review.

The flattened pattern covers app-server, remote-control, and daemon. The fallback returns that classification when kernel argv is unavailable; macOS takes this route. Linux additionally recognizes exec-server and remote options. The real-lock test explicitly skips two forms on macOS.

Problem

Shared-service refusal is weaker on macOS. If an otherwise eligible owner uses either omitted form, this classification supplies no shared-service blocker. This is a conditional safety exposure, not evidence that those actual Codex modes currently hold local writer locks. Flattened evidence cannot establish argument boundaries, so adding an invented argv parser would weaken the existing conservative contract.

Acceptance criteria

  • Extend conservative flattened classification to exec-server, --remote, and --remote-auth-token-env, including supported equals forms. Keep verified Linux grammar behavior for prompts and option values.
  • Add pure parser cases for service names, remote forms, and boundaries; document that flattened prompt/path matches can conservatively refuse. Include negative boundary controls such as unrelated longer option names, and positive controls when a service marker occurs in a flattened path or prompt. Keep these conservative expectations separate from exact Linux argv expectations.
  • Remove the macOS exclusions and use synthetic owners holding real advisory locks with stable task_complete transcripts. Assert refusal, signalSent: null, and zero SIGTERM before fixture cleanup on macOS and Linux.
  • Preserve fail-closed uncertain argv handling, native coordination, and existing machine-readable contracts.

Related history: closed #89 established mode classification; this completes its flattened-platform coverage. Closed #55 remains the native guard constraint. Evidence about upstream mode ownership may refine impact without replacing the conservative refusal requirement.

Activity

  1. added
    bug
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions