Repository navigation
A missing plan decision is a planner failure, never a question; new work phrased as a complaint is a feature - #491
Merged
Conversation
…ork phrased as a complaint is a feature - A plan with no readable fix_location block (missing, cut off at the output limit, or malformed) re-asks the planner once for just the block (one small call, no tools), then decides from the plan itself: new work or a plan whose tasks name this repo's files is code. A plan with nothing to decide from fails as a planner failure. Recorded on the run and in analytics (planner_format_failures), never asked of a person. - Triage settles intent with the tracker's own type (Jira issue type, GitHub issue type or kind label, now carried on the ticket) and the ticket's words: asking to add a setting, option, field, page or capability is a feature even when phrased as a complaint. - Questions to a person must name options or a recommendation: an open "where does the fix belong" is held back by the asking rules, and the fallback question is built from what the run found. - A ticket that is part N of M reads the other parts' pull requests before planning. - The model loop warns when a final answer stops at the output limit.
nambok
force-pushed
the
fix/fix-location-format-failure
branch
from
November 6, 2026 14:53
5dfc754 to
ed2f2dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A run on a new-feature ticket (a complaint followed by "add a setting ...", part 4 of 4 in a series) planned for 7 minutes and 2.1M tokens, then stopped with "Not sure yet where the fix belongs" and asked "Where does the fix belong: which system or part of it?". Root cause, in order:
plan.rsprompt ends with "Then the ```fix_location.json block"), after up to 25 tool turns plus send-backs, undermax_tokens: 16384(`plan.rs` `plan_opts`). An answer that stops at the output limit is returned as final with no check (`agent/anthropic.rs`, `tool_uses.is_empty()` branch), so the block is cut or missing. `fix_location::parse` turns that into `None`; `gaps()` returns nothing for `None`, so no send-back covers it; `route(None)` is `Route::Ask`.fix_location::undecided()always carriedTicketIntent::Bug(..Default::default()), so a missing block printed the bug title and the bug question whatever triage decided. The bug wording alone does not prove triage misread the ticket.enhancement) read as a bug, so "editors can't choose X: add an X setting" could also be read as a bug. No tracker type reached the worker.Changes
fix_location.rs,plan.rs):parse_detailedsays whether the block is missing, cut off or malformed. The planner is asked once more for only the block (fresh small call, no tools, 4096 tokens, low effort, given the plan it wrote). If there is still no block,fallbackdecides from the plan: feature or chore work, or tasks naming this repo's files, iscode;NO_CODE_CHANGE:staysunknownwith its own line; nothing to decide from fails the run as a planner failure. Reused plans with no decision go through the same fallback (mod.rs), and a missing decision no longer counts as a directive that skips the malformed-plan guard.planner_failure,planner_failure_kindandplanner_failure_tokenson the run,ADD planner_format_failureson the monthly and ALL_TIME analytics rows,FixDecision.planner_failure, and a progress note.triage.rs,common/messages.rs, gateway, Forge app):TicketMessage.ticket_typecarries the Jira issue type (fields.issuetype.name) or the GitHub issue type or kind label.settle_intentcombines the model's read with that type and the ticket's words (new-work verb plus a thing to build in the title, or acceptance criteria like "can choose ..."). It never applies when the title names a defect. The prompt now says a ticket asking to add a setting, option, field, page or capability is a feature even when phrased as a complaint, andenhancement,improvementandstoryparse as feature.common/run_questions.rs,stop_rules/screen.rs,fix_location::person_questions):too_openholds back an open "where does it belong" or "what else" question that has no options and no recommendation. It is part of the asking rules. When the run stops, its fallback question is built from what it found: the next step and its outcomes, the outside change, "I plan to change ; go ahead?", or the no-code line. Each comes with options.series.rs,plan.rs): for a ticket marked "part N of M", the planner prompt lists the other parts' pull requests in the repo (same series length with a different part, or a nearby key of the same project, sharing the series' words) and tells the planner to build on them.max_tokens.PLANNER_VERSIONbumped.Verification
cargo fmt --all --check,cargo clippy -p worker -p common -p gateway --all-targets -- -D warnings,cargo test -p worker -p common -p gateway: all pass (worker 1303, common 1453, gateway 739). Forge appnode --test: 9 of 9 pass.codeandRoute::Codewithout asking, even when read as a bug.OutsideOnly, and when it is unsure it asks the concrete next step with its outcomes.issuetype) takes effect only with the next Forge deploy. Until then, Jira tickets coming through Forge rely on the text signals. Site webhooks already includeissuetype. The worker has no Jira read API, so it reads sibling tickets' pull requests, not the tickets themselves. The dashboard does not showplanner_format_failuresyet.