Autonomous DevSecOps Engine with Zero-Compromise Compiler Gates, Live Container DAST & Cryptographic Merkle Ledger
Nebius x NVIDIA Global AI Hackathon (Coding and Agentic Engineering track)π ProofStack Live Application: https://proofstack-app.vercel.app/
π Alternative Production Mirror: https://sentinel-gate-seven.vercel.app/
π¬ 2-Minute Demo Video: https://youtu.be/EsdJ2vkg5HA
π License: Apache License 2.0Core Invariant: Deterministic Code Decides; The Generative Model Only Proposes.
Authentic captures from the verified live Vercel production deployment:
Live AST code repair workspace with syntax tree verification, taint analysis, and one-click Nemotron self-healing.

Side-by-side Monaco diff inspection with microVM test runner telemetry and 8-gate verification checklist.

Dynamic adversarial probe lab validating real-world OWASP attack vectors against live targets.

Immutable HMAC-SHA256 Merkle chain with interactive tamper attack simulator.

Interactive 5-stage pipeline simulation & 1-click evaluator personas.

Configure custom Nebius / NVIDIA Nemotron API tokens with live latency roundtrip testing directly in the browser.

Modern software teams receive thousands of static code analysis (SAST) alerts with false-positive rates exceeding 70%. When developers prompt generative AI to fix these vulnerabilities, the models often hallucinate non-compiling code, drop authorization parameters (user_id, tenant_id), or introduce hidden regressions.
ProofStack solves this through a closed-loop verification pipeline:
- Empirical Vulnerability Confirmation: Runs ephemeral container sandboxes to prove a vulnerability is reachable using dynamic adversarial exploit probes (DAST).
- Constrained Neural Remediation: NVIDIA Nemotron (70B / 120B) synthesizes candidate patches strictly constrained to AST syntax boundaries.
- 8-Gate Deterministic Interlock: Patches must pass eight non-negotiable compiler, linter, exploit replay, and unit test gates.
- Immutable Cryptographic Attestation: Accepted patches are sealed in an HMAC-SHA256 hash-chained Merkle ledger before auto-merging.
Welcome, judges! ProofStack provides two evaluation tracks:
- Instant Cloud Evaluation (0 setup, no API key required) on Vercel.
- Live NVIDIA Nemotron Cloud Inference by providing your own Nebius / NVIDIA API key.
flowchart TD
Start([π Judge Starts Evaluation]) --> Choice{Choose Evaluation Mode}
%% Option A: Instant Live Cloud
Choice -->|Option A: Zero-Setup Live Cloud| Cloud["1. Open Live ProofStack App<br/><b>proofstack-app.vercel.app</b>"]
Cloud --> RoleLogin["2. Visit /login → Click 1-Click Instant Access<br/>(Developer, Auditor, Admin, CISO)"]
RoleLogin --> StudioTest["3. Test Studio (/studio)<br/>Select T1-2 (SQLi/N+1) → Run Synthesis & 8 Gates"]
StudioTest --> CockpitTest["4. Review Cockpit (/cockpit/TASK9142)<br/>Side-by-side Monaco Diff + MicroVM tests"]
CockpitTest --> DastTest["5. Launch DAST Sandbox (/dast)<br/>Run 12-vector exploit replay"]
DastTest --> LedgerTest["6. Verify Ledger (/ledger)<br/>Simulate tamper detection & Merkle chain"]
%% Option B: Live NVIDIA Model with API Key
Choice -->|Option B: Live Cloud Inference with API Key| ApiKey["1. Configure Nebius API Key<br/>NEBIUS_API_KEY in .env or Web UI"]
ApiKey --> RunLocal["2. Launch FastAPI backend + Next.js<br/>Port 8765 + Port 3000"]
RunLocal --> LiveInference["3. Live NVIDIA Nemotron 70B/120B Inference<br/>Synthesizes dynamic AST repairs in real-time"]
%% Option C: Automated Verification
Choice -->|Option C: CLI Verification Suite| TestSuite["1. Run pytest tests/ (115 passing)<br/>2. Run python scripts/verify_e2e.py"]
LedgerTest & LiveInference & TestSuite --> Verdict([β
Zero-Compromise Verification Complete])
style Start fill:#20C9A6,stroke:#10B981,stroke-width:2px,color:#000
style Cloud fill:#151B13,stroke:#20C9A6,stroke-width:2px,color:#FDFBF7
style RoleLogin fill:#151B13,stroke:#38BDF8,stroke-width:1.5px,color:#FDFBF7
style StudioTest fill:#151B13,stroke:#76B900,stroke-width:1.5px,color:#FDFBF7
style CockpitTest fill:#151B13,stroke:#D7BE82,stroke-width:1.5px,color:#FDFBF7
style DastTest fill:#151B13,stroke:#EF4444,stroke-width:1.5px,color:#FDFBF7
style LedgerTest fill:#151B13,stroke:#10B981,stroke-width:1.5px,color:#FDFBF7
style ApiKey fill:#151B13,stroke:#76B900,stroke-width:2px,color:#FDFBF7
style LiveInference fill:#151B13,stroke:#76B900,stroke-width:1.5px,color:#FDFBF7
style Verdict fill:#10B981,stroke:#059669,stroke-width:2px,color:#fff
Judges can connect their Nebius Token Factory / NVIDIA Nemotron API key using either the instant web UI (no code setup) or a local environment:
- Open the live deployment: https://proofstack-app.vercel.app/settings.
- In the Nebius Token Factory / NVIDIA Nemotron API Key input box, paste your API key.
- Click Test Connection: ProofStack calls the live verification gateway (
/v1/models) and displays round-trip network latency (e.g.β Connected (145ms)). - Navigate to Interactive Studio and click Run Synthesis & Verification (or AI Self-Heal): ProofStack dispatches prompts directly to
nvidia/nemotron-3.5-lightning/nvidia/nemotron-3-super-120band streams the AST repair into Monaco with verified compiler provenance.
- Sign in to Nebius Token Factory or Nebius AI Studio.
- Navigate to API Keys and generate a new token with model inference permissions.
In the repository root, create your .env configuration file from the template:
cp .env.example .envOpen .env in any text editor and paste your key:
# ==============================================================================
# NVIDIA NEMOTRON / NEBIUS AI INFERENCE CONFIGURATION
# ==============================================================================
NEBIUS_API_KEY=your_actual_nebius_api_key_here
TOKEN_FACTORY_BASE_URL=https://api.studio.nebius.ai/v1
MODEL_DIAGNOSIS=nvidia/nemotron-3-super-120b
MODEL_PATCH=nvidia/nemotron-3.5-lightning(Alternatively, you can export it directly in your terminal without editing files):
export NEBIUS_API_KEY="your_actual_nebius_api_key_here"In Terminal 1 (Backend API):
python server.pyUpon launch, the backend verifies your key and logs:
[INFO] Model gateway initialized: NEBIUS_API_KEY configured (live cloud inference enabled)
[INFO] Diagnosis Model: nvidia/nemotron-3-super-120b
[INFO] Patch Synthesis Model: nvidia/nemotron-3.5-lightning
[INFO] Uvicorn running on http://127.0.0.1:8765
In Terminal 2 (Frontend Client):
cd frontend
npm run dev
# Opens at http://localhost:3000- Open
http://localhost:3000/studio(or use the deployed Studio). - Choose benchmark problem
T1-2: N+1 Explosion & SQL InjectionorT1-3: IDOR Cache Leak. - Click the green Run Synthesis & Verification button (
#059669). - ProofStack dispatches your code directly to
nvidia/nemotron-3-super-120bvia Token Factory and streams the AST patch into Monaco for 8-gate verification.
If you do not configure an API key, ProofStack never crashes or simulates fake cloud latency. It transparently runs in Deterministic AST Rule Fallback Mode (proofstack/model/gateway.py), ensuring that 100% of the 8 compiler gates, test benchmarks, and UI features continue executing offline.
graph TD
subgraph Intake ["1. INGESTION & COMPILER PROJECTION"]
A[Vulnerability Trigger: SAST / CVE / Alert] --> B[Tree-Sitter Grammar Parser]
B --> C[Control Flow Graph & Taint Sink Extraction]
C --> D[Formal Security Invariants Defined]
end
subgraph NeuralSynthesis ["2. CONSTRAINED NEURAL REMEDIATION"]
D --> E[NVIDIA Nemotron 70B / 120B]
E --> F[AST-Token Masked Synthesis]
F --> G{Valid Compiler AST?}
G -- No --> E
G -- Yes --> H[Candidate Patch AST Node Generated]
end
subgraph AdversarialSandbox ["3. ADVERSARIAL DAST EXPLOIT SANDBOX"]
H --> I[Ephemeral MicroVM Sandbox Environment]
I --> J[Probe 1: Blind SQLi / Parameterized Bypass]
I --> K[Probe 2: IDOR / Broken Object-Level Auth]
I --> L[Probe 3: SSRF & Cloud Metadata Injection]
I --> M[Probes 4-12: ReDoS, XSS, Prototype Pollution, Path Traversal]
J & K & L & M --> N{All 12 Probes Neutralized?}
N -- Failed --> O[Quarantine Patch & Retry Loop]
O --> E
end
subgraph VerificationGates ["4. 8-GATE DETERMINISTIC INTERLOCK"]
N -- Passed --> G1[Gate 1: AST Syntax Validator]
G1 --> G2[Gate 2: Ruff Strict Style Checker]
G2 --> G3[Gate 3: Negative DAST Replay]
G3 --> G4[Gate 4: Unit Test Suite Regression]
G4 --> G5[Gate 5: Concurrency Safety]
G5 --> G6[Gate 6: Environment Boundary]
G6 --> G7[Gate 7: Performance Invariants]
G7 --> G8[Gate 8: Identity Preservation Guard]
end
subgraph LedgerProof ["5. CRYPTOGRAPHIC ATTESTATION & MERKLE LEDGER"]
G8 -- All 8 Pass --> P[Ed25519 Hardware Operator Signature]
P --> Q[SHA-256 Merkle Chain Block Sealed]
Q --> R[Auto Pull-Request Merged with Attestation]
end
style Intake fill:#0E120D,stroke:#515A47,stroke-width:2px,color:#FDFBF7
style NeuralSynthesis fill:#151B13,stroke:#D7BE82,stroke-width:2px,color:#FDFBF7
style AdversarialSandbox fill:#1E261B,stroke:#7A4419,stroke-width:2px,color:#FDFBF7
style VerificationGates fill:#151B13,stroke:#20C9A6,stroke-width:2px,color:#FDFBF7
style LedgerProof fill:#0E120D,stroke:#D7BE82,stroke-width:2px,color:#FDFBF7
- Deterministic Code Decides; Generative Model Only Proposes: Model outputs never manufacture verdicts, measurements, or ledger signatures.
- Zero-Compromise Invariant:
Verdict = ACCEPT <=> (DeltaPerf > tau_noise) AND (Security_regress == Empty) AND (Correctness_regress == Empty) AND (Concurrency_safe == True) - Truth Hierarchy (Rank 1 to 6):
- Rank 1: Exact Counts (SQL queries, stub hits)
- Rank 2: Empirical Scaling Ratios (Log-log slope)
- Rank 3: Allocation Bytes (tracemalloc peak memory)
- Rank 4: Invariant Counters (AST node integrity)
- Rank 5: Exploit Outcome Oracles (DAST HTTP/RPC assertions)
- Rank 6: Wall-Clock Medians (Confirmation only)
- Identity Preservation Guard (Gate 8 / R4): No patch may drop
user_id,tenant_id, session parameters, or auth decorators. - Cryptographic Evidence Ledger: Append-only SHA-256 hash-chain over canonical JSON:
entry_hash = SHA256( bytes.fromhex(prev_hash) + canonical_json(body) )
| Gate | Name | Purpose | Enforcement Mechanism |
|---|---|---|---|
| G1 | AST Syntax Validator | Validates patch compiles to a valid Python 3.12 AST | compile(ast_node, "<patch>", "exec") |
| G2 | Ruff Strict Style Checker | Guarantees zero formatting, linting, or naming regressions | ruff check --select E,F,W,I |
| G3 | Negative DAST Replay | Confirms original exploit payload now returns 403/rejected | Ephemeral microVM HTTP replay |
| G4 | Unit Regression Suite | Guarantees existing application tests continue passing | pytest tests/ test runner |
| G5 | Concurrency Safety | Detects race conditions or thread-unsafe state mutations | Thread sanitizer / multi-worker stress |
| G6 | Environment Boundary | Prevents arbitrary filesystem/network egress outside container | Seccomp profile / container isolation |
| G7 | Performance Invariants | Verifies patch does not degrade execution time beyond threshold | Empirical scaling ratio checks |
| G8 | Identity Preservation | Prevents dropping tenant_id, user_id, or security decorators |
Tree-sitter AST diff invariant check |
Every authenticated role maps to a dedicated default dashboard on initial login or Instant Access:
| Role | Configured Identities | Default Landing Route | Key Capabilities |
|---|---|---|---|
| Lead Developer | Nitin Pandey, Nikhil Lakra |
/developer |
Split-diff code review, AST patch synthesis, MicroVM tests, task queue |
| Security Auditor | Elena Rostova, Rohan Verma |
/auditor |
Gate approvals, SHA-256 Merkle chain verification, tamper audit |
| Workspace Admin | Marcus Vance, Priya Nair |
/admin |
Worker quotas, runner pool scaling, task assignment, benchmark catalog |
| Super Admin / CISO | Dr. Sarah Lin |
/ciso |
Root hardware signing authority, emergency policy override, audit chain |
ProofStack/
βββ frontend/ # Canonical Next.js 14 Web Application (Full DevSecOps Suite)
β βββ src/app/ # 26 Static & Dynamic Routes (/studio, /dashboard, /dast, etc.)
β βββ src/components/ # Design Tokens, Monaco Diff Viewer, 8-Gate Interlock
βββ web/ # Secondary Cockpit Application Mirror
βββ proofstack/ # Deterministic Verification & Remediation Engine
β βββ ast/ # Tree-Sitter Parser, Syntax Traversal, Masked Token Boundaries
β βββ gates/ # 8 Deterministic Interlock Compilers & Ruff Linter
β βββ sandbox/ # MicroVM Runner, Memory Profiler, Concurrency Evaluator
β βββ ledger/ # SHA-256 Merkle Chain & Ed25519 Attestation
βββ server.py # FastAPI Production Backend Gateway (Port 8765)
βββ tests/ # 115 Automated Python Security & Gate Regression Tests
βββ scripts/ # E2E Lifecycle Validators, Benchmark Seeders
# 1. Clone & install
git clone https://github.com/nikhillakra2007-tech/ProofStack.git
cd ProofStack
pip install -r requirements.txt
cp .env.example .env
# 2. Database migrations & demo seed
alembic upgrade head
python scripts/seed_demo.py
# 3. Start Backend API Server (Port 8765)
python server.py
# 4. Start Canonical Frontend Client (Port 3000)
cd frontend
npm install
npm run dev# Run Complete Python Test Suite (115 tests)
python -m pytest tests/
# Run 24-Step End-to-End Local Lifecycle Validation
python scripts/verify_e2e.py
# Build & Typecheck Canonical Production Frontend (frontend/)
cd frontend && npm run build
# Build & Typecheck Secondary Cockpit Mirror (web/)
cd web && npm run buildLicensed under the Apache License, Version 2.0. See the LICENSE file for terms and conditions.
Built with precision for the Nebius x NVIDIA Global AI Hackathon (Coding and Agentic Engineering track).
