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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Running an Agent on MATTER-604
|
| 2 |
+
|
| 3 |
+
This guide defines the provider-neutral solve protocol for MATTER-604. It
|
| 4 |
+
explains what an evaluated Agent receives, how task files are prepared, and how
|
| 5 |
+
to retain an answer, artifacts, and a native execution trace for later scoring.
|
| 6 |
+
|
| 7 |
+
The evaluated Agent must have access only to this public task repository and
|
| 8 |
+
the software or compute services declared for the run. Do not expose the
|
| 9 |
+
private evaluator, reference answers, rubrics, Gold files, evaluator access
|
| 10 |
+
tokens, or previous answers to the Agent.
|
| 11 |
+
|
| 12 |
+
## 1. Record the run configuration
|
| 13 |
+
|
| 14 |
+
Before solving any task, record:
|
| 15 |
+
|
| 16 |
+
- Agent name and version;
|
| 17 |
+
- model name and exact model version when available;
|
| 18 |
+
- system prompt, enabled skills, tools, and permission policy;
|
| 19 |
+
- container image or operating-system environment;
|
| 20 |
+
- scientific-software and command-line tool versions;
|
| 21 |
+
- start time and any task-level timeout;
|
| 22 |
+
- whether the Agent or model may previously have seen MATTER questions or
|
| 23 |
+
answers.
|
| 24 |
+
|
| 25 |
+
Keep the Agent's native system prompt, reasoning loop, and tool interface. To
|
| 26 |
+
compare Agents, use the same task preparation and the same public task content;
|
| 27 |
+
do not rewrite a question for one Agent but not the others.
|
| 28 |
+
|
| 29 |
+
## 2. Select one task
|
| 30 |
+
|
| 31 |
+
Each line of `data/test.jsonl` is one independent task:
|
| 32 |
+
|
| 33 |
+
```json
|
| 34 |
+
{
|
| 35 |
+
"task_id": "...",
|
| 36 |
+
"capability": "...",
|
| 37 |
+
"domain": "...",
|
| 38 |
+
"prompt": "...",
|
| 39 |
+
"tags": [],
|
| 40 |
+
"data_files": []
|
| 41 |
+
}
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
Use `task_id` as the stable identity. `prompt` is the task statement delivered
|
| 45 |
+
to the Agent. `data_files` declares every task input; do not add undeclared
|
| 46 |
+
benchmark files to the workspace.
|
| 47 |
+
|
| 48 |
+
## 3. Create an isolated workspace
|
| 49 |
+
|
| 50 |
+
Create a fresh directory for each task. A recommended layout is:
|
| 51 |
+
|
| 52 |
+
```text
|
| 53 |
+
runs/<agent>/<task_id>/
|
| 54 |
+
├── workspace/ # the Agent's working directory
|
| 55 |
+
├── prompt.txt # exact effective user prompt
|
| 56 |
+
├── final_answer.txt # final response returned by the Agent
|
| 57 |
+
├── trace/ # native conversation and tool events
|
| 58 |
+
├── submission.json # one schema-valid submission record
|
| 59 |
+
└── run_metadata.json # full reproducibility metadata
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
Do not reuse a workspace between tasks. Do not let parallel tasks share mutable
|
| 63 |
+
files, conversation state, shell history, or result directories.
|
| 64 |
+
|
| 65 |
+
## 4. Stage the declared input files
|
| 66 |
+
|
| 67 |
+
For each entry in `data_files`:
|
| 68 |
+
|
| 69 |
+
1. Verify its `size_bytes` and `sha256` before the Agent starts.
|
| 70 |
+
2. For `distribution=bundled`, copy the file from its repository-relative
|
| 71 |
+
`path` into the task workspace root using the source basename.
|
| 72 |
+
3. Replace occurrences of the repository path in the task prompt with that
|
| 73 |
+
basename.
|
| 74 |
+
4. Append one neutral line listing the staged filenames:
|
| 75 |
+
|
| 76 |
+
`[The following data files are already in your working directory: \`file1\`, \`file2\`]`
|
| 77 |
+
|
| 78 |
+
For `distribution=restricted`, obtain the file through the stated lawful
|
| 79 |
+
`acquisition` route, place it at the declared path outside version control,
|
| 80 |
+
verify the declared size and SHA-256, and then stage it in the same way. Do not
|
| 81 |
+
substitute a different pseudopotential, paper, or file merely because it has a
|
| 82 |
+
similar name.
|
| 83 |
+
|
| 84 |
+
The file staging above matches the canonical MATTER runner. If an adapter uses
|
| 85 |
+
a different workspace layout, it must preserve the filenames visible to the
|
| 86 |
+
Agent and the effective prompt text.
|
| 87 |
+
|
| 88 |
+
## 5. Construct the effective prompt
|
| 89 |
+
|
| 90 |
+
Start from the record's `prompt`, apply only the path rewriting and staged-file
|
| 91 |
+
listing described above, and then add any run-wide safety or compute guidance
|
| 92 |
+
identically for every applicable Agent. Save the exact UTF-8 text as
|
| 93 |
+
`prompt.txt`.
|
| 94 |
+
|
| 95 |
+
Compute `metadata.prompt_sha256` from the exact bytes delivered as the user
|
| 96 |
+
prompt, after all additions and path rewriting:
|
| 97 |
+
|
| 98 |
+
```bash
|
| 99 |
+
shasum -a 256 prompt.txt
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
Do not add answer hints, scoring criteria, expected values, tolerances, or
|
| 103 |
+
information obtained from the evaluator.
|
| 104 |
+
|
| 105 |
+
## 6. Run the Agent
|
| 106 |
+
|
| 107 |
+
Launch the Agent with `workspace/` as its working directory and provide the
|
| 108 |
+
contents of `prompt.txt` as the task input. Allow the Agent to use only the
|
| 109 |
+
tools, software, network access, and remote-compute routes declared in the run
|
| 110 |
+
configuration.
|
| 111 |
+
|
| 112 |
+
Capture the Agent's native conversation and tool events from start to finish.
|
| 113 |
+
The trace should retain commands, software calls, job identifiers, failures,
|
| 114 |
+
retries, and result extraction. Redact credentials, authorization headers, and
|
| 115 |
+
authentication caches; do not remove ordinary scientific failures or failed
|
| 116 |
+
attempts.
|
| 117 |
+
|
| 118 |
+
Save the Agent's final response verbatim in `final_answer.txt`. Preserve files
|
| 119 |
+
created by the Agent before running the evaluator. Evaluation must not modify
|
| 120 |
+
the recorded solve trace or make post-hoc checks appear to be part of the
|
| 121 |
+
Agent's original work.
|
| 122 |
+
|
| 123 |
+
## 7. Bohr CLI tasks
|
| 124 |
+
|
| 125 |
+
Fifty-three tasks carry the `bohr-cli` tag. A complete comparable run must make
|
| 126 |
+
a real, authenticated `bohr` executable available while those tasks are being
|
| 127 |
+
solved. The evaluation adapter must audit the CLI process and retain
|
| 128 |
+
`bohr_cli_receipts.jsonl` as execution evidence; the gated evaluator package
|
| 129 |
+
contains the canonical audit implementation.
|
| 130 |
+
The published three-Agent environment used Node.js 22 and Bohr CLI 2.5.17:
|
| 131 |
+
|
| 132 |
+
```bash
|
| 133 |
+
npm install -g @dptech-corp/bohr-cli@2.5.17
|
| 134 |
+
bohr version -o json
|
| 135 |
+
```
|
| 136 |
+
|
| 137 |
+
Keep Bohrium credentials and authentication caches outside the workspace and
|
| 138 |
+
outside all submitted artifacts. Record the CLI version and the project used
|
| 139 |
+
for the run in protected operator metadata; never place access keys in the
|
| 140 |
+
prompt, trace, or submission. Installing Bohr CLI after solving cannot recreate
|
| 141 |
+
missing execution receipts.
|
| 142 |
+
|
| 143 |
+
The remaining 551 tasks do not have a benchmark-wide mandatory Bohr CLI
|
| 144 |
+
dependency. They may still use remote compute when the individual task and the
|
| 145 |
+
declared run environment permit it.
|
| 146 |
+
|
| 147 |
+
## 8. Build one submission record
|
| 148 |
+
|
| 149 |
+
Create one JSON object conforming to `submission.schema.json`:
|
| 150 |
+
|
| 151 |
+
```json
|
| 152 |
+
{
|
| 153 |
+
"task_id": "TASK_ID",
|
| 154 |
+
"final_answer": "verbatim final response",
|
| 155 |
+
"artifacts": [
|
| 156 |
+
{
|
| 157 |
+
"path": "workspace/result.ext",
|
| 158 |
+
"sha256": "64-lowercase-hex-digits"
|
| 159 |
+
}
|
| 160 |
+
],
|
| 161 |
+
"trace_path": "trace/trace.jsonl",
|
| 162 |
+
"metadata": {
|
| 163 |
+
"agent": "agent name and version",
|
| 164 |
+
"model": "model name and version",
|
| 165 |
+
"prompt_sha256": "64-lowercase-hex-digits",
|
| 166 |
+
"runtime": "container or host environment",
|
| 167 |
+
"started_at": "ISO-8601 timestamp",
|
| 168 |
+
"finished_at": "ISO-8601 timestamp"
|
| 169 |
+
}
|
| 170 |
+
}
|
| 171 |
+
```
|
| 172 |
+
|
| 173 |
+
Artifact paths must be relative to the task result directory. Hash the exact
|
| 174 |
+
submitted bytes. List only files produced or deliberately retained as evidence
|
| 175 |
+
for this task; exclude credentials, caches, unrelated downloads, and evaluator
|
| 176 |
+
files.
|
| 177 |
+
|
| 178 |
+
Validate the record locally before submission:
|
| 179 |
+
|
| 180 |
+
```bash
|
| 181 |
+
python -m pip install jsonschema
|
| 182 |
+
python - submission.schema.json runs/AGENT/TASK_ID/submission.json <<'PY'
|
| 183 |
+
import json
|
| 184 |
+
import sys
|
| 185 |
+
from pathlib import Path
|
| 186 |
+
from jsonschema import Draft202012Validator
|
| 187 |
+
|
| 188 |
+
schema = json.loads(Path(sys.argv[1]).read_text(encoding="utf-8"))
|
| 189 |
+
record = json.loads(Path(sys.argv[2]).read_text(encoding="utf-8"))
|
| 190 |
+
Draft202012Validator(schema).validate(record)
|
| 191 |
+
print("submission schema: PASS")
|
| 192 |
+
PY
|
| 193 |
+
```
|
| 194 |
+
|
| 195 |
+
## 9. Score only after the solve is frozen
|
| 196 |
+
|
| 197 |
+
Freeze the answer, artifacts, trace, and metadata before scoring. Send the
|
| 198 |
+
submission bundle to the evaluator operator or service designated for the run.
|
| 199 |
+
The evaluated Agent must not receive evaluator output and then revise its
|
| 200 |
+
answer within the same attempt.
|
| 201 |
+
|
| 202 |
+
Scores produced by the canonical MatMaster-DP private evaluator may be reported
|
| 203 |
+
as official MATTER scores. Scores produced with the separately gated evaluator
|
| 204 |
+
must be labeled `self-hosted MATTER-604`, together with the public dataset
|
| 205 |
+
revision, evaluator commitment, Agent/model configuration, and runtime.
|
| 206 |
+
|
| 207 |
+
## 10. Batch-run checklist
|
| 208 |
+
|
| 209 |
+
For every one of the 604 task IDs, verify that:
|
| 210 |
+
|
| 211 |
+
- a fresh workspace was used;
|
| 212 |
+
- the effective prompt and its SHA-256 were retained;
|
| 213 |
+
- all declared inputs were staged and hash-checked;
|
| 214 |
+
- the final answer was saved verbatim;
|
| 215 |
+
- artifact hashes match the submitted files;
|
| 216 |
+
- a native trace and reproducibility metadata were retained;
|
| 217 |
+
- no private evaluator content or credentials entered the Agent environment;
|
| 218 |
+
- Bohr receipts exist for applicable `bohr-cli` executions;
|
| 219 |
+
- the submission record passes `submission.schema.json`.
|
README.md
CHANGED
|
@@ -31,6 +31,7 @@ artifacts through the benchmark evaluation service.
|
|
| 31 |
```text
|
| 32 |
MATTER-604/
|
| 33 |
├── README.md
|
|
|
|
| 34 |
├── LICENSE
|
| 35 |
├── data/
|
| 36 |
│ └── test.jsonl
|
|
@@ -44,6 +45,7 @@ MATTER-604/
|
|
| 44 |
| Path | Description |
|
| 45 |
|---|---|
|
| 46 |
| `README.md` | Dataset Card: scientific scope, task distribution, runtime requirements, scoring summary, and release boundaries. |
|
|
|
|
| 47 |
| `LICENSE` | Apache-2.0 license for MATTER-owned content. It does not license excluded VASP POTCAR files or third-party PDFs. |
|
| 48 |
| `data/test.jsonl` | The 604 evaluation tasks, one JSON object per line. Each record contains only `task_id`, `capability`, `domain`, `prompt`, `tags`, and `data_files`. |
|
| 49 |
| `fixtures/` | 238 redistributable task inputs declared by 147 tasks, including crystal structures, simulation inputs, spectra, electrochemical data, tabular data, and small model/test files. |
|
|
@@ -57,6 +59,8 @@ logical paths. Of these, 238 files are bundled under `fixtures/`; six restricted
|
|
| 57 |
inputs are represented only by their identity, SHA-256, size, restriction reason,
|
| 58 |
source, and lawful acquisition instructions.
|
| 59 |
|
|
|
|
|
|
|
| 60 |
## Capability distribution
|
| 61 |
|
| 62 |
The capability label describes the main research action being evaluated. A task
|
|
|
|
| 31 |
```text
|
| 32 |
MATTER-604/
|
| 33 |
├── README.md
|
| 34 |
+
├── EVALUATION_GUIDE.md
|
| 35 |
├── LICENSE
|
| 36 |
├── data/
|
| 37 |
│ └── test.jsonl
|
|
|
|
| 45 |
| Path | Description |
|
| 46 |
|---|---|
|
| 47 |
| `README.md` | Dataset Card: scientific scope, task distribution, runtime requirements, scoring summary, and release boundaries. |
|
| 48 |
+
| `EVALUATION_GUIDE.md` | Provider-neutral instructions for preparing one-task workspaces, invoking an Agent, recording traces and artifacts, and producing schema-valid submissions. |
|
| 49 |
| `LICENSE` | Apache-2.0 license for MATTER-owned content. It does not license excluded VASP POTCAR files or third-party PDFs. |
|
| 50 |
| `data/test.jsonl` | The 604 evaluation tasks, one JSON object per line. Each record contains only `task_id`, `capability`, `domain`, `prompt`, `tags`, and `data_files`. |
|
| 51 |
| `fixtures/` | 238 redistributable task inputs declared by 147 tasks, including crystal structures, simulation inputs, spectra, electrochemical data, tabular data, and small model/test files. |
|
|
|
|
| 59 |
inputs are represented only by their identity, SHA-256, size, restriction reason,
|
| 60 |
source, and lawful acquisition instructions.
|
| 61 |
|
| 62 |
+
To run an Agent on the benchmark, follow [`EVALUATION_GUIDE.md`](EVALUATION_GUIDE.md).
|
| 63 |
+
|
| 64 |
## Capability distribution
|
| 65 |
|
| 66 |
The capability label describes the main research action being evaluated. A task
|