Published Research, MCP v2.5 Architecture & Standards Mapping

Why frontier coding models regress on multi-file software—and how a deterministic MCP server helps break the loop.

Rather than publishing self-graded marketing benchmarks, we ground our engineering in two things anyone can verify independently: (1) published research measuring where unassisted frontier models fail on real software tasks, and (2) live, deterministic tools you can connect to Claude Code, Cursor, Windsurf, or Antigravity today via resonantexo.com.

00 · In Plain English

The short version: why AI-written code needs a fast, automatic inspector

AI coding assistants can write working code in seconds. The trouble starts as a project grows. An assistant is a little like a gifted contractor who arrives each morning without the building’s blueprints: it does excellent work on the wall in front of it, but it can’t always see the plumbing behind that wall, and it may not remember yesterday’s change of plans. The research below measures exactly that gap.

What the studies found, in everyday terms. (1) Working is not the same as safe. In CWEval, leading models produced code that passed its tests about 80% of the time, but only about half of it was also free of well-known security flaws. BaxBench found exploitable weaknesses in roughly half of the backend programs that otherwise worked. (2) Long histories cause forgetting. In LongMemEval, a leading model answered 87% of questions correctly when handed just the relevant facts, but only 61% when it had to dig them out of a long conversation history—especially when facts had changed along the way. (3) Assistants can be misled by what they read. AgentDojo showed that instructions hidden inside documents or tool results can steer an assistant off task.

Why better instructions alone don’t fix this. Rules written into a prompt are suggestions, and they compete with everything else the model is reading. As a project grows, written rules get diluted or overlooked. The dependable fix is the one engineering has always used: check the work itself, automatically, every time.

What Resonant does about it. Resonant is a set of small, automatic checks that an AI assistant calls while it works. They don’t ask another AI for an opinion; they run ordinary code, so the same input always gets the same answer, typically in a few thousandths of a second.

  • A building inspector before the drywall goes up (resonant_verify_cegar): before a change is saved, Resonant runs the edited function with tricky inputs—an empty list, a zero, a missing value—and compares the old and new behavior, flagging crashes, broken promises to other code, and common security shortcuts.
  • The right folder, not the whole filing cabinet (resonant_architect_orient): instead of feeding the assistant entire files, it hands over the function being changed, the code that depends on it, and the files that have historically changed alongside it—about 87% less reading in our benchmarks, which saves cost and keeps attention on what matters.
  • Sticky notes that fall off when things change (resonant_memory_jtms): design notes are tied to a fingerprint of the code they describe. Edit that code, and the note is automatically marked out of date, so the assistant isn’t guided by stale assumptions.
  • Learning from each fix (resonant_evolve_guardrail): when a bug is fixed, Resonant turns the change into a reusable pattern and watches for the same mistake in future edits.
  • Checking the receipts (resonant_honesty_audit): when an assistant reports “done, all tests pass,” Resonant checks the named files, functions, and test results against what actually exists.

Why it matters. For a developer, it means fewer surprises in code that “looked fine.” For a team, it means AI speed without giving up review discipline. For anyone paying the bill, it means fewer wasted AI calls. These checks catch common, well-understood classes of mistakes; they complement—not replace—thorough testing and human review.

How to read the numbers below. “@1” scores (such as pass@1) are the share of first attempts that succeed. “Sec” or “Func-Sec” scores count an attempt only if it both works and passes the security checks. The gap between the two is the hidden risk.

01 · Published Research (The Industry Problem)

What Independent Research Shows About Unassisted Frontier Models

Every figure below is quoted from the cited paper (arXiv versions linked) and can be checked against the authors’ published tables. Together, they explain why prompting alone does not prevent regressions, security shortcuts, or forgotten architecture rules.

Paper & Dataset Size Metric Evaluated Published Model Scores (From Paper) Engineering Failure Mode Identified
CWEval (Jan 2025)
Peng et al. • arXiv:2501.08200
Table I (n=100, temp 0.8)
Func@1 (passes unit tests) vs. Func-Sec@1 (passes unit tests and avoids CWE vulnerabilities) gpt-4o-2024-08-06:
Func@1: 80.81% → Func-Sec@1: 50.21%
claude-3-5-sonnet-20241022:
Func@1: 78.16% → Func-Sec@1: 46.69%
Large drop (~31 percentage points) between functionally working code and code free of common security shortcuts.
BaxBench (Feb 2025)
Vero et al. (ETH Zurich) • arXiv:2502.11844
392 backend tasks, 14 frameworks
pass@1 (functional) vs. sec_pass@1 (functional and passes end-to-end exploit tests) OpenAI o3-mini (Top Model):
sec_pass@1: 35%
OpenAI o1:
pass@1: 62.0% (~50% vulnerable)
Even top reasoning models generate vulnerable backend routes on roughly half of functionally working solutions.
LongMemEval (ICLR 2025)
Wu et al. • arXiv:2410.10813
500 multi-session questions (~115k tokens)
End-to-end QA accuracy over full multi-session history vs. clean oracle evidence snippets gpt-4o-2024-08-06:
Oracle evidence: 87.0% → Full History: 60.6%
30.3% relative accuracy drop (87.0% → 60.6%) when models must track temporal knowledge updates and superseded facts across long histories.
AgentDojo (NeurIPS 2024)
Debenedetti et al. (ETH Zurich) • arXiv:2406.13352
Table 3 (97 agent tasks)
Benign Utility vs. Utility Under Attack when tool outputs contain untrusted instructions Claude 3 Opus:
Benign: 66.61% → Under Attack: 52.46%
Claude 3.5 Sonnet:
Benign: 78.22% → Under Attack: 51.19%
Capable tool-using models follow instructions embedded inside untrusted external data unless control flow and data flow are separated (CaMeL, arXiv:2503.18813).
02 · Deterministic MCP v2.5 Tool Architecture (7/7 Tools + Prompts + Resources)

