@yemi33/minions 0.1.1650 → 0.1.1652

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.
@@ -84,7 +84,7 @@ Your task is complete when the requested implementation is delivered, the valida
84
84
 
85
85
  ## Completion
86
86
 
87
- After finishing, output a structured completion block so the engine can parse your results:
87
+ After finishing, write the JSON completion report described in the shared rules. Also output this structured completion block as a compatibility fallback:
88
88
 
89
89
  ```completion
90
90
  status: done | partial | failed
@@ -95,4 +95,4 @@ failure_class: N/A
95
95
  pending: <any remaining work, or none>
96
96
  ```
97
97
 
98
- Replace the values with your actual results. This block MUST appear in your final output.
98
+ Replace the values with your actual results.
@@ -42,7 +42,7 @@ Use subagents only for genuinely parallel, independent tasks (e.g., reviewing un
42
42
 
43
43
  ## Post Review — Submit your verdict
44
44
 
45
- You MUST post a review comment with a clear verdict. The engine parses your verdict to update PR status **a review without a verdict line is incomplete and will be retried.**
45
+ You MUST post a review comment with a clear verdict and write the completion report described in the shared rules. The verdict in the report is the primary machine-readable signal; the verdict line in the PR comment is for humans and backward compatibility.
46
46
 
47
47
  ### Post your review with verdict
48
48
 
@@ -65,7 +65,6 @@ If you encounter merge conflicts (e.g., the PR shows conflicts):
65
65
 
66
66
  ## When to Stop
67
67
 
68
- Your task is complete when your review comment (with `VERDICT: APPROVE` or `VERDICT: REQUEST_CHANGES` on the first line) has been posted successfully.
68
+ Your task is complete when your review comment (with `VERDICT: APPROVE` or `VERDICT: REQUEST_CHANGES` on the first line) has been posted successfully and the completion report has `verdict: "approved"` or `verdict: "changes-requested"`.
69
69
 
70
70
  Do NOT stop before posting the review. Do NOT continue reading unrelated files after posting.
71
-
@@ -14,7 +14,7 @@ Treat a Minions assignment like the user typed the same task directly into a cap
14
14
  - Use judgment to choose the smallest reliable workflow that fully satisfies the task.
15
15
  - Read only the context needed to make correct decisions; do not perform broad archaeology unless the task requires it.
16
16
  - Validate with the repo's own documented commands and acceptance criteria. If full validation is impossible or pre-existing failures block it, explain that precisely instead of inventing a green result.
17
- - Prefer direct work over ceremony. Branches, PRs, inbox notes, completion blocks, and status comments exist for traceability; they should not change what "done" means for the user.
17
+ - Prefer direct work over ceremony. Branches, PRs, inbox notes, completion reports/blocks, and status comments exist for traceability; they should not change what "done" means for the user.
18
18
  - Safety and observability rules still win: stay in the engine-created worktree, do not self-merge, do not edit engine-managed status files, do not hide failures, and leave enough evidence for the human and engine to track the result.
19
19
 
20
20
  ## Engine Rules (apply to all tasks)
@@ -50,6 +50,16 @@ Treat a Minions assignment like the user typed the same task directly into a cap
50
50
  Do **not** create a skill for one-off bug fixes, isolated command outputs, obvious repo facts, or anything already covered by existing docs/playbooks/skills.
51
51
  - Do TDD where it makes sense — write failing tests first, then implement, then verify tests pass. Especially for bug fixes (write a test that reproduces the bug) and new utility functions.
52
52
 
53
+ ## Completion Reports
54
+
55
+ The engine provides a completion report path in the prompt and in `MINIONS_COMPLETION_REPORT`. Before exiting, write JSON there with the actual outcome:
56
+
57
+ ```json
58
+ {"status":"success","summary":"what changed and how it was validated","verdict":null,"pr":"PR id/url or N/A","failure_class":"N/A","retryable":false,"needs_rerun":false}
59
+ ```
60
+
61
+ Use `status: "failed"` plus an accurate `failure_class`, `retryable`, and `needs_rerun` when the task could not be completed. For PR reviews, set `verdict` to `approved` or `changes-requested`. Fenced `completion` blocks are still accepted as a fallback, but the JSON report is the primary signal.
62
+
53
63
  ## Long-Running Commands
54
64
 
55
65
  Builds, dependency installs, tests, and local servers can be quiet for long periods. Run the repo's normal CLI commands and let them finish; do not add artificial progress output, heartbeat loops, or command-specific workarounds just to keep Minions active.
@@ -61,7 +71,7 @@ When asked to check build status, CI results, or review state for a PR:
61
71
  **Preferred — read cached state (refreshed every `prPollStatusEvery` ticks, default ~12 min when engine is running):**
62
72
  Find the PR in `projects/<project-name>/pull-requests.json` by `prNumber`. Key fields:
63
73
  - `buildStatus` — `passing` | `failing` | `running` | `none`
64
- - `buildErrorLog` — compiler/pipeline errors when `buildStatus` is `failing`
74
+ - `buildFailReason` — failing check/pipeline name when `buildStatus` is `failing`; inspect live CI logs yourself for details
65
75
  - `reviewStatus` — `approved` | `changes-requested` | `waiting` | `pending`
66
76
  - `status` — `active` | `merged` | `abandoned`
67
77
  - `url` — link to the PR in ADO