adversary-gate
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ADVERSARY_GATE_POLICY | No | Gate flags (`--sandbox bwrap`, `--triage jev`, floors). An agent that can pass `--coverage-floor 0` grades itself. Evidence flags here are refused. | |
| ADVERSARY_GATE_PYTHON | No | The interpreter's site-packages are harness too — a plugin installed there runs inside pytest. Use one the agent cannot write to. | |
| ADVERSARY_GATE_BASE_REF | No | The baseline is the oracle: an agent could commit a rewritten test and name that commit as the base. Unpinned, the answer says "baseline_chosen_by": "agent". |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Call verify_repo before reporting a code change as done. merge: a human may look; block: fix the code, not the tests; inconclusive: say what was not measured. Follow next_steps (cover lines, kill a named mutant, add a new test) and call again; never edit existing tests to get there. Policy, baseline and interpreter are the operator's (gate_policy).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| verify_repoA | Judge the working tree of a git repository against a baseline, by running its tests. |
| gate_policyA | Show the verification policy this server enforces: floors, baseline, interpreter, and what the caller may set. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 2 tools
The two tools are cleanly separated: `gate_policy` is a read-only description of the enforced policy, while `verify_repo` performs the actual verification run. Descriptions explicitly cross-reference each other (call `gate_policy` first) and leave no risk of misselection.
Both names are snake_case and concise, but they follow different shapes: `verify_repo` is verb_noun while `gate_policy` is noun_noun (a `get_gate_policy`/`show_policy` form would match the pattern). Still predictable and readable as a pair.
Two tools is thin by the general rubric, though it fits this deliberately narrow single-purpose gate: one action plus one policy read. The policy surface is small enough that it could arguably be folded into `verify_repo`'s output, making the second tool marginally justified.
The core loop is covered end to end: learn the policy/baseline, run the gate, and receive `decision`, per-claim results, and `next_steps` to iterate. Minor gaps exist around run management—no way to check status of a long run, cancel it, or retrieve prior artifacts after the fact.