How Resonant MCP Addresses These Failure Modes Without Extra LLM Tokens

Instead of asking an LLM to grade its own code, Resonant MCP (resonant-exocortex v2.5) exposes seven deterministic Python AST, bytecode, SARIF v2.1.0, and SQLite tools with MCP 2025-03-26 Tool Annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint: false), plus 3 workflow Prompts and 3 Resources over standard JSON-RPC 2.0:

MCP Tool Name Plain-English Explanation (Why It Matters) Deterministic Mechanism (0 LLM Tokens) Foundational CS & Published References
resonant_verify_cegar
readOnlyHint: true
Tests code in milliseconds instead of asking a second AI to “guess”: Runs the edited function in a safe memory sandbox against tricky edge cases (0, -1, None, empty lists []) and checks 40+ security and 60fps UI rules (including UI_SEQ_IN_MEMO_SIG) before saving. Compares old_code vs. code via AST contract diffing and sandboxed Python bytecode execution across boundary inputs, returning JSON or OASIS SARIF v2.1.0 (format: "sarif") in <2ms. • Counterexample-Guided Search (CEGAR-inspired): Clarke et al. (CAV 2000)
• AI Security Gaps: CWEval (2025), BaxBench (2025), MITRE CWE
resonant_architect_orient
readOnlyHint: true
Maps exact callers and Git partners instead of dumping whole files: Keyword/vector search chops files into arbitrary text paragraphs and misses hidden callers. Resonant sends only the target function, its callers in other files, and files that historically changed together in Git (~87% fewer tokens). Extracts function preconditions (P), state mutations (C), postconditions (Q), call-graph fan-in/fan-out, and empirical Git co-change probabilities P(Δf_j | Δf_i). • Hoare Contracts: Hoare (CACM 1969)
• Git Co-Change Mining: Zimmermann et al. (IEEE TSE 2005)
• Program Slicing: Weiser (IEEE TSE 1984)
resonant_memory_jtms
idempotentHint: true
Project notes that automatically expire when code changes: Standard AI memory stores static text notes that quietly go out of date when code is refactored (“memory rot”). Resonant fingerprints the actual code structure so notes self-invalidate the instant that function changes. Stores architectural decisions in a SQLite graph bound to the SHA-256 hash of the normalized AST of the target function, auto-flagging STALE_AST_DRIFT in <1.5ms. • Truth Maintenance (JTMS): Doyle (Artificial Intelligence 1979)
• Memory Drift Benchmark: Wu et al., LongMemEval (ICLR 2025)
resonant_evolve_guardrail
idempotentHint: true
Turns one-time bug fixes into reusable 0-token checks: Instead of stuffing more text warnings into a prompt file that costs tokens on every turn, Resonant generalizes the line that fixed the bug into a reusable pattern and flags similar code in future edits at zero token cost. Generalizes the changed line between broken_code and fixed_code with token-level anti-unification (identifiers become linked placeholders) and stores a <1ms pattern check in SQLite, weighted by how often it proves useful. • Anti-Unification (inspired by LGG): Plotkin (Machine Intelligence 1970)
• Syntactic Edit Synthesis: Rolim et al. (IEEE/ACM ICSE 2017)
resonant_honesty_audit
readOnlyHint: true
Fact-checks AI completion claims against real files and test runs: Catches the AI claiming “all tests passed” or citing non-existent line numbers without proof receipts. Decomposes draft responses into atomic claims and verifies each against live AST symbol indexes, file paths, and the recorded test exit code (PROVED, HYPOTHESIS, REFUTED). • Proof-Carrying Code: Necula (ACM POPL 1997)
• Atomic Fact Verification: Min et al., FActScore (EMNLP 2023)
resonant_ci_gate
readOnlyHint: true
Enforces identical pre-save rules in GitHub Actions / GitLab CI: Prevents unverified commits or Pull Requests from bypassing editor checks. Evaluates modified file diffs (old_code vs. code) against differential equivalence, evolved AST guardrails, and JTMS drift, emitting JSON or OASIS SARIF v2.1.0. • OASIS SARIF v2.1.0 Standard: OASIS Committee Spec
resonant_product_telemetry
readOnlyHint: true
Quantifies FinOps token savings and blocked regressions: Gives engineering leads live visibility into context compression and verification throughput. Aggregates SQLite WAL telemetry counters for raw tokens avoided (~87% compression in benchmark runs), 0-token verifications run, CEGAR bugs caught, and estimated API cost saved. • FinOps & Green AI Telemetry: Sub-2ms local CPU verification vs. multi-second LLM-as-a-Judge calls.
03 · Security, Governance & Interoperability Mapping

