@claudexor/review 3.0.4 → 3.1.1

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 +1 @@
1
- {"version":3,"file":"reviewPrompt.d.ts","sourceRoot":"","sources":["../src/reviewPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AASvD,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,YAAY,EACnB,MAAM,UAAQ,EACd,OAAO,GAAE,MAAM,GAAG,MAAe,GAChC,MAAM,CAgCR"}
1
+ {"version":3,"file":"reviewPrompt.d.ts","sourceRoot":"","sources":["../src/reviewPrompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AASvD,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,YAAY,EACnB,MAAM,UAAQ,EACd,OAAO,GAAE,MAAM,GAAG,MAAe,GAChC,MAAM,CAsCR"}
@@ -32,6 +32,12 @@ export function buildReviewPrompt(label, candidateRoot, evidenceDir, patch, seal
32
32
  ...responseContract,
33
33
  `Each finding: {"severity":"BLOCK|FIX_FIRST|WARN|NIT|OUT_OF_SCOPE|INSUFFICIENT_EVIDENCE|NEEDS_HUMAN","category":"correctness|regression|security|performance|maintainability|test_gap|spec_gap|deploy|architecture|ux","claim":"...","evidence":{"files":[{"path":"...","lines":"..."}]},"proposed_fix":"..."}.`,
34
34
  "Rules: no evidence => do NOT use BLOCK. Do not relitigate FORBIDDEN_FINDINGS or DECIDED_TRADEOFFS.",
35
+ "The machine consumer decides from typed fields, never from prose: severity is what makes a finding block, and attached evidence is what lets BLOCK or FIX_FIRST stand. A hedge, caveat, or withdrawal written inside claim or proposed_fix changes nothing mechanically, so a finding you have talked yourself out of must be dropped or carry a non-blocking severity — WARN, NIT, or OUT_OF_SCOPE. BLOCK, FIX_FIRST, NEEDS_HUMAN, and INSUFFICIENT_EVIDENCE all block; never leave a withdrawn finding at any of those four.",
36
+ "One root cause is one finding. Do not re-raise the same underlying defect as a second finding under different wording; emit it once and list every affected location in evidence.",
37
+ subject === "plan"
38
+ ? "Every finding must be grounded in the accepted plan in PLAN_ACCEPTED.md or in the evidence packet supplied with it. Do not manufacture a finding from the placeholder patch or from this prompt's narrative alone; a plan defect must be locatable in the plan text you were given. If the supplied intent or decision evidence contradicts the accepted plan, that contradiction is itself the finding: claim it and cite both sides."
39
+ : "Every finding must be grounded in the current patch or in artifacts under Candidate root. Do not manufacture a finding from USER_INTENT.md, PLAN_ACCEPTED.md, or TESTS.txt text alone; a code defect must be locatable in the reviewed code. If the supplied intent or test evidence contradicts the patch, that contradiction is itself the finding: claim it and cite both sides.",
40
+ "The prose is for the human, not for the machine. State the reasoning that makes the claim true, not only the conclusion, so a person reading the finding can check it against the cited lines; the consumer never weighs that reasoning, it acts on the typed fields above. The two carry different jobs and neither substitutes for the other: a correct severity with unexplained reasoning wastes the reader, and airtight reasoning under a withdrawn-but-blocking severity stops the run anyway. A proposed_fix whose own justification does not survive checking is worse than no finding, because the author will comply with it.",
35
41
  "",
36
42
  "Patch summary (not a replacement for reading DIFF.patch):",
37
43
  patch.summary,
@@ -1 +1 @@
1
- {"version":3,"file":"reviewPrompt.js","sourceRoot":"","sources":["../src/reviewPrompt.ts"],"names":[],"mappings":"AAEA,MAAM,8BAA8B,GAAG;IACrC,iBAAiB;IACjB,kBAAkB;IAClB,sBAAsB;IACtB,mBAAmB;CACX,CAAC;AAEX,MAAM,UAAU,iBAAiB,CAC/B,KAAa,EACb,aAAqB,EACrB,WAAmB,EACnB,KAAmB,EACnB,MAAM,GAAG,KAAK,EACd,UAA2B,MAAM;IAEjC,MAAM,gBAAgB,GAAG,M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H,+FAA+F;YAC/F,0GAA0G;YAC1G,6HAA6H;SAC9H;QACH,CAAC,CAAC,CAAC,uCAAuC,CAAC,CAAC;IAC9C,OAAO;QACL,OAAO,KAAK,MAAM;YAChB,CAAC,CAAC,0UAA0U;YAC5U,CAAC,CAAC,uCAAuC;QAC3C,mBAAmB,aAAa,GAAG;QACnC,MAAM;YACJ,CAAC,CAAC,gEAAgE,WAAW,8HAA8H;YAC3M,CAAC,CAAC,qCAAqC,WAAW,yLAAyL;QAC7O,OAAO,KAAK,MAAM;YAChB,CAAC,CAAC,UAAU,KAAK,gJAAgJ;YACjK,CAAC,CAAC,UAAU,KAAK,oFAAoF,KAAK,CAAC,QAAQ,cAAc,KAAK,CAAC,WAAW,mBAAmB,KAAK,CAAC,UAAU,GAAG;QAC1L,oOAAoO;QACpO,sKAAsK;QACtK,qUAAqU;QACrU,GAAG,gBAAgB;QACnB,gTAAgT;QAChT,oGAAoG;QACpG,ggBAAggB;QAChgB,mLAAmL;QACnL,OAAO,KAAK,MAAM;YAChB,CAAC,CAAC,waAAwa;YAC1a,CAAC,CAAC,qXAAqX;QACzX,0mBAA0mB;QAC1mB,EAAE;QACF,2DAA2D;QAC3D,KAAK,CAAC,OAAO;KACd,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudexor/review",
3
- "version": "3.0.4",
3
+ "version": "3.1.1",
4
4
  "license": "MIT",
5
5
  "description": "Deterministic gates, cross-family review, finding revalidation, route proof, convergence, readiness-debt.",
6
6
  "type": "module",
@@ -16,11 +16,11 @@
16
16
  "dist"
17
17
  ],
18
18
  "dependencies": {
19
- "@claudexor/context": "3.0.4",
20
- "@claudexor/core": "3.0.4",
21
- "@claudexor/schema": "3.0.4",
22
- "@claudexor/config": "3.0.4",
23
- "@claudexor/util": "3.0.4"
19
+ "@claudexor/context": "3.1.1",
20
+ "@claudexor/config": "3.1.1",
21
+ "@claudexor/core": "3.1.1",
22
+ "@claudexor/schema": "3.1.1",
23
+ "@claudexor/util": "3.1.1"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",