049 — tp idea adopt takes an open issue with no flow label in as an idea (#255)
Why
At code level 3 an issue enters the flow by tp idea add, which makes
it. An issue that was open before the project declared level 3 carries
none of the flow's labels, tp idea roadmap and tp idea story refuse
it, and tp alone writes the labels: there is no way in. task-plus has
twenty such issues (#176 to #195, #218), and every project that moves to
level 3 will arrive with its own.
Such an issue has not been interviewed, so the label it wants is idea:
adopting it puts it where a captured thought is, and the interview then
closes it, keeps it for later or makes it a story.
What changes
tp idea adopt N...: labels each open issue N that carries no flow labelidea, and prints#N urlfor it. Nothing else of the issue is touched: its title, body and any other label stay.tp ideausage anddocs/idea.md: the command's row,tp idea adoptbesidetp idea addas a writer ofidea, and the acceptance table.CLAUDE.md: the row in "Working here".
Acceptance
The flow labels are idea, roadmap, story, defined and called.
Each N is judged alone, in the order given: a refused N is reported and
the ones after it are still adopted.
maturity.code |
Issue N | Outcome |
|---|---|---|
| 3 | open, no label | labelled idea, the label created when the repository lacks it; #N url printed |
| 3 | open, labels that are none of the flow's (bug) |
labelled idea; the others kept |
| 3 | open, labelled idea |
error: it is an idea already; nothing changed |
| 3 | open, any other flow label | error giving its labels; nothing changed |
| 3 | closed, or does not exist | error; nothing changed |
| 3 | not a number | error; the forge not asked for it |
| 3 | several, some refused | each as its own row; the command fails, naming every refused N |
| 3 | none given | usage error; the forge not asked |
| 3 | the forge refusing the label | error naming the issue and the label |
| 0, 1 | any | the error every tp idea subcommand gives below level 3 |
Out of scope
- Adopting every unlabelled open issue at once: an issue is adopted by
its number, so that a dead one is closed (
tp issue close N) and not carried in. - Deciding which of #176 to #195 and #218 are still wanted: a pass by hand, before they are adopted.
tp idea roadmapandtp idea storytaking an unlabelled issue directly: that would skip the interview.tp checkortp maturityreporting open issues with no flow label.- Telling a pull request's number from an issue's: no
tp ideacommand does.
Decisions
None.
Done when
- tests express the acceptance table and pass
- spec updated
- changelog entry
- issue closed with a link to the release