Developer Tools

Protect credentials, sanitize generated code, constrain tools, require review and retain evidence in AI-assisted development.

Industry starter · Regulated SaaS, Private cloud

What it checks

Policies in the Developer Tools template, in the order the gateway runs them
PolicyOnChecksAction
prompt-injectionRequestDetects jailbreak and prompt-injection signalsBlock
pii-detectorRequest2 custom identifier patternsRedact
dlp-filterRequestBlocked terms “private key” and “production credential”Block
code-sanitizerBothMatches message text against built-in and custom code-safety patternsBlock
tool-securityRequestBlocks unsafe tool definitions in the requestBlock
quality-scorerResponseAccuracy ≥ 0.80; relevancy ≥ 0.78; combined score ≥ 0.82; at least 120 characters and 2 sentencesBlock
human-oversightResponseNo action is set, so it does not review responsesNone
audit-loggerRequestAdds an allow-only audit marker to the decisionRecord
Policy YAML
pack:
  id: "cfg_developer_tools"
  name: "developer-tools"
  version: "0.1.0"
  enabled: true
  author: "verdictan"
  description: "Developer-tool controls for credentials, generated code, tool use, a configurable human-oversight point, and auditability."
policies:
  chain:
    - "prompt-injection"
    - "pii-detector"
    - "dlp-filter"
    - "code-sanitizer"
    - "tool-security"
    - "quality-scorer"
    - "human-oversight"
    - "audit-logger"
policy:
  prompt-injection: {}
  pii-detector:
    action: redact
    detect_patterns:
      - "(?i)(?:api[_\\s-]?key|apikey)\\s*[:#=]?\\s*[A-Za-z0-9_\\-]{16,128}"
      - "(?i)(?:bearer\\s+)?token\\s*[:#=]\\s*[A-Za-z0-9._\\-]{8,128}"
  dlp-filter:
    blocked_terms:
      - "private key"
      - "production credential"
    action: block
  code-sanitizer:
    enabled: true
    block_on_match: true
  tool-security:
    analysis_mode: local
  quality-scorer:
    min_output_chars: 120
    min_sentences: 2
    thresholds:
      min_aggregate: 0.82
      min_relevancy: 0.78
      min_accuracy: 0.80
    weights:
      relevancy: 0.5
      accuracy: 0.5
  human-oversight: {}
  audit-logger: {}