Technical Controls Mapped to 8 Industry Standards

For security architects and technical evaluators, the table below maps Resonant MCP (v2.5) and Resonant Cloud engineering controls directly to eight recognized security, AI risk-management, and static-analysis standards:

Standard / Framework Specific Risk or Requirement Addressed Resonant Deterministic Control & Verification Receipt
1. OWASP Top 10 for LLM Apps (2025) LLM01:2025 Prompt Injection, LLM02:2025 Sensitive Information Disclosure, LLM05:2025 Improper Output Handling, LLM06:2025 Excessive Agency Separates control flow from untrusted data, blocks hardcoded secrets/URL query keys (CWE-598), audits generated code before disk write, and declares strict MCP readOnlyHint / destructiveHint: false tool annotations.
2. OWASP Top 10 for Agentic Apps (2026) ASI01 Agent Goal Hijack, ASI02 Tool Misuse, ASI05 Unexpected Code Execution, ASI06 Memory & Context Poisoning Runs candidate code in a restricted AST/bytecode sandbox (no network/filesystem I/O), binds JTMS memory to normalized AST SHA-256 hashes so poisoned or stale notes auto-expire, and enforces deterministic pre-save gates.
3. MITRE CWE Top 25 & CWEval CWE-78 OS Command Injection, CWE-79 XSS, CWE-89 SQLi, CWE-22 Path Traversal, CWE-208 Timing Attack, CWE-338 Weak PRNG, CWE-347 JWT, CWE-502 Deserialization, CWE-918 SSRF, CWE-598 Secrets in URLs Built-in polyglot AST and regex detectors in tb_cs_engine.py detect these 10 high-frequency AI security shortcuts in <2ms prior to file save or PR merge.
4. NIST AI RMF 1.0 & GenAI Profile (AI 600-1) MEASURE 2.5 (AI system reliability & validity), MANAGE 2.2 (mechanisms to sustain value & catch drift), GOVERN 1.2 Provides reproducible pre-save counterexample receipts (resonant_verify_cegar), automated AST-drift invalidation (STALE_AST_DRIFT), and atomic claim auditing (resonant_honesty_audit).
5. AI Lifecycle Auditability (ISO/IEC 42001 Clauses 8–9 Mapping) Lifecycle operational controls and queryable verification audit trails Maintains a queryable SQLite WAL ledger of architectural beliefs, evolved AST guardrails, and verification pass/fail telemetry via resonant://telemetry/finops-ledger.
6. Access, Isolation & Change Controls (CC6/CC7/CC8 Mapping) Logical access & tenant isolation, uptime monitoring, and pre-merge change verification Enforces constant-time hmac.compare_digest API key checks, per-tenant isolated SQLite databases, 24/7 Google Cloud Monitoring HTTPS probes, and resonant_ci_gate pre-merge verification.
7. GDPR & CCPA Data Minimization Transient processing of developer source code and absence of cross-site tracking cookies Source code submitted to /api/mcp is parsed transiently in RAM solely to return verification JSON/SARIF and is not persisted to disk or used for model training (Privacy Policy).
8. OASIS SARIF v2.1.0 & MCP 2025-03-26 Interoperable static-analysis reporting and standardized AI agent tool/prompt/resource discovery Emits schema-validated OASIS SARIF v2.1.0 (format: "sarif") for GitHub Code Scanning / GitLab SAST and serves /.well-known/mcp.json, /.well-known/agent.json, and RFC 9116 /.well-known/security.txt.
04 · Scope & Direct Verification

How to Test It Yourself

1. Test live in 30 seconds: Point Claude Code, Cursor, Windsurf, or Antigravity to https://resonantexo.com/api/mcp (instructions on resonantexo.com) and ask your AI to run resonant_verify_cegar (with format: "json" or format: "sarif") on a function refactor or resonant_architect_orient on a multi-file snippet.

2. What static and bytecode checks can and cannot do: Deterministic AST contract checking, boundary bytecode falsification, and AST-linked memory catch common AI regressions (dropped None/0 checks, signature drift, blocked async loops, 60fps UI memoization bugs, CWE shortcuts, and stale architectural notes) in milliseconds at zero token cost. They complement—rather than replace—domain unit tests and human engineering review.