Repository navigation
Description
Environment
- Product: Codex VS Code extension
- Model: GPT-6 Luna
- Goal Mode: tested both with and without an explicit persistent Goal
- Host platform: Windows / VS Code; workspace execution environment not confirmed
- Extension/app-server version: not yet captured (I can supply it privately)
- Observed in repeated implementation attempts, most recently October 15, 2026
- Project: private multi-module software repository; names, paths, commit hashes, and source code intentionally omitted
Summary
GPT-6 Luna writes useful code and accurately identifies outstanding acceptance requirements, but repeatedly terminates the execution turn after a partial milestone instead of continuing the user-authorized implementation. It often produces a handoff or a report listing unfinished work even though no blocking dependency is identified.
Separately, the agent repeatedly spawns independent review subagents after small implementation increments, despite explicit instructions to reserve independent review for the final implementation gate. These unsolicited review cycles significantly increase elapsed time and token/quota usage.
Using Goal Mode improves turn continuity (the agent advances through two or three continuation rounds instead of only one) but has not resolved excessive delegation or long-horizon goal completion.
I am not asserting whether the root cause is the GPT-6 Luna model, Codex's orchestration/harness, or their interaction. I am reporting the reproducible user-visible behavior and asking for investigation.
Steps to reproduce (from my repeated workflow)
- Open a substantial multi-module repository in the Codex VS Code extension and select GPT-6 Luna.
- Provide a previously approved and detailed implementation plan with explicit acceptance criteria, dependencies, and pre-approved technical decisions.
- Instruct the executor to implement the full authorized scope, run required tests, and continue until acceptance is satisfied or there is a genuine blocker. Explicitly prohibit independent reviewer/subagent calls until implementation converges.
- Let the agent run unattended.
- Observe it complete a small implementation slice and local tests, then stop with a final handoff/report identifying major unfinished requirements, or insert independent reviewer subagent cycles between slices.
- Repeat with a persistent Goal referring to the same completion contract. Goal Mode yields more automatic rounds, but the overall target is still unfinished and reviewer delegation consumes significant time.
Adding stricter repository instructions in AGENTS.md and restating the constraint after the agent acknowledges the mistake has not reliably changed this behavior.
Sanitized real-world observation
In a recent ~2 h 30 min unattended Goal run:
- The agent implemented portions of a runtime coordinator, expanded readback handling, and a recovery-artifact mechanism.
- It reported 88 affected tests passing at one checkpoint. After a later test adjustment, it reported 20 targeted tests passing, but had not rerun the entire affected matrix.
- Important functional work remained unfinished: production runtime integration, recovery classification and crash behavior, resource accounting, lifecycle/cutover, and broader qualification.
- It ended with an explicit "handoff to the next agent" and stated that the task was not complete.
- The worktree was still uncommitted, and final integration/acceptance had not run.
The full acceptance includes long soak/qualification tests that naturally cannot all finish within 2.5 hours. I am not claiming full acceptance should have been possible within that time. The failure is that an authorized task was prematurely handed off and much of the run was absorbed by fragmentation/review overhead despite clear remaining executable steps.
Earlier attempts followed the same pattern: one module was implemented and tested, but major integration and acceptance items were left undone while the agent wrote an accurate account of why the task was incomplete.
Expected behavior
- Treat the full explicit acceptance contract as the objective rather than treating the latest local milestone, successful unit tests, or a status report as task completion.
- Continue implementation and testing as long as authorized executable steps remain and resource limits permit.
- If a budget, timeout, tool failure, or genuine blocker prevents continuation, report that specific reason clearly and preserve a resumable checkpoint; do not silently turn a partial milestone into terminal work.
- Respect the user-defined independent-review stage. Do not autonomously launch reviewer subagents against explicit delegation constraints.
- In Goal Mode, maintain task completion state against actual acceptance evidence instead of the model's own report of partial progress.
Actual behavior
- Frequent transition from implementing to reporting/handing off while the agent explicitly knows the primary task is incomplete.
- Unrequested subagent review cycles; repeated correction instructions are acknowledged but not consistently followed.
- Goal Mode improves continuation count but does not eliminate premature handoff or wasted review effort.
- Substantial owner intervention is needed to ask the agent to continue, undermining unattended implementation.
Impact
A coding executor is expected to consume a frozen plan produced by higher-cost planning/review work. Instead, frequent self-reviews and premature handoffs waste subscription quota and elapsed time and force repeated human supervision. This is materially worse for long-running tasks than a coding-quality failure because the executor can generate valid intermediate artifacts while still failing the overall objective.
Related upstream issues
- Codex keeps stopping or losing the task before the work is done #50771 — Codex keeps stopping before task completion
- [IDE Extension][Goal/Context] Repeated premature task_complete, stale goal state, and ~16.9M token consumption in a single unfinished long-running task #44829 — IDE extension, Goals, premature
task_completein an unfinished long run - --disable multi_agent still lets gpt-5.6-sol spawn subagents (multi_agent_version v2 models) #50880 — multi-agent disabling/limits not reliably honored
- MultiAgentV2 runaway delegation: 74 subagents, 3-level nesting, 5.39B recorded tokens, and repeated review/test loops in one task #38989 — runaway delegation and repeated review/test loops
This report adds a GPT-6 Luna + VS Code + Goal Mode user case with repeated partial implementation and unsolicited review.
Requested investigation
- Examine completion/continuation decisions when the active Goal or acceptance checklist is still unmet.
- Check whether model-selected review/tool delegation can bypass current user/repository constraints, and offer a reliable runtime-enforced single-agent mode for implementation sessions.
- Provide diagnostics that distinguish model-requested termination from runtime budget/timeout/compaction stops.
- Consider a completion integrity gate that prevents marking an explicit Goal complete solely on the basis of an intermediate milestone or a handoff summary.
I can provide the precise extension version, redacted session identifiers, and sanitized logs through a private support channel if needed; I am avoiding exposing private repository material in a public GitHub issue.
Activity
github-actions commentedon Oct 15, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action