Repository navigation
Description
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:
- Read the (empty) issue body and globbed the target repo's skills.
- 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. - Emitted a flat
I'm sorry, but I cannot assist with that request.as the final assistant message, and the run endeddone.
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_contentinclude) — i.e. manual state management. reasoning.effortis on; tool calls repeat across turns.session.Messagecarries nophase, andinternal/adapter/openai/request.goassistantItems()rebuilds assistant messages with a bareResponseInputItemParamOfMessage(..., RoleAssistant). mecatl never captures or replaysphase.
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)
- Carry & replay the
phasefield through the OpenAI adapter — the OpenAI-documented fix and the direct cause. Thread a per-messagephasefrom the stream events intosession.Messageand back out inassistantItems(). Design caveat:port.LLMRequestmust stay provider-neutral, sophasebelongs on theMessage/adapter surface (likeReasoning), not a new request field. - Strengthen the per-model persistence delta (
agencyDelta) for gpt-5.x — counter the over-deference; provider-agnostic, existing seam. - Harden the panel-review skill prompt to pre-empt the exact ambiguity (empty issue body → proceed from the PR diff). Cheapest, most targeted.
- 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
- Using GPT-5.5 | OpenAI API (the
phasefield) - GPT-5 prompting guide (persistence)
- GPT-5 troubleshooting guide
- GPT-5 System Card
Found while debugging a live mecatui session via the perf MCP server on 2026-06-11.
Activity
refactor(session): rename Message.Phase to ProviderPhase (disambiguat…