spiderpilot89's picture
protocol company
Release v0.15.3 free evaluation sample
2acc35c
|
Raw History Blame Contribute Delete
3.42 kB

Native MCP variant

Every task as a folder any MCP client can run: the prompt, an mcp.json whose only server is the Zero-Trust Physics verifier, and a one-line grader.

<task id>/prompt.md                 the text the agent is given, word for word
<task id>/mcp.json                  one server, "verifier": the logging proxy in front of mcp_stdio
<task id>/grade.sh                  the grader, one line
scorer/data/environments.jsonl      every task row, with its `reference` and `check` fields: the grader reads it, the agent never needs it
scorer/                             score.py, pack_score.py, grade_mcp.py, mcp_log_proxy.py, bind.py and what they import
logs/                               the proxy's call record, one <task id>.harness.jsonl per task

A task folder holds those three files and nothing else. The answer key (each task's reference and check fields) lives in scorer/, outside every task folder.

Run one task

  1. The verifier is release 0.15.3, served at its open MCP address, https://mcp.zerotrustphysics.com/mcp. scorer/mcp_stdio_open runs it as an MCP stdio server (scorer/ztp_open_bridge.py, standard library only, posts each JSON-RPC message to the address unchanged). Call its absolute path ENGINE below. Any other stdio program that answers as release 0.15.3 serves the same.
  2. python3 scorer/bind.py --engine ENGINE writes every mcp.json for where this folder sits. The mcp.json files in the archive name placeholder paths until you run it.
  3. Start your MCP client in the task folder with that mcp.json (so that it uses this file and no other MCP configuration). Give the agent prompt.md and nothing else. The agent saves its answer card to answer.json in the task folder.
  4. ZTP_ENGINE=ENGINE bash grade.sh writes result/reward.json: reward (0 or 1), correct, proofs_hold and graded (0 to 1). The grader computes every judged number again on the verifier.

For a fresh attempt at the same task, delete answer.json, result/ and the task's file in logs/.

What the agent must not reach

The score is only as good as the call record. Set up the agent's sandbox so that:

  • It sees its task folder and nothing above it. scorer/ holds every task's reference and logs/ holds the call record. An agent that can read scorer/data/environments.jsonl can copy the answer; an agent that can write logs/ can try to edit its record (an edited record breaks the SHA-384 chain and scores 0, a fresh one written from nothing does not).
  • It has no shell and no network of its own. The proxy records every call that goes through mcp.json's server. An agent that can reach the verifier another way (a shell, an HTTP tool) computes off the record, which defeats the call budget of a budgeted search and the forbidden-tool rule. Give the agent the verifier's tools and a way to write answer.json, and no other tool.

The proxy changes no byte between the client and the verifier. It records every tool call with a SHA-384 chain, in logs/, and the grader scores the call budget from that record.

Scoring on any stdio program of the release

The grader holds the verifier to its release: it must answer as version 0.15.3 with kernel genesis_kernel_v0.13.1. The program it runs is recorded by sha256 on every score row and scored the same; grade_mcp.py --strict-binary also requires the sha256 of our served macOS build.