Repository navigation
feat(catalogue): add PAST-Bench and Pi-Bench, with DigitalMate's long turns - #444
haowenz001 wants to merge 2 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
PAST-Bench brings 26 cross-session families (211 episodes) with the publisher's persistence-on and persistence-off controls, its own mock services and graders. Pi-Bench brings five persona units (100 tasks) with the upstream AppWorld tools, hidden-intent user simulator and COMP/PROC scoring. Both run on the Nullius standard: the entries keep the publishers' task order, manifests and graders, and substitute the agent under test. Their settings inventories, marks, pages and the listing tests are added; the rest of the docs are regenerated from the catalogue.
Long-horizon benchmark tasks take more than the gateway's default 600 s, and the product's image path needs the trial's model name. Submit with a 1800 s timeout and set DIGITALMATE_IMAGE_MODEL from MODEL_NAME.
c8d226f to
2f80cd7
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c8d226f40d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| base, key = got.get("base_url"), got.get("key") | ||
| if not (base and key): | ||
| return route | ||
| return dict(route, base_url=base, key=key) |
There was a problem hiding this comment.
Keep evaluation traffic behind the run's relay
When /root/.config/nullius/eval-route.json contains provider credentials, this replaces the per-trial relay URL supplied by Run.simulator() or Run.judge() with a provider URL and real key. Simulator/judge calls then bypass the relay's ledger reservations and call records, allowing benchmark spend to escape the run's cap and cost/evidence totals; PAST-Bench contains the same override. Keep alternate evaluation providers behind the runtime relay and honor profile isolation: AGENTS.md says "personal storage resolves through nullius.paths", rather than sharing a hard-coded /root file across profiles.
AGENTS.md reference: AGENTS.md:L161-L162
Useful? React with 👍 / 👎.
| "proven": { | ||
| "pi-bench": { | ||
| "units": { | ||
| "units": 5, |
There was a problem hiding this comment.
Move Pi-Bench's generated proofs into proofs.json
These newly added units/nop results are generated evidence, but AGENTS.md requires that "generated evidence belongs in the entry's proofs.json" and that proof runs leave definitions untouched. definitions.save() consequently only updates the sibling proof document, leaving these embedded results as an obsolete legacy fallback after reproving. Put this block in the sibling proofs.json envelope and keep standard.json configuration-only.
AGENTS.md reference: AGENTS.md:L117-L118
Useful? React with 👍 / 👎.
| if state["index"] >= 0 and (not state["evidence"] or state["evidence"][-1]["index"] != state["index"]): | ||
| text = last_agent(transcript) | ||
| if text: | ||
| capture(state, text) |
There was a problem hiding this comment.
Reject incomplete PAST-Bench families before scoring
If the run reaches its max_turns budget before the family ends, turn() has already opened the next episode while the transcript's last agent message still belongs to the previous one. This branch captures that old message as an answer to the unasked episode; a two-turn probe duplicated the cold reply as the learn reply. The later fallback to averaging non-evaluation episodes can even produce a positive family reward before any evaluation was answered. Refuse incomplete families, or explicitly account for unanswered evaluation episodes, instead of inventing a final reply.
Useful? React with 👍 / 👎.
| "This session works through a series of tasks for the same user. That is all this message says: " | ||
| "the tasks follow one at a time, each as its own message, and your final message answers the task " | ||
| "in front of you. Tools for the current task are the MCP tools given to you; they change with the " | ||
| "task. Do not act on this message - reply READY and wait for the first task." |
There was a problem hiding this comment.
Keep the READY handshake out of restarted task prompts
Whenever a later episode requires a fresh session, including every later episode in a -nop arm, Run.drive_agent() prepends setup['prompt'] to the real task when handling restart. That repeats this instruction to reply READY even though the actual episode is already in the same message. Unlike the initial prelude, the restarted session has no READY handshake in turn(): its next reply is captured and graded immediately as the episode answer. Keep the persistent setup text task-compatible and issue the READY-only prelude only for the initial handshake.
Useful? React with 👍 / 👎.
| cleanup(state) | ||
|
|
||
|
|
||
| HANDLERS = {"units": units, "setup": setup, "turn": turn, "score": score} |
There was a problem hiding this comment.
Register unconditional teardown for both new drivers
When an agent times out, fails to start, or the run is stopped before scoring, Run._unit() never sends score. Both new drivers only release their resources from score's finally, and neither enables driver.unit_end or provides an end handler. Consequently Pi-Bench's AppWorld container and PAST-Bench's independently started mock-service processes survive these ordinary failure paths, including after the driver exits. Register the unconditional end hook, with exit cleanup as a fallback, so aborting a long run does not leak its services.
Useful? React with 👍 / 👎.
| with patch.dict(os.environ, {"NULLIUS_UPSTREAM": str(upstream)}): | ||
| spec = importlib.util.spec_from_file_location("nullius_test_pi_bench_driver", DRIVER) | ||
| self.driver = importlib.util.module_from_spec(spec) | ||
| spec.loader.exec_module(self.driver) |
There was a problem hiding this comment.
Isolate stdin when importing the Pi-Bench driver in tests
With stdin open, such as when running python3 app/tests/parallel.py from a terminal, this import immediately executes the driver's module-level stdin request loop. The parallel runner's workers inherit stdin (app/tests/parallel.py:50), so each setUp waits for EOF instead of running assertions and the suite hangs. An open-pipe reproduction blocked until the pipe was closed, after which all seven tests passed. Guard the driver's request loop and stdout redirection behind __main__, or isolate stdin and restore stdout during this import.
Useful? React with 👍 / 👎.
What
Adds PAST-Bench and Pi-Bench to the catalogue as official entries on the Nullius standard, and lets the DigitalMate entry's tasks run for up to 30 minutes.
past-bench): 26 families, 211 episodes, with the publisher's persistence-on arm plus its-nop,-isolated, ability and smoke datasets. The driver keeps the publisher's family order, fresh-session and history-anchor rules fromconfigs/self_evolve_v2/*_only.yaml, serves each episode's declared tools as MCP tools throughpast_mcp.py, runs the publisher's mock services, and grades with the publisher's graders (safety × (0.8 × completion + 0.2 × robustness)).pi-bench): five persona units, 100 tasks. The driver keeps the upstream episode order, starts only the official image's AppWorld API, serves the upstream'sappworld serve mcpstdio tools, drives the hidden-intent simulator, and leaves COMP/PROC to the upstream'sTraceEvaluationRunner.digitalmate):submit_tasknow waits 1800 s instead of the gateway's 600 s, and the product receivesDIGITALMATE_IMAGE_MODELfromMODEL_NAME; multi-turn long-horizon tasks need both.The entries carry their settings inventories, marks, generated pages and listing tests. The work was ported against
v0.2.0and rebased onto currentmain(328888b), so the diff is these two commits only.Touches
catalogue · the standard · tests · docs and site
Verified
python3 app/tests/parallel.py: 3105 tests in 181 modules, OK.uv run --no-project --with-requirements app/requirements.txt python app/tests/parallel.py app/ui_tests: 712 tests in 73 modules, OK.python3 app/tests/catalogue_docs.py --write: pages regenerated,test_catalogue_docspasses.zzzhr97/pi-benchimage), and no browser check of the two new pages.Risk
The two new entries run the publishers' drivers as pinned; a wrong pin or upstream drift breaks only those entries. The DigitalMate change only lengthens a wait and sets an environment variable the product may ignore. Reverting is deleting the two folders and regenerating the docs, plus the
run.pychange.