Skip to content

feat(catalogue): add PAST-Bench and Pi-Bench, with DigitalMate's long turns - #444

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

haowenz001 wants to merge 2 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 👍 / 👎.

This branch has not been deployed

No deployments
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.

1 participant