Skip to content
tsjharshaPublic

About

Zero-Trust Verification Fabric for AI-Generated Software.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Auditra

Zero-Trust Verification Fabric for AI-Generated Software

AI proposes. Auditra verifies.

AI coding tools increase development velocity, but generated code still requires validation, regression testing, and review. Auditra creates an automated verification gate between generated code and deployment.

Don't trust generated code. Test it adversarially. Verify it independently. Accept it or roll it back.


1. What is Auditra?

Auditra is an adversarial verification engine that acts as a production gate for AI-generated code. Instead of trusting an LLM's patch proposal, Auditra explicitly sandboxes the code, runs deep regression and boundary tests, compares the output against a deterministic Oracle, and either automatically merges the patch or rejects and rolls it back.

2. Why does it exist?

The current AI-assisted development workflow looks like this: AI -> Developer Review -> Tests -> Debugging -> Regression -> Merge

Auditra compresses this into the AEGIS lifecycle: RESET → BASELINE VERIFY → AI PATCH → AST/SANDBOX VALIDATION → APPLY → POST-PATCH VERIFY → ROLLBACK/SECURE

3. What makes it different?

Most "AI Code Review" tools are purely probabilistic—they use an AI to review an AI. Auditra enforces an explicit Trust Boundary. The AI reasoning is isolated from the deterministic verification. The AI can recommend, but the Oracle decides.

4. How does it verify code?

Auditra generates test inputs across four categories:

  • Normal cases
  • Boundary cases
  • Adversarial cases
  • Regression cases

It runs these inputs through both the AI-patched code (in a lightweight local execution sandbox) and a hidden, known-good Oracle. If the outputs diverge, the code is compromised.

Guarding the Guards (Mutation Testing)

Auditra dynamically injects known mutations into target implementations and verifies that the independent Oracle successfully catches them. The current suite contains 6 mutations, and the demonstrated suite achieves 100% detection.

5. What happens when AI is wrong?

The patch is immediately rejected. Auditra uses two distinct failure paths:

  1. Pre-application Rejection: If the proposed patch fails AST/security validation, it emits PATCH_REJECTED and the original source is never modified (no rollback needed).
  2. Post-application Rollback: If the patch applies but fails the Oracle behavioral verification, it triggers a file-level ROLLBACK to restore the previous secure state.

The release gate blocks code that fails Auditra's defined verification and security checks.

6. What does IBM Bob have to do with it?

Auditra was built entirely using IBM Bob 2.0 as the primary AI-assisted development environment. IBM Bob iterated on the architecture, wrote the AST Validator, built the React frontend, and implemented the Sandbox.

Currently, IBM Bob acts as the AI development/repair agent:

  • Bob connects to Auditra through the Model Context Protocol (MCP).
  • Auditra exposes verify_target and verify_all to Bob.
  • Bob can receive deterministic verification feedback on its repairs.
  • Auditra's independent Oracle remains authoritative. Bob does not control or implement the oracle.

This creates a powerful meta-story: The project built with AI is itself protected by an AI verification system. See Built with Bob for details.

7. How do I run it?

CI/CD Verification Gate (CLI)

python -m backend.auditra verify --json

Exit code 0: Safe to deploy. The global verification gate requires all four target services to pass behavioral verification and the mutation suite to achieve the required detection result before the release is approved. Exit code >0: Block merge/deployment.

Local Developer Verification (CLI)

# Verify a single target during development
python -m backend.auditra verify-target <node_id>

Interactive War Room (Frontend Demo)

# Terminal 1
python -m uvicorn backend.auditra.api:app --port 8002

# Terminal 2
cd frontend
npm run dev

Open http://localhost:5173. Click Reset Environment, then Launch Verification Grid.

8. Verification Benchmark

Demonstration benchmark based on standard test runs.

WITHOUT AUDITRA (Manual)

  • Scenarios tested: ~5 manual edge cases
  • Time to test & debug: ~15-30 minutes per patch
  • Regression coverage: Relies on pre-existing unit tests

WITH AUDITRA (Automated Zero-Trust)

  • Scenarios tested: 12–16 adversarial/boundary scenarios per node (~58 total)
  • Regression coverage: Deterministically proven against independent Oracle

9. What is actually demonstrated?

The demo runs against four deliberately vulnerable financial microservices (where behavioral errors have direct monetary consequences).

  1. Tax Router: Detects hardcoded rates.
  2. Billing Engine: Evaluates unsafe float arithmetic.
  3. Ledger Sync: Validates negative refund bounds.
  4. Fraud Detector: Intentionally demonstrates a ROLLBACK when the AI proposes an incorrect threshold.

10. Limitations

  • Auditra currently verifies behavior against explicit deterministic scenarios and does not mathematically prove arbitrary program correctness.
  • The current sandbox is designed for controlled demonstration workloads and is not a replacement for a hardened production container/VM boundary.
  • Verification quality is bounded by oracle quality and scenario coverage.

About

Zero-Trust Verification Fabric for AI-Generated Software.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages