SkillSpector icon indicating copy to clipboard operation
SkillSpector copied to clipboard

AR2 treats "never judge from <evidence> whether <fact>" and a descriptive "with no warning" as warning suppression

Open forrestsatterfield opened this issue 5 days ago • 1 comments

Summary

AR2 (Anti-Refusal / warning suppression, HIGH) fires on two kinds of sentence that don't suppress anything:

  1. "Never judge from whether ", an instruction not to infer something. In the skill I scanned, it tells the model not to guess from an email domain whether a contact detail is official, personal or current. That is a guardrail against making things up, not "don't moralize at the user".
  2. "... with no warning" used as a description of a consequence: "Changing the hostname breaks every installed user with no warning and no fallback." This is in maintainer docs explaining why the hostname must not change.

In the published plugin I scanned, AR2 accounted for 3 of the 10 HIGH findings (6 occurrences), all of these two kinds.

Environment

  • SkillSpector v2.13.7 (same version as main at 636e4293)
  • skillspector scan <dir> --no-llm --format json (static only)
  • Windows 11

Reproduction

ar2/SKILL.md:

---
name: ar2
description: Minimal reproducer.
---

# Contact details

Pass each contact value on as recorded. Never judge from an address's domain or form whether it is official, personal, or current.

Changing the endpoint hostname breaks every installed user with no warning and no fallback.
score 30 MEDIUM CAUTION
  AR2 HIGH 0.85 SKILL.md:8  | 'Never judge'
  AR2 HIGH 0.8  SKILL.md:10 | 'no warning'

Cause

In static_patterns_anti_refusal.py, AR2_PATTERNS:

  • \b(?:do\s+not|don'?t|never)\s+(?:lecture|moralize|moralise|preach|judge|warn)\b treats every "never judge" as a ban on moralizing, whatever follows. "Judge from X whether Y" (to infer) and "judge a person" (to moralize) are different verbs in practice.
  • \b(?:do\s+not|don'?t|never|no)\s+(?:include|add|give|provide|use|append)?\s*(?:any\s+)?(?:warnings?|disclaimers?|caveats?)\b: the bare no alternative with an optional verb matches the noun phrase "no warning" anywhere, including in "breaks … with no warning".

Expected

  • never judge followed by from, whether or by + evidence (an inference sense) should not match, or at least not at 0.85.
  • no warning should need an imperative directed at the output ("give no warning", "include no warnings", sentence-initial "No warnings."), not a noun phrase in the middle of a sentence.

Same rule, different pattern: #440 (AR2 on "Never … without warning the user"). Same class: #1120.

forrestsatterfield avatar Nov 29 '26 08:11 forrestsatterfield

Working on this one. Plan: stop AR2 firing on never judge in the inference sense (followed by from, whether or by plus evidence) while keeping the moralizing sense, and require an imperative framing for the no warning pattern so descriptive noun phrases mid-sentence stay silent. Will add regression tests for both shapes plus the real suppression cases that must keep firing.

Varshith-Kali avatar Nov 29 '26 19:11 Varshith-Kali