Versus

skill
Guvenlik Denetimi
Uyari
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 8 GitHub stars
Code Uyari
  • Code scan incomplete — No supported source files were scanned during light audit
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Adversarial verification layer for AI coding assistants. Based on IACDM — Interactive Adversarial Convergence Development Methodology. The AI proposes. Versus critiques.

README.md

Versus

An enforced verification process for AI coding agents

VS Marketplace
Open VSX
License
IACDM
Data
Author

The agent may request advancement. It cannot grant it.


Versus is the reference implementation of IACDM — Interactive Adversarial Convergence Development Methodology — an 8-phase process for AI-assisted software development. It ships as editor extensions for several coding agents. Each one puts the methodology in a state machine outside the model: phase gates, exit criteria and safeguards that the agent cannot talk its way past.

This repository is the family's home: the methodology, the builds, and how they relate. Each build's own repository holds its installation guide and changelog.

IACDM and Iterative Convergence name the same method: IACDM is the formal acronym used in the paper; Iterative Convergence is the operational name used in the tools.


The problem no tool solves

In 2025, the METR randomized controlled trial tested 16 experienced developers on 246 real tasks using Cursor Pro with Claude 3.5/3.7 Sonnet. Before starting, developers predicted AI would speed them up by 24%. After use, they believed they had been 20% faster.

Objective measurement: they were 19% slower.

A 39-percentage-point gap between perception and reality. Other trials report gains, and the paper argues the disagreement is informative: results are favourable where the task arrives with an oracle — a criterion, such as an existing test suite, that decides without a human whether the result is correct — and fall where that criterion must be built alongside the solution.

The same year, 10.3% of the applications on Lovable's showcase (170 of 1,645) exposed sensitive data through misconfigured or absent access policies — 303 endpoints leaking names, emails, payment data and API keys (CVE-2025-48757).

Why every AI coding tool has this problem

Every LLM — Claude, GPT, Gemini, Qwen, Kimi — operates as a stochastic generator:

P(tokenₙ | token₁, ..., token_{n-1})

Output is optimized for statistical plausibility, not correctness. Absent external tool use, a model cannot determine whether what it generated is correct. This is the verification gap, and it is a structural property of the architecture, not of any tool.

The distinction is not between tools. It is between two modes of operation.

Without methodology (any tool) With Iterative Convergence (any tool)
prompt → GA → artifact → delivery design → G₀ → critique → G₁ → … → Gₙ → delivery
Verification gap open Discrete gates with VA-automatic and VA-human
Errors detected at t = production Errors detected at t = gate_k

GA = Generative Agent (the LLM). VA = Verification Agent (automatic or human). Gₖ = gate at phase k.


What Versus does

Versus orchestrates the whole development cycle — from problem discovery to post-review — and enforces it.

  • Phase gates are executable vetoes. A transition is refused while any exit criterion is unmet or any applicable safeguard is violated. Only two moves are legal: advance one phase, or loop between critique and simplification.
  • Some criteria cannot be satisfied by assertion. The architecture, the coverage matrix and the post-review lessons must exist as files under specs/. Tests passing is recorded only by the hook that watched the test run — the agent has no tool that writes it.
  • Code is blocked during design. In Phases 0–4, creating, editing or deleting code (including through the shell) is denied.
  • Completion is verified. From Phase 5 on, the turn cannot end while the project fails to type-check, lint or pass its tests — and the check fails open when no toolchain is detected.
  • Blind debugging is stopped. Three consecutive failing test runs without a recorded diagnosis block the next run; a passing run or a named cause clears the counter.
  • State survives the conversation. Phase, decisions, criteria and the Phase 0 score live in .versus/state.json; domain knowledge lives in specs/. All builds share the format, so a project can move between agents mid-methodology.

The 8 phases

flowchart TD
    subgraph row1["Design"]
        P0["0 · Problem Discovery"] --> P1["1 · Architecture"]
        P1 --> P2["⚔️ 2 · Adversarial Critique"]
        P2 --> P3["3 · Simplification"]
        P3 -->|"Δ ≥ 15% or critical"| P2
    end

    subgraph row2["Build"]
        P4["4 · Convergence Gate"] --> P5["5 · Code Implementation"]
        P5 --> P6["6 · Tests"]
        P6 --> P7["7 · Post-Review"]
    end

    P3 -->|"Δ < 15%, zero critical"| P4

    style P2 fill:#4a1942,color:#fff,stroke:#9b59b6
    style row1 fill:#111,stroke:#444
    style row2 fill:#111,stroke:#444
