capture0x/redwitness
Self-hosted AI application security review with signed scopes and replay-backed evidence
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
RedWitness is a self-hosted application with a Next.js operator UI, a Python FastAPI backend, and PostgreSQL 16 Alpine under Docker Compose. The UI proxies API traffic to FastAPI, which handles authentication, role-based access, and the signed-scope gate. A state-machine orchestrator reads versioned, hashed JSON/YAML test definitions rather than embedding test content in the engine. The Governor enforces request limits, rate and budget controls, and IP pinning.
Target replies are treated as untrusted input. Deterministic checks take precedence; when a rule cannot decide, a separate model judges the reply and must cite text that actually appears in it. Verification requires a configured threshold of repeat observations across fresh conversations. Stored transcripts, replay results, and the library hash let reviewers trace what was evaluated, while the hash-chained audit log records activity. Browser and sandbox runners are optional components, separate from the core UI/API/database path.
Key Capabilities & Differentiators
RedWitness evaluates application behavior across chatbots, RAG pipelines, and agents, including instruction handling, data isolation, tool permissions, and unsafe output. It supports OpenAI and Anthropic APIs, generic JSON over HTTP or WebSocket, and widget-only chat interfaces through an optional browser runner. Judge configuration is separate and supports Anthropic, OpenAI, and OpenAI-compatible APIs. Findings can be mapped to OWASP LLM Top 10, MITRE ATLAS, and NIST AI RMF; SARIF serves downstream tooling, while PDF and Word reports serve human reviewers.
The evaluation pipeline combines exact-quote checks and replay with severity caps, optional second-model review, and human calibration. On 59 hand-labelled cases, 19 of them deliberately difficult, Claude Sonnet yielded 95% correct decisions and sent the remaining 5% to human review; Claude Haiku yielded 85% correct and sent 15% to review. Neither recorded an incorrect verdict in that sample. Those figures show how often each configuration reached a correct decision without escalation on that set; they do not establish detection accuracy on a new application.
Trade-offs & Limitations
Compared with a standalone model benchmark, RedWitness adds authorization records, application-level evidence, and reviewable findings. That overhead pays off when a release decision depends on what an application exposed or did, not just a model score. Conversely, replay increases request volume, stronger judges raise inference costs, and browser-backed evaluations can add maintenance when the UI changes. A replay-backed finding demonstrates repeatability under the tested conditions, not coverage of every application path.
Self-hosting gives operators control over the deployment and where local evidence is stored, but it does not guarantee that data stays on-premises: an external judge may receive target reply content. Compared with a managed service, operators retain responsibility for upgrades, secrets, evidence retention, backups, and access control. Treat transcripts as sensitive, and review AGPL-3.0 obligations before distributing the software or offering a modified version to network users.
Hardware & Deployment Guide
The standard deployment requires Docker with Compose v2 and a free UI port, defaulting to 3000. The installer generates local secrets and builds the stack; the Debian package also leads into Docker-based setup rather than replacing it. The default Compose layout makes the UI reachable from the local machine and does not publish API or database ports to the host. PostgreSQL uses a persistent volume, so plan backups for the database and deployment secrets. External judging requires provider credentials and connectivity; local inference must be reachable from the backend container, whose localhost is not the host machine.
For sizing, start with the UI, API, and PostgreSQL, then account for concurrent runs, retained transcripts, and any optional runners. Size local inference separately; the application stack has no specified VRAM requirement. The v1.6.0 bundled demo uses a mock judge and needs no provider key. v1.5.0 added contextual assistant chat for runs and findings, and v1.4.1 added release checksums and signed build provenance for verifying the packaged artifact.
Security and QA teams that need auditable guardrail regression checks, reviewable evidence, and CI release gates for applications they operate.
You only need a fixed-dataset model score, require a turnkey managed service, or cannot operate the stack and provide an approved judge endpoint without violating data-handling rules.
Quick Start & Installation
./scripts/init-env.sh # writes .env with random secrets and prints the admin password once docker compose up -d --build --wait
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| redwitness ★ | 122 | +121 | Python | AGPL-3.0 | Self-hosted AI application security review with signed scopes and replay-backed |
| Vibe-Trading | 39.6k | +490 | Python | MIT | A self-hosted trading agent for evidence-linked research and inspectable backtes |
| AstrBot | 47.9k | +298 | Python | AGPL-3.0 | A self-hosted Python agent hub that connects chat platforms to model providers |
| QwenPaw | 38.5k | +246 | Python | Apache-2.0 | Self-hosted agent workspace for scheduled tasks and chat across apps |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/capture0x/redwitness.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about redwitness
How does RedWitness fit into an existing application or CI pipeline?
Do I need a GPU, and what drives runtime overhead?
Can a company self-host RedWitness or offer it as a service?
When is RedWitness a better fit than a benchmark script or a managed service?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy