# Isolated AI Code Review, Untrusted PR Audit & Security Patch Verification API (`https://toolsenabled.ai/agents/autonomous-security-dependency-audit-api/`)

Reproduce vulnerabilities, test untrusted PR branches, and generate regression-verified security patches on TESI's external Linux computer (`1 vCPU, 2 GB RAM, 4 GB disk`) without exposing developer laptops or internal VPC CI runners.

- **Air-gapped from your internal VPC:** Runs outside your corporate network and cloud IAM credentials.
- **Fail-closed local secret guard:** `tesi_work(sourceDir=...)` and `tesi-receipt.py --pack-project` block `.env*`, private keys, `key.json`, binaries, symlinks, and bearer tokens locally before sending a byte.
- **Hard prepaid spend caps:** One-time **$10 / $25 / $50 / $100 USD** packs (`TESI-Topup-Mode: manual`, $0/mo recurring).

## CLI / Agent Workflow

```bash
# 1. Pack module locally (secret-checked) and quote admission credit for free:
python3 -I tesi-receipt.py --file audit.json --pack-project ./target-module \
  --prompt "Audit parser.py for path traversal and input-size DoS, write a failing PoC test, patch parser.py, and confirm pytest passes."
python3 -I tesi-receipt.py --file audit.json --check-credit

# 2. Execute on TESI's isolated Linux VM and extract mode-0600 verified files:
python3 -I tesi-receipt.py --key-file ./tesi-purchase/key.json --file audit.json --submit --no-checkout --wait 120 --reply-file audit-reply.md
python3 -I tesi-receipt.py --extract-files ./verified-fix --reply-file audit-reply.md
```

- **Fund a $10 USD Audit Key:** [`https://toolsenabled.ai/agents/?agentPack=1000#agent-funding`](https://toolsenabled.ai/agents/?agentPack=1000#agent-funding)
- **Full Agent API Hub:** [`https://toolsenabled.ai/agents/`](https://toolsenabled.ai/agents/)
