Skip to main content

Runtime verification for AI-built systems. Catch silent failures, contradictions, and stale data before they cost you.

Project description

watchdog-ai

Runtime verification for AI-built systems. Catch silent failures, contradictions, and stale data before they cost you.

The Problem

AI writes code fast. But bugs go undetected. APIs break silently. Bots trade against their own predictions. And nobody notices for days.

Code review tools catch bugs before merge. LLM observability tracks API calls. Nobody checks if the AI-built system is actually working correctly right now.

Install

pip install watchdog-ai

Quick Start

# Generate example config
wdog init

# Edit watchdog.yaml for your project, then:
wdog check

# Run continuously
wdog watch

What It Checks

Check Type What It Does Example
process Is your service running? Bot daemon crashed silently
freshness Is your data current? Database hasn't updated in 26h
log_scan Any errors in logs? 5 tracebacks in last 50 lines
assertion Is your data valid? Capital dropped below 50%
http Is your API healthy? Health endpoint returning 500
script Custom validation Your own check script

Example Config

project: my-trading-bot
interval: 5m

checks:
  - name: Bot is running
    type: process
    match: "python3 bot.py"
    severity: critical

  - name: Data is fresh
    type: freshness
    path: ./data/trades.json
    max_age: 2h

  - name: No crashes
    type: log_scan
    path: ./logs/bot.log
    patterns: ["traceback", "error"]
    threshold: 3
    severity: critical

  - name: Capital is safe
    type: assertion
    source: ./data/state.json
    conditions:
      - expr: "$.balance > 0"
        severity: critical
      - expr: "$.balance > $.initial * 0.5"
        message: "Balance below 50%!"

notify:
  - type: webhook
    url: ${SLACK_WEBHOOK_URL}
    on: [critical]

Commands

wdog init           # Generate example config
wdog check          # Run all checks once
wdog check --json   # Machine-readable output
wdog watch          # Run on schedule
wdog list           # List configured checks

Exit Codes

  • 0 — All healthy
  • 1 — Warnings present
  • 2 — Critical issues found

Works with CI/CD, cron, and monitoring systems.

Born from Real Pain

This tool exists because:

  • Our stock bot traded LONG while predictions said DOWN — for days
  • Our exchange API broke silently and nobody noticed
  • A strategy looked great on 2 days of data but was a loser over 6 months

We built watchdog for ourselves first. Now it's yours.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

watchdog_ai-0.1.0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

watchdog_ai-0.1.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file watchdog_ai-0.1.0.tar.gz.

File metadata

  • Download URL: watchdog_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.9

File hashes

Hashes for watchdog_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b9f808f646752525117d7069eefd9270c47d99a6c328a586be25460fb0a23d99
MD5 fdb797244b31f54a065bb462dbe8667a
BLAKE2b-256 6b96a13c5af90843085a9b4ecfe08719f3435f52905065dc73b7e81a93aa5c94

See more details on using hashes here.

File details

Details for the file watchdog_ai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: watchdog_ai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.9

File hashes

Hashes for watchdog_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3af511b23e229bf466243ee93e0d136c75e932677e8e9b1274a88c99d2b427e
MD5 90669039bc8666d6995ca6233e9deb9b
BLAKE2b-256 a132e5bc4ddb37b53cd2d08abb77ada9b1086b042fd8509921f5a010a29b6058

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page