# Phase Gate Primary VA What the gate verifies
0 Problem Discovery G₀: score ≥ 90/100 VA-human Problem understanding (10 weighted criteria + explicit operator confirmation)
1 Architecture G₁: design review VA-human All modules identified; interfaces defined; no blocking open questions
2 Adversarial Critique G₂: coverage matrix VA-human + GA (lenses) Critique complete; criticals recorded for Phase 3; decision for each important
3 Simplification G₃: complexity audit VA-human Complexity ≤ previous version
4 Convergence Gate G₄: convergence VA-human Structural change < 15%; zero criticals; importants resolved or deferred with rationale
5 Code Implementation G₅: compile + lint VA-automatic Syntax, types, style
6 Tests G₆: tests + manual VA-automatic + human Functional correctness, UX, spec coverage
7 Post-Review G₇: retrospective VA-human Lessons + method evolution

The stopping criterion belongs to the operator, not the AI. In the paper's validation batch (12 projects of 8–12 modules), the 2↔3 loop ran 2–4 times per project. After Phase 7, meta-iteration restarts at Phase 0 for v2.0, with v1.0's decisions and specs/ as baseline.

Phase 0: Hierarchical Semantic Analysis

Understanding the wrong problem is orders of magnitude more expensive than understanding it slowly. Phase 0 explores five levels — Domain → Problem → Elements → Processes → Product — each presupposed by the one above it. Every iteration ends in a teach-back: the AI restates the problem in domain language and the operator judges whether it matches the intended one. This inverts the direction of agreement bias — the human verifies the AI, instead of the AI affirming it understood.


Critical lenses

Phase 2 attacks the architecture with up to 19 specialized lenses. The selection principle:

A lens is legitimate only if removing it exposes a class of failure that no other lens detects. Redundancy disguised as rigor is not rigor.

Universal (7 — always applied)

Lens Central question
Assumptions What does this design assume without declaring?
Architectural Can each module be replaced, removed, or tested in isolation?
Implementability Can I code this module in one session with available context?
Scientific Does every value, formula, and algorithm have a verifiable reference?
Security How would an attacker exploit this surface with minimum effort?
Performance Where are the bottlenecks and what is the asymptotic behavior?
Regulatory Does every regulatory requirement trace to a module?

Situational (8 — activated by project context): Resilience · UI/UX · Migration / Coexistence · Sustainability / Proportionality · Ethical / Human Impact · Process / Workflow · Governance / Accountability · Observability / Operability.

Domain Transfer (4 — activated by signal detection): Control Engineering · Game Theory · Linguistics / Grammar · Mechanical Engineering. They import invariants from domains outside software engineering, exposing failure classes that software vocabulary cannot name.

Every conditional lens is declared active or inactive with a rationale — a skipped lens is a recorded decision, not a silent omission.

Are the lenses really distinct? Tested.

The closest antecedent, Perspective-Based Reading, failed this test in its replications — reading perspectives did not differ. So the prior expectation was that many of the 19 lenses would be redundant.

A pre-registered experiment over twelve projects, under a single frozen instrument, found the opposite: every lens found at least one defect that no other lens found, under four independent judgements of what counts as the same defect. Mean overlap across lenses was 11%. The data are on Zenodo.

Two results were not planned. The lens set withstood testing, but the criterion deciding when to apply a conditional lens did not — three triggers were rewritten. And the method creates commitments (architectural premises, resolutions of critical findings) that nothing re-confronts with the built system.

The coverage matrix

Phase 2's artifact is a map of modules × lenses by severity:

Severity Action
🔴 Critical Recorded and carried into Phase 3 for resolution. Must be zero at G₄.
🟡 Important Explicit decision: resolve in Phase 3, or accept risk with documented justification.
🟢 Suggestion Can be deferred.

The matrix supports concentration analysis: a module drawing findings from most lenses is more likely conceptually flawed than locally deficient (redesign, not patches); a lens drawing findings across most modules points to one decision propagating a defect. These are heuristics, not thresholds.


The verification model

flowchart TD
    subgraph GA["Generative Agent (GA)"]
        direction TB
        G1[Receives prompt]
        G2[Generates artifact]
        G3["❌ Cannot verify<br/>own output"]
        G1 --> G2 --> G3
    end

    subgraph VA["Verification Agents (VA)"]
        direction TB
        VA1["🤖 VA-automatic<br/>linters · type checkers · tests"]
        VA2["👤 VA-human<br/>operator judgment"]
    end

    GA -->|artifact| VA
    VA -->|concrete feedback| GA
    VA -->|approved| SHIP[✅ Delivered]
    VA -->|rejected| GA

When a VA rejects an artifact, the next generation is conditioned on concrete evidence of failure rather than on the original prompt alone.

Safeguards

# Enforcement Constraint
S0 mechanical No advance past Phase 0 below the convergence score.
S1 mechanical Simplification must not introduce defects; features survive each Phase 3.
S2 behavioural The stopping criterion belongs to the operator, not the AI.
S3 behavioural When in doubt, iterate: stopping early is the costlier error.
S4 mixed VA-human is irreplaceable at G₀, G₂, G₄, G₆. Execute and verify is mechanical; semantic adequacy is not.
S5 mechanical Phases 2–3 operate strictly within Phase 0 scope. The AI may suggest; the operator decides.
S6 mechanical Do not reimplement what already exists (tier assessment: library → documented algorithm → proof-of-concept).
S7 mechanical Sequence discipline during implementation: mark each unit complete, name the next, proceed.

