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.cjs CHANGED
@@ -9051,6 +9051,17 @@ async function filterFalsePositives(findings, fileContents) {
9051
9051
  {
9052
9052
  model: "claude-haiku-4-5-20251001",
9053
9053
  max_tokens: 1024,
9054
+ // Pinned, NOT left to the API default of 1.0. This is a binary
9055
+ // classification (real vs. false positive), not generation — there
9056
+ // is no upside to sampling variety and a real downside to it: a
9057
+ // filtered finding is a finding the user never sees, so drift here
9058
+ // means scanning the same unchanged code twice can yield different
9059
+ // results. Temperature 0 does not make the model bit-deterministic
9060
+ // (Anthropic makes no such guarantee), but it removes the one
9061
+ // variance source that was ours to control. See
9062
+ // scripts/fp-filter-repeatability.cjs for the measured flip rate,
9063
+ // and the assertion in ai-fp-filter.test.ts that keeps it pinned.
9064
+ temperature: 0,
9054
9065
  system: REVIEW_SYSTEM_PROMPT,
9055
9066
  messages: [{ role: "user", content: prompt }]
9056
9067
  },