xploitscan-shared-rules 2.4.4 → 2.4.6

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
@@ -225,9 +225,9 @@ function isLineSilenced(lines, lineIdx, ruleId) {
225
225
 
226
226
  // src/models.ts
227
227
  var MODEL_ANALYSIS = "claude-sonnet-5";
228
- var MODEL_TRIAGE = "claude-haiku-4-5-20251001";
229
- var MODEL_POLICY_REVIEWED = "2026-09-15";
230
- var MODEL_REVIEW_INTERVAL_DAYS = 180;
228
+ var MODEL_TRIAGE = "claude-haiku-5-5";
229
+ var MODEL_POLICY_REVIEWED = "2026-10-12";
230
+ var MODEL_REVIEW_INTERVAL_DAYS = 30;
231
231
  var MODEL_TEMPERATURE = 0;
232
232
 
233
233
  // src/rule-impacts.ts
@@ -4866,17 +4866,14 @@ async function filterFalsePositives(findings, fileContents, budgetMs = AI_FILTER
4866
4866
  {
4867
4867
  model: MODEL_TRIAGE,
4868
4868
  max_tokens: 1024,
4869
- // Pinned, NOT left to the API default of 1.0. This is a binary
4870
- // classification (real vs. false positive), not generation — there
4871
- // is no upside to sampling variety and a real downside to it: a
4872
- // filtered finding is a finding the user never sees, so drift here
4873
- // means scanning the same unchanged code twice can yield different
4874
- // results. Temperature 0 does not make the model bit-deterministic
4875
- // (Anthropic makes no such guarantee), but it removes the one
4876
- // variance source that was ours to control. See
4877
- // scripts/fp-filter-repeatability.cjs for the measured flip rate,
4878
- // and the assertion in ai-fp-filter.test.ts that keeps it pinned.
4879
- temperature: MODEL_TEMPERATURE,
4869
+ // Haiku 5.5 rejects non-default sampling params with HTTP 400
4870
+ // ("temperature is deprecated for this model"). Omit temperature /
4871
+ // top_p / top_k entirely — do NOT send MODEL_TEMPERATURE (0).
4872
+ // Adaptive thinking is on by default for 5.5; disable it here: this
4873
+ // is binary FP classification, not open-ended analysis, and thinking
4874
+ // burns the shared AI budget (Isobar rescan: every call 400'd on
4875
+ // temperature, then timed_out with aiReviewed:false → grade D).
4876
+ thinking: { type: "disabled" },
4880
4877
  system: REVIEW_SYSTEM_PROMPT,
4881
4878
  messages: [{ role: "user", content: prompt }]
4882
4879
  },
@@ -5145,6 +5142,7 @@ function scanEntropy(files) {
5145
5142
  }
5146
5143
  for (const { value, beforeAssign, dotenvName } of candidates) {
5147
5144
  if (value.includes("${")) continue;
5145
+ if (value.includes("\\(")) continue;
5148
5146
  if (SAFE_PATTERNS.some((p) => p.test(value))) continue;
5149
5147
  if (HASH_PREFIX_RE.test(value)) continue;
5150
5148
  if (SAFE_VAR_NAMES.test(beforeAssign)) continue;