S2 and S4 are deliberately not automated: a methodology that decided its own stopping criterion, or certified its own semantic adequacy, would reintroduce the verification gap one level up.


Builds

Build Agent / host Enforcement layer Install Source
Versus for Claude Claude Code Hooks + MCP VS Marketplace Versus-Claude
Versus for Qwen Qwen Code Hooks + MCP VS Marketplace Versus-Qwen
Versus for Kimi Kimi Code Hooks (Kimi plugin) + MCP VS Marketplace Versus-Kimi
Versus for Cursor Cursor's agent (IDE and agent CLI) Hooks + MCP + rules Open VSX Versus_Cursor
Versus for Local Qwen Local models via Ollama in VS Code Agent Mode MCP only (no hook API) + context-budget guard VS Marketplace Versus-LocalQwen
Versus for Copilot GitHub Copilot Agent Mode — Discontinued May 2026 Versus-Copilot (archive)

Same methodology, same lenses, same state format. Only the adapter layer differs. See docs/builds.md for how the builds compare and why the Copilot build was withdrawn.

Requirements (all builds): Node.js ≥ 18 on PATH — it runs the MCP server and the hooks. Each build's README lists its host requirements.

Without an extension

docs/IAC_General_Purpose.md is a prompt-based protocol (in Portuguese) that applies a condensed version of the cycle — discovery, planning, adversarial critique, revision, execution — with any chat assistant, for work that is not software.


Design decisions

Why adversarial instead of collaborative?
LLMs trained with RLHF tend to agree with whatever they are shown. Asked "is this design good?", the model tends to say yes — what Argyris (1977) called single-loop learning. IACDM requires double-loop learning: questioning not just the solution, but the assumptions that sustain it. Find what is wrong; do not confirm what is right.

Why lenses instead of a single critique pass?
Generic critique ("attack this design") produces superficial, uniform observations, and an adversarial persona is softened by the same agreement bias. Structured lens criteria specify coverage the model produces regardless of disposition. Different lenses attack through distinct quality attributes; one agent integrates the response; the operator arbitrates trade-offs (cf. ATAM, Kazman et al., 2000).

Why must the gate be enforced by software?
In human process a gate is a social convention, waivable by the party it constrains. When the constrained party is a generator that affirms what it is shown, a convention is the wrong instrument. The Copilot build is the evidence: when its host offered no hooks, most enforcement went inert and the model began self-reporting compliance. It was withdrawn rather than shipped as a weaker variant.

Why can you switch models after Phase 4?
After G₄ the architecture is validated and every decision is persisted in specs/ and state.json, so model identity becomes substitutable. Which direction to switch depends on the cost regime: with per-token pricing, a cheaper model for Phases 5–7; with local inference, the pressure inverts — spend the more capable model on Phases 0–4, where an architectural error is most expensive to discover later.


What is and is not established

IACDM was developed over innovation projects at INDT, an industrial R&D institute in Manaus, Brazil, plus an evaluation set. That evidence establishes applicability, not effectiveness: no project was run without the method, and the proponents are the evaluators. The lens-orthogonality experiment is the one component tested under a controlled instrument. Whether IACDM outperforms direct prompting remains open; the paper restates each unvalidated claim as a testable hypothesis (H1–H9).


References

📑 IACDM — Technical Foundation Document (arXiv:2604.16399) · Jasmine Moreira, 2026 · validation data: doi:10.5281/zenodo.21908908

Selected grounding:

  • Argyris, C. (1977). Double loop learning in organizations. Harvard Business Review.
  • Basili, V. et al. (1996). The empirical investigation of Perspective-Based Reading. Empirical Software Engineering.
  • Boehm, B. (1986). A spiral model of software development and enhancement. ACM SIGSOFT SEN.
  • Brooks, F. (1987). No Silver Bullet. Computer, 20(4).
  • Huang, J. et al. (2023). Large Language Models Cannot Self-Correct Reasoning Yet. arXiv:2310.01798.
  • Kazman, R. et al. (2000). ATAM: Method for Architecture Evaluation. SEI/CMU.
  • Leveson, N. (2011). Engineering a Safer World. MIT Press.
  • METR (2025). Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity. arXiv:2507.09089.
  • Popper, K. (1959). The Logic of Scientific Discovery. Hutchinson.

Full reference list in the paper.


Author

Jasmine Moreira — Developer · Researcher · IACDM creator

License

MIT


"A converged design is not a finished design,
but one that is certainly ready to evolve."

— IACDM Technical Foundation, Jasmine Moreira

Yorumlar (0)

Sonuc bulunamadi