Skip to content

v1.4.1

Choose a tag to compare

@github-actions github-actions released this 21 Apr 23:33
· 1270 commits to main since this release
9926629

Added

  • Version information in all log entries (Issue #190)
    • Every log line now includes AI Guardian version (e.g., v1.4.1)
    • New log format: YYYY-MM-DD HH:MM:SS - v{VERSION} - logger - LEVEL - message
    • Version logged explicitly at startup with Python version and platform information
    • Helps correlate bugs with specific releases and verify fixes
    • No manual version strings needed in log statements - automatically injected via custom LogRecord factory
    • Example log output:
      2026-04-21 18:49:20 - v1.4.1 - root - INFO - AI Guardian v1.4.1 initialized
      2026-04-21 18:49:20 - v1.4.1 - root - INFO - Python 3.12.11
      2026-04-21 18:49:20 - v1.4.1 - root - INFO - Platform: Darwin-25.4.0-arm64
      

Fixed

  • TypeError in Agent output secret scanning (Issue #187)

    • Fixed crash when Agent tools return non-string output (lists, dicts)
    • Properly handles and converts non-string content before secret scanning
    • Prevents "write() argument must be str, not list" errors
  • Overly aggressive self-protection heuristic no longer blocks legitimate content (Issue #188)

    • Fixed false positives where commands mentioning "ai-guardian" in content were blocked
    • Self-protection patterns are now path-specific, only blocking when targeting actual protected files:
      • Config files: *ai-guardian.json, */.config/ai-guardian/*
      • IDE hooks: */.claude/settings.json, */.cursor/hooks.json
      • Package code: */site-packages/ai_guardian/*, */ai-guardian/src/ai_guardian/*
      • Cache files: */.cache/ai-guardian/*
      • Directory markers: */.ai-read-deny
    • Now allows legitimate use cases:
      • Writing code reviews mentioning "ai-guardian" (e.g., echo "Review mentions ai-guardian" > /tmp/review.md)
      • Creating documentation about ai-guardian (e.g., echo "Install ai-guardian using pip" > docs/README.md)
      • Writing bug reports containing "ai-guardian" text
    • Protection remains strong for actual config/hook files - only the heuristic is more precise
    • Added 9 new test cases to prevent regression