xploitscan-shared-rules 1.15.0 → 1.15.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.
package/dist/index.js CHANGED
@@ -8778,6 +8778,17 @@ async function filterFalsePositives(findings, fileContents) {
8778
8778
  {
8779
8779
  model: "claude-haiku-4-5-20251001",
8780
8780
  max_tokens: 1024,
8781
+ // Pinned, NOT left to the API default of 1.0. This is a binary
8782
+ // classification (real vs. false positive), not generation — there
8783
+ // is no upside to sampling variety and a real downside to it: a
8784
+ // filtered finding is a finding the user never sees, so drift here
8785
+ // means scanning the same unchanged code twice can yield different
8786
+ // results. Temperature 0 does not make the model bit-deterministic
8787
+ // (Anthropic makes no such guarantee), but it removes the one
8788
+ // variance source that was ours to control. See
8789
+ // scripts/fp-filter-repeatability.cjs for the measured flip rate,
8790
+ // and the assertion in ai-fp-filter.test.ts that keeps it pinned.
8791
+ temperature: 0,
8781
8792
  system: REVIEW_SYSTEM_PROMPT,
8782
8793
  messages: [{ role: "user", content: prompt }]
8783
8794
  },