Skip to content

Spurious GPT-5.5 refusal: OpenAI adapter drops the Responses API phase field #46

Closed

Description

@JAORMX

Summary

A GPT-5.5 session in mecatui (-yolo --perf --perf-mcp, provider openai/gpt-5.5) emitted a spurious refusal — I'm sorry, but I cannot assist with that request. — mid-way through a panel review of a PR, despite its own reasoning being entirely constructive. This is a known GPT-5.x agentic-harness failure mode, and mecatl is structurally exposed to the primary documented cause: it drops the Responses API phase field.

This is analysis only — no fix is proposed here yet.

Observed behaviour

During a panel review (PR #1626 / issue #1590 in a downstream repo), the model:

  1. Read the (empty) issue body and globbed the target repo's skills.
  2. Produced a 7-line reasoning summary that was entirely on-task: plan to fetch the PR diff, dispatch Zod/TS subagents, run gh pr diff 1626, and explicitly noted "issue steer: drained mid-run steer is recorded with no model-visible framing, so the model abandons the in-flight task #1590 doesn't have a body, but the PR body contains the actual changes." The reasoning cut off mid-sentence.
  3. Emitted a flat I'm sorry, but I cannot assist with that request. as the final assistant message, and the run ended done.

The refusal contradicts the model's own reasoning — it is a misfire, not a safety decision or a genuine task-infeasibility conclusion.

Why mecatl relayed it as a normal turn

The refusal arrived as an ordinary output_text message with status: completed. internal/adapter/openai/stream.go mapStop() maps ResponseStatusCompleted -> session.StopEndTurn, so mecatl correctly saw a benign finished turn and faithfully relayed the content. Mechanically mecatl did nothing wrong — the misfire is upstream in the model.

Root cause (primary): the dropped phase field

OpenAI's GPT-5.5 guidance is explicit: when an application manually manages Responses state by passing output items back each turn (instead of previous_response_id), it must preserve the phase field on returned assistant output items and pass it back unchanged — "especially important when using reasoning effort, preambles, or repeated tool calls." Dropping it causes "preambles treated as final answers" and "early stopping."

mecatl meets every one of those conditions:

  • The OpenAI adapter is stateless (store:false, full replay each turn, reasoning.encrypted_content include) — i.e. manual state management.
  • reasoning.effort is on; tool calls repeat across turns.
  • session.Message carries no phase, and internal/adapter/openai/request.go assistantItems() rebuilds assistant messages with a bare ResponseInputItemParamOfMessage(..., RoleAssistant). mecatl never captures or replays phase.

So on every turn the model loses the commentary/final_answer boundary it depends on — exactly the documented trigger for a preamble (or a half-formed bail) being emitted as a final answer.

Related latent gap (already known): the adapter replays the reasoning summary text as encrypted_content rather than the real reasoning blob (the encrypted-content gap), so multi-turn reasoning continuity is already lossy on the same path.

Root cause (compounding): over-deference on ambiguity

The GPT-5 family is documented as overly deferential in agentic settings, bailing or asking obvious questions on perceived ambiguity. The task handed it an empty issue body, which the reasoning fixates on — a classic trigger for the deferential bail that persistence prompting ("just do things, never stop on uncertainty") is meant to counter.

Options (not implemented — for discussion)

  1. Carry & replay the phase field through the OpenAI adapter — the OpenAI-documented fix and the direct cause. Thread a per-message phase from the stream events into session.Message and back out in assistantItems(). Design caveat: port.LLMRequest must stay provider-neutral, so phase belongs on the Message/adapter surface (like Reasoning), not a new request field.
  2. Strengthen the per-model persistence delta (agencyDelta) for gpt-5.x — counter the over-deference; provider-agnostic, existing seam.
  3. Harden the panel-review skill prompt to pre-empt the exact ambiguity (empty issue body → proceed from the PR diff). Cheapest, most targeted.
  4. Tune reasoning.effort + explicit stopping criteria — high effort + weak stopping criteria makes the model overthink and stop early.

Explicitly not recommended: making the no-progress handler catch this. It only fires on empty turns (text=="" && calls==nil); a refusal has text and is a clean StopEndTurn. Pattern-matching "this is a spurious refusal" is unreliable and risks suppressing genuine refusals.

The most defensible engineering fix is #1 (the phase field) — it's the documented root cause for the exact misbehaviour, and mecatl meets every condition OpenAI names for it.

References

Found while debugging a live mecatui session via the perf MCP server on 2026-06-11.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions