Skip to content

feat(catalogue): add PAST-Bench and Pi-Bench - #444

Closed
haowenz001 wants to merge 9 commits into
ThinkFlowLab:mainfrom
haowenz001:dm-past-pi-bench
Closed

haowenz001 wants to merge 9 commits into
ThinkFlowLab:mainfrom
haowenz001:dm-past-pi-bench

Conversation

@haowenz001

@haowenz001 haowenz001 commented Nov 26, 2026 •

Copy link
Copy Markdown

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 (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 from configs/self_evolve_v2/*_only.yaml, serves each episode's declared tools as MCP tools through past_mcp.py, runs the publisher's mock services, and grades with the publisher's graders (safety × (0.8 × completion + 0.2 × robustness)).
  • Pi-Bench (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's appworld serve mcp stdio tools, drives the hidden-intent simulator, and leaves COMP/PROC to the upstream's TraceEvaluationRunner.
  • DigitalMate (digitalmate): submit_task now waits 1800 s instead of the gateway's 600 s, and the product receives DIGITALMATE_IMAGE_MODEL from MODEL_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.0 and rebased onto current main (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_docs passes.
  • Not verified here: a live PAST-Bench or Pi-Bench run (needs a provider key, Docker and the zzzhr97/pi-bench image), 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.py change.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T08:12:06.175602Z c8d226f PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added the merge conflict Conflicts with its base: merge or rebase it label Nov 26, 2026
nullius-runner added 2 commits November 26, 2026 16:03
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.
@github-actions github-actions Bot removed the merge conflict Conflicts with its base: merge or rebase it label Nov 26, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment on lines +95 to +98
"proven": {
"pi-bench": {
"units": {
"units": 5,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment on lines +460 to +463
if state["index"] >= 0 and (not state["evidence"] or state["evidence"][-1]["index"] != state["index"]):
text = last_agent(transcript)
if text:
capture(state, text)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@github-actions github-actions Bot added the merge conflict Conflicts with its base: merge or rebase it label Nov 26, 2026
# Conflicts:
#	app/static/catalogue/marks.svg
#	app/tests/test_catalog.py
#	app/ui_tests/test_catalogue_routes.py
#	docs/agents/supported/README.md
#	docs/agents/supported/codex.md
#	docs/agents/supported/digitalmate.md
#	docs/agents/supported/goose.md
#	docs/agents/supported/jiuwenswarm.md
#	docs/agents/supported/mini-swe-agent.md
#	docs/agents/supported/opencode.md
#	docs/agents/supported/swe-agent.md
#	docs/agents/supported/terminus-2.md
…ures them

- Drop the eval-route.json redirect: the simulator and judge stay on the run's relay route.
- Judge with reasoning_effort high and the upstream's concurrency, from its DEFAULT_MODEL_CONFIG.
- Pin the AppWorld image by digest.
- Move the proof records to proofs.json.
…sode

- Grade each episode with grade_episode over an upstream-format trace, as the upstream grades an agent without a persistence backend (its agent-zero path).
- Drop the eval-route.json redirect: the judge stays on the run's relay route.
- Default the judge to MiniMax-M2.7, the one config.yaml and the README name.
- Say in the upstream limitations what that path costs any agent outside Hermes, nanobot and ZeroClaw.
@aitianshi aitianshi changed the title feat(catalogue): add PAST-Bench and Pi-Bench, with DigitalMate's long turns feat(catalogue): add PAST-Bench and Pi-Bench Dec 1, 2026
@github-actions github-actions Bot removed the merge conflict Conflicts with its base: merge or rebase it label Dec 1, 2026
@aitianshi

Copy link
Copy Markdown
Collaborator

Pushed fixes on top of your commits, nothing rewritten. Both suites pass (3518 backend, 925 route); docs drift 0.

Changes

  • Merged main. Conflicts were in the generated agent pages, marks.svg and two listing tests. Pages regenerated.
  • Removed eval-route.json from both drivers. It swapped the judge's and simulator's relay route for a provider URL and key read from /root/.config/nullius/. That bypasses the relay's spending cap and call records, and gives the run a key that is not its provider's.
  • Pi-Bench
    • The judge now gets reasoning_effort: high, and the simulator and judge use concurrency 32 and 128. All three come from the upstream's DEFAULT_MODEL_CONFIG; the inventory already said high, but the driver did not send it.
    • The AppWorld image is pinned by digest (zzzhr97/pi-bench@sha256:3bdb9607…, the image :latest named at the pin).
    • The proof records moved from standard.json to proofs.json, as Codex flagged.
    • Turn timeout 2400 s and 4 retries are the upstream's: unchanged.
  • PAST-Bench
    • Episodes are now graded by the upstream's own grade_episode, over a trace in its own JSONL format. This is how the upstream grades an agent it has no persistence backend for (its agent-zero path): empty artifact summary, no environment snapshot.
    • On the SM01 smoke family it gives the same scores as your grade(). The change replaces our copy of the logic with theirs.
    • The judge defaults to MiniMax-M2.7, the one config.yaml and the README name.
    • Two lines added to the upstream limitations, below.
  • DigitalMate change reverted here. It should come as its own PR, since it is not needed for these benchmarks:
    • timeout=1800 applies to every version of the agent. PAST-Bench's turn limit is 900 s and Pi-Bench's is 2400 s, so a fixed 1800 fits neither; the turn limit of the benchmark being run would.
    • I found nothing that reads DIGITALMATE_IMAGE_MODEL, in openJiuwen's main or in the aitianshi branch. If something does, point to it in that PR.
  • Title: the DigitalMate part removed.

Why PAST-Bench's graders need a fork (left to you)

The upstream graders give points for, and cap completion on, the agent's own memory, skill and session-search calls. The upstream reads those only from the agents it has a persistence backend for: Hermes, nanobot, ZeroClaw. Any other agent is graded with nothing recorded:

  • 64 of the 66 evaluation episodes cap completion at 0.25, so an episode scores 0.40 at most (0.8 × 0.25 + 0.2), whatever the answer.
  • Learn episodes get no reflection prompt. The upstream sends it only to an agent it has a backend for.

That is the publisher's behaviour, so the Official version keeps it and says so in its upstream limitations. Changing it in our driver would make the scores no longer the publisher's.

To score any agent fairly, change the graders in a fork of PAST-Bench, brought in as an Experiment version (versions.<name>.upstream = {repository, branch, tested}, origin: experiment) with its own pin. For example, credit retrieval seen in the benchmark's own MCP tool calls, or drop the mechanism caps when no backend is present. Nullius's driver stays the same for both versions.

Still open

  • Codex's findings not addressed here:
    • an unfinished family is scored on a stale reply;
    • READY is repeated on restarted sessions;
    • no teardown when score is never sent;
    • the Pi-Bench test imports the driver with stdin open.
  • past-bench-nop and past-bench-isolated are controls of ours. The upstream refuses --compare-no-persistence for an agent without a backend, so their pages should say that they are not the publisher's.
  • The PR body still describes the DigitalMate change.

…AppWorld calls

The upstream's tool scripts read the turn files' tool_steps, which the driver left empty, so those items always said NO. The AppWorld MCP bridge now records each call as nanobot does (mcp_appworld_<tool>, arguments, text of the answer), and each turn file carries its own calls. Importing a driver no longer reads stdin.
@aitianshi

Copy link
Copy Markdown
Collaborator

Second pass, pushed on top.

Pi-Bench: tool-scored checklist items always said NO.

  • 27 tasks score some items with a script (tools_evaluation_path) that reads the turn files' tool_steps. The driver left them empty.
  • The AppWorld MCP bridge now records each call as nanobot does: mcp_appworld_<tool>, the arguments, and the answer's text. Each turn file carries its own calls.
  • Checked against the pinned image: amazon__login and then amazon__show_cart were recorded with AppWorld's JSON answers. There is a unit test for it.
  • Importing either driver no longer reads stdin (Codex's hang).

Corrections, checked against the upstream at the pin.

  • PAST-Bench runs 204 episodes, the 26 manifests (equal to what upstream generates from family.yaml). The 7 extra update episodes on disk are in no manifest.
  • 58 of the 60 evaluation episodes are capped. My earlier 64 of 66 counted directories, not manifests.
  • Upstream acts on neither requires_fresh_session nor history_mode: every episode is its own trial, and anchors restore the agent's home. That line moved to the Nullius limitations, with the 300 s, 20-step episode limit that Nullius does not apply.
  • The "one episode is one turn" line was the upstream's behaviour too: removed.
  • -nop and -isolated are now described as Nullius's controls.
  • Pi-Bench: its leaderboard ranks models inside nanobot, so Nullius scores do not compare with it.

An Original setup for each benchmark (the upstream's own harness, with its agents that are also in the catalogue) comes as a separate PR.

@github-actions github-actions Bot added the merge conflict Conflicts with its base: merge or rebase it label Dec 2, 2026
@aitianshi

Copy link
Copy Markdown
Collaborator

Landed in main through #571 (ef5c902), which was built on this branch.

@aitianshi aitianshi closed this Dec 2, 2026
@github-actions github-actions Bot removed the merge conflict Conflicts with its base: merge or rebase it label Dec 2, 2026
@haowenz001

Copy link
Copy Markdown
Author

The DigitalMate adapter follow-up is in #752 (draft). This PR's PAST-Bench and Pi-Bench definitions are already in main through #571 and are unchanged there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants