next-issue 7.2.1 → 7.3.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.
package/README.md CHANGED
@@ -699,6 +699,14 @@ issue to the next. The implementer and the fixer may add a short note to it, and
699
699
  the prompt asks them to keep only what still holds. The reviewer and the hunter
700
700
  only read it.
701
701
 
702
+ Every agent also reads each `AGENTS.md` that pi finds, such as the one in your
703
+ home folder and the one in the repository. The other rules there, such as code
704
+ conventions and test style, still apply. But the harness owns the issue, the
705
+ worktree, the branch, git, the commit, the push and the checks, and the prompt
706
+ says so: a workflow rule in `AGENTS.md` about these, such as "push to main" or
707
+ "watch ci", does not apply to the agent. The hunter still files its issues with
708
+ `gh issue create`.
709
+
702
710
  ## Retry an issue that waits for a person
703
711
 
704
712
  When the implementer makes no change, the hand-over comment holds its full
package/dist/prompts.mjs CHANGED
@@ -7,7 +7,13 @@ const ENGINEERING_RULES = [
7
7
  'Reuse existing code and patterns, stay consistent with the repository and pick the simpler option.',
8
8
  'Check an API, a command or a url in the repository or its dependencies before you use it. Do not invent one.',
9
9
  ].join('\n');
10
+ const OTHER_RULES = 'The other rules of `AGENTS.md`, such as code conventions and test style, still apply.';
11
+ const HARNESS_RULES = [
12
+ 'The harness owns the issue, the worktree, the branch, git, the commit, the push and the checks. The workflow rules of `AGENTS.md` about these do not apply to you.',
13
+ OTHER_RULES,
14
+ ].join('\n');
10
15
  const COMMIT_RULES = [
16
+ HARNESS_RULES,
11
17
  'Do not run git, gh or any push command. The harness commits for you.',
12
18
  'End your final message with one line in the form `commit: <conventional commit subject>`.',
13
19
  ].join('\n');
@@ -104,6 +110,7 @@ export function reviewPrompt(issue, comments, diff, earlier, reply) {
104
110
  'Read files and run commands to prove what you say: the tests, the type check or the linter.',
105
111
  'The worktree is ready to use. Do not change a file. Do not write with git or gh, and do not check out another commit or branch.',
106
112
  'The harness discards each change that you make, so a change is only lost work.',
113
+ HARNESS_RULES,
107
114
  reviewScope(earlier),
108
115
  'Give the file and line, or the command output, that supports each finding. A guess is not a finding.',
109
116
  'Mark a finding blocking only for a wrong result, a missing part of the issue, a regression or a broken convention.',
@@ -195,6 +202,8 @@ export function huntPrompt(instructions, ready, source, count, repository) {
195
202
  '## Rules',
196
203
  [
197
204
  'Run no test suite and no build. Change no file. Do not commit or push.',
205
+ 'The harness owns the worktree, git and the checks. The workflow rules of `AGENTS.md` about these do not apply to you.',
206
+ OTHER_RULES,
198
207
  `File up to ${issues}, your most serious findings first. File nothing when you find no real problem.`,
199
208
  `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.`,
200
209
  `File each issue with \`gh issue create --repo ${repository}${label} --title "<conventional commit subject>" --body-file -\`.`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "7.2.1",
3
+ "version": "7.3.0",
4
4
  "description": "Autonomous issue harness driven by the pi SDK",
5
5
  "keywords": [
6
6
  "github",