Skip to content

Explicit Grok worker forks are impossible when approval policy is never #846

Closed

Description

@currentbits

Problem

A user explicitly requested that Grok workers build a plan and later required
that implementation be performed only by Grok workers. The same-project
coder-threads fork was still rejected because the session approval policy was
never.

The relevant request was equivalent to:

{
  "tool": "mcp__coder_threads__thread_fork",
  "projectId": "bdfb084e-f13d-4968-83eb-5bc85b5dd515",
  "threadId": "15ff9829-4446-44ad-92a2-c4e14e991e05",
  "pool": "grok",
  "worktree": false,
  "prompt": "Read-only planning review for Solenta speech-to-text"
}

Result:

MCP tool call requires approval, but approval policy is never

The failure repeated after the user explicitly confirmed the Grok-only
constraint. task_add and hypothesis_record were rejected for the same
reason. thread_fork has no approved argument, so there is no callable
recovery path inside the session.

Fallback evidence

The installed Grok CLI was also tried as a read-only fallback:

grok 1.0.13 (5e9a58528b76) [stable]

Its normal home directory was not writable:

Couldn't create session: Permission denied.
code: FS_PERMISSION_DENIED
detail: Operation not permitted (os error 1)

Pointing GROK_HOME at /private/tmp allowed session creation, while keeping
authentication/config paths read-only. Inference then retried and failed on:

request error: error sending request for url
(https://cli-chat-proxy.grok.com/v1/responses)

This leaves no usable Grok-worker route: the first-party orchestrator requires
an approval the policy cannot provide, and the local CLI cannot reach its
backend from the sandbox.

Impact

  • Explicit user requests for orchestration cannot be fulfilled.
  • A Grok-only implementation constraint makes the task permanently blocked.
  • The agent may waste time retrying tools or building unreliable CLI
    workarounds.
  • The shared task list and hypothesis ledger cannot be maintained even though
    the prompt requires them.

Expected behavior

For same-project, non-destructive worker creation, one of these must hold:

  1. an explicit user request in the current turn authorizes thread_fork; or
  2. Solenta exposes a user-visible approval action that remains usable when the
    general session policy is never; or
  3. the tool is omitted and the prompt states up front that orchestration is
    unavailable.

The system must not advertise a required tool and then reject it through an
approval state that has no transition.

Suggested fix direction

  • Classify same-project thread_fork as an in-scope operation when the current
    user turn explicitly asks for Grok workers.
  • Keep cross-project guards and merge/PR approval requirements unchanged.
  • If policy still blocks the fork, return an actionable error naming the
    exact UI/session change required.
  • Apply the same capability check to crew task and hypothesis tools so the
    prompt does not require unreachable bookkeeping.

Acceptance criteria

  • With approval policy = never, an unrequested worker fork remains denied.
  • With the same policy and an explicit current-turn request to use Grok
    workers, a same-project thread_fork(pool="grok") starts successfully, or
    Solenta presents a usable user approval action.
  • The worker is created in the supplied project and cannot cross the
    projectId boundary.
  • task_add and hypothesis_record are usable whenever the orchestrated run
    they describe is usable.
  • A blocked fork fails immediately with one actionable resolution; it does not
    invite retries that can never succeed.


Found while planning live speech-to-text in thread 15ff9829-4446-44ad-92a2-c4e14e991e05 on 2026-09-03. Draft: docs/issue-drafts/2026-09-03-solenta-session-blockers.md.

Activity

  1. added
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Sep 3, 2026
  2. currentbits commented on Sep 3, 2026

    @currentbits
    OwnerAuthor

    Implemented on this branch: first-party Codex MCP servers (coder-memory, coder-threads) now pass -c mcp_servers.<name>.default_tools_approval_mode="approve", matching Claude's --allowedTools=mcp__<name>__*. User-registered MCP servers stay gated.

    codex exec has no approval UI, so approval_policy=never was rejecting thread_fork / task_add / hypothesis_record with no recovery path. Same-project and approved:true guards on merge/PR are unchanged.

    See electron/memory-sup.js getCodexMcpArgs.

  3. added
    plan:done
    and removed
    plan:doing
    on Sep 6, 2026
  4. currentbits commented on Sep 6, 2026

    @currentbits
    OwnerAuthor

    Shipped on origin/main via leftover land #870. First-party coder-memory/coder-threads MCP servers pass mcp_servers..default_tools_approval_mode="approve" (electron/memory-sup.js), so explicit Grok/Codex forks work under approval_policy=never.

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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions