How ireneusrdx/consistency-guard-fix works
Consistency Guard is a multi-model AI reliability evaluation platform. Users authenticate, select providers/models, submit questions in an evaluation mode, then inspect repeat-run scores, conflicts, evidence and uncertainty. The client also supports benchmarks, adversarial tests, prompt intelligence, analytics, reports and account settings. The graph reflects documented workflow and sampled/indexed module relationships; several route and page implementations were not excerpted, so their internal calls are not inferred.
Main entry points: App.tsx React application · routes REST API routes · evaluation.ts Evaluation orchestration · db.ts Prisma data store
Components 24
Client experience
- React application
client/src/App.tsx - UI primitives
client/src/components/ui.tsx - API client
client/src/lib/api.ts
Accounts and security
- Sign-in and registration
client/src/pages/Auth.tsx - Session state
client/src/context/AuthContext.tsx - Authentication routes
server/src/routes/auth.ts - JWT session check
server/src/middleware/auth.ts - Account settings
server/src/routes/settings.ts
Evaluation workflow
- Evaluation pages
client/src/pages - Benchmark pages
client/src/pages - Adversarial testing
client/src/pages/Adversarial.tsx - Prompt intelligence
client/src/pages/PromptIntelligence.tsx - Evaluation routes
server/src/routes/evaluations.ts - Benchmark routes
server/src/routes/benchmarks.ts - Evaluation orchestration
server/src/engine/evaluation.ts - Scoring and evidence
server/src/engine
Analysis and reporting
- Analytics and history
server/src/routes - Reports
server/src/routes/reports.ts
Providers and persistence
- REST API routes
server/src/routes - Provider registry
server/src/providers/registry.ts - Pollinations adapter
server/src/providers/pollinations.ts - Prisma data store
server/src/db.ts
Other components
- User
- AI model providers
Connections 29
- User → React application: uses
README.md - React application → Sign-in and registration: routes to
client/src/App.tsx - React application → Evaluation pages: routes to
client/src/App.tsx - React application → Benchmark pages: routes to
client/src/App.tsx - React application → Adversarial testing: routes to
client/src/App.tsx - React application → Prompt intelligence: routes to
client/src/App.tsx - Sign-in and registration → Session state: signs in through
client/src/pages/Auth.tsx - Session state → API client: calls auth API
client/src/context/AuthContext.tsx - React application → UI primitives: uses
client/src/App.tsx - API client → REST API routes: sends REST requests
README.md - REST API routes → Authentication routes: mounts
server/src/index.ts - REST API routes → Evaluation routes: mounts
server/src/index.ts - REST API routes → Benchmark routes: mounts
server/src/index.ts - REST API routes → Analytics and history: mounts analytics routes
server/src/index.ts - REST API routes → Reports: mounts
server/src/index.ts - Evaluation routes → Evaluation orchestration: runs evaluation
README.md - Benchmark routes → Evaluation orchestration: runs suite evaluations
server/src/routes/benchmarks.ts - Evaluation orchestration → Scoring and evidence: calculates scores and evidence
server/src/engine/evaluation.ts - Evaluation orchestration → Provider registry: selects provider adapter
server/src/engine/evaluation.ts - Provider registry → Pollinations adapter: creates adapter
server/src/providers/registry.ts - Evaluation orchestration → AI model providers: requests model runs
README.md - Pollinations adapter → AI model providers: calls provider
README.md - Evaluation orchestration → Prisma data store: persists evaluation data
README.md - Authentication routes → Prisma data store: reads and writes accounts
server/src/routes/auth.ts - Authentication routes → JWT session check: protects session routes
server/src/routes/auth.ts - JWT session check → Prisma data store: checks session
server/src/middleware/auth.ts - Analytics and history → Prisma data store: reads evaluation history
server/src/routes/auth.ts - Reports → Prisma data store: stores generated reports
- Account settings → Prisma data store: stores preferences