File size: 27,481 Bytes
edc5b0e b133c01 a913714 edc5b0e b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b 14b1bbe 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b b133c01 30b3d7b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 | ---
title: Rhodawk AI DevSecOps Engine
emoji: π¦
colorFrom: indigo
colorTo: blue
sdk: docker
app_port: 7860
pinned: false
license: apache-2.0
---
<div align="center">
<img src="https://capsule-render.vercel.app/api?type=waving&color=0:1a1a2e,50:16213e,100:0f3460&height=220§ion=header&text=RHODAWK%20AI&fontSize=72&fontColor=e94560&animation=fadeIn&fontAlignY=38&desc=Autonomous%20DevSecOps%20Control%20Plane%20v4.0&descSize=20&descAlignY=58&descColor=a8b2d8" width="100%"/>
<br/>
[](https://python.org)
[](https://gradio.app)
[](https://openrouter.ai)
[](https://huggingface.co/spaces/Architect8999/rhodawk-ai-devops-engine)
[](https://docker.com)
[](.)
<br/>
[](.)
[](.)
[](.)
[](.)
<br/>
<br/>
> **"The next generation of security tooling does not find known CVEs.**
> **It finds the assumptions that developers got wrong β before attackers do."**
<br/>
</div>
<hr/>
<div align="center">
## π Mythos-Level Upgrade
A complete blueprint for elevating Rhodawk to **Claude Mythos-class
autonomous vulnerability research** lives under [`mythos/`](mythos/) β see
[`mythos/MYTHOS_PLAN.md`](mythos/MYTHOS_PLAN.md) for the full living plan
(multi-agent framework, probabilistic reasoning, advanced static / dynamic /
exploit tooling, RL self-improvement, new MCP servers, FastAPI
productization). Enable with `RHODAWK_MYTHOS=1` or hit the new productization
API at `POST /v1/analyze_target` (run `uvicorn mythos.api.fastapi_server:app`).
| Layer | Module |
|---|---|
| Multi-agent (Planner / Explorer / Executor) | `mythos/agents/` |
| Probabilistic hypothesis engine + attack graphs | `mythos/reasoning/` |
| Static (Tree-sitter, Joern, CodeQL, Semgrep) | `mythos/static/` |
| Dynamic (AFL++, KLEE, QEMU, Frida, GDB) | `mythos/dynamic/` |
| Exploit (Pwntools, ROPGadget, heap, privesc) | `mythos/exploit/` |
| Self-improvement (RL, MLflow, LoRA, curriculum, episodic) | `mythos/learning/` |
| New MCP servers (5Γ) | `mythos/mcp/` (registered in `mcp_config.json`) |
| Productization API | `mythos/api/` |
---
## What Rhodawk Actually Is
</div>
Rhodawk is a **fully autonomous code repair and vulnerability research system**. Point it at any GitHub repository. It clones the code, runs the tests, generates fixes using state-of-the-art LLMs, passes every fix through a 7-layer security pipeline, and opens a verified pull request β with no human involvement in the loop unless you require it.
When tests are already passing, it switches into attack mode: it autonomously generates property-based fuzz tests, discovers invariant violations, and hands the crash payloads back to itself for patching. It is a self-healing system that simultaneously acts as its own red team.
<hr/>
<div align="center">
## The Full Autonomous Loop
</div>
```mermaid
flowchart TD
A([π― Target Repository]) --> B[Clone & Fingerprint\nLanguage Detection]
B --> C{Tests Passing?}
C -->|FAILING| D[π§ Retrieve Similar Fixes\nVector Memory β CodeBERT / MiniLM]
D --> E[β‘ Dispatch Aider via MCP\nLLM Fix Generation]
E --> F[β
Re-run Test Suite\nVerification Loop]
F --> G{Fixed?}
G -->|NO β retry| E
G -->|YES| H
C -->|PASSING| RT[π΄ Red Team CEGIS Engine\nAutonomous Attack Mode]
RT --> RTA[AST Complexity Scoring\nAttack Surface Ranking]
RTA --> RTB[Red Team LLM\nHypothesis PBT Synthesis]
RTB --> RTC[Deterministic Fuzz Loop\nCounter-Example Extraction]
RTC --> RTD[Crash Payload Found]
RTD --> E
H[π¬ SAST Gate\nBandit + 16-Pattern Secret Scanner]
H --> I[π Supply Chain Gate\npip-audit + Typosquatting Detection]
I --> J[βοΈ Z3 Formal Verification\nInteger Overflow + Invariant Proofs]
J --> K[π³οΈ 3-Model Adversarial Consensus\nDeepSeek-R1 β₯ Llama-3.3-70B β₯ Gemma-3-27B]
K --> L{2/3 Majority?}
L -->|REJECTED| E
L -->|APPROVED| M[π Conviction Engine\n7-Criteria Auto-Merge Gate]
M --> N[π Open PR + Audit Trail\nSHA-256 Tamper-Evident Log]
N --> O[π Training Store\nData Flywheel β JSONL Export]
style A fill:#e94560,color:#fff
style RT fill:#d63031,color:#fff
style K fill:#6C5CE7,color:#fff
style M fill:#00b894,color:#fff
style O fill:#0984e3,color:#fff
```
<hr/>
<div align="center">
## Architecture at a Glance
</div>
```mermaid
graph LR
subgraph UI["π₯οΈ Gradio Control Plane (port 7860)"]
APP[app.py\n2,311 lines]
end
subgraph ORCH["π§ Intelligence Layer"]
HO[hermes_orchestrator.py\nAutonomous Security Research]
VL[verification_loop.py\nRetry-with-Context]
CE[conviction_engine.py\nAuto-Merge Gate]
AR[adversarial_reviewer.py\n3-Model Consensus]
end
subgraph ANALYSIS["π¬ Analysis Engines"]
LR2[language_runtime.py\n7 Languages]
RTF[red_team_fuzzer.py\nCEGIS Engine]
FV[formal_verifier.py\nZ3 SMT Solver]
SYM[symbolic_engine.py\nAngr Symbolic Exec]
TA[taint_analyzer.py\nDataflow Analysis]
CI[cve_intel.py\nNVD + SSEC Algorithm]
end
subgraph SECURITY["π‘οΈ Security Gates"]
SG[sast_gate.py\nBandit + Secrets]
SC[supply_chain.py\npip-audit + Typosquat]
VC[vuln_classifier.py\nCWE β CVSS]
end
subgraph MEMORY["πΎ Memory & Learning"]
EM[embedding_memory.py\nSQLite / Qdrant]
TS[training_store.py\nData Flywheel]
LS[lora_scheduler.py\nFine-tune Export]
end
subgraph OUTPUT["π€ Output Layer"]
BG[bounty_gateway.py\nHackerOne / Bugcrowd]
WH[webhook_server.py\nPort 7861]
AL[audit_logger.py\nSHA-256 Chain]
end
APP --> ORCH
APP --> ANALYSIS
APP --> SECURITY
ORCH --> MEMORY
ANALYSIS --> SECURITY
SECURITY --> OUTPUT
MEMORY --> TS --> LS
```
<hr/>
<div align="center">
## Five Custom Algorithms β Built From Scratch
</div>
<table>
<tr>
<td width="20%" align="center"><b>VES</b><br/><sub>Vulnerability Entropy Score</sub></td>
<td>Quantifies how <em>surprising</em> a code path is. Combines cyclomatic complexity (via Radon), dataflow depth, and deviation from the repository's own baseline. High-VES paths are statistically anomalous execution routes that warrant deeper analysis β the mathematical definition of "this shouldn't work this way."</td>
</tr>
<tr>
<td width="20%" align="center"><b>TVG</b><br/><sub>Temporal Vulnerability Graph</sub></td>
<td>A directed graph over commit history that models how a single faulty assumption propagates through the codebase as other developers build on top of it. Identifies the root-cause commit, computes blast radius, and scores the danger of downstream dependents β giving patches a priority order.</td>
</tr>
<tr>
<td width="20%" align="center"><b>ACTS</b><br/><sub>Adversarial Consensus Trust Score</sub></td>
<td>Bayesian aggregation of three independent LLM adversarial reviews run concurrently. Each model votes APPROVE / REJECT / CONDITIONAL. The final score weights vote consistency, argument specificity, and historical calibration of each model against this codebase's fix patterns. Requires 2/3 majority.</td>
</tr>
<tr>
<td width="20%" align="center"><b>CAD</b><br/><sub>Commit Anomaly Detection</sub></td>
<td>Statistical outlier detection over git history. Computes a distribution of diff characteristics (size, churn, file types touched, message entropy) and flags commits that pattern-match against known silent security patches β the ones developers push without saying what they really fixed.</td>
</tr>
<tr>
<td width="20%" align="center"><b>SSEC</b><br/><sub>Semantic Similarity Exploit Chain</sub></td>
<td>Embeds known CVE exploit patterns using <code>microsoft/codebert-base</code> and runs cosine similarity against repository code at the function level. Surfaces "structurally resembles CWE-X" findings even before any test failure or crash β pure static semantic matching against 100+ historical exploit primitives.</td>
</tr>
</table>
<hr/>
<div align="center">
## The Security Research Pipeline (Hermes)
</div>
Beyond repair, the Hermes orchestrator runs a full autonomous vulnerability research sweep in six phases:
```mermaid
sequenceDiagram
participant H as π§ Hermes
participant R as π RECON
participant S as π¬ STATIC
participant D as π₯ DYNAMIC
participant E as βοΈ EXPLOIT
participant C as π³οΈ CONSENSUS
participant O as π HUMAN OPERATOR
H->>R: Clone + fingerprint + map attack surface
R->>S: Attack surface map + complexity scores
S->>S: Taint analysis + CWE matching + SSEC
S->>D: Confirmed code paths + VES scores
D->>D: Generate Hypothesis PBT harnesses
D->>E: Crash payloads + stack traces
E->>E: Classify primitives: overflow/UAF/race/injection
E->>C: All findings + exploit chains
C->>C: 3-model adversarial verdict
C->>O: PENDING_HUMAN_APPROVAL
O-->>O: Human reviews + clicks Approve
O->>O: Submit to HackerOne / GitHub Advisory
```
> **Nothing is submitted to any bug bounty platform without a human clicking "Approve & Submit."** The gate is enforced at the API call level in `bounty_gateway.py` β not just in the UI.
<hr/>
<div align="center">
## Supported Languages
</div>
<div align="center">
| Language | Detection | Test Runner | SAST Tool | Supply Chain |
|:---:|:---:|:---:|:---:|:---:|
|  | `pytest.ini` / `setup.py` | pytest / uv | Bandit + Semgrep | pip-audit |
|  | `package.json` | Jest / Mocha / Vitest | eslint-security | npm audit |
|  | `tsconfig.json` | Same as JS + tsc | Same as JS | npm audit |
|  | `pom.xml` / `build.gradle` | JUnit / TestNG | Semgrep-Java | OWASP dep-check |
|  | `go.mod` | go test | gosec | govulncheck |
|  | `Cargo.toml` | cargo test | clippy | cargo-audit |
|  | `Gemfile` | RSpec / Minitest | brakeman | bundle-audit |
</div>
Language detection is automatic. No configuration required β Rhodawk fingerprints the cloned repository and selects the correct runtime, test runner, SAST tool, and dependency auditor.
<hr/>
<div align="center">
## The MCP Server Suite β 25 Integrated Tools
</div>
<details>
<summary><b>Click to expand the full MCP server manifest</b></summary>
<br/>
| Server | Command | What It Does |
|---|---|---|
| `fetch-docs` | uvx mcp-server-fetch | Fetch CVE advisories, exploit PoCs, vendor bulletins β 40+ security domains allowlisted |
| `github-manager` | npx @modelcontextprotocol/server-github | Create PRs, open security advisories, query commit history |
| `filesystem-research` | npx @modelcontextprotocol/server-filesystem | Read-only access to cloned repos and research scratch space |
| `memory-store` | npx @modelcontextprotocol/server-memory | Persistent knowledge graph β exploit chains, CWE patterns, cross-session memory |
| `sequential-thinking` | npx @modelcontextprotocol/server-sequential-thinking | Structured chain-of-thought for multi-step vulnerability reasoning |
| `web-search` | npx @modelcontextprotocol/server-brave-search | Search CVEs, exploit PoCs, bug bounty writeups, research papers |
| `git-forensics` | npx @modelcontextprotocol/server-git | Deep git history: silent patches (CAD), blame tracking, anomaly detection |
| `postgres-intelligence` | npx @modelcontextprotocol/server-postgres | Query findings DB, scan history, vulnerability intelligence store |
| `sqlite-findings` | npx @modelcontextprotocol/server-sqlite | Fast queries on vulnerability metadata, CVSS scores, bounty estimates |
| `nuclei-scanner` | uvx mcp-server-shell (nuclei) | Template-based DAST, CVE detection, misconfiguration scanning |
| `semgrep-sast` | uvx mcp-server-shell (semgrep) | Taint analysis, CWE pattern matching, secrets detection β 30+ languages |
| `trufflehog-secrets` | uvx mcp-server-shell (trufflehog) | High-signal secret scanning with 700+ detectors across git history |
| `bandit-sast` | uvx mcp-server-shell (bandit) | AST-level Python SAST: injection sinks, insecure APIs, dangerous patterns |
| `pip-audit-sca` | uvx mcp-server-shell (pip-audit) | SCA via OSV and PyPI Advisory DB β known vulnerabilities in Python deps |
| `osv-scanner` | uvx mcp-server-shell (osv-scanner) | Multi-ecosystem SCA using the Open Source Vulnerability database (Google) |
| `z3-formal-verifier` | uvx mcp-server-shell (python3) | Z3 SMT solver β formal verification of integer bounds and overflow invariants |
| `hypothesis-fuzzer` | uvx mcp-server-shell (hypothesis) | Property-based testing: arithmetic overflow, encoding bugs, aliasing |
| `atheris-fuzzer` | uvx mcp-server-shell (atheris) | Coverage-guided libFuzzer-backed Python fuzzing for parser bugs |
| `angr-symbolic` | uvx mcp-server-shell (python3) | angr symbolic execution β binary analysis, path exploration, constraint solving |
| `radon-complexity` | uvx mcp-server-shell (radon) | Cyclomatic complexity + Halstead metrics + attack surface ranking |
| `ruff-linter` | uvx mcp-server-shell (ruff) | Ultra-fast linter detecting anti-patterns that correlate with security bugs |
| `aider-patcher` | uvx mcp-server-shell (aider) | Applies LLM-generated patches with diff verification and test re-run |
| `cve-intelligence` | uvx mcp-server-fetch (NVD) | Full CVE details, CVSS vectors, CWE mappings, affected version ranges |
| `bounty-platform` | uvx mcp-server-fetch | HackerOne / Bugcrowd / Intigriti / YesWeHack report submission |
| `supply-chain-monitor` | uvx mcp-server-fetch | PyPI typosquatting, dependency confusion, malicious package detection |
</details>
<hr/>
<div align="center">
## The Data Flywheel
</div>
Every fix attempt β successful or failed β is written to a structured training store. The schema captures the complete chain:
```
failing test β memory retrieval query β LLM prompt β
generated diff β SAST results β adversarial verdict β test outcome β human decision
```
This creates a proprietary fine-tuning dataset that compounds in value over time. After 50+ high-quality fixes accumulate, the LoRA scheduler exports a JSONL file ready for HuggingFace PEFT/TRL or AutoTrain:
```json
{
"messages": [
{"role": "user", "content": "<test failure trace + repo context + retrieved similar fixes>"},
{"role": "assistant", "content": "<verified diff that passed all 7 gates>"}
]
}
```
Each training cycle makes the model progressively better at fixing failures in your specific codebase. No external vendor has access to this data. It is yours.
<hr/>
<div align="center">
## Required API Keys
</div>
<table>
<tr>
<th width="30%">Variable</th>
<th width="15%">Required</th>
<th width="55%">Details</th>
</tr>
<tr>
<td><code>GITHUB_TOKEN</code></td>
<td align="center">β
Yes</td>
<td>Personal Access Token with <code>repo</code> + <code>security_events</code> scopes. Used to clone repos, open PRs, and create GitHub Security Advisories. <a href="https://github.com/settings/tokens">Create one here.</a></td>
</tr>
<tr>
<td><code>OPENROUTER_API_KEY</code></td>
<td align="center">β
Yes</td>
<td>All LLM calls route through OpenRouter. Default models are on the free tier β you can run this system at zero LLM cost. <a href="https://openrouter.ai/keys">Get a key here.</a></td>
</tr>
<tr>
<td><code>GITHUB_REPO</code></td>
<td align="center">β¬ Optional</td>
<td>Target in <code>owner/repo</code> format. Can also be supplied at runtime via the chat UI.</td>
</tr>
<tr>
<td><code>RHODAWK_AUTO_MERGE</code></td>
<td align="center">β¬ Optional</td>
<td>Default: <code>false</code>. Set to <code>true</code> to enable autonomous PR merge when all 7 conviction criteria pass.</td>
</tr>
<tr>
<td><code>RHODAWK_LORA_ENABLED</code></td>
<td align="center">β¬ Optional</td>
<td>Default: <code>false</code>. Set to <code>true</code> to activate the LoRA fine-tune export pipeline.</td>
</tr>
<tr>
<td><code>DB_BACKEND</code></td>
<td align="center">β¬ Optional</td>
<td>Default: <code>sqlite</code>. Set to <code>postgres</code> with <code>DATABASE_URL</code> for production persistence.</td>
</tr>
<tr>
<td><code>HACKERONE_API_KEY</code></td>
<td align="center">β¬ Optional</td>
<td>Enables HackerOne report submission from the bounty gateway (human approval still required).</td>
</tr>
<tr>
<td><code>NVD_API_KEY</code></td>
<td align="center">β¬ Optional</td>
<td>Unlocks higher rate limits on the NIST NVD CVE API. Free to request at nvd.nist.gov.</td>
</tr>
<tr>
<td><code>BRAVE_API_KEY</code></td>
<td align="center">β¬ Optional</td>
<td>Enables Brave Search MCP tool for the Hermes web search capability.</td>
</tr>
</table>
<hr/>
<div align="center">
## Running Locally
</div>
### Step 1 β Clone
```bash
git clone https://github.com/Rhodawk-AI/Rhodawk-devops-engine.git
cd Rhodawk-devops-engine
```
### Step 2 β Install Python dependencies
```bash
pip install -r requirements.txt
```
> `atheris` is excluded from requirements β it requires Clang + libFuzzer at compile time, unavailable on most CI images. The system automatically falls back to `hypothesis` for all fuzzing tasks.
### Step 3 β Install MCP servers
```bash
npm install -g \
@modelcontextprotocol/server-github \
@modelcontextprotocol/server-memory \
@modelcontextprotocol/server-filesystem \
@modelcontextprotocol/server-sequential-thinking \
@modelcontextprotocol/server-brave-search \
@modelcontextprotocol/server-git
```
### Step 4 β Configure environment
```bash
export GITHUB_TOKEN="ghp_your_token_here"
export OPENROUTER_API_KEY="sk-or-your_key_here"
export GITHUB_REPO="owner/repo" # optional β can set in UI
mkdir -p /data
```
### Step 5 β Run
```bash
python -u app.py
```
Gradio UI: `http://localhost:7860`
Webhook server: `http://localhost:7861`
<hr/>
<div align="center">
## Docker
</div>
```bash
# Build
docker build -t rhodawk-ai .
# Run
docker run -d \
-p 7860:7860 \
-p 7861:7861 \
-v rhodawk_data:/data \
-e GITHUB_TOKEN="ghp_your_token_here" \
-e OPENROUTER_API_KEY="sk-or-your_key_here" \
-e GITHUB_REPO="owner/target-repo" \
rhodawk-ai
```
<hr/>
<div align="center">
## HuggingFace Spaces Deployment
</div>
```
1. Go to: huggingface.co/spaces/Architect8999/rhodawk-ai-devops-engine
2. Duplicate the Space (top-right button)
3. Add Secrets in Space Settings:
GITHUB_TOKEN β your GitHub PAT
OPENROUTER_API_KEY β your OpenRouter key
4. The Space builds and runs automatically via the included Dockerfile
```
<hr/>
<div align="center">
## Event-Driven Mode β GitHub Webhook
</div>
Make Rhodawk trigger automatically on every CI failure:
```
GitHub repo β Settings β Webhooks β Add webhook
Payload URL: https://your-space.hf.space/webhook/github
Content type: application/json
Secret: (set RHODAWK_WEBHOOK_SECRET to the same value)
Events: Push, Check runs, Status
```
From this point forward, every failing CI run triggers the full autonomous repair loop with no manual intervention.
Supported webhook endpoints:
```
POST /webhook/github GitHub push / check_run / status (HMAC-SHA256 validated)
POST /webhook/ci Generic CI failure payload (any CI system)
POST /webhook/trigger Manual trigger with repo + test path
GET /webhook/health Health check
GET /webhook/queue Current job queue status
```
<hr/>
<div align="center">
## Repository Structure
</div>
<details>
<summary><b>Click to expand β all 42 source files with descriptions</b></summary>
<br/>
```
rhodawk-devops-engine/
β
βββ ποΈ CONTROL PLANE
β βββ app.py Main entry point. Gradio UI + full audit loop. (2,311 lines)
β βββ webhook_server.py Event-driven server on port 7861. GitHub/CI webhooks.
β
βββ π§ INTELLIGENCE
β βββ hermes_orchestrator.py 6-phase autonomous security research agent. (715 lines)
β βββ adversarial_reviewer.py 3-model concurrent consensus code review.
β βββ verification_loop.py Retry-with-context fix loop.
β βββ conviction_engine.py 7-criteria auto-merge gate.
β
βββ π LANGUAGE RUNTIMES
β βββ language_runtime.py Python/JS/TS/Java/Go/Rust/Ruby abstraction. (1,540 lines)
β
βββ π΄ RED TEAM ENGINE
β βββ red_team_fuzzer.py CEGIS autonomous attack engine. (1,561 lines)
β
βββ π¬ ANALYSIS
β βββ taint_analyzer.py Dataflow taint: source-to-sink tracking.
β βββ symbolic_engine.py Angr symbolic execution + path exploration.
β βββ formal_verifier.py Z3 SMT: integer overflow + invariant proofs.
β βββ fuzzing_engine.py Hypothesis PBT harness generator.
β βββ exploit_primitives.py Overflow / UAF / race / injection classification.
β βββ harness_factory.py PoC harness compiler for operator-reviewed gaps.
β βββ chain_analyzer.py Multi-primitive vulnerability chain synthesizer.
β βββ commit_watcher.py CAD: silent security patch detection.
β βββ repo_harvester.py Autonomous target repository selection.
β βββ semantic_extractor.py AST-level feature extraction for VES scoring.
β
βββ π‘οΈ SECURITY GATES
β βββ sast_gate.py Bandit + 16-pattern secret scanner.
β βββ supply_chain.py pip-audit + typosquatting detection.
β βββ vuln_classifier.py CWE taxonomy β CVSS scoring β severity.
β βββ cve_intel.py NVD/CVE API + SSEC algorithm.
β
βββ πΎ MEMORY & LEARNING
β βββ embedding_memory.py Dual-backend: SQLite/MiniLM or Qdrant/CodeBERT.
β βββ memory_engine.py Fix outcome tracking + similarity retrieval.
β βββ training_store.py SQLite/Postgres training data flywheel.
β βββ lora_scheduler.py LoRA fine-tune export scheduler.
β
βββ π€ OUTPUT & DISCLOSURE
β βββ bounty_gateway.py HackerOne / Bugcrowd / GitHub Advisories gateway.
β βββ disclosure_vault.py 90-day coordinated disclosure timeline vault.
β βββ audit_logger.py Append-only SHA-256 tamper-evident audit trail.
β βββ public_leaderboard.py Fix success rate leaderboard.
β
βββ βοΈ INFRASTRUCTURE
β βββ github_app.py GitHub App JWT authentication.
β βββ job_queue.py Job queue with status tracking + metrics.
β βββ worker_pool.py Parallel audit worker pool.
β βββ notifier.py Slack/webhook notification dispatch.
β βββ swebench_harness.py SWE-bench Verified evaluation harness.
β
βββ π¦ CONFIGURATION
β βββ mcp_config.json 25-server MCP suite configuration (template, no secrets).
β βββ Dockerfile Two-stage build: Python 3.12-slim + Node.js for MCP.
β βββ requirements.txt Python dependencies (31 packages).
β βββ FOUNDER_PLAYBOOK.md Full technical + investor documentation. (1,119 lines)
β βββ SECURITY_RESEARCH_PLAYBOOK.md Ethical AVR operator guide.
```
</details>
<hr/>
<div align="center">
## Security by Design
</div>
| Principle | Implementation |
|---|---|
| **No hardcoded secrets** | Every credential is loaded from environment variables. The codebase contains zero API keys. |
| **MCP runtime injection** | `mcp_config.json` is a template. Secrets are written to `/tmp/mcp_runtime.json` at startup β never committed. |
| **Tamper-evident audit trail** | `audit_logger.py` maintains a SHA-256 chain across all log entries. Any modification to historical records is detectable. |
| **Human-gated disclosure** | `bounty_gateway.py` enforces approval at the API call level. Removing the UI button does not bypass the gate. |
| **Formal patch verification** | Z3 proves bounded integer invariants on every AI-generated diff before any merge can occur. |
| **SSRF prevention** | All MCP fetch tools operate against `FETCH_ALLOWED_DOMAINS` allowlists. Outbound requests are restricted to explicitly permitted security domains. |
| **Coordinated disclosure** | 90-day Google Project Zero-standard disclosure timeline tracked per finding in `disclosure_vault.py`. |
<hr/>
<div align="center">
## Default LLM Models
</div>
All default models are on OpenRouter's free tier. This system runs at zero LLM cost out of the box.
| Role | Default Model | Override Variable |
|---|---|---|
| Code Fix Generation | `qwen/qwen-2.5-coder-32b-instruct:free` | `RHODAWK_MODEL` |
| Hermes Orchestrator | `deepseek/deepseek-r1:free` | `HERMES_MODEL` |
| Hermes Fast Tasks | `deepseek/deepseek-v3:free` | `HERMES_FAST_MODEL` |
| Adversarial Review #1 | `deepseek/deepseek-r1:free` | `RHODAWK_ADVERSARY_MODEL` |
| Adversarial Review #2 | `meta-llama/llama-3.3-70b-instruct:free` | hardcoded fallback |
| Adversarial Review #3 | `google/gemma-3-27b-it:free` | hardcoded fallback |
<hr/>
<div align="center">
<img src="https://capsule-render.vercel.app/api?type=waving&color=0:0f3460,50:16213e,100:1a1a2e&height=120§ion=footer&animation=fadeIn" width="100%"/>
**Every feature in this README is implemented in the files above.**
**No mocks. No stubs. No vaporware. The pipeline runs end-to-end.**
<br/>
[](https://huggingface.co/spaces/Architect8999/rhodawk-ai-devops-engine)
<br/>
<sub>Rhodawk AI Β· Autonomous DevSecOps Control Plane v4.0 Β· Proprietary License</sub>
</div>
|