Flaw::AiAssistantLeak
Inherits Flaw::Rule < Reference < Object
FLAW101 — AI refusal/assistant phrases leaked into source. Pattern: Claude or ChatGPT output pasted verbatim, including meta-speak that has no business running in production ("As an AI...", "I apologize...").
Constants
PATTERNS = [/\bAs an AI (language model|assistant)\b/i, /\bI (cannot|can't|am unable to) (provide|generate|produce|assist with|help with)\b/i, /\bI apologize for (the|any) (confusion|inconvenience)\b/i, /\bAs of my (last )?(knowledge|training)(\s+(update|cutoff))?\b/i, /\b(Certainly!|Absolutely!|Of course!|Sure thing!)\s*[A-Z]/, /\b(Let me|I'll|I will) (assist|help) you (with)?\b/i, /\bI don't have (access to|the ability to|real[- ]time)\b/i, /\bI'm (just|only) an? (AI|language model)\b/i]
Instance methods
default_severity
Sourcedescription
Sourceid
Sourcetag
Category for grouping in flaw rules output and the README catalog.
Override in rule subclasses. Default: "security".
title
Source