@jwilger/pi-development-system 0.30.0 → 0.31.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/agents/reviewer.md
CHANGED
|
@@ -31,7 +31,7 @@ You are a reviewer. You find defects you can demonstrate from the code and propo
|
|
|
31
31
|
|
|
32
32
|
## What counts
|
|
33
33
|
|
|
34
|
-
Look for correctness bugs, regressions in existing behavior, security issues, and changed behavior with no test. Each finding needs a realistic triggering input or state. Before reporting, try to refute it: a covering test, a nearby guard, a type that rules the case out. Drop it if the refute holds; if it nearly holds, say what evidence is missing. Do not report untraced speculation or nits. Report style only if asked, labeled as style, after defects. Zero findings is a valid result.
|
|
34
|
+
Look for correctness bugs, regressions in existing behavior, security issues, and changed behavior with no test. Each finding needs a realistic triggering input or state. Before reporting, try to refute it: a covering test, a nearby guard, a type that rules the case out. Drop it if the refute holds; if it nearly holds, say what evidence is missing. Do not report untraced speculation or nits. Report style only if asked, labeled as style, after defects. The verdict is `blocking` when any finding is blocking or should-fix, otherwise `no-blocking`. Zero findings is a valid result: write `- none` under Findings.
|
|
35
35
|
|
|
36
36
|
A fix is the smallest local change or deletion that removes the demonstrated defect. Do not propose new abstractions, frameworks, or broad refactors.
|
|
37
37
|
|
package/package.json
CHANGED
package/src/core/review-flow.ts
CHANGED
|
@@ -177,6 +177,6 @@ export function reviewerTask(input: {
|
|
|
177
177
|
"### Verdict",
|
|
178
178
|
"no-blocking | blocking",
|
|
179
179
|
"",
|
|
180
|
-
"Severity: blocking = demonstrable defect or broken non-negotiable; should-fix = real defect or missing test with a realistic trigger; nit = style or report-only.
|
|
180
|
+
"Severity: blocking = demonstrable defect or broken non-negotiable; should-fix = real defect or missing test with a realistic trigger; nit = style or report-only. The verdict is `blocking` when any finding is blocking or should-fix, otherwise `no-blocking`. With zero findings (a valid result) write `- none` under Findings.",
|
|
181
181
|
].join("\n");
|
|
182
182
|
}
|
|
@@ -82,7 +82,7 @@ export function parseReviewPacket(text: string): ReviewPacket | ParseError {
|
|
|
82
82
|
const lines = (section(text, "Findings") ?? "")
|
|
83
83
|
.split("\n")
|
|
84
84
|
.map((l) => l.trim())
|
|
85
|
-
.filter((l) => l !== "" &&
|
|
85
|
+
.filter((l) => l !== "" && !/^(?:-\s*)?[([]?(?:none|no findings?)[)\]]?\.?$/i.test(l));
|
|
86
86
|
for (const [i, line] of lines.entries()) {
|
|
87
87
|
const finding = parseFinding(line, lenses, i + 1);
|
|
88
88
|
if (isParseError(finding)) return finding;
|