next-issue 16.9.1 → 16.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  export const ISSUE_SECTIONS = [
2
2
  'Problem',
3
3
  'Context and findings',
4
+ 'Decisions',
4
5
  'Acceptance criteria',
5
6
  'Out of scope',
6
7
  'Open questions',
@@ -248,7 +248,7 @@ export function huntPrompt(instructions, ready, source, count, repository) {
248
248
  `Before you file an issue, search the open and closed issues for a duplicate, for example with \`gh issue list --repo ${repository} --state all --search "<words>"\`. Do not file a finding when a duplicate exists.`,
249
249
  `File each issue with \`gh issue create --repo ${repository}${label} --title "<conventional commit subject>" --body-file -\`.`,
250
250
  `The body holds these sections as \`##\` headings, in this order: ${ISSUE_SECTIONS.map((section) => `\`## ${section}\``).join(', ')}.`,
251
- 'Give the file and line of each piece of evidence. Leave the Open questions section empty.',
251
+ 'Give the file and line of each piece of evidence. Write the approach you chose in the Decisions section, or leave it empty when no choice is needed. Leave the Open questions section empty.',
252
252
  'End your final message with one line in the form `issue: <url>` for each issue you filed, or one `issue: none` line when you filed nothing.',
253
253
  ].join('\n'),
254
254
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "16.9.1",
3
+ "version": "16.10.0",
4
4
  "description": "Autonomous issue harness driven by the Claude Agent SDK",
5
5
  "keywords": [
6
6
  "github",
@@ -14,8 +14,9 @@ Turn the problem of the user into one GitHub issue, or a split of linked issues
14
14
 
15
15
  3. Judge whether the change fits one atomic commit that leaves the trunk green. When it does not, propose a split into issues that each land alone and keep the trunk green, in the order they land, and note which issues of the split each one depends on.
16
16
  4. Ask numbered questions about anything that is unclear: the scope, the expected behaviour, the acceptance criteria. When you propose a split, ask the user to confirm the split with the other questions. Label options with letters and recommend one. Ask again until no question is open.
17
- 5. Write the body from `template.md` into a temporary file. Keep every heading of the template and its order. Leave `Open questions` empty.
18
- 6. Find the ready label, `<ready>`: the value of `labels.ready` in `.next-issue/config.json` at the root of the repository. The worker claims only issues with that label. When `labels.ready` is not set, or there is no config file, `<ready>` is `status:todo`.
17
+ 5. List every choice the implementer would have to make, for example the approach, where data comes from, what to delete and which files to change. Ask the user about each choice that has more than one reasonable answer, with lettered options and a recommended one. Ask these with the questions of step 4.
18
+ 6. Write the body from `template.md` into a temporary file. Keep every heading of the template and its order. Write each answered choice in `Decisions`. Leave `Decisions` empty when no choice needed asking. Leave `Open questions` empty.
19
+ 7. Find the ready label, `<ready>`: the value of `labels.ready` in `.next-issue/config.json` at the root of the repository. The worker claims only issues with that label. When `labels.ready` is not set, or there is no config file, `<ready>` is `status:todo`.
19
20
 
20
21
  Create the `<ready>` label when the repository does not have it:
21
22
 
@@ -34,31 +35,31 @@ Turn the problem of the user into one GitHub issue, or a split of linked issues
34
35
 
35
36
  `<blockers>` is the comma-separated list of the numbers of the issues it depends on. Leave out `--blocked-by <blockers>` when the issue has no blocker. When gh does not know `--blocked-by` (it needs GitHub CLI 2.94.0 or later), do not create the issue: ask the user to upgrade gh.
36
37
 
37
- 7. Only once the issue exists with every blocker linked, add the ready label, unless `labels.ready` is empty. Add no label other than `<ready>`:
38
+ 8. Only once the issue exists with every blocker linked, add the ready label, unless `labels.ready` is empty. Add no label other than `<ready>`:
38
39
 
39
40
  ```bash
40
41
  gh issue edit --repo <repo> <number> --add-label "<ready>"
41
42
  ```
42
43
 
43
- For a confirmed split, repeat steps 5 to 7 for each issue of the split, in order. Create each one with `--blocked-by` the issues of the split it depends on, so it is linked before you add its ready label.
44
+ For a confirmed split, repeat steps 6 to 8 for each issue of the split, in order. Create each one with `--blocked-by` the issues of the split it depends on, so it is linked before you add its ready label.
44
45
 
45
- 8. Once the issue exists with its ready label, or the last issue of a split has its ready label, run `npx -y next-issue@latest status` once. When `labels.ready` is empty, run it too, since the worker claims every open issue.
46
+ 9. Once the issue exists with its ready label, or the last issue of a split has its ready label, run `npx -y next-issue@latest status` once. When `labels.ready` is empty, run it too, since the worker claims every open issue.
46
47
 
47
48
  When the first line of the status starts with `stopping`, run no `start`: the run is stopping, so the issue waits for the next run. Otherwise run `npx -y next-issue@latest start` once. It starts a run when none is going, and joins a going run.
48
49
 
49
50
  Then give the user the issue url, or each url of a split, and the outcome of `start`, or that the run is stopping, in one line, and stop.
50
51
 
51
- 9. When the user asks for a change to the issue, make the change on GitHub. Write the new body into the temporary file and run:
52
+ 10. When the user asks for a change to the issue, make the change on GitHub. Write the new body into the temporary file and run:
52
53
 
53
- ```bash
54
- gh issue edit --repo <repo> <number> --body-file <file>
55
- ```
54
+ ```bash
55
+ gh issue edit --repo <repo> <number> --body-file <file>
56
+ ```
56
57
 
57
- To change the title, run:
58
+ To change the title, run:
58
59
 
59
- ```bash
60
- gh issue edit --repo <repo> <number> --title "<title>"
61
- ```
60
+ ```bash
61
+ gh issue edit --repo <repo> <number> --title "<title>"
62
+ ```
62
63
 
63
64
  Once the issue exists, do not implement it in this session. The next-issue worker does the work.
64
65
 
@@ -66,6 +67,7 @@ Once the issue exists, do not implement it in this session. The next-issue worke
66
67
 
67
68
  - Problem: what is wrong or missing, and who it affects.
68
69
  - Context and findings: what you found in the code and the docs, with paths.
69
- - Acceptance criteria: a list of checks that show the issue is done, each one observable. Write each check as a plain bullet (`- `), not a task-list checkbox (`- [ ]`), since nothing ticks the boxes.
70
+ - Decisions: each choice the user made about how to do the change, with the chosen option. Empty when no choice needed asking.
71
+ - Acceptance criteria: a list of checks that show the issue is done, each one observable. Name each concrete target, such as each file, test or item, instead of a count or a general phrase like "update the docs". Write each check as a plain bullet (`- `), not a task-list checkbox (`- [ ]`), since nothing ticks the boxes.
70
72
  - Out of scope: what the issue does not cover.
71
73
  - Open questions: empty when the issue is created.
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Context and findings
4
4
 
5
+ ## Decisions
6
+
5
7
  ## Acceptance criteria
6
8
 
7
9
  ## Out of scope