Repository navigation
fix(ticket-draft): never widen a ticket in work or change a closed one - #162
Merged
Merged
Conversation
- Read a ticket as in work from the implementation status and the pr_statuses, or a GitHub issue's assignee and labels, and show `in work: <assignee>` in the opening block - Recommend a follow-up, never widening, at every scope question on a ticket in work; widen it only on an option that names it as in work - Stop at a closed ticket: offer a follow-up or stopping, and never reformat it - Never merge a ticket in work or closed into a new draft - Add the tracker scenarios tracker-ticket-draft-closed and tracker-ticket-draft-in-work, with PROJ-61 Under Development Closes #152 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Ask Draft a follow-up, Widen <key> or Stop at step 1 when the request adds to a ticket in work, ahead of the format question that would otherwise reformat the request into it - Recommend Stop, not a new draft, on an overlap with a ticket in work or closed - Let a GitHub issue's state and assignee decide when no label is recorded - Give PROJ-61 a current-format description; hold the in-work scenario to writing no PROJ-61 paste file, and the closed one to never offering a reformat Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A run reads the ticket through jira_search as often as jira_get_issue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…k check - A follow-up drafted from a ticket in work or closed takes the person's request, verbatim, as its .original.txt, as a new ticket does - The in-work and closed questions follow the opening block instead of showing it a second time - The in-work scenario adds a third turn so the files are written and files_absent can catch a widened PROJ-61 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The final turn reports the files written, so a says check on its text missed the follow-up; a drafted ticket's .jira.txt other than PROJ-61's now stands for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Origin: #152
Sandbox: Haiku, --check, tracker pack, runs at 5c17a19 scored with 145fbbb's check (only the check changed). tracker-ticket-draft-in-work: main 0/2, branch 3/3. Main rewrote PROJ-61 in one run and drafted nothing in the other; every branch run drafted the follow-up, its request verbatim as its original text, and left PROJ-61 alone. tracker-ticket-draft-closed: branch 2/2 (main 0/2 on the earlier round). tracker-ticket-draft-new (regression, earlier commit): main 2/2, branch 3/3. Four review rounds, the last clean.
Canary: none yet
Ticket: #152
Motivation
ticket-draft added scope to a ticket a developer was already working on, because its recommended answers led there. Each scope question recommended In scope, and a refine request that added to the goal was treated as the new goal. So a "take the recommended option" run rewrote the ticket under its developer, restarting their work and its review. The same path could rewrite a Done ticket's description. #152 asked that a ticket in work never be widened without the person choosing it, and that a finished or abandoned ticket never be updated.
Change Summary
jira.pr_statuses, is in work. So is a GitHub issue that is open and has an assignee, or carries the implementation or a pr-status label. Its opening block readsin work: <assignee>.settlemode is unchanged: it records what the work did, which is its job on a ticket in work or closed.Used by: nothing outside this repository
Departures
Details
Design decisions
jira.roles.implementation,jira.pr_statuses, and theissue_tracker.*equivalents), not from status names. When a Jira workflow is not recorded, the skill asks the person.What changed
skills/ticket-draft/SKILL.md: step 1's rule, with a follow-up's original text being the person's request, step 3's overlap recommendation, step 6's In scope label on a ticket in work, and the Never list.skills/ticket-draft/reformat.md: stops on a closed ticket.skills/ticket-draft/github.md: thein work:text on the issue line.sandbox/tracker: fixture ticket PROJ-61 (Under Development, Bob Example) and two scenarios.Testing
Run:
bash tests/checks.sh🤖 Generated with Claude Code. AI assistance level: 5/5 (not read by a person).