Repository navigation
Add transition after plan success #70
Copy link
Copy link
Closed
Labels
action:reviewIssue is ready for reviewIssue is ready for reviewenhancementNew feature or requestNew feature or requestimpact:mediumMedium impact changeMedium impact change
Description
Context
cli.py:228-232 — Only prepare and develop trigger issue transitions. When plan completes successfully, no label swap or project board update occurs. The issue remains in the same state it was after prepare.
This is related to the action:plan label addition (see sibling issue), but can be implemented independently using existing labels.
Proposal
Add a plan transition in cli.py:
if action == AgentAction.PLAN and return_code == 0:
transition_issue_to_development(issue_url)Where the transition:
- Swaps
action:plan→action:develop(or just addsaction:developifaction:plandoesn't exist yet) - Moves project board status to "ready" or "todo"
Acceptance Criteria
- On successful
planaction (return code 0),askcctransitions the issue labels so thataction:developis present and anyaction:planlabel is removed. If neither label is present initially,action:developis added. - The transition uses the existing
_swap_issue_labelshelper pattern (consistent with thedevelop→action:reviewtransition), not a new ad-hoc implementation. - On successful
planaction, the issue's project board status is transitioned using the existing_transition_project_fieldshelper (same pattern used byprepare/develop). If the issue is not in any project, the step is skipped cleanly. - Failing
planruns (non-zero return code) do NOT trigger any label or project transitions. - Unit tests cover: success path transitions labels, success path invokes project transition, failure path performs no transitions, and the no-project case is handled without error.
-
uv run pytest,uv run ruff check, anduv run pyrightall pass. - No changes to the
prepareordeveloptransition behavior.
Dependencies
None. Uses existing action:develop label and existing transition helpers.
Rationale
Without a transition after plan, there's no automated signal that planning is complete and the issue is ready for development. The workflow gap means issues can sit untracked between plan and develop.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
action:reviewIssue is ready for reviewIssue is ready for reviewenhancementNew feature or requestNew feature or requestimpact:mediumMedium impact changeMedium impact change
Activity
✨ Transition issue after successful plan (#70)
monkut commentedon Apr 13, 2026
Implemented in #77.
Changes:
transition_issue_to_developmenthelper inaskcc/functions.pymirroringtransition_issue_to_review: swapsaction:plan->action:developvia_swap_issue_labelsand moves project Status via_transition_project_fields(using newREADY_STATUS_OPTIONS = ("ready", "todo")).askcc/cli.py: called only onAgentAction.PLANwithreturn_code == 0, alongside the existing PREPARE/DEVELOP transitions.PLAN_LABELandREADY_STATUS_OPTIONSinaskcc/settings.py.uv run pytest,uv run ruff check, anduv run pyrightall pass.:tokens-used: model: N/A, input: 42, output: 10325