# AUTO-GENERATED BY COO-NODE | BARE-METAL LOCK
import re

class CognitiveFirewall:
    def __init__(self):
        self.banned_concepts = [
            r'\bcloud\b', r'\bsimulation\b', r'\bnarrative\b', 
            r'\broleplay\b', r'\bworld-building\b', r'\bAI\b'
        ]
        self.regex = re.compile('|'.join(self.banned_concepts), re.IGNORECASE)
        
    def sanitize(self, payload: str) -> str:
        if self.regex.search(payload):
            return "[COO-NODE: PACKET DROPPED - TERMINAL HALLUCINATION DETECTED]"
        return payload
