The first version of Wampum tried to be too many things at once. By mid-November it had grown to 64 files in WorkbenchCore, a text editor, a 22-chapter document generator, a UTM guest controller, and a local chat wrapper. On this Mac mini M4, Apple's Command Line Tools drifted to a Swift 6.3.3 compiler against a 6.3.2 SDK with no XCTest, breaking local test runs before a single assertion executed.
The bigger failure happened inside Ollama. Small local models choke when an app dumps 84 KB of source files into a single prompt and asks for a clean unified diff. Worse, when we tested huihui_ai/qwen3.5-abliterated:9b live against /api/generate with format: "json", Ollama burned 20.94 seconds inside thinking tokens and returned an empty response string three attempts in a row. Passing "think": false with "num_predict": 320 fixed it immediately: the same local model returned valid JSON on Attempt 1 in 5.54 seconds.
Wampum 2.1 starts from scratch with the same Rockaway marshes icon and one job: authorized client penetration testing for MDRN Red Team Sec. Every core engine file is Python 3 stdlib plus SQLite. The macOS desktop app (Wampum.app) compiles in one second using ABI-stable Objective-C ARC (clang -O2 -fobjc-arc -framework Cocoa -framework WebKit), launches the loopback server on an ephemeral 127.0.0.1 port with a per-run CSRF token, and shuts it down cleanly on quit.
Where Agentic Pentest Suites Break
Before writing a line of v2, I audited 15 open-source pentesting tools side by side, including Nebula, PentAGI, Shannon, Strix, RedAmon, HexStrike, BugTraceAI, CyberStrike, and Cairn. The failure patterns repeat across the category:
- Unbounded scope execution: Agents accept a target string, follow redirects off-domain, or test mistyped government infrastructure because no hard contract sits between the planner and the socket.
- Noisy scanner dumps: Raw directory fuzzers flood the operator with hundreds of identical soft-404 responses, and subdomain tools treat non-reclaimable ELB or CloudFront CNAMEs as takeovers.
- Unverified model claims: Models invent CVSS 10.0 scores and write "confirmed breach" narratives from a single HTTP 200 without comparing owner, unauthenticated, and cross-tenant baselines.
- Infinite local-model loops: Small models repeat the same malformed JSON or the same endpoint check until the session times out.
Blue-Side Architecture: Fail-Closed Gates and Pinned Receipts
Wampum 2.1 puts deterministic code in front of every outbound request, every model proposal, and every line of a client report.
Rules-of-Engagement Contract Gate (wampum/scope.py). Nothing runs without an active signed scope contract hashed by SHA-256. Every check validates exact or wildcard domains, CIDRs, allowed ports, excluded destructive paths such as /admin/delete, and the engagement time window. A non-disableable guardrail blocks .gov, .mil, .gouv.fr, .europa.eu, and .int domains even if an operator mistypes them into a scope file.
Surface Mapping and Offline Analyzers (wampum/runners.py, wampum/importers.py, wampum/analyzers.py). The OpenAPI 3.x parser extracts routes and automatically flags {id} and {invoiceId} paths as OWASP API1:2023 BOLA candidates. Importers for Nmap XML, FFUF JSON, Semgrep JSON, and Nuclei JSONL pin raw tool bytes by SHA-256 on ingest and demote uniform soft-404 buckets. Offline analyzers audit JWT headers and claims (CWE-347, CWE-613, CWE-200, redacting sensitive keys) and scan pasted bundles for source maps, stack traces, and debug flags without touching the network.
Approval-Gated Active Probes (wampum/runners.py). The passive HTTP inspector refuses automatic redirects so a target cannot bounce probes out of scope, auditing HSTS (CWE-319), CSP (CWE-693), wildcard CORS with credentials (CWE-942), cookie flags (CWE-1004, CWE-614), and version banners. The 3-way BOLA verifier compares owner, unauthenticated, and cross-tenant responses, demotes public boilerplate, and strips auth headers and query strings before pinning the SHA-256 receipt.
4K Local Qwen Micro-Tasks (wampum/qwen_adapter.py). Instead of open-ended chat, Qwen receives strict JSON micro-prompts capped at 2,400 characters (num_ctx: 4096, think: false). A 3-attempt schema Reflector repairs malformed JSON, a SessionBudget guard blocks identical action loops and caps total calls, and every suggested target immediately passes through authorize_target and FindingGate.
payload = json.dumps(
{
"model": model,
"prompt": prompt[:MAX_PROMPT_CHARS],
"stream": False,
"think": False,
"format": "json",
"options": {"num_ctx": 4096, "temperature": 0.1, "num_predict": 320},
}
).encode("utf-8")
Deterministic CVSS v3.1, Retest Pairing, and Exports (wampum/compliance.py, wampum/ledger.py, wampum/report.py). FindingGate blocks unpinned receipts, cross-engagement receipt reuse, missing operator approval, and overclaim phrasing. CVSS v3.1 scores compute mathematically from operator-selected vectors (AV/AC/PR/UI/S/C/I/A). Pairing a post-fix retest_receipt_id moves a finding from PROMOTED to REMEDIATED_VERIFIED. Deliverables export as client Markdown (with an OWASP API/Web/LLM Top 10 matrix), OASIS SARIF 2.1.0 JSON, or a portable lineage bundle JSON.
Verified Results and Honest Limits
The built-in loopback playtest server (wampum/playtest_target.py) lets an operator rehearse the entire loop offline: parse /openapi.json (3 endpoints), confirm STRONG_BOLA on /api/v1/invoices/101, block /admin/delete as an excluded path, toggle the simulated client patch, and verify NO_BOLA on retest.
make test
# Ran 15 tests in 0.006s (OK)
make install
open /Applications/Wampum.app
Live verification against local huihui_ai/qwen3.5-abliterated:9b completed qwen_suggest_next_check in 5.54 seconds (Attempt 1, RoE allowed=True) and qwen_draft_finding in 6.75 seconds (Attempt 1, FindingGate passed). In that draft, Qwen misread the label STRONG_BOLA as "Strong BOLA protection" in one clause, proving why operator review stays mandatory before any finding enters a report. All 15 unit tests and the loopback playtest target run offline on synthetic data; no external client system was contacted during verification.
GhostInThePrompt.com // Keep the model on a short leash and hash every receipt.