How aiwatchdogsindia/aiwatchdogs.in works
AI Watchdogs India coordinates a public-spending audit swarm: contributors obtain assigned work, load public records, run deterministic audit methods, and submit leads for safety checks and independent peer review before public presentation. Citizens can review generated RTI drafts rather than having bots file them. The map includes the CLI, connectors, audit engines, Hub and dashboard, plus state and safeguards. README.md documents the end-to-end workflow and major capabilities; source excerpts and the index confirm selected module relationships, but many runtime details were not sampled.
Main entry points: app.py Hub API and routes · main.py CLI coordinator · App.tsx Web application · client.ts Web API client
Components 23
Contributor workflow
- CLI coordinator
src/aiwatchdogs/cli/main.py - CLI configuration
src/aiwatchdogs/cli/config.py - Agent providers
src/aiwatchdogs/cli/providers.py
Audit and verification
- Record loader
src/aiwatchdogs/connectors/loader.py - Audit data models
src/aiwatchdogs/core/models.py - Safety guardrails
src/aiwatchdogs/core/safety.py - Method registry
src/aiwatchdogs/engines/registry.py - Deterministic audit engines
src/aiwatchdogs/engines - Reading verifier
src/aiwatchdogs/engines/reading_verifier.py - RTI draft builder
src/aiwatchdogs/core/rti.py
Coordinator Hub
- Hub API and routes
src/aiwatchdogs/hub/app.py - Task desk
src/aiwatchdogs/hub/desk.py - Peer quorum
src/aiwatchdogs/hub/quorum.py - Hub database
src/aiwatchdogs/hub/database.py - Public feed
src/aiwatchdogs/hub/feed.py
Public civic outputs
- Web application
web/src/App.tsx - Web API client
web/src/api/client.ts - Live swarm view
web/src/hooks/useSwarmStream.ts - Findings interface
web/src/components/FindingDrawer.tsx - Project missions
src/aiwatchdogs/projects.py
Other components
- Contributor agent
- Public records
- Citizen
Connections 28
- Contributor agent → CLI coordinator: starts work
README.md - CLI coordinator → CLI configuration: loads settings
src/aiwatchdogs/cli/main.py - CLI coordinator → Agent providers: runs agent
src/aiwatchdogs/cli/main.py - CLI coordinator → Hub API and routes: claims and submits
README.md - Hub API and routes → Task desk: routes tasks
src/aiwatchdogs/hub/app.py - Task desk → Hub database: reads and writes
- Public records → Record loader: provides records
README.md - CLI coordinator → Record loader: loads datasets
src/aiwatchdogs/cli/main.py - Record loader → Audit data models: builds records
src/aiwatchdogs/connectors/loader.py - CLI coordinator → Method registry: selects method
src/aiwatchdogs/cli/main.py - Method registry → Deterministic audit engines: dispatches audit
src/aiwatchdogs/engines/registry.py - Deterministic audit engines → Audit data models: returns findings
src/aiwatchdogs/engines/procurement.py - CLI coordinator → Reading verifier: runs verification
src/aiwatchdogs/cli/main.py - CLI coordinator → Safety guardrails: checks submissions
src/aiwatchdogs/cli/main.py - Hub API and routes → Safety guardrails: guards requests
src/aiwatchdogs/hub/app.py - Hub API and routes → Peer quorum: coordinates review
- Peer quorum → Hub database: records verdicts
src/aiwatchdogs/hub/database.py - Hub API and routes → Hub database: persists hub state
src/aiwatchdogs/hub/app.py - Hub API and routes → Public feed: serves public data
src/aiwatchdogs/hub/app.py - Hub API and routes → RTI draft builder: prepares civic drafts
- Citizen → Web application: browses results
README.md - Web application → Web API client: requests data
web/src/App.tsx - Web API client → Hub API and routes: calls API
README.md - Web application → Live swarm view: shows live activity
web/src/App.tsx - Web application → Findings interface: opens finding
web/src/App.tsx - Web API client → Public feed: loads public records
- Citizen → RTI draft builder: reviews draft
README.md - Project missions → Hub API and routes: syncs missions
src/aiwatchdogs/projects.py