AdversaryGate

v3.0.18
io.github.Sanflow10/adversary-gate Checked 51 minutes ago Published 9 days ago

Fail-closed merge gate an agent calls before saying done: MERGE, BLOCK or INCONCLUSIVE.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

verify_repo Verify a repository change

Judge the working tree of a git repository against a baseline, by running its tests. When to call: after changing code in ``repo`` and before reporting the task as done. Call ``gate_policy`` first if you need to know the floors or whether the baseline is pinned. Python/pytest only; changes in other languages come back inconclusive. What it does: writes the baseline commit's tree (every file as committed), diffs it against the working tree (uncommitted and untracked files included), runs the suite under coverage.py, then runs the gate: the claims on the baselin…

ParameterTypeDescription
repo *string
base_refstring
claims
pytest_args
timeout_secondsinteger

gate_policy Show the gate policy

Show the verification policy this server enforces: floors, baseline, interpreter, and what the caller may set. When to call: before ``verify_repo``, to learn whether the baseline is pinned by the operator or chosen by you, which interpreter runs the tests, and which floors a merge has to clear -- or after an inconclusive or block answer, to explain it. Read-only and fast: it runs no tests and changes nothing. The policy comes from the server's environment (ADVERSARY_GATE_POLICY, _BASE_REF, _PYTHON), set by whoever configured the server; no tool can change it.…