servicesToptal commited on
Commit
517fae7
·
verified ·
1 Parent(s): bffaa80

Update dataset

Browse files
harbor/README.md CHANGED
@@ -1,6 +1,6 @@
1
  # ExpertCrowd SWE tasks: Harbor packages
2
 
3
- This folder holds Harbor packages for 19 ExpertCrowd software-engineering
4
  tasks, for use with [Harbor](https://github.com/harbor-framework/harbor) and
5
  Docker, and the build context of every task in the dataset. Each task is a real
6
  repository at a fixed commit, a written request, and the original hidden rubric
@@ -16,9 +16,8 @@ data, can reach them.
16
 
17
  ## Two ways to run a task
18
 
19
- - **With Harbor, on your own machine.** 19 tasks are packaged for
20
- this under `tasks/`. Everything on this page up to "Tasks without a Harbor
21
- package" is about this route.
22
  - **On HUD, the platform the tasks were written for.** The agent results in the
23
  dataset come from runs there. The tasks are published there as the taskset
24
  [`ec-swe`](https://www.hud.ai/shared/tasksets/979e6e02-d726-46f6-a066-914afc5c9f44),
@@ -46,11 +45,15 @@ data, can reach them.
46
 
47
  - Docker with Compose and BuildKit, on Linux, macOS or Windows with WSL.
48
  - Python 3.12 and Harbor 0.23.0: `pip install harbor==0.23.0`.
49
- - Network access while images are built. Packaged tasks run offline.
 
 
50
  - Disk: allow 5 to 10 GB per task for its images. Each task container is
51
  limited to 2 CPUs and 8 GiB.
52
 
53
- No GPU, model account or API key is needed for the checks below.
 
 
54
 
55
  ## Quick start
56
 
@@ -89,22 +92,64 @@ harbor run -p tasks/rope_rename_all_reexport_owners_contract -a <agent> -m <mode
89
  ```
90
 
91
  Harbor's agents run inside the task's container, so they need to reach their
92
- model. Every task here declares no network for both phases;
93
- `--allow-agent-host` opens the agent phase to the hosts you name and nothing
94
- else, and the verifier stays offline. `harbor run --help` lists the agents.
 
 
95
  An agent that installs itself into the container may need further hosts for
96
  that step (`--allow-environment-host`).
97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  ## Packaged tasks
99
 
100
  | Task folder | `instance_id` in the dataset | Language | Criteria |
101
  | --- | --- | --- | --- |
 
102
  | `journal_recovery_after_unclean_stop` | `dgraph-io__badger-journal_recovery_after_unclean_stop` | Go | 8 |
103
  | `bazel_remote_disk_eviction_accounting_contract` | `buchgr__bazel-remote-bazel_remote_disk_eviction_accounting_contract-afe5ea56` | Go | 8 |
104
  | `celery_retry_expires_countdown_contract` | `celery__celery-celery_retry_expires_countdown_contract` | Python | 9 |
 
 
105
  | `epicyon_deleted_post_announce_cache_contract` | `bashrc2__epicyon-epicyon_deleted_post_announce_cache_contract-1c066303` | Python | 11 |
106
  | `geode_oql_index_null_semantics_contract` | `apache__geode-geode_oql_index_null_semantics_contract-1c066303` | Java | 10 |
107
  | `go_mysql_mariadb_compressed_columns` | `go-mysql-org__go-mysql-go_mysql_mariadb_compressed_columns` | Go | 9 |
 
108
  | `kratos_cleanup_stale_flows_courier_contract` | `ory__kratos-kratos_cleanup_stale_flows_courier_contract` | Go | 9 |
109
  | `microblogpub_deleted_object_resurrect_lookup_contract` | `tsileo__microblog.pub-microblogpub_deleted_object_resurrect_lookup_contract-382616f8` | Python | 21 |
110
  | `mongoose_syncindexes_contract` | `Automattic__mongoose-mongoose_syncindexes_contract-97c2a76f` | JavaScript | 23 |
@@ -114,6 +159,7 @@ that step (`--allow-environment-host`).
114
  | `pomerium_route_order_contract` | `pomerium__pomerium-pomerium_route_order_contract` | Go | 7 |
115
  | `rope_rename_all_reexport_owners_contract` | `python-rope__rope-rope_rename_all_reexport_owners_contract-1c066303` | Python | 8 |
116
  | `shared_handle_abandoned_operations` | `sfackler__rust-postgres-shared_handle_abandoned_operations` | Rust | 23 |
 
117
  | `retained_top_level_names_keep_their_values` | `terser__terser-retained_top_level_names_keep_their_values` | JavaScript | 7 |
118
  | `xandikos_itip_recurrence_id_override_contract` | `jelmer__xandikos-xandikos_itip_recurrence_id_override_contract-c6aa163a` | Python | 13 |
119
  | `zettlr_clickable_keywords` | `Zettlr__Zettlr-zettlr_clickable_keywords` | TypeScript | 20 |
@@ -157,9 +203,11 @@ that step (`--allow-environment-host`).
157
  `solution/` (reference fix).
158
  - `sources/`: each task's build context as downloaded from HUD. In twenty-two of
159
  them the environment name was changed to a neutral one (`ec-swe-...`, at most
160
- four lines, in `env.py`, `pyproject.toml` and `tasks.py`), and druid's had
161
- comments shortened and three unused files removed; `manifest.json` lists the
162
- changed files per task (`source_edited`). `sources/archives/` holds the
 
 
163
  original archive of each context that was not changed. `build_images.py`
164
  builds from these.
165
  - `build_images.py`, `run_checks.py`, `verify_bundle.py`: standard-library
@@ -184,62 +232,3 @@ that step (`--allow-environment-host`).
184
  - The graders execute the submitted code. The isolation described above is a
185
  boundary, not a security certification.
186
 
187
- ## Tasks without a Harbor package
188
-
189
- The tasks listed here have a build context under `sources/` (unmodified apart
190
- from the changes listed under "Contents") and no package under `tasks/`. You can
191
- build each task's image and run it in a setup of your own. This section says
192
- how each is meant to run and what it needs. Run this way, the agent and the
193
- grader share one container, separated by file permissions, without the
194
- isolation of the packaged tasks.
195
-
196
- **Building.** `python build_images.py --task <name>` builds the image
197
- `ec-swe-<name>:source-v<n>` from `sources/<name>-v<n>/Dockerfile.hud`, the same
198
- way as for the packaged tasks. `<name>` is the bold name in the list below.
199
-
200
- **How these images run a task.** Each image is an environment for the HUD agent
201
- harness. Its default command, `hud serve tasks.py`, serves the task; a harness
202
- built on the `hud` Python package (each `Dockerfile.hud` pins the version)
203
- connects to it, lets the agent work in the checkout as UID 1000, and then calls
204
- the task's grading in the same container as root. `/hud`, which holds the hidden
205
- tests, the grader and the reference fix, is readable by root only.
206
-
207
- **Grading without the harness.** In the standard layout (every task below
208
- except druid) two functions in `/app/tasks.py` do the work: `_setup()` prepares
209
- the checkout in `/workspace/repo`, and `_grade(mode)` returns the reward and the
210
- criteria. With `mode` `"golden"` it grades the reference fix; with `None` it
211
- grades the changes made to the checkout since setup. As root inside the image:
212
-
213
- ```python
214
- import asyncio, json, sys
215
- sys.path.insert(0, "/app")
216
- import tasks
217
-
218
- async def main():
219
- await tasks._setup()
220
- result = await tasks._grade("golden")
221
- print(json.dumps(result.model_dump(mode="json")))
222
-
223
- asyncio.run(main())
224
- ```
225
-
226
- ```bash
227
- docker run --rm -i ec-swe-<name>:source-v<n> /opt/hudvenv/bin/python - < script.py
228
- ```
229
-
230
- **The tasks**
231
-
232
- - **click** (`pallets__click-click-help-defaults`, Python, `sources/click-v9`). One criterion, `maintainer_review` (6.25 of 100 points), is decided by a language model through an OpenAI-compatible endpoint. By default that is HUD's gateway, with `HUD_API_KEY` in the container's environment. To use your own key elsewhere, set `HUD_GATEWAY_URL` to the endpoint's base URL, `HUD_API_KEY` to your key and `JUDGE_MODEL` to the model's name there (default `claude-sonnet-5-5`); for OpenRouter, `HUD_GATEWAY_URL=https://openrouter.ai/api/v1` and `JUDGE_MODEL=anthropic/claude-sonnet-5.5`. Also set `HUD_TELEMETRY_ENABLED=false`, so that the hud library does not report to HUD with that key. Grading then needs network access to the endpoint:
233
-
234
- ```bash
235
- docker run --rm -i -e HUD_GATEWAY_URL=https://openrouter.ai/api/v1 -e HUD_API_KEY \
236
- -e JUDGE_MODEL=anthropic/claude-sonnet-5.5 -e HUD_TELEMETRY_ENABLED=false \
237
- ec-swe-<name>:source-v<n> /opt/hudvenv/bin/python - < script.py
238
- ```
239
-
240
- When the judge cannot be reached, the task's own code drops that criterion, rescales the others and records `judge_errors` in the result. The agent rewards recorded in the dataset were judged by `claude-haiku-4-5` on HUD, so another judge model can score this criterion differently.
241
- - **sequelize** (`sequelize__sequelize-sequelize-bulkcreate-ignore-duplicates`, TypeScript, `sources/sequelize-v27`). As click: `maintainer_review` is 6.25 points.
242
- - **hooks** (`alibaba__hooks-ahooks_request_cache_races`, TypeScript, `sources/hooks-v4`). As click: `maintainer_review` is 3 points.
243
- - **druid** (`alibaba__druid-druid_lenient_script`, Java, `sources/druid-v9`). As click: `maintainer_review` is 2 points, with the same settings for your own key. When its judge cannot be reached, druid keeps that criterion's weight and scores it 0 instead of rescaling the others. The layout differs a little: there is no `coding/` folder and no `tasks._grade`, the HUD runtime is in `/opt/hudenv`, and, once `env._setup()` has prepared the checkout, the scenario function `tasks._scenario(mode)` does the grading: its first item is the prompt and its second the result. For `"golden"` it reads `/hud/gold.diff`, which the image does not contain; mount `task/gold.diff` there. This build context is not byte-identical to the original: comments that recorded internal review history were shortened in `tasks.py` and `preflight.sh`, and three files the image build does not read were removed. `tasks.py` is the same program.
244
- - **babylonjs** (`BabylonJS__Babylon.js-babylonjs_scene_remove_owner_refs_contract-382616f8`, TypeScript, `sources/babylonjs-v8`). The image is about 10 GB. Setup changes the owner of the whole dependency tree and allows itself 600 seconds for it, so it needs a fast local disk.
245
-
 
1
  # ExpertCrowd SWE tasks: Harbor packages
2
 
3
+ This folder holds Harbor packages for 24 ExpertCrowd software-engineering
4
  tasks, for use with [Harbor](https://github.com/harbor-framework/harbor) and
5
  Docker, and the build context of every task in the dataset. Each task is a real
6
  repository at a fixed commit, a written request, and the original hidden rubric
 
16
 
17
  ## Two ways to run a task
18
 
19
+ - **With Harbor, on your own machine.** 24 tasks are packaged for
20
+ this under `tasks/`.
 
21
  - **On HUD, the platform the tasks were written for.** The agent results in the
22
  dataset come from runs there. The tasks are published there as the taskset
23
  [`ec-swe`](https://www.hud.ai/shared/tasksets/979e6e02-d726-46f6-a066-914afc5c9f44),
 
45
 
46
  - Docker with Compose and BuildKit, on Linux, macOS or Windows with WSL.
47
  - Python 3.12 and Harbor 0.23.0: `pip install harbor==0.23.0`.
48
+ - Network access while images are built. Packaged tasks run offline,
49
+ except that the verifier of the four tasks with a judged criterion
50
+ reaches its judge's host.
51
  - Disk: allow 5 to 10 GB per task for its images. Each task container is
52
  limited to 2 CPUs and 8 GiB.
53
 
54
+ No GPU, model account or API key is needed for the checks below,
55
+ except for the four tasks with a judged criterion, which need a key
56
+ for a model endpoint (see "Tasks with a judged criterion").
57
 
58
  ## Quick start
59
 
 
92
  ```
93
 
94
  Harbor's agents run inside the task's container, so they need to reach their
95
+ model. Every task here declares no network for the agent's phase;
96
+ `--allow-agent-host` opens it to the hosts you name and nothing else. The
97
+ verifier stays offline, except in
98
+ the four tasks with a judged criterion, where it reaches only its
99
+ judge's host. `harbor run --help` lists the agents.
100
  An agent that installs itself into the container may need further hosts for
101
  that step (`--allow-environment-host`).
102
 
103
+ ## Tasks with a judged criterion
104
+
105
+ In four tasks one criterion is judged by a language model, which reads the
106
+ submitted diff against a maintainer's checklist. Their verifier asks the model
107
+ through an OpenAI-compatible endpoint, by default OpenRouter, with a key you
108
+ supply:
109
+
110
+ | Task folder | Judged criterion | Share of the reward |
111
+ | --- | --- | --- |
112
+ | `help_defaults` | `maintainer_review` | 6.25% |
113
+ | `druid_lenient_script` | `maintainer_review` | 2% |
114
+ | `ahooks_request_cache_races` | `maintainer_review` | 3% |
115
+ | `bulkcreate_ignore_duplicates` | `maintainer_review` | 6.25% |
116
+
117
+ ```bash
118
+ export JUDGE_API_KEY=<your OpenRouter key>
119
+ python run_checks.py --task help_defaults --output checks-001
120
+ ```
121
+
122
+ - `JUDGE_MODEL` (default `anthropic/claude-sonnet-5.5`) and `JUDGE_BASE_URL`
123
+ (default `https://openrouter.ai/api/v1`) choose another model or endpoint.
124
+ Harbor reads all three from your shell when it starts the verifier; none is
125
+ written into the task. For an endpoint on another host, put that host in
126
+ `allowed_hosts` under `[verifier.environment]` in the task's `task.toml`:
127
+ the verifier of these tasks reaches that host and DNS, and nothing else.
128
+ - The key stays with the verifier's own process. The grader commands, which
129
+ run the submitted code, do not get it.
130
+ - Without a key, or when the judge does not answer, an attempt that needs the
131
+ judge is invalid: Harbor reports an error and no reward.
132
+ - The judge reads the diff, not the test results. Where a task's rubric does
133
+ not tie it to the tests, it can credit the design of a fix that does not
134
+ compile, so for these tasks the `broken` check expects every tested
135
+ criterion to earn nothing and the reward to stay within the judged share.
136
+ - The agent rewards recorded in the dataset were judged by `claude-haiku-4-5` on
137
+ HUD, so another model can score this criterion differently.
138
+
139
  ## Packaged tasks
140
 
141
  | Task folder | `instance_id` in the dataset | Language | Criteria |
142
  | --- | --- | --- | --- |
143
+ | `babylonjs_scene_remove_owner_refs_contract` | `BabylonJS__Babylon.js-babylonjs_scene_remove_owner_refs_contract-382616f8` | TypeScript | 16 |
144
  | `journal_recovery_after_unclean_stop` | `dgraph-io__badger-journal_recovery_after_unclean_stop` | Go | 8 |
145
  | `bazel_remote_disk_eviction_accounting_contract` | `buchgr__bazel-remote-bazel_remote_disk_eviction_accounting_contract-afe5ea56` | Go | 8 |
146
  | `celery_retry_expires_countdown_contract` | `celery__celery-celery_retry_expires_countdown_contract` | Python | 9 |
147
+ | `help_defaults` | `pallets__click-click-help-defaults` | Python | 11 |
148
+ | `druid_lenient_script` | `alibaba__druid-druid_lenient_script` | Java | 12 |
149
  | `epicyon_deleted_post_announce_cache_contract` | `bashrc2__epicyon-epicyon_deleted_post_announce_cache_contract-1c066303` | Python | 11 |
150
  | `geode_oql_index_null_semantics_contract` | `apache__geode-geode_oql_index_null_semantics_contract-1c066303` | Java | 10 |
151
  | `go_mysql_mariadb_compressed_columns` | `go-mysql-org__go-mysql-go_mysql_mariadb_compressed_columns` | Go | 9 |
152
+ | `ahooks_request_cache_races` | `alibaba__hooks-ahooks_request_cache_races` | TypeScript | 26 |
153
  | `kratos_cleanup_stale_flows_courier_contract` | `ory__kratos-kratos_cleanup_stale_flows_courier_contract` | Go | 9 |
154
  | `microblogpub_deleted_object_resurrect_lookup_contract` | `tsileo__microblog.pub-microblogpub_deleted_object_resurrect_lookup_contract-382616f8` | Python | 21 |
155
  | `mongoose_syncindexes_contract` | `Automattic__mongoose-mongoose_syncindexes_contract-97c2a76f` | JavaScript | 23 |
 
159
  | `pomerium_route_order_contract` | `pomerium__pomerium-pomerium_route_order_contract` | Go | 7 |
160
  | `rope_rename_all_reexport_owners_contract` | `python-rope__rope-rope_rename_all_reexport_owners_contract-1c066303` | Python | 8 |
161
  | `shared_handle_abandoned_operations` | `sfackler__rust-postgres-shared_handle_abandoned_operations` | Rust | 23 |
162
+ | `bulkcreate_ignore_duplicates` | `sequelize__sequelize-sequelize-bulkcreate-ignore-duplicates` | TypeScript | 12 |
163
  | `retained_top_level_names_keep_their_values` | `terser__terser-retained_top_level_names_keep_their_values` | JavaScript | 7 |
164
  | `xandikos_itip_recurrence_id_override_contract` | `jelmer__xandikos-xandikos_itip_recurrence_id_override_contract-c6aa163a` | Python | 13 |
165
  | `zettlr_clickable_keywords` | `Zettlr__Zettlr-zettlr_clickable_keywords` | TypeScript | 20 |
 
203
  `solution/` (reference fix).
204
  - `sources/`: each task's build context as downloaded from HUD. In twenty-two of
205
  them the environment name was changed to a neutral one (`ec-swe-...`, at most
206
+ four lines, in `env.py`, `pyproject.toml` and `tasks.py`). Besides, druid's
207
+ had comments shortened and three unused files removed, the four tasks with a
208
+ judged criterion read the judge's model from `JUDGE_MODEL`, and Babylon.js's
209
+ grader runs vitest from a copy of its harness, so that it needs no root.
210
+ `manifest.json` lists the changed files per task (`source_edited`). `sources/archives/` holds the
211
  original archive of each context that was not changed. `build_images.py`
212
  builds from these.
213
  - `build_images.py`, `run_checks.py`, `verify_bundle.py`: standard-library
 
232
  - The graders execute the submitted code. The isolation described above is a
233
  boundary, not a security certification.
234
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
harbor/checksums.json CHANGED
@@ -1,5 +1,10 @@
1
  {
2
  "build_images.py": "59af495284eb3e55f6b7f610479b405e5c7393e2648a4bb41b0750ab25f1f43d",
 
 
 
 
 
3
  "evidence/badger/agent-image-scan.txt": "d708a43a7a1d9edce90268ed1b43e91da81884ccfeb67dfdb10eb586295932c9",
4
  "evidence/badger/native-reference.json": "c1e76338352da1c6fe6257181cefc3abdef6286ed2506e8d4bd09abdda4c97df",
5
  "evidence/badger/reports/noop.json": "d6d2c4016c8cf206932d8402e90df2b39e4f7d29b58ed31aafd3d9c108019b16",
@@ -16,6 +21,16 @@
16
  "evidence/celery/reports/noop.json": "38cba61badc80e5d7870825450afb8b2a522c413a80f3671f298cfe28cd97034",
17
  "evidence/celery/reports/reference.json": "53c703669e3e43e9bae5df18e2888919f049e1363b3ab4dd1dbbb6607a7027e1",
18
  "evidence/celery/summary.json": "0213051e5f9bf89000e0adb0d710d22b3d1b964fe220a2abc17b5ba17c957b1a",
 
 
 
 
 
 
 
 
 
 
19
  "evidence/epicyon/agent-image-scan.txt": "64bde5342e850db50b7fc29e3b18160ee613b929eb011425c21719693bc9e402",
20
  "evidence/epicyon/author-calibration.txt": "3facadd155d7c36a78c7e9692a77ede6587591dc7ea3967484c369cf4f983768",
21
  "evidence/epicyon/native-reference.json": "b7f6c5e5a0d72d3730bc41be18424a3c8dcccdac5756acb715d863057ef3db91",
@@ -32,6 +47,11 @@
32
  "evidence/go-mysql/reports/noop.json": "74ed3807ee147af1fec8cc760fe0813f5978bc26e92b0c45930d5d3ccc4884c2",
33
  "evidence/go-mysql/reports/reference.json": "6d84683af55f52b9e73395fc91c41a16250b7f8047e608d04666c23d04c798e8",
34
  "evidence/go-mysql/summary.json": "d29387a02ef1cc8b7edd5797e9d1379fc5940bbfa7d2ba28e7ad25a7ce6578ac",
 
 
 
 
 
35
  "evidence/kratos/agent-image-scan.txt": "d74d2e805ad482efeab68eeb4325d6ca6137bdc7769fca5b4b6752cdd2aa6e48",
36
  "evidence/kratos/native-reference.json": "ba27b894289e4cf6e214b1f43a5226e481d765a7ddf698193ebdadced6f62edd",
37
  "evidence/kratos/reports/noop.json": "77623c3022a0e4f3fb1fe91c9d7add0db0dca92706988de29b63b85635bb3942",
@@ -82,6 +102,11 @@
82
  "evidence/rust-postgres/reports/noop.json": "424a0435573dffa91be37a3e73f8866efd3fce2fa58223aed4963e6ab1e79f82",
83
  "evidence/rust-postgres/reports/reference.json": "9e27c7c4a0657efa9a35fe48a93010c5c0fceabaab428ae5109e3544602d7f7f",
84
  "evidence/rust-postgres/summary.json": "d9e395baefbf89a4149269df3636933860cb5fec3b42ab85677d7a20b5504f54",
 
 
 
 
 
85
  "evidence/terser/agent-image-scan.txt": "adfea2db3b36681186a0b6a86b44d614ecaea4bddd5a450fce06b3bf54a055cf",
86
  "evidence/terser/native-reference.json": "f1e705df31cee57af0ff971cb68a4d6bda41547118596572806e6834b60d7e54",
87
  "evidence/terser/reports/noop.json": "5dfc7a9a01d43a3995edc494346b4e257b5cb0436b89b1487975db6c926d2233",
@@ -103,9 +128,9 @@
103
  "evidence/zod/reports/noop.json": "27c567c24789b240b14d24cb2d25a9e9151cb3d83c18e74dbb0559cc86cec2c8",
104
  "evidence/zod/reports/reference.json": "c77ba9fd4d0e99f08abd78e2a7100e691c46b890be98516c63a94803944935e8",
105
  "evidence/zod/summary.json": "258f27fc7d7f73e309197a549fff28c6593289b5f939268b77c3cd8dccc6137e",
106
- "manifest.json": "fbec3be90b03b78d56dc0016548fe35511479c8c5ac7ae4ea709eda3a25e206f",
107
- "README.md": "b63895b8f26018ad68c125775efb919627ef810d834827c3d3c9689360ea3bcf",
108
- "run_checks.py": "7b6e6b1b73094340091cfa149c2651d9090fd3d2966499e22fecfae78b496634",
109
  "sources/archives/zod-v7.tar.gz": "feb1e6acfc057e95a3a89532cb7f322f2c08f6bfea65556d66a04ceca877a5bc",
110
  "sources/babylonjs-v8/calibrate.py": "f9c3ab4fb2a84e59a9b2caeb7d460dd149a938aee0ae567857db10b43fc67cb8",
111
  "sources/babylonjs-v8/coding/__init__.py": "9ba11441d392f54835f33527d4a098f48528824a8f8c3c255cf4c140f89523bf",
@@ -122,7 +147,7 @@
122
  "sources/babylonjs-v8/task/grader/controls/w1.diff": "b323dd01b5dae2dd8b103652f22ba5bfa932bca615d8ca2cabfc012da19da69f",
123
  "sources/babylonjs-v8/task/grader/harness/cells.test.ts": "aa940296ffa498584135e2b87729186971a0db103e1f17b01a0b16cf50d01afc",
124
  "sources/babylonjs-v8/task/grader/harness/vitest.hud.mjs": "817d8cdf92b3c1c6fefef65a84bb45c66f0a3a5ba071167a27d0df28dfe37d66",
125
- "sources/babylonjs-v8/task/grader/run_grading.sh": "8150f6bab74a137ef8a264e447b90f8f05b025ba59a994e4219e67f5a94e9925",
126
  "sources/babylonjs-v8/task/prompt.md": "25fcc0a593f29e2d78bd000043980ab1d93d9359b8315013f582f7f7bbda8670",
127
  "sources/babylonjs-v8/tasks.py": "5c647abf07c219e0efdda59c856636b6adb7b98c308494e5d18c8f8eddc7bf3a",
128
  "sources/badger-v2/calibrate.py": "f35c8dc1c8faa328004feb739d066c6e0caa1041ffaa306fe33304f3080382e5",
@@ -890,6 +915,37 @@
890
  "sources/zod-v7/task/prompt.md": "ccba6e22ff101300ceadb9e2085b329510861280bde90f5ba39f741847b65401",
891
  "sources/zod-v7/tasks.py": "909599b29e5f41d12eada51cc7b1fb20364271ff3b5f600a78da6ab9082e5ba5",
892
  "sources/zod-v7/uv.lock": "4fda818d5c1f7c4d825afd9e5e15abd68cfde4db5d14d78ca97b371a11891ab4",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
893
  "tasks/bazel_remote_disk_eviction_accounting_contract/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
894
  "tasks/bazel_remote_disk_eviction_accounting_contract/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
895
  "tasks/bazel_remote_disk_eviction_accounting_contract/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
@@ -905,6 +961,22 @@
905
  "tasks/bazel_remote_disk_eviction_accounting_contract/tests/evidence.py": "3e22e7f7c1bcc06ed05ae9a94cc700bee16540863d1f2985d3a58cad7a709199",
906
  "tasks/bazel_remote_disk_eviction_accounting_contract/tests/test.sh": "02c7fe9b4c0389ebd3153ee32e124d4448fd85ca67c203a2f40208a51fd2bbc5",
907
  "tasks/bazel_remote_disk_eviction_accounting_contract/tests/verify.py": "a91257b1582f794ffacd8519a92883daaa08d7cb073f0b34219028dea3364431",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
908
  "tasks/celery_retry_expires_countdown_contract/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
909
  "tasks/celery_retry_expires_countdown_contract/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
910
  "tasks/celery_retry_expires_countdown_contract/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
@@ -920,6 +992,22 @@
920
  "tasks/celery_retry_expires_countdown_contract/tests/evidence.py": "3e22e7f7c1bcc06ed05ae9a94cc700bee16540863d1f2985d3a58cad7a709199",
921
  "tasks/celery_retry_expires_countdown_contract/tests/test.sh": "02c7fe9b4c0389ebd3153ee32e124d4448fd85ca67c203a2f40208a51fd2bbc5",
922
  "tasks/celery_retry_expires_countdown_contract/tests/verify.py": "a91257b1582f794ffacd8519a92883daaa08d7cb073f0b34219028dea3364431",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
923
  "tasks/epicyon_deleted_post_announce_cache_contract/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
924
  "tasks/epicyon_deleted_post_announce_cache_contract/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
925
  "tasks/epicyon_deleted_post_announce_cache_contract/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
@@ -965,6 +1053,22 @@
965
  "tasks/go_mysql_mariadb_compressed_columns/tests/evidence.py": "3e22e7f7c1bcc06ed05ae9a94cc700bee16540863d1f2985d3a58cad7a709199",
966
  "tasks/go_mysql_mariadb_compressed_columns/tests/test.sh": "02c7fe9b4c0389ebd3153ee32e124d4448fd85ca67c203a2f40208a51fd2bbc5",
967
  "tasks/go_mysql_mariadb_compressed_columns/tests/verify.py": "a91257b1582f794ffacd8519a92883daaa08d7cb073f0b34219028dea3364431",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
968
  "tasks/journal_recovery_after_unclean_stop/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
969
  "tasks/journal_recovery_after_unclean_stop/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
970
  "tasks/journal_recovery_after_unclean_stop/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
@@ -995,7 +1099,7 @@
995
  "tasks/kratos_cleanup_stale_flows_courier_contract/tests/evidence.py": "3e22e7f7c1bcc06ed05ae9a94cc700bee16540863d1f2985d3a58cad7a709199",
996
  "tasks/kratos_cleanup_stale_flows_courier_contract/tests/test.sh": "02c7fe9b4c0389ebd3153ee32e124d4448fd85ca67c203a2f40208a51fd2bbc5",
997
  "tasks/kratos_cleanup_stale_flows_courier_contract/tests/verify.py": "a91257b1582f794ffacd8519a92883daaa08d7cb073f0b34219028dea3364431",
998
- "tasks/manifest.json": "d8d44cd192b413efdfb4d05161f5276036e73159a82bacb581047dea1d8563df",
999
  "tasks/microblogpub_deleted_object_resurrect_lookup_contract/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
1000
  "tasks/microblogpub_deleted_object_resurrect_lookup_contract/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
1001
  "tasks/microblogpub_deleted_object_resurrect_lookup_contract/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
 
1
  {
2
  "build_images.py": "59af495284eb3e55f6b7f610479b405e5c7393e2648a4bb41b0750ab25f1f43d",
3
+ "evidence/babylonjs/agent-image-scan.txt": "1a2a1c532882a2d8224c83cf232f81c3fd3bf6feff9047403e0d37b2e4e0b93a",
4
+ "evidence/babylonjs/native-reference.json": "8664b58256c76d96efa4c27eed75480a586772388c86c58754be3f1836c1d61b",
5
+ "evidence/babylonjs/reports/noop.json": "5f63328390961abee880d9876ce4e4ca59a3ad94c9e5318082de6776f3cde5ba",
6
+ "evidence/babylonjs/reports/reference.json": "eb732cbe1196ad94fcc1c600b8a586b0b3f6cf396403a50f339a03fbb873a0a3",
7
+ "evidence/babylonjs/summary.json": "ae0b6e4b3082d365f07f30d9bc7814919b9ae20ae7d74ca3e8107b3dad1ea0e1",
8
  "evidence/badger/agent-image-scan.txt": "d708a43a7a1d9edce90268ed1b43e91da81884ccfeb67dfdb10eb586295932c9",
9
  "evidence/badger/native-reference.json": "c1e76338352da1c6fe6257181cefc3abdef6286ed2506e8d4bd09abdda4c97df",
10
  "evidence/badger/reports/noop.json": "d6d2c4016c8cf206932d8402e90df2b39e4f7d29b58ed31aafd3d9c108019b16",
 
21
  "evidence/celery/reports/noop.json": "38cba61badc80e5d7870825450afb8b2a522c413a80f3671f298cfe28cd97034",
22
  "evidence/celery/reports/reference.json": "53c703669e3e43e9bae5df18e2888919f049e1363b3ab4dd1dbbb6607a7027e1",
23
  "evidence/celery/summary.json": "0213051e5f9bf89000e0adb0d710d22b3d1b964fe220a2abc17b5ba17c957b1a",
24
+ "evidence/click/agent-image-scan.txt": "8884ffa19a98f172ef22c6f1b7ada9b8d866823d05cd88105056d8044168d9b2",
25
+ "evidence/click/native-reference.json": "fc18e57b70fb2678cc563cd193bdd6232a7398f33f6039398395adba3fc5d211",
26
+ "evidence/click/reports/noop.json": "0e7c2ae56cee4308fa8c34d0cba7640bb4777ae0021c180aa28e11e596e33459",
27
+ "evidence/click/reports/reference.json": "ffac3583614b6c9aebd478acab62ca27c42a13e861a7d7687932745ae431408d",
28
+ "evidence/click/summary.json": "ef5cc63f3c0bb4a57dcd2c3af6d8b91bcc9a0dc11aa70534cc1ed7d765991a67",
29
+ "evidence/druid/agent-image-scan.txt": "63f9f4359e92570d40806de33f7f529a18fdb4c79b9da0740bb56dfcc96fa448",
30
+ "evidence/druid/native-reference.json": "5e382656e0e465ccd675fd98d8c66a24828eacb2da48c936c80ee1a6622453f2",
31
+ "evidence/druid/reports/noop.json": "e063456df16c5a0dfe551ecaccdcf40d6c9ff9d00af36d1856194bdb081304c0",
32
+ "evidence/druid/reports/reference.json": "8e2116790e08a51f344cb14b700d46f7bcd6735cce5223b928d7087cbf888265",
33
+ "evidence/druid/summary.json": "e778f283bd40419fea6eec8d4265f598fe236078aa92f97d30a7eeb5813377ee",
34
  "evidence/epicyon/agent-image-scan.txt": "64bde5342e850db50b7fc29e3b18160ee613b929eb011425c21719693bc9e402",
35
  "evidence/epicyon/author-calibration.txt": "3facadd155d7c36a78c7e9692a77ede6587591dc7ea3967484c369cf4f983768",
36
  "evidence/epicyon/native-reference.json": "b7f6c5e5a0d72d3730bc41be18424a3c8dcccdac5756acb715d863057ef3db91",
 
47
  "evidence/go-mysql/reports/noop.json": "74ed3807ee147af1fec8cc760fe0813f5978bc26e92b0c45930d5d3ccc4884c2",
48
  "evidence/go-mysql/reports/reference.json": "6d84683af55f52b9e73395fc91c41a16250b7f8047e608d04666c23d04c798e8",
49
  "evidence/go-mysql/summary.json": "d29387a02ef1cc8b7edd5797e9d1379fc5940bbfa7d2ba28e7ad25a7ce6578ac",
50
+ "evidence/hooks/agent-image-scan.txt": "0e020f7c062e42ddd6edcaa9f510e2230ea472db80ac7ed4d0345792eb161d0a",
51
+ "evidence/hooks/native-reference.json": "96f8388e2269161b41e410693426418f47ed23792a8bf97d7bfde91d4a3e2ff5",
52
+ "evidence/hooks/reports/noop.json": "27c7c40db5476e9f4f76faefdbcb9611f721d59a485263fb2686d65df9409e6b",
53
+ "evidence/hooks/reports/reference.json": "ee7b106fac8970a22e91f15bb9a87bec4d0376ad09b6a85137b7e04da507e920",
54
+ "evidence/hooks/summary.json": "34c0b7d94d1af42cd2a2179299a4f1d95fe936464f6b3eb4622a70e3c6889e1c",
55
  "evidence/kratos/agent-image-scan.txt": "d74d2e805ad482efeab68eeb4325d6ca6137bdc7769fca5b4b6752cdd2aa6e48",
56
  "evidence/kratos/native-reference.json": "ba27b894289e4cf6e214b1f43a5226e481d765a7ddf698193ebdadced6f62edd",
57
  "evidence/kratos/reports/noop.json": "77623c3022a0e4f3fb1fe91c9d7add0db0dca92706988de29b63b85635bb3942",
 
102
  "evidence/rust-postgres/reports/noop.json": "424a0435573dffa91be37a3e73f8866efd3fce2fa58223aed4963e6ab1e79f82",
103
  "evidence/rust-postgres/reports/reference.json": "9e27c7c4a0657efa9a35fe48a93010c5c0fceabaab428ae5109e3544602d7f7f",
104
  "evidence/rust-postgres/summary.json": "d9e395baefbf89a4149269df3636933860cb5fec3b42ab85677d7a20b5504f54",
105
+ "evidence/sequelize/agent-image-scan.txt": "3c9c7bb409406a9d95b944840fc0131994095d20e5769eb83245659af9289c96",
106
+ "evidence/sequelize/native-reference.json": "91042e5fc97fda4690c70846ad68faa1f68fae766f67b70faeba5657edfea203",
107
+ "evidence/sequelize/reports/noop.json": "906b995534747f367c2595e71927173af8db9548b558f8583419963e6183ebb9",
108
+ "evidence/sequelize/reports/reference.json": "295ce7731dada5610d5a925a125d3f826415e2dd16a8635aa6fa499c504b1bbf",
109
+ "evidence/sequelize/summary.json": "a0fe6d3b69c3125359495502c78e80d9e2a589a1a007fe870005234c705e0875",
110
  "evidence/terser/agent-image-scan.txt": "adfea2db3b36681186a0b6a86b44d614ecaea4bddd5a450fce06b3bf54a055cf",
111
  "evidence/terser/native-reference.json": "f1e705df31cee57af0ff971cb68a4d6bda41547118596572806e6834b60d7e54",
112
  "evidence/terser/reports/noop.json": "5dfc7a9a01d43a3995edc494346b4e257b5cb0436b89b1487975db6c926d2233",
 
128
  "evidence/zod/reports/noop.json": "27c567c24789b240b14d24cb2d25a9e9151cb3d83c18e74dbb0559cc86cec2c8",
129
  "evidence/zod/reports/reference.json": "c77ba9fd4d0e99f08abd78e2a7100e691c46b890be98516c63a94803944935e8",
130
  "evidence/zod/summary.json": "258f27fc7d7f73e309197a549fff28c6593289b5f939268b77c3cd8dccc6137e",
131
+ "manifest.json": "2f52ee308601c8b43cb1a50b67a80f3c239420d8998a543aa8dbafdf6c25a4cb",
132
+ "README.md": "117041609f5b78ea8d0da005750bb773947780eca0b8b16fb60f15dde4e86c7f",
133
+ "run_checks.py": "44a896e622f49d76a20be7b88fd29a8d9f03e7a9490def1212466fce0aeebd20",
134
  "sources/archives/zod-v7.tar.gz": "feb1e6acfc057e95a3a89532cb7f322f2c08f6bfea65556d66a04ceca877a5bc",
135
  "sources/babylonjs-v8/calibrate.py": "f9c3ab4fb2a84e59a9b2caeb7d460dd149a938aee0ae567857db10b43fc67cb8",
136
  "sources/babylonjs-v8/coding/__init__.py": "9ba11441d392f54835f33527d4a098f48528824a8f8c3c255cf4c140f89523bf",
 
147
  "sources/babylonjs-v8/task/grader/controls/w1.diff": "b323dd01b5dae2dd8b103652f22ba5bfa932bca615d8ca2cabfc012da19da69f",
148
  "sources/babylonjs-v8/task/grader/harness/cells.test.ts": "aa940296ffa498584135e2b87729186971a0db103e1f17b01a0b16cf50d01afc",
149
  "sources/babylonjs-v8/task/grader/harness/vitest.hud.mjs": "817d8cdf92b3c1c6fefef65a84bb45c66f0a3a5ba071167a27d0df28dfe37d66",
150
+ "sources/babylonjs-v8/task/grader/run_grading.sh": "55fd958808254ca42611491ee98bcf468879eb004ad115561d26a6b947fa3bb4",
151
  "sources/babylonjs-v8/task/prompt.md": "25fcc0a593f29e2d78bd000043980ab1d93d9359b8315013f582f7f7bbda8670",
152
  "sources/babylonjs-v8/tasks.py": "5c647abf07c219e0efdda59c856636b6adb7b98c308494e5d18c8f8eddc7bf3a",
153
  "sources/badger-v2/calibrate.py": "f35c8dc1c8faa328004feb739d066c6e0caa1041ffaa306fe33304f3080382e5",
 
915
  "sources/zod-v7/task/prompt.md": "ccba6e22ff101300ceadb9e2085b329510861280bde90f5ba39f741847b65401",
916
  "sources/zod-v7/tasks.py": "909599b29e5f41d12eada51cc7b1fb20364271ff3b5f600a78da6ab9082e5ba5",
917
  "sources/zod-v7/uv.lock": "4fda818d5c1f7c4d825afd9e5e15abd68cfde4db5d14d78ca97b371a11891ab4",
918
+ "tasks/ahooks_request_cache_races/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
919
+ "tasks/ahooks_request_cache_races/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
920
+ "tasks/ahooks_request_cache_races/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
921
+ "tasks/ahooks_request_cache_races/environment/Dockerfile": "52690ed68dae7273ce6d05c05c59f25f860dfb0a39afe2982799579c0e4dcdc2",
922
+ "tasks/ahooks_request_cache_races/environment/sanitize.py": "de556482d17c97d629f663f2cf9120b6388f7131bab7ceab1fce11dff2eff407",
923
+ "tasks/ahooks_request_cache_races/instruction.md": "94bdf3c32abecc2dd911e282e9db50edacac40dc326a09599ecbf861143d0df8",
924
+ "tasks/ahooks_request_cache_races/solution/reference.patch": "dc6b980023955c10dc57d98e5c27448ae5097c4876e773cb55d26ae963eb0b2d",
925
+ "tasks/ahooks_request_cache_races/solution/solve.sh": "9a72996c101410de8c9935abf59ac710ad80b8dd5659466b53ea669af73cdef9",
926
+ "tasks/ahooks_request_cache_races/task.toml": "f05bd778a34d38cb846651858de2f50a0af99414dfcb0331cd84e51ebe923aff",
927
+ "tasks/ahooks_request_cache_races/tests/config.json": "bea35450e133af60c4329fab97dd87cd3250f96927481071ac8540e2154197dd",
928
+ "tasks/ahooks_request_cache_races/tests/docker-compose.yaml": "1b9a0aa66e743d2ef122a0241733d3aab5ee62d78e9e55f0f0cd668130eb740a",
929
+ "tasks/ahooks_request_cache_races/tests/Dockerfile": "d245ee951b42f3db5d87e6901732a096a8418db24d70edcf40c1a207f4c2a379",
930
+ "tasks/ahooks_request_cache_races/tests/evidence.py": "3e22e7f7c1bcc06ed05ae9a94cc700bee16540863d1f2985d3a58cad7a709199",
931
+ "tasks/ahooks_request_cache_races/tests/judge.py": "4bd8d8cb9f9a36838e74378f2cbcc19e6a593e18dd3f99a5dd46464199e87c08",
932
+ "tasks/ahooks_request_cache_races/tests/test.sh": "3202facd0717c6132e06163e0590ee06c33ebd8958cc4c67cd363a10b33a5067",
933
+ "tasks/ahooks_request_cache_races/tests/verify.py": "a91257b1582f794ffacd8519a92883daaa08d7cb073f0b34219028dea3364431",
934
+ "tasks/babylonjs_scene_remove_owner_refs_contract/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
935
+ "tasks/babylonjs_scene_remove_owner_refs_contract/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
936
+ "tasks/babylonjs_scene_remove_owner_refs_contract/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
937
+ "tasks/babylonjs_scene_remove_owner_refs_contract/environment/Dockerfile": "1614905908b86d2969021b8b6033f4d357297dc51633985e1005c700e4b926dd",
938
+ "tasks/babylonjs_scene_remove_owner_refs_contract/environment/sanitize.py": "de556482d17c97d629f663f2cf9120b6388f7131bab7ceab1fce11dff2eff407",
939
+ "tasks/babylonjs_scene_remove_owner_refs_contract/instruction.md": "a767903bd09616e57600196115bcefac31f544b9e571b1df90a3965a14b237fc",
940
+ "tasks/babylonjs_scene_remove_owner_refs_contract/solution/reference.patch": "0b210c1391f278f9ddece65c4a091d21c6be7eb595ee940e22fb785455253ab5",
941
+ "tasks/babylonjs_scene_remove_owner_refs_contract/solution/solve.sh": "06907b913c2202d8621a615cd0ee849c302ba40182f9c8f1983a873238573d10",
942
+ "tasks/babylonjs_scene_remove_owner_refs_contract/task.toml": "e17c08bbdcc5c2730d97587f8d8db8a667c5aa1a144bb78bf6debe49afa08266",
943
+ "tasks/babylonjs_scene_remove_owner_refs_contract/tests/config.json": "cc7f1038d8903ed619c17c896f8b2809ab46c133f6b7819b637f63d4c3ae8f7d",
944
+ "tasks/babylonjs_scene_remove_owner_refs_contract/tests/docker-compose.yaml": "8159b0badead234e0b7995f5b2c9d027b665cfb760bf2932d84806393e3cd878",
945
+ "tasks/babylonjs_scene_remove_owner_refs_contract/tests/Dockerfile": "ea1351d469701f173c7b038d90125604ad0180f13ef690b896accccc0d92e500",
946
+ "tasks/babylonjs_scene_remove_owner_refs_contract/tests/evidence.py": "3e22e7f7c1bcc06ed05ae9a94cc700bee16540863d1f2985d3a58cad7a709199",
947
+ "tasks/babylonjs_scene_remove_owner_refs_contract/tests/test.sh": "02c7fe9b4c0389ebd3153ee32e124d4448fd85ca67c203a2f40208a51fd2bbc5",
948
+ "tasks/babylonjs_scene_remove_owner_refs_contract/tests/verify.py": "a91257b1582f794ffacd8519a92883daaa08d7cb073f0b34219028dea3364431",
949
  "tasks/bazel_remote_disk_eviction_accounting_contract/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
950
  "tasks/bazel_remote_disk_eviction_accounting_contract/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
951
  "tasks/bazel_remote_disk_eviction_accounting_contract/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
 
961
  "tasks/bazel_remote_disk_eviction_accounting_contract/tests/evidence.py": "3e22e7f7c1bcc06ed05ae9a94cc700bee16540863d1f2985d3a58cad7a709199",
962
  "tasks/bazel_remote_disk_eviction_accounting_contract/tests/test.sh": "02c7fe9b4c0389ebd3153ee32e124d4448fd85ca67c203a2f40208a51fd2bbc5",
963
  "tasks/bazel_remote_disk_eviction_accounting_contract/tests/verify.py": "a91257b1582f794ffacd8519a92883daaa08d7cb073f0b34219028dea3364431",
964
+ "tasks/bulkcreate_ignore_duplicates/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
965
+ "tasks/bulkcreate_ignore_duplicates/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
966
+ "tasks/bulkcreate_ignore_duplicates/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
967
+ "tasks/bulkcreate_ignore_duplicates/environment/Dockerfile": "aaaab89ee5fde894ea3b8f3b18bcbf7c8d15613559bdfa9bc8c782f78a29bd60",
968
+ "tasks/bulkcreate_ignore_duplicates/environment/sanitize.py": "de556482d17c97d629f663f2cf9120b6388f7131bab7ceab1fce11dff2eff407",
969
+ "tasks/bulkcreate_ignore_duplicates/instruction.md": "5af13e8692d2b5e0a2cc196d0ea55ec1d80da81a8088fe0f66b7f28dff667c71",
970
+ "tasks/bulkcreate_ignore_duplicates/solution/reference.patch": "a6fd07c900a33be6db1976de48db2231ff124eeca110de2e3d2bd9e0c6ca7684",
971
+ "tasks/bulkcreate_ignore_duplicates/solution/solve.sh": "04a43ca9f515157ef2126b7f6685edd1d8b8481309f8c7d4304d4ca4f61d5538",
972
+ "tasks/bulkcreate_ignore_duplicates/task.toml": "4c512b65b195415dce84e1ae07f460d52a85cd160f2890d1625ae72bc60d76c7",
973
+ "tasks/bulkcreate_ignore_duplicates/tests/config.json": "2bc06a6a664ca2c67b8becf7293707348f1409fc6483992afda022b020f4656b",
974
+ "tasks/bulkcreate_ignore_duplicates/tests/docker-compose.yaml": "1b9a0aa66e743d2ef122a0241733d3aab5ee62d78e9e55f0f0cd668130eb740a",
975
+ "tasks/bulkcreate_ignore_duplicates/tests/Dockerfile": "bfb34fdf0586ff3ebd9c386d07a6519068b2c96ea822ad42a80c155a7b5cf68b",
976
+ "tasks/bulkcreate_ignore_duplicates/tests/evidence.py": "3e22e7f7c1bcc06ed05ae9a94cc700bee16540863d1f2985d3a58cad7a709199",
977
+ "tasks/bulkcreate_ignore_duplicates/tests/judge.py": "4bd8d8cb9f9a36838e74378f2cbcc19e6a593e18dd3f99a5dd46464199e87c08",
978
+ "tasks/bulkcreate_ignore_duplicates/tests/test.sh": "3202facd0717c6132e06163e0590ee06c33ebd8958cc4c67cd363a10b33a5067",
979
+ "tasks/bulkcreate_ignore_duplicates/tests/verify.py": "a91257b1582f794ffacd8519a92883daaa08d7cb073f0b34219028dea3364431",
980
  "tasks/celery_retry_expires_countdown_contract/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
981
  "tasks/celery_retry_expires_countdown_contract/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
982
  "tasks/celery_retry_expires_countdown_contract/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
 
992
  "tasks/celery_retry_expires_countdown_contract/tests/evidence.py": "3e22e7f7c1bcc06ed05ae9a94cc700bee16540863d1f2985d3a58cad7a709199",
993
  "tasks/celery_retry_expires_countdown_contract/tests/test.sh": "02c7fe9b4c0389ebd3153ee32e124d4448fd85ca67c203a2f40208a51fd2bbc5",
994
  "tasks/celery_retry_expires_countdown_contract/tests/verify.py": "a91257b1582f794ffacd8519a92883daaa08d7cb073f0b34219028dea3364431",
995
+ "tasks/druid_lenient_script/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
996
+ "tasks/druid_lenient_script/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
997
+ "tasks/druid_lenient_script/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
998
+ "tasks/druid_lenient_script/environment/Dockerfile": "ae3fdc2c70853735cf57b89d027366a11f028b45aeea8e33b6aa7c49e0de44de",
999
+ "tasks/druid_lenient_script/environment/sanitize.py": "de556482d17c97d629f663f2cf9120b6388f7131bab7ceab1fce11dff2eff407",
1000
+ "tasks/druid_lenient_script/instruction.md": "96d78214ca3bf9e88ea3a2682dbb0b8bfe6e199844ad4402e85d270e2921a4cc",
1001
+ "tasks/druid_lenient_script/solution/reference.patch": "adce1565f26d78f982a19fa3f5e7f18e44ddbae5dfe631a0f3fec6442daa228c",
1002
+ "tasks/druid_lenient_script/solution/solve.sh": "fb2bb8c3887cd80b57045ba559ad0a928a7b8bbef9caf2a9f20a941bb4d2ccf0",
1003
+ "tasks/druid_lenient_script/task.toml": "0140239b8c2ae396d5db40a573c8c4397ece32aaaf7c35c7563c3b8c0d944bd2",
1004
+ "tasks/druid_lenient_script/tests/config.json": "0c3cc16667ffec9e7829d6ac48bc4fa884e577b4b0b011ef03fb872ded386bcf",
1005
+ "tasks/druid_lenient_script/tests/docker-compose.yaml": "1b9a0aa66e743d2ef122a0241733d3aab5ee62d78e9e55f0f0cd668130eb740a",
1006
+ "tasks/druid_lenient_script/tests/Dockerfile": "fe43e5cbdf99d85152d057d0a7360c9783883aac3c03ae87c106898e779d05d1",
1007
+ "tasks/druid_lenient_script/tests/evidence.py": "3e22e7f7c1bcc06ed05ae9a94cc700bee16540863d1f2985d3a58cad7a709199",
1008
+ "tasks/druid_lenient_script/tests/judge.py": "4bd8d8cb9f9a36838e74378f2cbcc19e6a593e18dd3f99a5dd46464199e87c08",
1009
+ "tasks/druid_lenient_script/tests/test.sh": "33bd564876e309c0a5c6f55777e7f51567f647e017196d1bb3f6d649d153b5f7",
1010
+ "tasks/druid_lenient_script/tests/verify.py": "a91257b1582f794ffacd8519a92883daaa08d7cb073f0b34219028dea3364431",
1011
  "tasks/epicyon_deleted_post_announce_cache_contract/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
1012
  "tasks/epicyon_deleted_post_announce_cache_contract/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
1013
  "tasks/epicyon_deleted_post_announce_cache_contract/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
 
1053
  "tasks/go_mysql_mariadb_compressed_columns/tests/evidence.py": "3e22e7f7c1bcc06ed05ae9a94cc700bee16540863d1f2985d3a58cad7a709199",
1054
  "tasks/go_mysql_mariadb_compressed_columns/tests/test.sh": "02c7fe9b4c0389ebd3153ee32e124d4448fd85ca67c203a2f40208a51fd2bbc5",
1055
  "tasks/go_mysql_mariadb_compressed_columns/tests/verify.py": "a91257b1582f794ffacd8519a92883daaa08d7cb073f0b34219028dea3364431",
1056
+ "tasks/help_defaults/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
1057
+ "tasks/help_defaults/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
1058
+ "tasks/help_defaults/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
1059
+ "tasks/help_defaults/environment/Dockerfile": "9b87f5d18e5a0e1b24535753a00a61455c7f5632b4d18c8d5f8ae1aef31d170b",
1060
+ "tasks/help_defaults/environment/sanitize.py": "de556482d17c97d629f663f2cf9120b6388f7131bab7ceab1fce11dff2eff407",
1061
+ "tasks/help_defaults/instruction.md": "32fa11c0493199485f4f6fa5dc999414e15a02c690db2cb1567689e60cbd3dbd",
1062
+ "tasks/help_defaults/solution/reference.patch": "a4b6ffd958b6cb2d73f76f8410ebf72bec46d78669724ee72cdb907af8eac6b2",
1063
+ "tasks/help_defaults/solution/solve.sh": "0453e08079e26a032f8a9e3020c6f30a534668cf571fa880a50e63418163818c",
1064
+ "tasks/help_defaults/task.toml": "1bc71c50115249a32064c1e5fc6cbcbec0b75e114a6a043f3d1ee94f80e81b7f",
1065
+ "tasks/help_defaults/tests/config.json": "76c9afceab94a82343fedf9b052287455fbebc5f79bd6e66b02d7d32ff5f920e",
1066
+ "tasks/help_defaults/tests/docker-compose.yaml": "1b9a0aa66e743d2ef122a0241733d3aab5ee62d78e9e55f0f0cd668130eb740a",
1067
+ "tasks/help_defaults/tests/Dockerfile": "3e523ee1c7d7375ce7da21d8c70802444782b917c7e7e97d649e431be6901bf6",
1068
+ "tasks/help_defaults/tests/evidence.py": "3e22e7f7c1bcc06ed05ae9a94cc700bee16540863d1f2985d3a58cad7a709199",
1069
+ "tasks/help_defaults/tests/judge.py": "4bd8d8cb9f9a36838e74378f2cbcc19e6a593e18dd3f99a5dd46464199e87c08",
1070
+ "tasks/help_defaults/tests/test.sh": "3202facd0717c6132e06163e0590ee06c33ebd8958cc4c67cd363a10b33a5067",
1071
+ "tasks/help_defaults/tests/verify.py": "a91257b1582f794ffacd8519a92883daaa08d7cb073f0b34219028dea3364431",
1072
  "tasks/journal_recovery_after_unclean_stop/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
1073
  "tasks/journal_recovery_after_unclean_stop/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
1074
  "tasks/journal_recovery_after_unclean_stop/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
 
1099
  "tasks/kratos_cleanup_stale_flows_courier_contract/tests/evidence.py": "3e22e7f7c1bcc06ed05ae9a94cc700bee16540863d1f2985d3a58cad7a709199",
1100
  "tasks/kratos_cleanup_stale_flows_courier_contract/tests/test.sh": "02c7fe9b4c0389ebd3153ee32e124d4448fd85ca67c203a2f40208a51fd2bbc5",
1101
  "tasks/kratos_cleanup_stale_flows_courier_contract/tests/verify.py": "a91257b1582f794ffacd8519a92883daaa08d7cb073f0b34219028dea3364431",
1102
+ "tasks/manifest.json": "1ed47be0304b275727e50ec469519bbf92addecfd90874b5949d9ba4a317a4cd",
1103
  "tasks/microblogpub_deleted_object_resurrect_lookup_contract/environment/capture.py": "77c3c482a5590c9cbfc8489c556a8d57b150a0850baee666656f1b0d0d84a9f9",
1104
  "tasks/microblogpub_deleted_object_resurrect_lookup_contract/environment/capture_submission.py": "85fe091fee151a60d43160dd1cadd83edf1218844c2fb248e88dbbab22df60f8",
1105
  "tasks/microblogpub_deleted_object_resurrect_lookup_contract/environment/docker-compose.yaml": "b07573ec6bd178357718fde3cfb9df44a1a8bd4a87c7b091c8caff1807848b1a",
harbor/evidence/babylonjs/agent-image-scan.txt ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ needles: 478
2
+ 1 matching line(s): /workspace/repo/vitest.config.mts
3
+ 1 matching line(s): /workspace/repo/packages/tools/nodeGeometryEditor/test/unit/webMcp.test.ts
4
+ 1 matching line(s): /workspace/repo/packages/tools/nodeGeometryEditor/src/components/preview/previewManager.ts
5
+ 1 matching line(s): /workspace/repo/packages/tools/nodeGeometryEditor/src/graphSystem/properties/meshNodePropertyComponent.tsx
6
+ 1 matching line(s): /workspace/repo/packages/tools/nodeGeometryEditor/src/sharedComponents/textureLineComponent.tsx
7
+ 1 matching line(s): /workspace/repo/packages/tools/devHost/vite.config.ts
8
+ 4 matching line(s): /workspace/repo/packages/tools/devHost/src/bodyTracking/main.ts
9
+ 2 matching line(s): /workspace/repo/packages/tools/devHost/src/webxrOverWebGPU/main.ts
10
+ 7 matching line(s): /workspace/repo/packages/tools/devHost/src/flowgraph/createScene.ts
11
+ 4 matching line(s): /workspace/repo/packages/tools/devHost/src/testScene/createScene.ts
12
+ 2 matching line(s): /workspace/repo/packages/tools/tests/test/unit/treeShakingSideEffects.test.ts
13
+ 1 matching line(s): /workspace/repo/packages/tools/viewer-configurator/src/components/configurator/configurator.tsx
14
+ 1 matching line(s): /workspace/repo/packages/tools/sandbox/src/sandbox.tsx
15
+ 1 matching line(s): /workspace/repo/packages/tools/nrge-mcp-server/test/unit/registryDrift.test.ts
16
+ 1 matching line(s): /workspace/repo/packages/tools/nodeRenderGraphEditor/src/components/preview/previewManager.ts
17
+ 1 matching line(s): /workspace/repo/packages/tools/nodeRenderGraphEditor/src/sharedComponents/textureLineComponent.tsx
18
+ 1 matching line(s): /workspace/repo/packages/tools/flowGraphEditor/test/unit/serializationTools.test.ts
19
+ 1 matching line(s): /workspace/repo/packages/tools/flowGraphEditor/src/sceneContext.ts
20
+ 1 matching line(s): /workspace/repo/packages/tools/flowGraphEditor/src/components/preview/scenePreviewComponent.tsx
21
+ 1 matching line(s): /workspace/repo/packages/tools/vsm/src/components/tools/useSceneNode.ts
22
+ 1 matching line(s): /workspace/repo/packages/tools/vsm/src/actions/triggers/ClickTrigger.ts
23
+ 1 matching line(s): /workspace/repo/packages/tools/vsm/src/stateMachine/StateMachine.ts
24
+ 1 matching line(s): /workspace/repo/packages/tools/smart-filters-mcp-server/test/unit/registryDrift.test.ts
25
+ 1 matching line(s): /workspace/repo/packages/tools/viewer/vite.config.mjs
26
+ 2 matching line(s): /workspace/repo/packages/tools/viewer/src/full/viewer.ts
27
+ 1 matching line(s): /workspace/repo/packages/tools/testTools/src/window.d.ts
28
+ 4 matching line(s): /workspace/repo/packages/tools/nodeEditor/src/components/preview/previewManager.ts
29
+ 1 matching line(s): /workspace/repo/packages/tools/nodeEditor/src/sharedComponents/textureLineComponent.tsx
30
+ 1 matching line(s): /workspace/repo/packages/tools/accessibility/src/HtmlTwin/htmlTwinItem.tsx
31
+ 2 matching line(s): /workspace/repo/packages/tools/nodeParticleEditor/src/components/preview/previewManager.ts
32
+ 1 matching line(s): /workspace/repo/packages/tools/nodeParticleEditor/src/graphSystem/properties/meshShapeNodePropertyComponent.tsx
33
+ 1 matching line(s): /workspace/repo/packages/tools/nodeParticleEditor/src/sharedComponents/textureLineComponent.tsx
34
+ scan finished
35
+ absent: /hud
36
+ absent: /app
37
+ absent: /tests
38
+ present: /opt/task-tools/baseline.git
39
+ reference-patch lines in the agent's tracked files: 21, of which the pristine checkout lacks: 0
40
+ grader lines in the agent's tracked files: 9, of which the pristine checkout lacks: 0
41
+ reference-patch lines in total: 189, grader lines in total: 289
42
+ private lines in 0 other files outside the checkout: 0, of which upstream lacks: 0
43
+ --- private lines only the agent's checkout holds (expect none)
44
+ --- the agent's checkout: uncommitted changes (expect none), then its history
45
+ 1c6f89e baseline
harbor/evidence/babylonjs/native-reference.json ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "reward": 1.0,
3
+ "done": true,
4
+ "content": null,
5
+ "info": {},
6
+ "isError": false,
7
+ "subscores": [
8
+ {
9
+ "name": "removed_mesh_leaves_the_shadow_map",
10
+ "weight": 0.03,
11
+ "value": 1.0,
12
+ "children": null,
13
+ "info": {
14
+ "exit_code": 0,
15
+ "stdout": "PASS: removed_mesh_leaves_the_shadow_map -- shadow:boxA=0 shadow:boxB=4 main:boxA=0\n",
16
+ "stderr": "",
17
+ "_parameters": {
18
+ "command": "bash /hud/grader/run_grading.sh removed_mesh_leaves_the_shadow_map 600",
19
+ "cwd": "/workspace/repo",
20
+ "timeout_seconds": 600
21
+ }
22
+ }
23
+ },
24
+ {
25
+ "name": "unloaded_container_leaves_every_pass",
26
+ "weight": 0.03,
27
+ "value": 1.0,
28
+ "children": null,
29
+ "info": {
30
+ "exit_code": 0,
31
+ "stdout": "PASS: unloaded_container_leaves_every_pass -- shadow:house=0 shadow:chimney=0 screen:house=0 screen:chimney=0 shadow:boxB=4 screen:boxB=4\n",
32
+ "stderr": "",
33
+ "_parameters": {
34
+ "command": "bash /hud/grader/run_grading.sh unloaded_container_leaves_every_pass 600",
35
+ "cwd": "/workspace/repo",
36
+ "timeout_seconds": 600
37
+ }
38
+ }
39
+ },
40
+ {
41
+ "name": "unloaded_camera_render_target_stops_refreshing",
42
+ "weight": 0.03,
43
+ "value": 1.0,
44
+ "children": null,
45
+ "info": {
46
+ "exit_code": 0,
47
+ "stdout": "PASS: unloaded_camera_render_target_stops_refreshing -- renders after unloading gone=0 stays=4\n",
48
+ "stderr": "",
49
+ "_parameters": {
50
+ "command": "bash /hud/grader/run_grading.sh unloaded_camera_render_target_stops_refreshing 600",
51
+ "cwd": "/workspace/repo",
52
+ "timeout_seconds": 600
53
+ }
54
+ }
55
+ },
56
+ {
57
+ "name": "removed_procedural_texture_stops_regenerating",
58
+ "weight": 0.03,
59
+ "value": 1.0,
60
+ "children": null,
61
+ "info": {
62
+ "exit_code": 0,
63
+ "stdout": "PASS: removed_procedural_texture_stops_regenerating -- generations after removal gone=0 stays=4\n",
64
+ "stderr": "",
65
+ "_parameters": {
66
+ "command": "bash /hud/grader/run_grading.sh removed_procedural_texture_stops_regenerating 600",
67
+ "cwd": "/workspace/repo",
68
+ "timeout_seconds": 600
69
+ }
70
+ }
71
+ },
72
+ {
73
+ "name": "a_texture_gone_while_its_camera_was_away_stays_silent",
74
+ "weight": 0.06,
75
+ "value": 1.0,
76
+ "children": null,
77
+ "info": {
78
+ "exit_code": 0,
79
+ "stdout": "PASS: a_texture_gone_while_its_camera_was_away_stays_silent -- {\"monitor\":0,\"feed\":4}\n",
80
+ "stderr": "",
81
+ "_parameters": {
82
+ "command": "bash /hud/grader/run_grading.sh a_texture_gone_while_its_camera_was_away_stays_silent 600",
83
+ "cwd": "/workspace/repo",
84
+ "timeout_seconds": 600
85
+ }
86
+ }
87
+ },
88
+ {
89
+ "name": "a_mesh_listed_twice_leaves_the_pass",
90
+ "weight": 0.15,
91
+ "value": 1.0,
92
+ "children": null,
93
+ "info": {
94
+ "exit_code": 0,
95
+ "stdout": "PASS: a_mesh_listed_twice_leaves_the_pass -- screen:boxA=0 screen:boxB=4\n",
96
+ "stderr": "",
97
+ "_parameters": {
98
+ "command": "bash /hud/grader/run_grading.sh a_mesh_listed_twice_leaves_the_pass 600",
99
+ "cwd": "/workspace/repo",
100
+ "timeout_seconds": 600
101
+ }
102
+ }
103
+ },
104
+ {
105
+ "name": "unloading_again_keeps_what_we_listed",
106
+ "weight": 0.06,
107
+ "value": 1.0,
108
+ "children": null,
109
+ "info": {
110
+ "exit_code": 0,
111
+ "stdout": "PASS: unloading_again_keeps_what_we_listed -- preview:house=4 shadow:shed=0 screen:shed=0 shadow:house=0 screen:house=0 shadow:tree=4 main:house=0\n",
112
+ "stderr": "",
113
+ "_parameters": {
114
+ "command": "bash /hud/grader/run_grading.sh unloading_again_keeps_what_we_listed 600",
115
+ "cwd": "/workspace/repo",
116
+ "timeout_seconds": 600
117
+ }
118
+ }
119
+ },
120
+ {
121
+ "name": "put_back_meshes_are_drawn_in_their_former_order",
122
+ "weight": 0.15,
123
+ "value": 1.0,
124
+ "children": null,
125
+ "info": {
126
+ "exit_code": 0,
127
+ "stdout": "PASS: put_back_meshes_are_drawn_in_their_former_order -- drawn as before: shadow:well,house,barn,tree,rock screen:well,house,barn,tree,rock lake:well,house,barn,tree\n",
128
+ "stderr": "",
129
+ "_parameters": {
130
+ "command": "bash /hud/grader/run_grading.sh put_back_meshes_are_drawn_in_their_former_order 600",
131
+ "cwd": "/workspace/repo",
132
+ "timeout_seconds": 600
133
+ }
134
+ }
135
+ },
136
+ {
137
+ "name": "a_mesh_listed_twice_comes_back_twice",
138
+ "weight": 0.15,
139
+ "value": 1.0,
140
+ "children": null,
141
+ "info": {
142
+ "exit_code": 0,
143
+ "stdout": "PASS: a_mesh_listed_twice_comes_back_twice -- per frame boxA=2 boxB=1; list [boxA,boxA,boxB]\n",
144
+ "stderr": "",
145
+ "_parameters": {
146
+ "command": "bash /hud/grader/run_grading.sh a_mesh_listed_twice_comes_back_twice 600",
147
+ "cwd": "/workspace/repo",
148
+ "timeout_seconds": 600
149
+ }
150
+ }
151
+ },
152
+ {
153
+ "name": "put_back_render_targets_refresh_in_their_former_turn",
154
+ "weight": 0.12,
155
+ "value": 1.0,
156
+ "children": null,
157
+ "info": {
158
+ "exit_code": 0,
159
+ "stdout": "PASS: put_back_render_targets_refresh_in_their_former_turn -- turns per frame far,gate,near,cam-far,cam-gate,cam-near\n",
160
+ "stderr": "",
161
+ "_parameters": {
162
+ "command": "bash /hud/grader/run_grading.sh put_back_render_targets_refresh_in_their_former_turn 600",
163
+ "cwd": "/workspace/repo",
164
+ "timeout_seconds": 600
165
+ }
166
+ }
167
+ },
168
+ {
169
+ "name": "put_back_procedural_textures_regenerate_in_their_former_turn",
170
+ "weight": 0.04,
171
+ "value": 1.0,
172
+ "children": null,
173
+ "info": {
174
+ "exit_code": 0,
175
+ "stdout": "PASS: put_back_procedural_textures_regenerate_in_their_former_turn -- turns per frame clouds,sand,waves\n",
176
+ "stderr": "",
177
+ "_parameters": {
178
+ "command": "bash /hud/grader/run_grading.sh put_back_procedural_textures_regenerate_in_their_former_turn 600",
179
+ "cwd": "/workspace/repo",
180
+ "timeout_seconds": 600
181
+ }
182
+ }
183
+ },
184
+ {
185
+ "name": "put_back_meshes_are_drawn_as_before",
186
+ "weight": 0.03,
187
+ "value": 1.0,
188
+ "children": null,
189
+ "info": {
190
+ "exit_code": 0,
191
+ "stdout": "PASS: put_back_meshes_are_drawn_as_before -- every pass draws the put-back meshes again; shadow=[chimney,house,rock,tree] screen=[chimney,house,rock,tree] monitor=[house,tree] lake=[chimney,house,tree] lamp.excluded=[house]\n",
192
+ "stderr": "",
193
+ "_parameters": {
194
+ "command": "CORE_GREEN=1 bash /hud/grader/run_grading.sh put_back_meshes_are_drawn_as_before 600",
195
+ "cwd": "/workspace/repo",
196
+ "timeout_seconds": 600
197
+ }
198
+ }
199
+ },
200
+ {
201
+ "name": "put_back_textures_refresh_as_before",
202
+ "weight": 0.03,
203
+ "value": 1.0,
204
+ "children": null,
205
+ "info": {
206
+ "exit_code": 0,
207
+ "stdout": "PASS: put_back_textures_refresh_as_before -- every put-back texture refreshes again; scene=[screen] camera=[monitor] procedural=[clouds]\n",
208
+ "stderr": "",
209
+ "_parameters": {
210
+ "command": "CORE_GREEN=1 bash /hud/grader/run_grading.sh put_back_textures_refresh_as_before 600",
211
+ "cwd": "/workspace/repo",
212
+ "timeout_seconds": 600
213
+ }
214
+ }
215
+ },
216
+ {
217
+ "name": "what_stays_in_the_scene_is_untouched",
218
+ "weight": 0.03,
219
+ "value": 1.0,
220
+ "children": null,
221
+ "info": {
222
+ "exit_code": 0,
223
+ "stdout": "PASS: what_stays_in_the_scene_is_untouched -- main:wheel=4 main:tree=4 shadow:wheel=4 shadow:tree=4 screen:wheel=4 screen:tree=4; cart:enabled=true,visible=true,receiveShadows=false\n",
224
+ "stderr": "",
225
+ "_parameters": {
226
+ "command": "CORE_GREEN=1 bash /hud/grader/run_grading.sh what_stays_in_the_scene_is_untouched 600",
227
+ "cwd": "/workspace/repo",
228
+ "timeout_seconds": 600
229
+ }
230
+ }
231
+ },
232
+ {
233
+ "name": "a_mesh_listed_after_removal_is_drawn_there",
234
+ "weight": 0.03,
235
+ "value": 1.0,
236
+ "children": null,
237
+ "info": {
238
+ "exit_code": 0,
239
+ "stdout": "PASS: a_mesh_listed_after_removal_is_drawn_there -- own:helper=2 screen:helper=2 shadow:helper=1 screen:tree=2 shadow:tree=1 main:helper=0\n",
240
+ "stderr": "",
241
+ "_parameters": {
242
+ "command": "CORE_GREEN=1 bash /hud/grader/run_grading.sh a_mesh_listed_after_removal_is_drawn_there 600",
243
+ "cwd": "/workspace/repo",
244
+ "timeout_seconds": 600
245
+ }
246
+ }
247
+ },
248
+ {
249
+ "name": "gate_repo_suite_green_and_tests_untouched",
250
+ "weight": 0.03,
251
+ "value": 1.0,
252
+ "children": null,
253
+ "info": {
254
+ "exit_code": 0,
255
+ "stdout": "PASS: gate_repo_suite_green_and_tests_untouched (231 repository suites green, none of its test files edited)\n",
256
+ "stderr": "",
257
+ "_parameters": {
258
+ "command": "CORE_GREEN=1 bash /hud/grader/run_grading.sh gate_repo_suite_green_and_tests_untouched 900",
259
+ "cwd": "/workspace/repo",
260
+ "timeout_seconds": 900
261
+ }
262
+ }
263
+ }
264
+ ]
265
+ }
harbor/evidence/babylonjs/reports/noop.json ADDED
@@ -0,0 +1,541 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "revision": "coding-rubric-v2",
3
+ "task_id": "babylonjs_scene_remove_owner_refs_contract",
4
+ "grader_version": "0.6.15",
5
+ "commands": [
6
+ {
7
+ "name": "removed_mesh_leaves_the_shadow_map",
8
+ "weight": 0.03,
9
+ "value": 0.0,
10
+ "children": null,
11
+ "info": {
12
+ "exit_code": 1,
13
+ "stdout": "FAIL: removed_mesh_leaves_the_shadow_map -- the sun still draws the removed mesh into its shadow map: shadow:boxA=4 shadow:boxB=4 main:boxA=0\n",
14
+ "stderr": "",
15
+ "_parameters": {
16
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh removed_mesh_leaves_the_shadow_map 600'",
17
+ "cwd": "/workspace/repo",
18
+ "timeout_seconds": 600
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "name": "unloaded_container_leaves_every_pass",
24
+ "weight": 0.03,
25
+ "value": 0.0,
26
+ "children": null,
27
+ "info": {
28
+ "exit_code": 1,
29
+ "stdout": "FAIL: unloaded_container_leaves_every_pass -- an unloaded container's meshes are still drawn by the scene: shadow:house=4 shadow:chimney=4 screen:house=4 screen:chimney=4 shadow:boxB=4 screen:boxB=4\n",
30
+ "stderr": "",
31
+ "_parameters": {
32
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh unloaded_container_leaves_every_pass 600'",
33
+ "cwd": "/workspace/repo",
34
+ "timeout_seconds": 600
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "name": "unloaded_camera_render_target_stops_refreshing",
40
+ "weight": 0.03,
41
+ "value": 0.0,
42
+ "children": null,
43
+ "info": {
44
+ "exit_code": 1,
45
+ "stdout": "FAIL: unloaded_camera_render_target_stops_refreshing -- a camera render target unloaded with its container is still rendered every frame: renders after unloading gone=4 stays=4\n",
46
+ "stderr": "",
47
+ "_parameters": {
48
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh unloaded_camera_render_target_stops_refreshing 600'",
49
+ "cwd": "/workspace/repo",
50
+ "timeout_seconds": 600
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "removed_procedural_texture_stops_regenerating",
56
+ "weight": 0.03,
57
+ "value": 0.0,
58
+ "children": null,
59
+ "info": {
60
+ "exit_code": 1,
61
+ "stdout": "FAIL: removed_procedural_texture_stops_regenerating -- a procedural texture taken out of the scene is still regenerated every frame: generations after removal gone=4 stays=4\n",
62
+ "stderr": "",
63
+ "_parameters": {
64
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh removed_procedural_texture_stops_regenerating 600'",
65
+ "cwd": "/workspace/repo",
66
+ "timeout_seconds": 600
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "name": "a_texture_gone_while_its_camera_was_away_stays_silent",
72
+ "weight": 0.06,
73
+ "value": 0.0,
74
+ "children": null,
75
+ "info": {
76
+ "exit_code": 1,
77
+ "stdout": "FAIL: a_texture_gone_while_its_camera_was_away_stays_silent -- a render target out of the scene is rendered again because its camera came back: {\"monitor\":4,\"feed\":4}\n",
78
+ "stderr": "",
79
+ "_parameters": {
80
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh a_texture_gone_while_its_camera_was_away_stays_silent 600'",
81
+ "cwd": "/workspace/repo",
82
+ "timeout_seconds": 600
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "name": "a_mesh_listed_twice_leaves_the_pass",
88
+ "weight": 0.15,
89
+ "value": 0.0,
90
+ "children": null,
91
+ "info": {
92
+ "exit_code": 1,
93
+ "stdout": "FAIL: a_mesh_listed_twice_leaves_the_pass -- a mesh listed twice in a render target is still drawn there after it was taken out: screen:boxA=8 screen:boxB=4\n",
94
+ "stderr": "",
95
+ "_parameters": {
96
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh a_mesh_listed_twice_leaves_the_pass 600'",
97
+ "cwd": "/workspace/repo",
98
+ "timeout_seconds": 600
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "unloading_again_keeps_what_we_listed",
104
+ "weight": 0.06,
105
+ "value": 0.0,
106
+ "children": null,
107
+ "info": {
108
+ "exit_code": 1,
109
+ "stdout": "FAIL: unloading_again_keeps_what_we_listed -- the unloaded chunk is still drawn: preview:house=4 shadow:shed=4 screen:shed=4 shadow:house=4 screen:house=4 shadow:tree=4 main:house=0\n",
110
+ "stderr": "",
111
+ "_parameters": {
112
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh unloading_again_keeps_what_we_listed 600'",
113
+ "cwd": "/workspace/repo",
114
+ "timeout_seconds": 600
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "name": "put_back_meshes_are_drawn_in_their_former_order",
120
+ "weight": 0.15,
121
+ "value": 0.0,
122
+ "children": null,
123
+ "info": {
124
+ "exit_code": 1,
125
+ "stdout": "FAIL: put_back_meshes_are_drawn_in_their_former_order -- while the chunk was out, the passes still drew it: shadow:well,house,barn,tree,rock,well,house,barn,tree,rock screen:well,house,barn,tree,rock,well,house,barn,tree,rock lake:well,house,barn,tree,well,house,barn,tree\n",
126
+ "stderr": "",
127
+ "_parameters": {
128
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh put_back_meshes_are_drawn_in_their_former_order 600'",
129
+ "cwd": "/workspace/repo",
130
+ "timeout_seconds": 600
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "name": "a_mesh_listed_twice_comes_back_twice",
136
+ "weight": 0.15,
137
+ "value": 0.0,
138
+ "children": null,
139
+ "info": {
140
+ "exit_code": 1,
141
+ "stdout": "FAIL: a_mesh_listed_twice_comes_back_twice -- while it was out, the render target still drew the mesh listed twice (or stopped drawing the other): screen:boxA=8 screen:boxB=4\n",
142
+ "stderr": "",
143
+ "_parameters": {
144
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh a_mesh_listed_twice_comes_back_twice 600'",
145
+ "cwd": "/workspace/repo",
146
+ "timeout_seconds": 600
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "name": "put_back_render_targets_refresh_in_their_former_turn",
152
+ "weight": 0.12,
153
+ "value": 0.0,
154
+ "children": null,
155
+ "info": {
156
+ "exit_code": 1,
157
+ "stdout": "FAIL: put_back_render_targets_refresh_in_their_former_turn -- while the chunk was out, its render targets still refreshed: far,gate,near,cam-far,cam-gate,cam-near,far,gate,near,cam-far,cam-gate,cam-near\n",
158
+ "stderr": "",
159
+ "_parameters": {
160
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh put_back_render_targets_refresh_in_their_former_turn 600'",
161
+ "cwd": "/workspace/repo",
162
+ "timeout_seconds": 600
163
+ }
164
+ }
165
+ },
166
+ {
167
+ "name": "put_back_procedural_textures_regenerate_in_their_former_turn",
168
+ "weight": 0.04,
169
+ "value": 0.0,
170
+ "children": null,
171
+ "info": {
172
+ "exit_code": 1,
173
+ "stdout": "FAIL: put_back_procedural_textures_regenerate_in_their_former_turn -- while the chunk was out: clouds,sand,waves,clouds,sand,waves\n",
174
+ "stderr": "",
175
+ "_parameters": {
176
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh put_back_procedural_textures_regenerate_in_their_former_turn 600'",
177
+ "cwd": "/workspace/repo",
178
+ "timeout_seconds": 600
179
+ }
180
+ }
181
+ },
182
+ {
183
+ "name": "put_back_meshes_are_drawn_as_before",
184
+ "weight": 0.03,
185
+ "value": 0.0,
186
+ "children": null,
187
+ "info": {
188
+ "exit_code": 1,
189
+ "stdout": "RULE OK: put_back_meshes_are_drawn_as_before -- every pass draws the put-back meshes again; shadow=[chimney,house,rock,tree] screen=[chimney,house,rock,tree] monitor=[house,tree] lake=[chimney,house,tree] lamp.excluded=[house]\nFAIL: put_back_meshes_are_drawn_as_before -- not paid: no scored behaviour was fixed (the rule above holds on a tree nobody has touched, so it earns its weight only beside a green cell of the contract)\n",
190
+ "stderr": "",
191
+ "_parameters": {
192
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=0 bash /hud/grader/run_grading.sh put_back_meshes_are_drawn_as_before 600'",
193
+ "cwd": "/workspace/repo",
194
+ "timeout_seconds": 600
195
+ }
196
+ }
197
+ },
198
+ {
199
+ "name": "put_back_textures_refresh_as_before",
200
+ "weight": 0.03,
201
+ "value": 0.0,
202
+ "children": null,
203
+ "info": {
204
+ "exit_code": 1,
205
+ "stdout": "RULE OK: put_back_textures_refresh_as_before -- every put-back texture refreshes again; scene=[screen] camera=[monitor] procedural=[clouds]\nFAIL: put_back_textures_refresh_as_before -- not paid: no scored behaviour was fixed (the rule above holds on a tree nobody has touched, so it earns its weight only beside a green cell of the contract)\n",
206
+ "stderr": "",
207
+ "_parameters": {
208
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=0 bash /hud/grader/run_grading.sh put_back_textures_refresh_as_before 600'",
209
+ "cwd": "/workspace/repo",
210
+ "timeout_seconds": 600
211
+ }
212
+ }
213
+ },
214
+ {
215
+ "name": "what_stays_in_the_scene_is_untouched",
216
+ "weight": 0.03,
217
+ "value": 0.0,
218
+ "children": null,
219
+ "info": {
220
+ "exit_code": 1,
221
+ "stdout": "RULE OK: what_stays_in_the_scene_is_untouched -- main:wheel=4 main:tree=4 shadow:wheel=4 shadow:tree=4 screen:wheel=4 screen:tree=4; cart:enabled=true,visible=true,receiveShadows=false\nFAIL: what_stays_in_the_scene_is_untouched -- not paid: no scored behaviour was fixed (the rule above holds on a tree nobody has touched, so it earns its weight only beside a green cell of the contract)\n",
222
+ "stderr": "",
223
+ "_parameters": {
224
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=0 bash /hud/grader/run_grading.sh what_stays_in_the_scene_is_untouched 600'",
225
+ "cwd": "/workspace/repo",
226
+ "timeout_seconds": 600
227
+ }
228
+ }
229
+ },
230
+ {
231
+ "name": "a_mesh_listed_after_removal_is_drawn_there",
232
+ "weight": 0.03,
233
+ "value": 0.0,
234
+ "children": null,
235
+ "info": {
236
+ "exit_code": 1,
237
+ "stdout": "RULE OK: a_mesh_listed_after_removal_is_drawn_there -- own:helper=2 screen:helper=2 shadow:helper=1 screen:tree=2 shadow:tree=1 main:helper=0\nFAIL: a_mesh_listed_after_removal_is_drawn_there -- not paid: no scored behaviour was fixed (the rule above holds on a tree nobody has touched, so it earns its weight only beside a green cell of the contract)\n",
238
+ "stderr": "",
239
+ "_parameters": {
240
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=0 bash /hud/grader/run_grading.sh a_mesh_listed_after_removal_is_drawn_there 600'",
241
+ "cwd": "/workspace/repo",
242
+ "timeout_seconds": 600
243
+ }
244
+ }
245
+ },
246
+ {
247
+ "name": "gate_repo_suite_green_and_tests_untouched",
248
+ "weight": 0.03,
249
+ "value": 0.0,
250
+ "children": null,
251
+ "info": {
252
+ "exit_code": 1,
253
+ "stdout": "RULE OK: gate_repo_suite_green_and_tests_untouched (231 repository suites green, none of its test files edited)\nFAIL: gate_repo_suite_green_and_tests_untouched -- not paid: no scored behaviour was fixed (the rule above holds on a tree nobody has touched, so it earns its weight only beside a green cell of the contract)\n",
254
+ "stderr": "",
255
+ "_parameters": {
256
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=0 bash /hud/grader/run_grading.sh gate_repo_suite_green_and_tests_untouched 900'",
257
+ "cwd": "/workspace/repo",
258
+ "timeout_seconds": 900
259
+ }
260
+ }
261
+ }
262
+ ],
263
+ "status": "graded",
264
+ "patch_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
265
+ "result": {
266
+ "reward": 0.0,
267
+ "done": true,
268
+ "content": "Blocker criteria failed (a_mesh_listed_after_removal_is_drawn_there, gate_repo_suite_green_and_tests_untouched, put_back_meshes_are_drawn_as_before, put_back_textures_refresh_as_before, removed_mesh_leaves_the_shadow_map, what_stays_in_the_scene_is_untouched); cap 0.60, reward 0.000 (uncapped 0.000).",
269
+ "info": {
270
+ "uncapped_reward": 0.0,
271
+ "failed_blockers": [
272
+ "a_mesh_listed_after_removal_is_drawn_there",
273
+ "gate_repo_suite_green_and_tests_untouched",
274
+ "put_back_meshes_are_drawn_as_before",
275
+ "put_back_textures_refresh_as_before",
276
+ "removed_mesh_leaves_the_shadow_map",
277
+ "what_stays_in_the_scene_is_untouched"
278
+ ],
279
+ "blocker_cap": 0.6
280
+ },
281
+ "isError": false,
282
+ "subscores": [
283
+ {
284
+ "name": "removed_mesh_leaves_the_shadow_map",
285
+ "weight": 0.03,
286
+ "value": 0.0,
287
+ "children": null,
288
+ "info": {
289
+ "exit_code": 1,
290
+ "stdout": "FAIL: removed_mesh_leaves_the_shadow_map -- the sun still draws the removed mesh into its shadow map: shadow:boxA=4 shadow:boxB=4 main:boxA=0\n",
291
+ "stderr": "",
292
+ "_parameters": {
293
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh removed_mesh_leaves_the_shadow_map 600'",
294
+ "cwd": "/workspace/repo",
295
+ "timeout_seconds": 600
296
+ }
297
+ }
298
+ },
299
+ {
300
+ "name": "unloaded_container_leaves_every_pass",
301
+ "weight": 0.03,
302
+ "value": 0.0,
303
+ "children": null,
304
+ "info": {
305
+ "exit_code": 1,
306
+ "stdout": "FAIL: unloaded_container_leaves_every_pass -- an unloaded container's meshes are still drawn by the scene: shadow:house=4 shadow:chimney=4 screen:house=4 screen:chimney=4 shadow:boxB=4 screen:boxB=4\n",
307
+ "stderr": "",
308
+ "_parameters": {
309
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh unloaded_container_leaves_every_pass 600'",
310
+ "cwd": "/workspace/repo",
311
+ "timeout_seconds": 600
312
+ }
313
+ }
314
+ },
315
+ {
316
+ "name": "unloaded_camera_render_target_stops_refreshing",
317
+ "weight": 0.03,
318
+ "value": 0.0,
319
+ "children": null,
320
+ "info": {
321
+ "exit_code": 1,
322
+ "stdout": "FAIL: unloaded_camera_render_target_stops_refreshing -- a camera render target unloaded with its container is still rendered every frame: renders after unloading gone=4 stays=4\n",
323
+ "stderr": "",
324
+ "_parameters": {
325
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh unloaded_camera_render_target_stops_refreshing 600'",
326
+ "cwd": "/workspace/repo",
327
+ "timeout_seconds": 600
328
+ }
329
+ }
330
+ },
331
+ {
332
+ "name": "removed_procedural_texture_stops_regenerating",
333
+ "weight": 0.03,
334
+ "value": 0.0,
335
+ "children": null,
336
+ "info": {
337
+ "exit_code": 1,
338
+ "stdout": "FAIL: removed_procedural_texture_stops_regenerating -- a procedural texture taken out of the scene is still regenerated every frame: generations after removal gone=4 stays=4\n",
339
+ "stderr": "",
340
+ "_parameters": {
341
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh removed_procedural_texture_stops_regenerating 600'",
342
+ "cwd": "/workspace/repo",
343
+ "timeout_seconds": 600
344
+ }
345
+ }
346
+ },
347
+ {
348
+ "name": "a_texture_gone_while_its_camera_was_away_stays_silent",
349
+ "weight": 0.06,
350
+ "value": 0.0,
351
+ "children": null,
352
+ "info": {
353
+ "exit_code": 1,
354
+ "stdout": "FAIL: a_texture_gone_while_its_camera_was_away_stays_silent -- a render target out of the scene is rendered again because its camera came back: {\"monitor\":4,\"feed\":4}\n",
355
+ "stderr": "",
356
+ "_parameters": {
357
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh a_texture_gone_while_its_camera_was_away_stays_silent 600'",
358
+ "cwd": "/workspace/repo",
359
+ "timeout_seconds": 600
360
+ }
361
+ }
362
+ },
363
+ {
364
+ "name": "a_mesh_listed_twice_leaves_the_pass",
365
+ "weight": 0.15,
366
+ "value": 0.0,
367
+ "children": null,
368
+ "info": {
369
+ "exit_code": 1,
370
+ "stdout": "FAIL: a_mesh_listed_twice_leaves_the_pass -- a mesh listed twice in a render target is still drawn there after it was taken out: screen:boxA=8 screen:boxB=4\n",
371
+ "stderr": "",
372
+ "_parameters": {
373
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh a_mesh_listed_twice_leaves_the_pass 600'",
374
+ "cwd": "/workspace/repo",
375
+ "timeout_seconds": 600
376
+ }
377
+ }
378
+ },
379
+ {
380
+ "name": "unloading_again_keeps_what_we_listed",
381
+ "weight": 0.06,
382
+ "value": 0.0,
383
+ "children": null,
384
+ "info": {
385
+ "exit_code": 1,
386
+ "stdout": "FAIL: unloading_again_keeps_what_we_listed -- the unloaded chunk is still drawn: preview:house=4 shadow:shed=4 screen:shed=4 shadow:house=4 screen:house=4 shadow:tree=4 main:house=0\n",
387
+ "stderr": "",
388
+ "_parameters": {
389
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh unloading_again_keeps_what_we_listed 600'",
390
+ "cwd": "/workspace/repo",
391
+ "timeout_seconds": 600
392
+ }
393
+ }
394
+ },
395
+ {
396
+ "name": "put_back_meshes_are_drawn_in_their_former_order",
397
+ "weight": 0.15,
398
+ "value": 0.0,
399
+ "children": null,
400
+ "info": {
401
+ "exit_code": 1,
402
+ "stdout": "FAIL: put_back_meshes_are_drawn_in_their_former_order -- while the chunk was out, the passes still drew it: shadow:well,house,barn,tree,rock,well,house,barn,tree,rock screen:well,house,barn,tree,rock,well,house,barn,tree,rock lake:well,house,barn,tree,well,house,barn,tree\n",
403
+ "stderr": "",
404
+ "_parameters": {
405
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh put_back_meshes_are_drawn_in_their_former_order 600'",
406
+ "cwd": "/workspace/repo",
407
+ "timeout_seconds": 600
408
+ }
409
+ }
410
+ },
411
+ {
412
+ "name": "a_mesh_listed_twice_comes_back_twice",
413
+ "weight": 0.15,
414
+ "value": 0.0,
415
+ "children": null,
416
+ "info": {
417
+ "exit_code": 1,
418
+ "stdout": "FAIL: a_mesh_listed_twice_comes_back_twice -- while it was out, the render target still drew the mesh listed twice (or stopped drawing the other): screen:boxA=8 screen:boxB=4\n",
419
+ "stderr": "",
420
+ "_parameters": {
421
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh a_mesh_listed_twice_comes_back_twice 600'",
422
+ "cwd": "/workspace/repo",
423
+ "timeout_seconds": 600
424
+ }
425
+ }
426
+ },
427
+ {
428
+ "name": "put_back_render_targets_refresh_in_their_former_turn",
429
+ "weight": 0.12,
430
+ "value": 0.0,
431
+ "children": null,
432
+ "info": {
433
+ "exit_code": 1,
434
+ "stdout": "FAIL: put_back_render_targets_refresh_in_their_former_turn -- while the chunk was out, its render targets still refreshed: far,gate,near,cam-far,cam-gate,cam-near,far,gate,near,cam-far,cam-gate,cam-near\n",
435
+ "stderr": "",
436
+ "_parameters": {
437
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh put_back_render_targets_refresh_in_their_former_turn 600'",
438
+ "cwd": "/workspace/repo",
439
+ "timeout_seconds": 600
440
+ }
441
+ }
442
+ },
443
+ {
444
+ "name": "put_back_procedural_textures_regenerate_in_their_former_turn",
445
+ "weight": 0.04,
446
+ "value": 0.0,
447
+ "children": null,
448
+ "info": {
449
+ "exit_code": 1,
450
+ "stdout": "FAIL: put_back_procedural_textures_regenerate_in_their_former_turn -- while the chunk was out: clouds,sand,waves,clouds,sand,waves\n",
451
+ "stderr": "",
452
+ "_parameters": {
453
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh put_back_procedural_textures_regenerate_in_their_former_turn 600'",
454
+ "cwd": "/workspace/repo",
455
+ "timeout_seconds": 600
456
+ }
457
+ }
458
+ },
459
+ {
460
+ "name": "put_back_meshes_are_drawn_as_before",
461
+ "weight": 0.03,
462
+ "value": 0.0,
463
+ "children": null,
464
+ "info": {
465
+ "exit_code": 1,
466
+ "stdout": "RULE OK: put_back_meshes_are_drawn_as_before -- every pass draws the put-back meshes again; shadow=[chimney,house,rock,tree] screen=[chimney,house,rock,tree] monitor=[house,tree] lake=[chimney,house,tree] lamp.excluded=[house]\nFAIL: put_back_meshes_are_drawn_as_before -- not paid: no scored behaviour was fixed (the rule above holds on a tree nobody has touched, so it earns its weight only beside a green cell of the contract)\n",
467
+ "stderr": "",
468
+ "_parameters": {
469
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=0 bash /hud/grader/run_grading.sh put_back_meshes_are_drawn_as_before 600'",
470
+ "cwd": "/workspace/repo",
471
+ "timeout_seconds": 600
472
+ }
473
+ }
474
+ },
475
+ {
476
+ "name": "put_back_textures_refresh_as_before",
477
+ "weight": 0.03,
478
+ "value": 0.0,
479
+ "children": null,
480
+ "info": {
481
+ "exit_code": 1,
482
+ "stdout": "RULE OK: put_back_textures_refresh_as_before -- every put-back texture refreshes again; scene=[screen] camera=[monitor] procedural=[clouds]\nFAIL: put_back_textures_refresh_as_before -- not paid: no scored behaviour was fixed (the rule above holds on a tree nobody has touched, so it earns its weight only beside a green cell of the contract)\n",
483
+ "stderr": "",
484
+ "_parameters": {
485
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=0 bash /hud/grader/run_grading.sh put_back_textures_refresh_as_before 600'",
486
+ "cwd": "/workspace/repo",
487
+ "timeout_seconds": 600
488
+ }
489
+ }
490
+ },
491
+ {
492
+ "name": "what_stays_in_the_scene_is_untouched",
493
+ "weight": 0.03,
494
+ "value": 0.0,
495
+ "children": null,
496
+ "info": {
497
+ "exit_code": 1,
498
+ "stdout": "RULE OK: what_stays_in_the_scene_is_untouched -- main:wheel=4 main:tree=4 shadow:wheel=4 shadow:tree=4 screen:wheel=4 screen:tree=4; cart:enabled=true,visible=true,receiveShadows=false\nFAIL: what_stays_in_the_scene_is_untouched -- not paid: no scored behaviour was fixed (the rule above holds on a tree nobody has touched, so it earns its weight only beside a green cell of the contract)\n",
499
+ "stderr": "",
500
+ "_parameters": {
501
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=0 bash /hud/grader/run_grading.sh what_stays_in_the_scene_is_untouched 600'",
502
+ "cwd": "/workspace/repo",
503
+ "timeout_seconds": 600
504
+ }
505
+ }
506
+ },
507
+ {
508
+ "name": "a_mesh_listed_after_removal_is_drawn_there",
509
+ "weight": 0.03,
510
+ "value": 0.0,
511
+ "children": null,
512
+ "info": {
513
+ "exit_code": 1,
514
+ "stdout": "RULE OK: a_mesh_listed_after_removal_is_drawn_there -- own:helper=2 screen:helper=2 shadow:helper=1 screen:tree=2 shadow:tree=1 main:helper=0\nFAIL: a_mesh_listed_after_removal_is_drawn_there -- not paid: no scored behaviour was fixed (the rule above holds on a tree nobody has touched, so it earns its weight only beside a green cell of the contract)\n",
515
+ "stderr": "",
516
+ "_parameters": {
517
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=0 bash /hud/grader/run_grading.sh a_mesh_listed_after_removal_is_drawn_there 600'",
518
+ "cwd": "/workspace/repo",
519
+ "timeout_seconds": 600
520
+ }
521
+ }
522
+ },
523
+ {
524
+ "name": "gate_repo_suite_green_and_tests_untouched",
525
+ "weight": 0.03,
526
+ "value": 0.0,
527
+ "children": null,
528
+ "info": {
529
+ "exit_code": 1,
530
+ "stdout": "RULE OK: gate_repo_suite_green_and_tests_untouched (231 repository suites green, none of its test files edited)\nFAIL: gate_repo_suite_green_and_tests_untouched -- not paid: no scored behaviour was fixed (the rule above holds on a tree nobody has touched, so it earns its weight only beside a green cell of the contract)\n",
531
+ "stderr": "",
532
+ "_parameters": {
533
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=0 bash /hud/grader/run_grading.sh gate_repo_suite_green_and_tests_untouched 900'",
534
+ "cwd": "/workspace/repo",
535
+ "timeout_seconds": 900
536
+ }
537
+ }
538
+ }
539
+ ]
540
+ }
541
+ }
harbor/evidence/babylonjs/reports/reference.json ADDED
@@ -0,0 +1,530 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "revision": "coding-rubric-v2",
3
+ "task_id": "babylonjs_scene_remove_owner_refs_contract",
4
+ "grader_version": "0.6.15",
5
+ "commands": [
6
+ {
7
+ "name": "removed_mesh_leaves_the_shadow_map",
8
+ "weight": 0.03,
9
+ "value": 1.0,
10
+ "children": null,
11
+ "info": {
12
+ "exit_code": 0,
13
+ "stdout": "PASS: removed_mesh_leaves_the_shadow_map -- shadow:boxA=0 shadow:boxB=4 main:boxA=0\n",
14
+ "stderr": "",
15
+ "_parameters": {
16
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh removed_mesh_leaves_the_shadow_map 600'",
17
+ "cwd": "/workspace/repo",
18
+ "timeout_seconds": 600
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "name": "unloaded_container_leaves_every_pass",
24
+ "weight": 0.03,
25
+ "value": 1.0,
26
+ "children": null,
27
+ "info": {
28
+ "exit_code": 0,
29
+ "stdout": "PASS: unloaded_container_leaves_every_pass -- shadow:house=0 shadow:chimney=0 screen:house=0 screen:chimney=0 shadow:boxB=4 screen:boxB=4\n",
30
+ "stderr": "",
31
+ "_parameters": {
32
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh unloaded_container_leaves_every_pass 600'",
33
+ "cwd": "/workspace/repo",
34
+ "timeout_seconds": 600
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "name": "unloaded_camera_render_target_stops_refreshing",
40
+ "weight": 0.03,
41
+ "value": 1.0,
42
+ "children": null,
43
+ "info": {
44
+ "exit_code": 0,
45
+ "stdout": "PASS: unloaded_camera_render_target_stops_refreshing -- renders after unloading gone=0 stays=4\n",
46
+ "stderr": "",
47
+ "_parameters": {
48
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh unloaded_camera_render_target_stops_refreshing 600'",
49
+ "cwd": "/workspace/repo",
50
+ "timeout_seconds": 600
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "removed_procedural_texture_stops_regenerating",
56
+ "weight": 0.03,
57
+ "value": 1.0,
58
+ "children": null,
59
+ "info": {
60
+ "exit_code": 0,
61
+ "stdout": "PASS: removed_procedural_texture_stops_regenerating -- generations after removal gone=0 stays=4\n",
62
+ "stderr": "",
63
+ "_parameters": {
64
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh removed_procedural_texture_stops_regenerating 600'",
65
+ "cwd": "/workspace/repo",
66
+ "timeout_seconds": 600
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "name": "a_texture_gone_while_its_camera_was_away_stays_silent",
72
+ "weight": 0.06,
73
+ "value": 1.0,
74
+ "children": null,
75
+ "info": {
76
+ "exit_code": 0,
77
+ "stdout": "PASS: a_texture_gone_while_its_camera_was_away_stays_silent -- {\"monitor\":0,\"feed\":4}\n",
78
+ "stderr": "",
79
+ "_parameters": {
80
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh a_texture_gone_while_its_camera_was_away_stays_silent 600'",
81
+ "cwd": "/workspace/repo",
82
+ "timeout_seconds": 600
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "name": "a_mesh_listed_twice_leaves_the_pass",
88
+ "weight": 0.15,
89
+ "value": 1.0,
90
+ "children": null,
91
+ "info": {
92
+ "exit_code": 0,
93
+ "stdout": "PASS: a_mesh_listed_twice_leaves_the_pass -- screen:boxA=0 screen:boxB=4\n",
94
+ "stderr": "",
95
+ "_parameters": {
96
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh a_mesh_listed_twice_leaves_the_pass 600'",
97
+ "cwd": "/workspace/repo",
98
+ "timeout_seconds": 600
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "unloading_again_keeps_what_we_listed",
104
+ "weight": 0.06,
105
+ "value": 1.0,
106
+ "children": null,
107
+ "info": {
108
+ "exit_code": 0,
109
+ "stdout": "PASS: unloading_again_keeps_what_we_listed -- preview:house=4 shadow:shed=0 screen:shed=0 shadow:house=0 screen:house=0 shadow:tree=4 main:house=0\n",
110
+ "stderr": "",
111
+ "_parameters": {
112
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh unloading_again_keeps_what_we_listed 600'",
113
+ "cwd": "/workspace/repo",
114
+ "timeout_seconds": 600
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "name": "put_back_meshes_are_drawn_in_their_former_order",
120
+ "weight": 0.15,
121
+ "value": 1.0,
122
+ "children": null,
123
+ "info": {
124
+ "exit_code": 0,
125
+ "stdout": "PASS: put_back_meshes_are_drawn_in_their_former_order -- drawn as before: shadow:well,house,barn,tree,rock screen:well,house,barn,tree,rock lake:well,house,barn,tree\n",
126
+ "stderr": "",
127
+ "_parameters": {
128
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh put_back_meshes_are_drawn_in_their_former_order 600'",
129
+ "cwd": "/workspace/repo",
130
+ "timeout_seconds": 600
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "name": "a_mesh_listed_twice_comes_back_twice",
136
+ "weight": 0.15,
137
+ "value": 1.0,
138
+ "children": null,
139
+ "info": {
140
+ "exit_code": 0,
141
+ "stdout": "PASS: a_mesh_listed_twice_comes_back_twice -- per frame boxA=2 boxB=1; list [boxA,boxA,boxB]\n",
142
+ "stderr": "",
143
+ "_parameters": {
144
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh a_mesh_listed_twice_comes_back_twice 600'",
145
+ "cwd": "/workspace/repo",
146
+ "timeout_seconds": 600
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "name": "put_back_render_targets_refresh_in_their_former_turn",
152
+ "weight": 0.12,
153
+ "value": 1.0,
154
+ "children": null,
155
+ "info": {
156
+ "exit_code": 0,
157
+ "stdout": "PASS: put_back_render_targets_refresh_in_their_former_turn -- turns per frame far,gate,near,cam-far,cam-gate,cam-near\n",
158
+ "stderr": "",
159
+ "_parameters": {
160
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh put_back_render_targets_refresh_in_their_former_turn 600'",
161
+ "cwd": "/workspace/repo",
162
+ "timeout_seconds": 600
163
+ }
164
+ }
165
+ },
166
+ {
167
+ "name": "put_back_procedural_textures_regenerate_in_their_former_turn",
168
+ "weight": 0.04,
169
+ "value": 1.0,
170
+ "children": null,
171
+ "info": {
172
+ "exit_code": 0,
173
+ "stdout": "PASS: put_back_procedural_textures_regenerate_in_their_former_turn -- turns per frame clouds,sand,waves\n",
174
+ "stderr": "",
175
+ "_parameters": {
176
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh put_back_procedural_textures_regenerate_in_their_former_turn 600'",
177
+ "cwd": "/workspace/repo",
178
+ "timeout_seconds": 600
179
+ }
180
+ }
181
+ },
182
+ {
183
+ "name": "put_back_meshes_are_drawn_as_before",
184
+ "weight": 0.03,
185
+ "value": 1.0,
186
+ "children": null,
187
+ "info": {
188
+ "exit_code": 0,
189
+ "stdout": "PASS: put_back_meshes_are_drawn_as_before -- every pass draws the put-back meshes again; shadow=[chimney,house,rock,tree] screen=[chimney,house,rock,tree] monitor=[house,tree] lake=[chimney,house,tree] lamp.excluded=[house]\n",
190
+ "stderr": "",
191
+ "_parameters": {
192
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=1 bash /hud/grader/run_grading.sh put_back_meshes_are_drawn_as_before 600'",
193
+ "cwd": "/workspace/repo",
194
+ "timeout_seconds": 600
195
+ }
196
+ }
197
+ },
198
+ {
199
+ "name": "put_back_textures_refresh_as_before",
200
+ "weight": 0.03,
201
+ "value": 1.0,
202
+ "children": null,
203
+ "info": {
204
+ "exit_code": 0,
205
+ "stdout": "PASS: put_back_textures_refresh_as_before -- every put-back texture refreshes again; scene=[screen] camera=[monitor] procedural=[clouds]\n",
206
+ "stderr": "",
207
+ "_parameters": {
208
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=1 bash /hud/grader/run_grading.sh put_back_textures_refresh_as_before 600'",
209
+ "cwd": "/workspace/repo",
210
+ "timeout_seconds": 600
211
+ }
212
+ }
213
+ },
214
+ {
215
+ "name": "what_stays_in_the_scene_is_untouched",
216
+ "weight": 0.03,
217
+ "value": 1.0,
218
+ "children": null,
219
+ "info": {
220
+ "exit_code": 0,
221
+ "stdout": "PASS: what_stays_in_the_scene_is_untouched -- main:wheel=4 main:tree=4 shadow:wheel=4 shadow:tree=4 screen:wheel=4 screen:tree=4; cart:enabled=true,visible=true,receiveShadows=false\n",
222
+ "stderr": "",
223
+ "_parameters": {
224
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=1 bash /hud/grader/run_grading.sh what_stays_in_the_scene_is_untouched 600'",
225
+ "cwd": "/workspace/repo",
226
+ "timeout_seconds": 600
227
+ }
228
+ }
229
+ },
230
+ {
231
+ "name": "a_mesh_listed_after_removal_is_drawn_there",
232
+ "weight": 0.03,
233
+ "value": 1.0,
234
+ "children": null,
235
+ "info": {
236
+ "exit_code": 0,
237
+ "stdout": "PASS: a_mesh_listed_after_removal_is_drawn_there -- own:helper=2 screen:helper=2 shadow:helper=1 screen:tree=2 shadow:tree=1 main:helper=0\n",
238
+ "stderr": "",
239
+ "_parameters": {
240
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=1 bash /hud/grader/run_grading.sh a_mesh_listed_after_removal_is_drawn_there 600'",
241
+ "cwd": "/workspace/repo",
242
+ "timeout_seconds": 600
243
+ }
244
+ }
245
+ },
246
+ {
247
+ "name": "gate_repo_suite_green_and_tests_untouched",
248
+ "weight": 0.03,
249
+ "value": 1.0,
250
+ "children": null,
251
+ "info": {
252
+ "exit_code": 0,
253
+ "stdout": "PASS: gate_repo_suite_green_and_tests_untouched (231 repository suites green, none of its test files edited)\n",
254
+ "stderr": "",
255
+ "_parameters": {
256
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=1 bash /hud/grader/run_grading.sh gate_repo_suite_green_and_tests_untouched 900'",
257
+ "cwd": "/workspace/repo",
258
+ "timeout_seconds": 900
259
+ }
260
+ }
261
+ }
262
+ ],
263
+ "status": "graded",
264
+ "patch_sha256": "1a033df87a578a19ac57e356f74093358c1c8c57605f363282371bcf38585d8c",
265
+ "result": {
266
+ "reward": 1.0,
267
+ "done": true,
268
+ "content": null,
269
+ "info": {},
270
+ "isError": false,
271
+ "subscores": [
272
+ {
273
+ "name": "removed_mesh_leaves_the_shadow_map",
274
+ "weight": 0.03,
275
+ "value": 1.0,
276
+ "children": null,
277
+ "info": {
278
+ "exit_code": 0,
279
+ "stdout": "PASS: removed_mesh_leaves_the_shadow_map -- shadow:boxA=0 shadow:boxB=4 main:boxA=0\n",
280
+ "stderr": "",
281
+ "_parameters": {
282
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh removed_mesh_leaves_the_shadow_map 600'",
283
+ "cwd": "/workspace/repo",
284
+ "timeout_seconds": 600
285
+ }
286
+ }
287
+ },
288
+ {
289
+ "name": "unloaded_container_leaves_every_pass",
290
+ "weight": 0.03,
291
+ "value": 1.0,
292
+ "children": null,
293
+ "info": {
294
+ "exit_code": 0,
295
+ "stdout": "PASS: unloaded_container_leaves_every_pass -- shadow:house=0 shadow:chimney=0 screen:house=0 screen:chimney=0 shadow:boxB=4 screen:boxB=4\n",
296
+ "stderr": "",
297
+ "_parameters": {
298
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh unloaded_container_leaves_every_pass 600'",
299
+ "cwd": "/workspace/repo",
300
+ "timeout_seconds": 600
301
+ }
302
+ }
303
+ },
304
+ {
305
+ "name": "unloaded_camera_render_target_stops_refreshing",
306
+ "weight": 0.03,
307
+ "value": 1.0,
308
+ "children": null,
309
+ "info": {
310
+ "exit_code": 0,
311
+ "stdout": "PASS: unloaded_camera_render_target_stops_refreshing -- renders after unloading gone=0 stays=4\n",
312
+ "stderr": "",
313
+ "_parameters": {
314
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh unloaded_camera_render_target_stops_refreshing 600'",
315
+ "cwd": "/workspace/repo",
316
+ "timeout_seconds": 600
317
+ }
318
+ }
319
+ },
320
+ {
321
+ "name": "removed_procedural_texture_stops_regenerating",
322
+ "weight": 0.03,
323
+ "value": 1.0,
324
+ "children": null,
325
+ "info": {
326
+ "exit_code": 0,
327
+ "stdout": "PASS: removed_procedural_texture_stops_regenerating -- generations after removal gone=0 stays=4\n",
328
+ "stderr": "",
329
+ "_parameters": {
330
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh removed_procedural_texture_stops_regenerating 600'",
331
+ "cwd": "/workspace/repo",
332
+ "timeout_seconds": 600
333
+ }
334
+ }
335
+ },
336
+ {
337
+ "name": "a_texture_gone_while_its_camera_was_away_stays_silent",
338
+ "weight": 0.06,
339
+ "value": 1.0,
340
+ "children": null,
341
+ "info": {
342
+ "exit_code": 0,
343
+ "stdout": "PASS: a_texture_gone_while_its_camera_was_away_stays_silent -- {\"monitor\":0,\"feed\":4}\n",
344
+ "stderr": "",
345
+ "_parameters": {
346
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh a_texture_gone_while_its_camera_was_away_stays_silent 600'",
347
+ "cwd": "/workspace/repo",
348
+ "timeout_seconds": 600
349
+ }
350
+ }
351
+ },
352
+ {
353
+ "name": "a_mesh_listed_twice_leaves_the_pass",
354
+ "weight": 0.15,
355
+ "value": 1.0,
356
+ "children": null,
357
+ "info": {
358
+ "exit_code": 0,
359
+ "stdout": "PASS: a_mesh_listed_twice_leaves_the_pass -- screen:boxA=0 screen:boxB=4\n",
360
+ "stderr": "",
361
+ "_parameters": {
362
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh a_mesh_listed_twice_leaves_the_pass 600'",
363
+ "cwd": "/workspace/repo",
364
+ "timeout_seconds": 600
365
+ }
366
+ }
367
+ },
368
+ {
369
+ "name": "unloading_again_keeps_what_we_listed",
370
+ "weight": 0.06,
371
+ "value": 1.0,
372
+ "children": null,
373
+ "info": {
374
+ "exit_code": 0,
375
+ "stdout": "PASS: unloading_again_keeps_what_we_listed -- preview:house=4 shadow:shed=0 screen:shed=0 shadow:house=0 screen:house=0 shadow:tree=4 main:house=0\n",
376
+ "stderr": "",
377
+ "_parameters": {
378
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh unloading_again_keeps_what_we_listed 600'",
379
+ "cwd": "/workspace/repo",
380
+ "timeout_seconds": 600
381
+ }
382
+ }
383
+ },
384
+ {
385
+ "name": "put_back_meshes_are_drawn_in_their_former_order",
386
+ "weight": 0.15,
387
+ "value": 1.0,
388
+ "children": null,
389
+ "info": {
390
+ "exit_code": 0,
391
+ "stdout": "PASS: put_back_meshes_are_drawn_in_their_former_order -- drawn as before: shadow:well,house,barn,tree,rock screen:well,house,barn,tree,rock lake:well,house,barn,tree\n",
392
+ "stderr": "",
393
+ "_parameters": {
394
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh put_back_meshes_are_drawn_in_their_former_order 600'",
395
+ "cwd": "/workspace/repo",
396
+ "timeout_seconds": 600
397
+ }
398
+ }
399
+ },
400
+ {
401
+ "name": "a_mesh_listed_twice_comes_back_twice",
402
+ "weight": 0.15,
403
+ "value": 1.0,
404
+ "children": null,
405
+ "info": {
406
+ "exit_code": 0,
407
+ "stdout": "PASS: a_mesh_listed_twice_comes_back_twice -- per frame boxA=2 boxB=1; list [boxA,boxA,boxB]\n",
408
+ "stderr": "",
409
+ "_parameters": {
410
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh a_mesh_listed_twice_comes_back_twice 600'",
411
+ "cwd": "/workspace/repo",
412
+ "timeout_seconds": 600
413
+ }
414
+ }
415
+ },
416
+ {
417
+ "name": "put_back_render_targets_refresh_in_their_former_turn",
418
+ "weight": 0.12,
419
+ "value": 1.0,
420
+ "children": null,
421
+ "info": {
422
+ "exit_code": 0,
423
+ "stdout": "PASS: put_back_render_targets_refresh_in_their_former_turn -- turns per frame far,gate,near,cam-far,cam-gate,cam-near\n",
424
+ "stderr": "",
425
+ "_parameters": {
426
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh put_back_render_targets_refresh_in_their_former_turn 600'",
427
+ "cwd": "/workspace/repo",
428
+ "timeout_seconds": 600
429
+ }
430
+ }
431
+ },
432
+ {
433
+ "name": "put_back_procedural_textures_regenerate_in_their_former_turn",
434
+ "weight": 0.04,
435
+ "value": 1.0,
436
+ "children": null,
437
+ "info": {
438
+ "exit_code": 0,
439
+ "stdout": "PASS: put_back_procedural_textures_regenerate_in_their_former_turn -- turns per frame clouds,sand,waves\n",
440
+ "stderr": "",
441
+ "_parameters": {
442
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh put_back_procedural_textures_regenerate_in_their_former_turn 600'",
443
+ "cwd": "/workspace/repo",
444
+ "timeout_seconds": 600
445
+ }
446
+ }
447
+ },
448
+ {
449
+ "name": "put_back_meshes_are_drawn_as_before",
450
+ "weight": 0.03,
451
+ "value": 1.0,
452
+ "children": null,
453
+ "info": {
454
+ "exit_code": 0,
455
+ "stdout": "PASS: put_back_meshes_are_drawn_as_before -- every pass draws the put-back meshes again; shadow=[chimney,house,rock,tree] screen=[chimney,house,rock,tree] monitor=[house,tree] lake=[chimney,house,tree] lamp.excluded=[house]\n",
456
+ "stderr": "",
457
+ "_parameters": {
458
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=1 bash /hud/grader/run_grading.sh put_back_meshes_are_drawn_as_before 600'",
459
+ "cwd": "/workspace/repo",
460
+ "timeout_seconds": 600
461
+ }
462
+ }
463
+ },
464
+ {
465
+ "name": "put_back_textures_refresh_as_before",
466
+ "weight": 0.03,
467
+ "value": 1.0,
468
+ "children": null,
469
+ "info": {
470
+ "exit_code": 0,
471
+ "stdout": "PASS: put_back_textures_refresh_as_before -- every put-back texture refreshes again; scene=[screen] camera=[monitor] procedural=[clouds]\n",
472
+ "stderr": "",
473
+ "_parameters": {
474
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=1 bash /hud/grader/run_grading.sh put_back_textures_refresh_as_before 600'",
475
+ "cwd": "/workspace/repo",
476
+ "timeout_seconds": 600
477
+ }
478
+ }
479
+ },
480
+ {
481
+ "name": "what_stays_in_the_scene_is_untouched",
482
+ "weight": 0.03,
483
+ "value": 1.0,
484
+ "children": null,
485
+ "info": {
486
+ "exit_code": 0,
487
+ "stdout": "PASS: what_stays_in_the_scene_is_untouched -- main:wheel=4 main:tree=4 shadow:wheel=4 shadow:tree=4 screen:wheel=4 screen:tree=4; cart:enabled=true,visible=true,receiveShadows=false\n",
488
+ "stderr": "",
489
+ "_parameters": {
490
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=1 bash /hud/grader/run_grading.sh what_stays_in_the_scene_is_untouched 600'",
491
+ "cwd": "/workspace/repo",
492
+ "timeout_seconds": 600
493
+ }
494
+ }
495
+ },
496
+ {
497
+ "name": "a_mesh_listed_after_removal_is_drawn_there",
498
+ "weight": 0.03,
499
+ "value": 1.0,
500
+ "children": null,
501
+ "info": {
502
+ "exit_code": 0,
503
+ "stdout": "PASS: a_mesh_listed_after_removal_is_drawn_there -- own:helper=2 screen:helper=2 shadow:helper=1 screen:tree=2 shadow:tree=1 main:helper=0\n",
504
+ "stderr": "",
505
+ "_parameters": {
506
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=1 bash /hud/grader/run_grading.sh a_mesh_listed_after_removal_is_drawn_there 600'",
507
+ "cwd": "/workspace/repo",
508
+ "timeout_seconds": 600
509
+ }
510
+ }
511
+ },
512
+ {
513
+ "name": "gate_repo_suite_green_and_tests_untouched",
514
+ "weight": 0.03,
515
+ "value": 1.0,
516
+ "children": null,
517
+ "info": {
518
+ "exit_code": 0,
519
+ "stdout": "PASS: gate_repo_suite_green_and_tests_untouched (231 repository suites green, none of its test files edited)\n",
520
+ "stderr": "",
521
+ "_parameters": {
522
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'CORE_GREEN=1 bash /hud/grader/run_grading.sh gate_repo_suite_green_and_tests_untouched 900'",
523
+ "cwd": "/workspace/repo",
524
+ "timeout_seconds": 900
525
+ }
526
+ }
527
+ }
528
+ ]
529
+ }
530
+ }
harbor/evidence/babylonjs/summary.json ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "babylonjs",
3
+ "measure": {
4
+ "ok": true,
5
+ "hud": "0.6.15",
6
+ "path": "/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games",
7
+ "handed": [
8
+ "npm_config_audit",
9
+ "npm_config_cache",
10
+ "npm_config_fund",
11
+ "npm_config_update_notifier"
12
+ ],
13
+ "repo_dir": "/workspace/repo",
14
+ "python_usr_local": true,
15
+ "seconds": 14
16
+ },
17
+ "task_id": "babylonjs_scene_remove_owner_refs_contract",
18
+ "image": "ec-swe-babylonjs:source-v8",
19
+ "build": {
20
+ "ok": true,
21
+ "image_id": "sha256:a354fe63ae1481c66c056a04b4853d476db6e12b295b3d94f84ccd02d3dcf582",
22
+ "ladder": {
23
+ "gold": 1.0,
24
+ "base": 0.0,
25
+ "noop": 0.0,
26
+ "lazy": 0.15,
27
+ "w1": 0.6,
28
+ "alt": 0.85,
29
+ "cheat": 0.57
30
+ },
31
+ "source_digest": "62bd64d6d329738b",
32
+ "source": "edited",
33
+ "seconds": 958
34
+ },
35
+ "parity": {
36
+ "ok": true,
37
+ "reward": 1.0,
38
+ "criteria": 16,
39
+ "unmet": [],
40
+ "info": null,
41
+ "seconds": 277
42
+ },
43
+ "prepare": {
44
+ "ok": true,
45
+ "bundle": "babylonjs-r1",
46
+ "converter": "b8bba68767da888f",
47
+ "pinned_files": 14,
48
+ "criteria": 16,
49
+ "seconds": 0
50
+ },
51
+ "qualified": false,
52
+ "controls": {
53
+ "ok": false,
54
+ "checks": {
55
+ "noop_is_zero": true,
56
+ "reference_is_one": true,
57
+ "reference_equals_native": true,
58
+ "agent_is_isolated": true
59
+ },
60
+ "results": {
61
+ "noop": {
62
+ "run": "babylonjs-r2-control-noop-1793706064",
63
+ "reward": 0.0,
64
+ "stop": "completed",
65
+ "error": null,
66
+ "seconds": 356,
67
+ "probe": false,
68
+ "status": "graded",
69
+ "verifier_error": null,
70
+ "exit_codes": [
71
+ 1
72
+ ],
73
+ "attempts": 1
74
+ },
75
+ "reference": {
76
+ "run": "babylonjs-r2-control-reference-1793708364",
77
+ "reward": 1.0,
78
+ "stop": "completed",
79
+ "error": null,
80
+ "seconds": 360,
81
+ "probe": true,
82
+ "status": "graded",
83
+ "verifier_error": null,
84
+ "exit_codes": [
85
+ 0
86
+ ],
87
+ "subscores": {
88
+ "removed_mesh_leaves_the_shadow_map": [
89
+ 1.0,
90
+ 0.03
91
+ ],
92
+ "unloaded_container_leaves_every_pass": [
93
+ 1.0,
94
+ 0.03
95
+ ],
96
+ "unloaded_camera_render_target_stops_refreshing": [
97
+ 1.0,
98
+ 0.03
99
+ ],
100
+ "removed_procedural_texture_stops_regenerating": [
101
+ 1.0,
102
+ 0.03
103
+ ],
104
+ "a_texture_gone_while_its_camera_was_away_stays_silent": [
105
+ 1.0,
106
+ 0.06
107
+ ],
108
+ "a_mesh_listed_twice_leaves_the_pass": [
109
+ 1.0,
110
+ 0.15
111
+ ],
112
+ "unloading_again_keeps_what_we_listed": [
113
+ 1.0,
114
+ 0.06
115
+ ],
116
+ "put_back_meshes_are_drawn_in_their_former_order": [
117
+ 1.0,
118
+ 0.15
119
+ ],
120
+ "a_mesh_listed_twice_comes_back_twice": [
121
+ 1.0,
122
+ 0.15
123
+ ],
124
+ "put_back_render_targets_refresh_in_their_former_turn": [
125
+ 1.0,
126
+ 0.12
127
+ ],
128
+ "put_back_procedural_textures_regenerate_in_their_former_turn": [
129
+ 1.0,
130
+ 0.04
131
+ ],
132
+ "put_back_meshes_are_drawn_as_before": [
133
+ 1.0,
134
+ 0.03
135
+ ],
136
+ "put_back_textures_refresh_as_before": [
137
+ 1.0,
138
+ 0.03
139
+ ],
140
+ "what_stays_in_the_scene_is_untouched": [
141
+ 1.0,
142
+ 0.03
143
+ ],
144
+ "a_mesh_listed_after_removal_is_drawn_there": [
145
+ 1.0,
146
+ 0.03
147
+ ],
148
+ "gate_repo_suite_green_and_tests_untouched": [
149
+ 1.0,
150
+ 0.03
151
+ ]
152
+ },
153
+ "attempts": 1
154
+ }
155
+ },
156
+ "bundle": "babylonjs-r1",
157
+ "complete": false,
158
+ "seconds": 360
159
+ },
160
+ "leak": {
161
+ "scan_finished": true,
162
+ "hits_outside_checkout": [],
163
+ "other_files_holding_only_upstream_lines": 0,
164
+ "library_files_sharing_a_line": 0,
165
+ "most_lines_shared_by_one_library_file": 0,
166
+ "private_paths_absent": true,
167
+ "public_lines_shared_with_patch_and_graders": [
168
+ 21,
169
+ 9
170
+ ],
171
+ "private_lines_only_in_agent_checkout": [
172
+ 0,
173
+ 0
174
+ ],
175
+ "ok": true,
176
+ "seconds": 78
177
+ }
178
+ }
harbor/evidence/click/agent-image-scan.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ needles: 164
2
+ scan finished
3
+ absent: /hud
4
+ absent: /app
5
+ absent: /tests
6
+ present: /opt/task-tools/baseline.git
7
+ reference-patch lines in the agent's tracked files: 0, of which the pristine checkout lacks: 0
8
+ grader lines in the agent's tracked files: 0, of which the pristine checkout lacks: 0
9
+ reference-patch lines in total: 40, grader lines in total: 124
10
+ private lines in 0 other files outside the checkout: 0, of which upstream lacks: 0
11
+ --- private lines only the agent's checkout holds (expect none)
12
+ --- the agent's checkout: uncommitted changes (expect none), then its history
13
+ 8e87049 baseline
harbor/evidence/click/native-reference.json ADDED
@@ -0,0 +1,289 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "reward": 1.0,
3
+ "done": true,
4
+ "content": null,
5
+ "info": {
6
+ "diff_stat": {
7
+ "files": [
8
+ "CHANGES.md",
9
+ "src/click/_utils.py",
10
+ "src/click/core.py",
11
+ "src/click/termui.py",
12
+ "tests/test_help_defaults_multiple.py"
13
+ ],
14
+ "added": 133,
15
+ "removed": 9
16
+ },
17
+ "graded_diff": "diff --git a/CHANGES.md b/CHANGES.md\nindex 8853860..4976b6c 100644\n--- a/CHANGES.md\n+++ b/CHANGES.md\n@@ -11,6 +11,10 @@ Unreleased\n \n Unreleased\n \n+- The `[default: ...]` shown in help for an option with `multiple=True`\n+ renders each value the way a single value is rendered: `Enum` members by\n+ name, empty strings as `\"\"`. The prompt of an option lists its choices and\n+ previews its default the same way, so what it shows can be typed back.\n - Fix `copy.deepcopy()` and `pickle` on a `Parameter`, `Option` or `Command`. {pr}`3805`\n - A `KeyboardInterrupt` arriving while `Command.main()` reports an abort or an error,\n or while it exits, no longer escapes as an unhandled traceback. The command still\ndiff --git a/src/click/_utils.py b/src/click/_utils.py\nindex 2d4e8f2..e2811bb 100644\n--- a/src/click/_utils.py\n+++ b/src/click/_utils.py\n@@ -1,7 +1,9 @@\n from __future__ import annotations\n \n import enum\n+import inspect\n import typing as t\n+from gettext import gettext as _\n \n \n class Sentinel(enum.Enum):\n@@ -43,3 +45,33 @@ T_UNSET: t.TypeAlias = t.Literal[Sentinel.UNSET]\n \n T_FLAG_NEEDS_VALUE: t.TypeAlias = t.Literal[Sentinel.FLAG_NEEDS_VALUE]\n \"\"\"Type hint for the :data:`FLAG_NEEDS_VALUE` sentinel value.\"\"\"\n+\n+\n+def _format_default_value(value: t.Any) -> str:\n+ \"\"\"Render a value the way ``[default: ...]`` and prompts show it.\n+\n+ A list or tuple renders as its values, comma separated, each rendered by\n+ the same rules as a single value: an Enum member by its name, an empty\n+ string as ``\"\"``, a plain function as ``(dynamic)``, anything else with\n+ ``str()``.\n+\n+ :meta private:\n+ \"\"\"\n+ if isinstance(value, (list, tuple)):\n+ return \", \".join(_format_default_value(item) for item in value)\n+ if isinstance(value, enum.Enum):\n+ return value.name\n+ if inspect.isfunction(value):\n+ return _(\"(dynamic)\")\n+ if isinstance(value, str) and value == \"\":\n+ return '\"\"'\n+ return str(value)\n+\n+\n+def _format_choice(choice: t.Any) -> str:\n+ \"\"\"Render one choice the way prompts and help list it: an Enum member by\n+ its name, anything else with ``str()``.\n+\n+ :meta private:\n+ \"\"\"\n+ return choice.name if isinstance(choice, enum.Enum) else str(choice)\ndiff --git a/src/click/core.py b/src/click/core.py\nindex 1f9323a..e82eaa0 100644\n--- a/src/click/core.py\n+++ b/src/click/core.py\n@@ -23,6 +23,7 @@ from types import TracebackType\n \n from . import types\n from ._utils import FLAG_NEEDS_VALUE\n+from ._utils import _format_default_value\n from ._utils import UNSET\n from .exceptions import Abort\n from .exceptions import BadParameter\n@@ -3564,12 +3565,13 @@ class Option(Parameter):\n ):\n if show_default_is_str:\n default_string = f\"({self.show_default})\"\n- elif isinstance(default_value, (list, tuple)):\n- default_string = \", \".join(str(d) for d in default_value)\n- elif isinstance(default_value, enum.Enum):\n- default_string = default_value.name\n- elif inspect.isfunction(default_value):\n- default_string = _(\"(dynamic)\")\n+ elif isinstance(default_value, (list, tuple)) or (\n+ isinstance(default_value, enum.Enum)\n+ or inspect.isfunction(default_value)\n+ ):\n+ # Multi-valued defaults render each value the way the same\n+ # value renders for a single-valued option.\n+ default_string = _format_default_value(default_value)\n elif self.is_bool_flag and self.secondary_opts:\n # For boolean flags that have distinct True/False opts,\n # use the opt without prefix instead of the value.\ndiff --git a/src/click/termui.py b/src/click/termui.py\nindex 8fe0085..0caa7cd 100644\n--- a/src/click/termui.py\n+++ b/src/click/termui.py\n@@ -15,6 +15,8 @@ from gettext import gettext as _\n from . import _compat\n from ._compat import isatty\n from ._compat import strip_ansi\n+from ._utils import _format_choice\n+from ._utils import _format_default_value\n from .exceptions import Abort\n from .exceptions import UsageError\n from .globals import resolve_color_default\n@@ -115,7 +117,9 @@ def _build_prompt(\n ) -> str:\n prompt = text\n if type is not None and show_choices and isinstance(type, Choice):\n- prompt += f\" ({', '.join(map(str, type.choices))})\"\n+ # Each choice is listed the way it can be typed back, which for an\n+ # Enum member is its name, as the help and the error message show it.\n+ prompt += f\" ({', '.join(_format_choice(choice) for choice in type.choices)})\"\n default_preview = \"\"\n if show_default:\n if isinstance(show_default, str):\n@@ -132,7 +136,9 @@ def _format_default(default: V) -> V | str:\n if name is not None:\n return str(name)\n \n- return default\n+ # The default is previewed the way the help renders it, so that what is\n+ # shown is what the user can type back.\n+ return _format_default_value(default)\n \n \n @t.overload\n@@ -250,6 +256,15 @@ def prompt(\n prompt = _build_prompt(\n text, prompt_suffix, show_default, default, show_choices, type\n )\n+ # The default exactly as the prompt shows it. Typing that text back\n+ # selects the default itself, as pressing Enter does, so that a value\n+ # rendered for display (a quoted empty string, a list of values) can be\n+ # typed back as shown.\n+ shown_default = (\n+ str(_format_default(default))\n+ if default is not None and show_default and not isinstance(show_default, str)\n+ else None\n+ )\n \n if confirmation_prompt:\n if confirmation_prompt is True:\n@@ -269,7 +284,9 @@ def prompt(\n value = t.cast(\"str\", default)\n break\n try:\n- result = value_proc(value)\n+ result = value_proc(\n+ default if shown_default is not None and value == shown_default else value\n+ )\n except UsageError as e:\n message = _mask_hidden_input(e.message, value) if hide_input else e.message\n echo(_(\"Error: {message}\").format(message=message), err=err)\ndiff --git a/tests/test_help_defaults_multiple.py b/tests/test_help_defaults_multiple.py\nnew file mode 100644\nindex 0000000..cb6eb77\n--- /dev/null\n+++ b/tests/test_help_defaults_multiple.py\n@@ -0,0 +1,69 @@\n+import enum\n+\n+import click\n+from click.testing import CliRunner\n+\n+\n+class Color(enum.Enum):\n+ Red = \"r\"\n+ Blue = \"b\"\n+\n+\n+def _help(**kwargs):\n+ @click.command()\n+ @click.option(\"--opt\", show_default=True, **kwargs)\n+ def cmd(opt):\n+ pass\n+\n+ return CliRunner().invoke(cmd, [\"--help\"]).output\n+\n+\n+def test_multiple_enum_default_shows_names():\n+ assert \"[default: Red, Blue]\" in _help(\n+ type=click.Choice(Color), multiple=True, default=[Color.Red, Color.Blue]\n+ )\n+\n+\n+def test_multiple_empty_string_default_is_quoted():\n+ assert '[default: \"\", x]' in _help(multiple=True, default=[\"\", \"x\"])\n+\n+\n+def test_nargs_with_multiple_renders_every_value():\n+ assert \"[default: 1, 2, 3, 4]\" in _help(nargs=2, multiple=True, default=[(1, 2), (3, 4)])\n+\n+\n+def _prompt_line(input_text=\"\\n\", **kwargs):\n+ @click.command()\n+ @click.option(\"--opt\", prompt=\"Value\", **kwargs)\n+ def cmd(opt):\n+ pass\n+\n+ return CliRunner().invoke(cmd, [], input=input_text).output.split(\"\\n\", 1)[0]\n+\n+\n+def test_prompt_lists_enum_choices_and_default_by_name():\n+ line = _prompt_line(type=click.Choice(Color), default=Color.Blue)\n+ assert \"(Red, Blue)\" in line\n+ assert \"[Blue]\" in line\n+\n+\n+def test_prompt_previews_empty_string_default_quoted():\n+ assert '[\"\"]' in _prompt_line(default=\"\")\n+\n+\n+def test_prompt_default_typed_back_as_shown():\n+ line = CliRunner().invoke(\n+ _typed_back_cmd(multiple=True, default=[\"\", \"x\"]), [], input='\"\", x\\n'\n+ ).output\n+ assert \"GOT=('', 'x')\" in line\n+ line = CliRunner().invoke(_typed_back_cmd(default=\"\"), [], input='\"\"\\n').output\n+ assert \"GOT=''\" in line\n+\n+\n+def _typed_back_cmd(**kwargs):\n+ @click.command()\n+ @click.option(\"--opt\", prompt=\"Value\", **kwargs)\n+ def cmd(opt):\n+ click.echo(f\"GOT={opt!r}\")\n+\n+ return cmd\n"
18
+ },
19
+ "isError": false,
20
+ "subscores": [
21
+ {
22
+ "name": "multi_enum",
23
+ "weight": 0.1875,
24
+ "value": 1.0,
25
+ "children": null,
26
+ "info": {
27
+ "exit_code": 0,
28
+ "stdout": "PASS multi_enum\n",
29
+ "stderr": "",
30
+ "_parameters": {
31
+ "command": "bash /hud/grader/run_grading.sh multi_enum",
32
+ "cwd": "/workspace/repo",
33
+ "timeout_seconds": 600
34
+ }
35
+ }
36
+ },
37
+ {
38
+ "name": "multi_empty_string",
39
+ "weight": 0.125,
40
+ "value": 1.0,
41
+ "children": null,
42
+ "info": {
43
+ "exit_code": 0,
44
+ "stdout": "PASS multi_empty_string\n",
45
+ "stderr": "",
46
+ "_parameters": {
47
+ "command": "bash /hud/grader/run_grading.sh multi_empty_string",
48
+ "cwd": "/workspace/repo",
49
+ "timeout_seconds": 600
50
+ }
51
+ }
52
+ },
53
+ {
54
+ "name": "nested_values",
55
+ "weight": 0.0625,
56
+ "value": 1.0,
57
+ "children": null,
58
+ "info": {
59
+ "exit_code": 0,
60
+ "stdout": "PASS nested_values\n",
61
+ "stderr": "",
62
+ "_parameters": {
63
+ "command": "bash /hud/grader/run_grading.sh nested_values",
64
+ "cwd": "/workspace/repo",
65
+ "timeout_seconds": 600
66
+ }
67
+ }
68
+ },
69
+ {
70
+ "name": "prompt_rendering",
71
+ "weight": 0.125,
72
+ "value": 1.0,
73
+ "children": null,
74
+ "info": {
75
+ "exit_code": 0,
76
+ "stdout": "PASS prompt_rendering\n",
77
+ "stderr": "",
78
+ "_parameters": {
79
+ "command": "bash /hud/grader/run_grading.sh prompt_rendering",
80
+ "cwd": "/workspace/repo",
81
+ "timeout_seconds": 600
82
+ }
83
+ }
84
+ },
85
+ {
86
+ "name": "untouched_paths",
87
+ "weight": 0.125,
88
+ "value": 1.0,
89
+ "children": null,
90
+ "info": {
91
+ "exit_code": 0,
92
+ "stdout": "PASS untouched_paths\n",
93
+ "stderr": "",
94
+ "_parameters": {
95
+ "command": "bash /hud/grader/run_grading.sh untouched_paths",
96
+ "cwd": "/workspace/repo",
97
+ "timeout_seconds": 600
98
+ }
99
+ }
100
+ },
101
+ {
102
+ "name": "prompt_function",
103
+ "weight": 0.0625,
104
+ "value": 1.0,
105
+ "children": null,
106
+ "info": {
107
+ "exit_code": 0,
108
+ "stdout": "PASS prompt_function\n",
109
+ "stderr": "",
110
+ "_parameters": {
111
+ "command": "bash /hud/grader/run_grading.sh prompt_function",
112
+ "cwd": "/workspace/repo",
113
+ "timeout_seconds": 600
114
+ }
115
+ }
116
+ },
117
+ {
118
+ "name": "typeback_single",
119
+ "weight": 0.0625,
120
+ "value": 1.0,
121
+ "children": null,
122
+ "info": {
123
+ "exit_code": 0,
124
+ "stdout": "PASS typeback_single\n",
125
+ "stderr": "",
126
+ "_parameters": {
127
+ "command": "bash /hud/grader/run_grading.sh typeback_single",
128
+ "cwd": "/workspace/repo",
129
+ "timeout_seconds": 600
130
+ }
131
+ }
132
+ },
133
+ {
134
+ "name": "typeback_multi",
135
+ "weight": 0.0625,
136
+ "value": 1.0,
137
+ "children": null,
138
+ "info": {
139
+ "exit_code": 0,
140
+ "stdout": "PASS typeback_multi\n",
141
+ "stderr": "",
142
+ "_parameters": {
143
+ "command": "bash /hud/grader/run_grading.sh typeback_multi",
144
+ "cwd": "/workspace/repo",
145
+ "timeout_seconds": 600
146
+ }
147
+ }
148
+ },
149
+ {
150
+ "name": "no_regression",
151
+ "weight": 0.0625,
152
+ "value": 1.0,
153
+ "children": null,
154
+ "info": {
155
+ "exit_code": 0,
156
+ "stdout": "PASS no_regression\n",
157
+ "stderr": "",
158
+ "_parameters": {
159
+ "command": "bash /hud/grader/run_grading.sh no_regression",
160
+ "cwd": "/workspace/repo",
161
+ "timeout_seconds": 900
162
+ }
163
+ }
164
+ },
165
+ {
166
+ "name": "test_quality",
167
+ "weight": 0.0625,
168
+ "value": 1.0,
169
+ "children": null,
170
+ "info": {
171
+ "exit_code": 0,
172
+ "stdout": " [grader] agent test files: tests/test_help_defaults_multiple.py\nPASS test_quality\n",
173
+ "stderr": "",
174
+ "_parameters": {
175
+ "command": "bash /hud/grader/run_grading.sh test_quality",
176
+ "cwd": "/workspace/repo",
177
+ "timeout_seconds": 600
178
+ }
179
+ }
180
+ },
181
+ {
182
+ "name": "maintainer_review",
183
+ "weight": 0.0625,
184
+ "value": 1.0,
185
+ "children": [
186
+ {
187
+ "name": "The diff changes how the [default: ...] text of an option's help is rendered, in src/click/core.py or in a helper that code calls; a change that only adds comments, whitespace or formatting does not count.",
188
+ "weight": 1.0,
189
+ "value": 1.0,
190
+ "children": null,
191
+ "info": {
192
+ "reason": "core.py's list/tuple branch for the help [default: ...] now calls the new `_format_default_value` helper in `_utils.py`, which renders each item recursively (Enum by name, empty string as \"\"). This is a real behavioral change to the help default rendering."
193
+ }
194
+ },
195
+ {
196
+ "name": "The diff changes how a prompt lists an option's choices or previews its default, in src/click/termui.py or in a helper that code calls; a change that only adds comments, whitespace or formatting does not count.",
197
+ "weight": 1.0,
198
+ "value": 1.0,
199
+ "children": null,
200
+ "info": {
201
+ "reason": "The diff changes termui.py's _build_prompt to list choices via _format_choice (Enum by name) and changes _format_default to return _format_default_value (quoted empty strings, joined lists), with new helpers in _utils.py that termui calls. These are behavioral changes, not just comments or formatting."
202
+ }
203
+ },
204
+ {
205
+ "name": "Look only at the files under src/click that the diff changes. Answer No only if one of those changes has nothing to do with any of these: rendering a default value or a choice for the help text or a prompt; a prompt accepting its default typed back exactly as it was shown (for example comparing the typed input with the shown default and using the default when they match); or code that this directly relies on (for example a shared helper it calls, or an import it needs). Changes to CHANGES.md, to test files and to any file outside src/click are not judged here and never count as unrelated edits.",
206
+ "weight": 1.0,
207
+ "value": 1.0,
208
+ "children": null,
209
+ "info": {
210
+ "reason": "Every change under src/click (_utils.py, core.py, termui.py) concerns rendering defaults or choices for help or prompts, the typed-back-default comparison in prompt(), or the helpers and imports they rely on. No unrelated edits appear."
211
+ }
212
+ },
213
+ {
214
+ "name": "The diff leaves every test file that existed before it unchanged. Test files that the diff creates are new, not changed, and count as Yes.",
215
+ "weight": 1.0,
216
+ "value": 1.0,
217
+ "children": null,
218
+ "info": {
219
+ "reason": "The only test file in the diff, tests/test_help_defaults_multiple.py, is newly created. No pre-existing test file is modified."
220
+ }
221
+ },
222
+ {
223
+ "name": "Look at every method or property name that the lines the diff adds define inside a class under src/click, and at every parameter the diff adds to such a method. Answer No only if one of those names does not start with an underscore and is not already defined before the diff, under the same name, on the class being changed or a class it inherits from. Names that start with an underscore count as Yes; this includes special methods such as __init__, whose names start with two underscores.",
224
+ "weight": 1.0,
225
+ "value": 1.0,
226
+ "children": null,
227
+ "info": {
228
+ "reason": "The diff adds no new public method/property or parameter inside any class under src/click; the only new definitions are underscore-prefixed module-level functions, and the existing Option method only has its body modified. No violation exists, so the answer is Yes."
229
+ }
230
+ },
231
+ {
232
+ "name": "The diff does not remove, rename or make required any parameter of an existing public function or method under src/click, and does not change the type of value such a function or method returns (for example a function that returned a str still returns a str). Returning different text, as the ticket requires for the rendered defaults and choices, is a change of behaviour, not of type, and counts as Yes. A function or method is public when its name does not start with an underscore. Changes to functions or methods whose names start with an underscore, and new optional parameters whose names start with an underscore, count as Yes.",
233
+ "weight": 1.0,
234
+ "value": 1.0,
235
+ "children": null,
236
+ "info": {
237
+ "reason": "No public function or method under src/click has its signature or return type changed; only private helpers are added or modified (_format_default_value, _format_choice, _format_default, _build_prompt) and bodies of public functions (prompt, Option help extra) change behavior only."
238
+ }
239
+ },
240
+ {
241
+ "name": "At least one test file added by the diff invokes a command's --help (for example through click.testing.CliRunner) for an option that has multiple=True (or nargs greater than 1 together with multiple) and a default containing an Enum member or an empty string, and asserts on the [default: ...] text in the output. Tests that only assert on a single-valued default do not meet this criterion.",
242
+ "weight": 1.0,
243
+ "value": 1.0,
244
+ "children": null,
245
+ "info": {
246
+ "reason": "The added test file has tests that invoke --help via CliRunner for options with multiple=True and defaults containing Enum members ([Color.Red, Color.Blue]) and an empty string (['', 'x']), asserting on the '[default: ...]' text."
247
+ }
248
+ },
249
+ {
250
+ "name": "The diff adds an entry to CHANGES.md under a version that is not yet released.",
251
+ "weight": 1.0,
252
+ "value": 1.0,
253
+ "children": null,
254
+ "info": {
255
+ "reason": "The diff adds a bullet to CHANGES.md directly under an \"Unreleased\" version heading, i.e. a version that is not yet released."
256
+ }
257
+ },
258
+ {
259
+ "name": "The entry the diff adds to CHANGES.md describes the change to how the help-text default of a multi-valued option is rendered.",
260
+ "weight": 1.0,
261
+ "value": 1.0,
262
+ "children": null,
263
+ "info": {
264
+ "reason": "The CHANGES.md entry states that the `[default: ...]` help text for `multiple=True` options now renders each value as a single value is rendered (Enum members by name, empty strings as `\"\"`), which is the required description."
265
+ }
266
+ }
267
+ ],
268
+ "info": {
269
+ "model": "anthropic/claude-sonnet-5.5",
270
+ "_parameters": {
271
+ "answer": "(answer elided; 8241 chars)",
272
+ "criteria": [
273
+ "The diff changes how the [default: ...] text of an option's help is rendered, in src/click/core.py or in a helper that code calls; a change that only adds comments, whitespace or formatting does not count.",
274
+ "The diff changes how a prompt lists an option's choices or previews its default, in src/click/termui.py or in a helper that code calls; a change that only adds comments, whitespace or formatting does not count.",
275
+ "Look only at the files under src/click that the diff changes. Answer No only if one of those changes has nothing to do with any of these: rendering a default value or a choice for the help text or a prompt; a prompt accepting its default typed back exactly as it was shown (for example comparing the typed input with the shown default and using the default when they match); or code that this directly relies on (for example a shared helper it calls, or an import it needs). Changes to CHANGES.md, to test files and to any file outside src/click are not judged here and never count as unrelated edits.",
276
+ "The diff leaves every test file that existed before it unchanged. Test files that the diff creates are new, not changed, and count as Yes.",
277
+ "Look at every method or property name that the lines the diff adds define inside a class under src/click, and at every parameter the diff adds to such a method. Answer No only if one of those names does not start with an underscore and is not already defined before the diff, under the same name, on the class being changed or a class it inherits from. Names that start with an underscore count as Yes; this includes special methods such as __init__, whose names start with two underscores.",
278
+ "The diff does not remove, rename or make required any parameter of an existing public function or method under src/click, and does not change the type of value such a function or method returns (for example a function that returned a str still returns a str). Returning different text, as the ticket requires for the rendered defaults and choices, is a change of behaviour, not of type, and counts as Yes. A function or method is public when its name does not start with an underscore. Changes to functions or methods whose names start with an underscore, and new optional parameters whose names start with an underscore, count as Yes.",
279
+ "At least one test file added by the diff invokes a command's --help (for example through click.testing.CliRunner) for an option that has multiple=True (or nargs greater than 1 together with multiple) and a default containing an Enum member or an empty string, and asserts on the [default: ...] text in the output. Tests that only assert on a single-valued default do not meet this criterion.",
280
+ "The diff adds an entry to CHANGES.md under a version that is not yet released.",
281
+ "The entry the diff adds to CHANGES.md describes the change to how the help-text default of a multi-valued option is rendered."
282
+ ],
283
+ "question": "(question elided; 529 chars)",
284
+ "model": "anthropic/claude-sonnet-5.5"
285
+ }
286
+ }
287
+ }
288
+ ]
289
+ }
harbor/evidence/click/reports/noop.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "revision": "coding-rubric-v2",
3
+ "task_id": "help_defaults",
4
+ "grader_version": "0.6.13",
5
+ "commands": [
6
+ {
7
+ "name": "multi_enum",
8
+ "weight": 0.1875,
9
+ "value": 0.0,
10
+ "children": null,
11
+ "info": {
12
+ "exit_code": 1,
13
+ "stdout": " ----- hidden suite __hidden__multi_enum.py (last 2500 bytes) -----\n | .FFF [100%]\n | =================================== FAILURES ===================================\n | ______________________ test_multiple_enum_default_by_name ______________________\n | \n | def test_multiple_enum_default_by_name():\n | > assert default_shown(type=click.Choice(Color), multiple=True, default=[Color.Red]) == \"Red\"\n | E AssertionError: assert 'Color.Red' == 'Red'\n | E \n | E - Red\n | E + Color.Red\n | \n | __hidden__multi_enum.py:13: AssertionError\n | __________________ test_multiple_enum_defaults_joined_by_name __________________\n | \n | def test_multiple_enum_defaults_joined_by_name():\n | shown = default_shown(type=click.Choice(Color), multiple=True, default=[Color.Red, Color.Blue])\n | > assert shown == \"Red, Blue\"\n | E AssertionError: assert 'Color.Red, Color.Blue' == 'Red, Blue'\n | E \n | E - Red, Blue\n | E + Color.Red, Color.Blue\n | \n | __hidden__multi_enum.py:18: AssertionError\n | _____________________ test_multiple_enum_default_as_tuple ______________________\n | \n | def test_multiple_enum_default_as_tuple():\n | shown = default_shown(type=click.Choice(Color), multiple=True, default=(Color.Green,))\n | > assert shown == \"Green\"\n | E AssertionError: assert 'Color.Green' == 'Green'\n | E \n | E - Green\n | E + Color.Green\n | \n | __hidden__multi_enum.py:23: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__multi_enum.py::test_multiple_enum_default_by_name - Assertio...\n | FAILED __hidden__multi_enum.py::test_multiple_enum_defaults_joined_by_name - ...\n | FAILED __hidden__multi_enum.py::test_multiple_enum_default_as_tuple - Asserti...\n | 3 failed, 1 passed in 0.08s\n -----\nFAIL multi_enum\n",
14
+ "stderr": "",
15
+ "_parameters": {
16
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh multi_enum'",
17
+ "cwd": "/workspace/repo",
18
+ "timeout_seconds": 600
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "name": "multi_empty_string",
24
+ "weight": 0.125,
25
+ "value": 0.0,
26
+ "children": null,
27
+ "info": {
28
+ "exit_code": 1,
29
+ "stdout": " ----- hidden suite __hidden__multi_empty_string.py (last 2500 bytes) -----\n | .FF. [100%]\n | =================================== FAILURES ===================================\n | _______________________ test_multiple_with_empty_string ________________________\n | \n | def test_multiple_with_empty_string():\n | > assert default_shown(multiple=True, default=[\"\", \"x\"]) == '\"\", x'\n | E assert ', x' == '\"\", x'\n | E \n | E - \"\", x\n | E ? --\n | E + , x\n | \n | __hidden__multi_empty_string.py:11: AssertionError\n | _______________________ test_multiple_only_empty_strings _______________________\n | \n | def test_multiple_only_empty_strings():\n | > assert default_shown(multiple=True, default=[\"\", \"\"]) == '\"\", \"\"'\n | E assert ',' == '\"\", \"\"'\n | E \n | E - \"\", \"\"\n | E + ,\n | \n | __hidden__multi_empty_string.py:15: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__multi_empty_string.py::test_multiple_with_empty_string - ass...\n | FAILED __hidden__multi_empty_string.py::test_multiple_only_empty_strings - as...\n | 2 failed, 2 passed in 0.08s\n -----\nFAIL multi_empty_string\n",
30
+ "stderr": "",
31
+ "_parameters": {
32
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh multi_empty_string'",
33
+ "cwd": "/workspace/repo",
34
+ "timeout_seconds": 600
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "name": "nested_values",
40
+ "weight": 0.0625,
41
+ "value": 0.0,
42
+ "children": null,
43
+ "info": {
44
+ "exit_code": 1,
45
+ "stdout": " ----- hidden suite __hidden__nested_values.py (last 2500 bytes) -----\n | F.FF [100%]\n | =================================== FAILURES ===================================\n | ______________________ test_nargs_with_multiple_flattens _______________________\n | \n | def test_nargs_with_multiple_flattens():\n | > assert default_shown(nargs=2, multiple=True, default=[(1, 2), (3, 4)]) == \"1, 2, 3, 4\"\n | E AssertionError: assert '(1, 2), (3, 4)' == '1, 2, 3, 4'\n | E \n | E - 1, 2, 3, 4\n | E + (1, 2), (3, 4)\n | E ? + + + +\n | \n | __hidden__nested_values.py:9: AssertionError\n | _______________________ test_mixed_values_in_one_default _______________________\n | \n | def test_mixed_values_in_one_default():\n | shown = default_shown(type=click.Choice(Color), multiple=True, default=[Color.Red, Color.Green])\n | > assert shown == \"Red, Green\"\n | E AssertionError: assert 'Color.Red, Color.Green' == 'Red, Green'\n | E \n | E - Red, Green\n | E + Color.Red, Color.Green\n | \n | __hidden__nested_values.py:18: AssertionError\n | ______________________ test_nested_enum_and_empty_string _______________________\n | \n | def test_nested_enum_and_empty_string():\n | > assert default_shown(nargs=2, multiple=True, default=[(Color.Red, \"\"), (Color.Blue, \"z\")]) == 'Red, \"\", Blue, z'\n | E assert \"(<Color.Red:... 'z')\" == 'Red, \"\", Blue, z'\n | E \n | E - Red, \"\", Blue, z\n | E + (<Color.Red: 'r'>, ''), (<Color.Blue: 'b'>, 'z')\n | \n | __hidden__nested_values.py:24: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__nested_values.py::test_nargs_with_multiple_flattens - Assert...\n | FAILED __hidden__nested_values.py::test_mixed_values_in_one_default - Asserti...\n | FAILED __hidden__nested_values.py::test_nested_enum_and_empty_string - assert...\n | 3 failed, 1 passed in 0.08s\n -----\nFAIL nested_values\n",
46
+ "stderr": "",
47
+ "_parameters": {
48
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh nested_values'",
49
+ "cwd": "/workspace/repo",
50
+ "timeout_seconds": 600
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "prompt_rendering",
56
+ "weight": 0.125,
57
+ "value": 0.0,
58
+ "children": null,
59
+ "info": {
60
+ "exit_code": 1,
61
+ "stdout": " ----- hidden suite __hidden__prompt_rendering.py (last 2500 bytes) -----\n | sertionError: assert '(Red, Green, Blue)' in 'Value (Color.Red, Color.Green, Color.Blue): Red'\n | \n | __hidden__prompt_rendering.py:12: AssertionError\n | ____________________ test_enum_default_preview_is_its_name _____________________\n | \n | def test_enum_default_preview_is_its_name():\n | line = prompt_text(type=click.Choice(Color), default=Color.Green)\n | > assert \"[Green]\" in line\n | E AssertionError: assert '[Green]' in 'Value (Color.Red, Color.Green, Color.Blue) [Color.Green]: '\n | \n | __hidden__prompt_rendering.py:18: AssertionError\n | ______________ test_enum_default_without_choice_type_is_its_name _______________\n | \n | def test_enum_default_without_choice_type_is_its_name():\n | line = prompt_text(default=Color.Blue, type=click.UNPROCESSED)\n | > assert \"[Blue]\" in line\n | E AssertionError: assert '[Blue]' in 'Value [Color.Blue]: '\n | \n | __hidden__prompt_rendering.py:24: AssertionError\n | _________________ test_empty_string_default_preview_is_quoted __________________\n | \n | def test_empty_string_default_preview_is_quoted():\n | line = prompt_text(default=\"\")\n | > assert '[\"\"]' in line\n | E assert '[\"\"]' in 'Value []: '\n | \n | __hidden__prompt_rendering.py:29: AssertionError\n | ____________________ test_shown_enum_name_is_accepted_back _____________________\n | \n | def test_shown_enum_name_is_accepted_back():\n | @click.command()\n | @click.option(\"--opt\", prompt=\"Value\", type=click.Choice(Color), default=Color.Red)\n | def cmd(opt):\n | click.echo(opt.name)\n | \n | result = CliRunner().invoke(cmd, [], input=\"Green\\n\")\n | assert result.exit_code == 0\n | assert result.output.endswith(\"Green\\n\")\n | > assert \"Color.\" not in result.output\n | E AssertionError: assert 'Color.' not in 'Value (Colo...een\\nGreen\\n'\n | E \n | E 'Color.' is contained here:\n | E Value (Color.Red, Color.Green, Color.Blue) [Color.Red]: Green\n | E ? ++++++\n | E Green\n | \n | __hidden__prompt_rendering.py:41: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__prompt_rendering.py::test_enum_choices_are_listed_by_name - ...\n | FAILED __hidden__prompt_rendering.py::test_enum_default_preview_is_its_name\n | FAILED __hidden__prompt_rendering.py::test_enum_default_without_choice_type_is_its_name\n | FAILED __hidden__prompt_rendering.py::test_empty_string_default_preview_is_quoted\n | FAILED __hidden__prompt_rendering.py::test_shown_enum_name_is_accepted_back\n | 5 failed, 2 passed in 0.09s\n -----\nFAIL prompt_rendering\n",
62
+ "stderr": "",
63
+ "_parameters": {
64
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh prompt_rendering'",
65
+ "cwd": "/workspace/repo",
66
+ "timeout_seconds": 600
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "name": "untouched_paths",
72
+ "weight": 0.125,
73
+ "value": 1.0,
74
+ "children": null,
75
+ "info": {
76
+ "exit_code": 0,
77
+ "stdout": "PASS untouched_paths\n",
78
+ "stderr": "",
79
+ "_parameters": {
80
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh untouched_paths'",
81
+ "cwd": "/workspace/repo",
82
+ "timeout_seconds": 600
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "name": "prompt_function",
88
+ "weight": 0.0625,
89
+ "value": 0.0,
90
+ "children": null,
91
+ "info": {
92
+ "exit_code": 1,
93
+ "stdout": " ----- hidden suite __hidden__prompt_function.py (last 2500 bytes) -----\n | FFF. [100%]\n | =================================== FAILURES ===================================\n | ____________________ test_enum_choices_and_default_by_name _____________________\n | \n | def test_enum_choices_and_default_by_name():\n | out = _line(type=click.Choice(Color), default=Color.Blue)\n | > assert out.startswith(\"Value (Red, Green, Blue) [Blue]:\")\n | E assert False\n | E + where False = <built-in method startswith of str object at 0x78a5b65c3730>('Value (Red, Green, Blue) [Blue]:')\n | E + where <built-in method startswith of str object at 0x78a5b65c3730> = \"Value (Color.Red, Color.Green, Color.Blue) [Color.Blue]: \\nGOT=<Color.Blue: 'b'>\\n\".startswith\n | \n | __hidden__prompt_function.py:20: AssertionError\n | _____________________ test_empty_string_default_is_quoted ______________________\n | \n | def test_empty_string_default_is_quoted():\n | > assert _line(default=\"\").startswith('Value [\"\"]:')\n | E assert False\n | E + where False = <built-in method startswith of str object at 0x78a5b6638e30>('Value [\"\"]:')\n | E + where <built-in method startswith of str object at 0x78a5b6638e30> = \"Value []: \\nGOT=''\\n\".startswith\n | E + where \"Value []: \\nGOT=''\\n\" = _line(default='')\n | \n | __hidden__prompt_function.py:25: AssertionError\n | ____________________ test_multi_valued_default_is_one_list _____________________\n | \n | def test_multi_valued_default_is_one_list():\n | > assert _line(default=[Color.Red, \"\"], type=click.UNPROCESSED).startswith('Value [Red, \"\"]:')\n | E assert False\n | E + where False = <built-in method startswith of str object at 0x78a5b64bfad0>('Value [Red, \"\"]:')\n | E + where <built-in method startswith of str object at 0x78a5b64bfad0> = \"Value [[<Color.Red: 'r'>, '']]: \\nGOT=[<Color.Red: 'r'>, '']\\n\".startswith\n | E + where \"Value [[<Color.Red: 'r'>, '']]: \\nGOT=[<Color.Red: 'r'>, '']\\n\" = _line(default=[<Color.Red: 'r'>, ''], type=UNPROCESSED)\n | E + where UNPROCESSED = click.UNPROCESSED\n | \n | __hidden__prompt_function.py:29: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__prompt_function.py::test_enum_choices_and_default_by_name - ...\n | FAILED __hidden__prompt_function.py::test_empty_string_default_is_quoted - as...\n | FAILED __hidden__prompt_function.py::test_multi_valued_default_is_one_list - ...\n | 3 failed, 1 passed in 0.08s\n -----\nFAIL prompt_function\n",
94
+ "stderr": "",
95
+ "_parameters": {
96
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh prompt_function'",
97
+ "cwd": "/workspace/repo",
98
+ "timeout_seconds": 600
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "typeback_single",
104
+ "weight": 0.0625,
105
+ "value": 0.0,
106
+ "children": null,
107
+ "info": {
108
+ "exit_code": 1,
109
+ "stdout": " ----- hidden suite __hidden__typeback_single.py (last 2500 bytes) -----\n | FF. [100%]\n | =================================== FAILURES ===================================\n | ___________ test_quoted_empty_string_typed_back_is_the_empty_string ____________\n | \n | def test_quoted_empty_string_typed_back_is_the_empty_string():\n | > assert _got('\"\"\\n', default=\"\") == \"''\"\n | E assert '\\'\"\"\\'' == \"''\"\n | E \n | E - ''\n | E + '\"\"'\n | \n | __hidden__typeback_single.py:21: AssertionError\n | _______________ test_enum_name_typed_back_is_the_default_member ________________\n | \n | def test_enum_name_typed_back_is_the_default_member():\n | # Without a Choice type the name is not converted by the type, yet what\n | # the prompt showed still selects the default.\n | > assert _got(\"Green\\n\", default=Color.Green, type=click.UNPROCESSED) == repr(Color.Green)\n | E assert \"'Green'\" == \"<Color.Green: 'g'>\"\n | E \n | E - <Color.Green: 'g'>\n | E + 'Green'\n | \n | __hidden__typeback_single.py:28: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__typeback_single.py::test_quoted_empty_string_typed_back_is_the_empty_string\n | FAILED __hidden__typeback_single.py::test_enum_name_typed_back_is_the_default_member\n | 2 failed, 1 passed in 0.08s\n -----\nFAIL typeback_single\n",
110
+ "stderr": "",
111
+ "_parameters": {
112
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh typeback_single'",
113
+ "cwd": "/workspace/repo",
114
+ "timeout_seconds": 600
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "name": "typeback_multi",
120
+ "weight": 0.0625,
121
+ "value": 0.0,
122
+ "children": null,
123
+ "info": {
124
+ "exit_code": 1,
125
+ "stdout": " ----- hidden suite __hidden__typeback_multi.py (last 2500 bytes) -----\n | ot('\"\", x\\n', multiple=True, default=[\"\", \"x\"]) == repr((\"\", \"x\"))\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n | \n | __hidden__typeback_multi.py:26: \n | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n | \n | input_text = '\"\", x\\n', option_kwargs = {'multiple': True, 'default': ['', 'x']}\n | \n | def _got(input_text, **option_kwargs):\n | @click.command()\n | @click.option(\"--opt\", prompt=\"Value\", **option_kwargs)\n | def cmd(opt):\n | click.echo(f\"GOT={opt!r}\")\n | \n | result = CliRunner().invoke(cmd, [], input=input_text)\n | > assert result.exit_code == 0, result.output\n | E AssertionError: Value [['', 'x']]: \"\", x\n | E Error: Value must be an iterable.\n | E Aborted!\n | E Value [['', 'x']]: \n | E assert 1 == 0\n | E + where 1 = <Result SystemExit(1)>.exit_code\n | \n | __hidden__typeback_multi.py:16: AssertionError\n | ________________________ test_nargs_default_typed_back _________________________\n | \n | def test_nargs_default_typed_back():\n | > got = _got(\"Red, x\\n\", nargs=2, type=(click.Choice(Color), str), default=(Color.Red, \"x\"))\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n | \n | __hidden__typeback_multi.py:30: \n | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n | \n | input_text = 'Red, x\\n'\n | option_kwargs = {'nargs': 2, 'type': (Choice([<Color.Red: 'r'>, <Color.Green: 'g'>, <Color.Blue: 'b'>]), <class 'str'>), 'default': (<Color.Red: 'r'>, 'x')}\n | \n | def _got(input_text, **option_kwargs):\n | @click.command()\n | @click.option(\"--opt\", prompt=\"Value\", **option_kwargs)\n | def cmd(opt):\n | click.echo(f\"GOT={opt!r}\")\n | \n | result = CliRunner().invoke(cmd, [], input=input_text)\n | > assert result.exit_code == 0, result.output\n | E AssertionError: Value [(<Color.Red: 'r'>, 'x')]: Red, x\n | E Error: 2 values are required, but 6 were given.\n | E Aborted!\n | E Value [(<Color.Red: 'r'>, 'x')]: \n | E assert 1 == 0\n | E + where 1 = <Result SystemExit(1)>.exit_code\n | \n | __hidden__typeback_multi.py:16: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__typeback_multi.py::test_multiple_enum_default_typed_back - A...\n | FAILED __hidden__typeback_multi.py::test_multiple_default_with_empty_string_typed_back\n | FAILED __hidden__typeback_multi.py::test_nargs_default_typed_back - Assertion...\n | 3 failed in 0.09s\n -----\nFAIL typeback_multi\n",
126
+ "stderr": "",
127
+ "_parameters": {
128
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh typeback_multi'",
129
+ "cwd": "/workspace/repo",
130
+ "timeout_seconds": 600
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "name": "no_regression",
136
+ "weight": 0.0625,
137
+ "value": 1.0,
138
+ "children": null,
139
+ "info": {
140
+ "exit_code": 0,
141
+ "stdout": "PASS no_regression\n",
142
+ "stderr": "",
143
+ "_parameters": {
144
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh no_regression'",
145
+ "cwd": "/workspace/repo",
146
+ "timeout_seconds": 900
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "name": "test_quality",
152
+ "weight": 0.0625,
153
+ "value": 0.0,
154
+ "children": null,
155
+ "info": {
156
+ "exit_code": 1,
157
+ "stdout": " [grader] no test files added or changed under tests/\nFAIL test_quality\n",
158
+ "stderr": "",
159
+ "_parameters": {
160
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh test_quality'",
161
+ "cwd": "/workspace/repo",
162
+ "timeout_seconds": 600
163
+ }
164
+ }
165
+ }
166
+ ],
167
+ "status": "graded",
168
+ "patch_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
169
+ "result": {
170
+ "reward": 0.0,
171
+ "done": true,
172
+ "content": "Blocker criteria failed (multi_empty_string, multi_enum, prompt_rendering, untouched_paths); reward scaled down to 0.000 (uncapped 0.000).",
173
+ "info": {
174
+ "diff_stat": {
175
+ "files": [],
176
+ "added": 0,
177
+ "removed": 0
178
+ },
179
+ "graded_diff": "",
180
+ "uncapped_reward": 0.0,
181
+ "failed_blockers": [
182
+ "multi_empty_string",
183
+ "multi_enum",
184
+ "prompt_rendering",
185
+ "untouched_paths"
186
+ ]
187
+ },
188
+ "isError": false,
189
+ "subscores": [
190
+ {
191
+ "name": "multi_enum",
192
+ "weight": 0.1875,
193
+ "value": 0.0,
194
+ "children": null,
195
+ "info": {
196
+ "exit_code": 1,
197
+ "stdout": " ----- hidden suite __hidden__multi_enum.py (last 2500 bytes) -----\n | .FFF [100%]\n | =================================== FAILURES ===================================\n | ______________________ test_multiple_enum_default_by_name ______________________\n | \n | def test_multiple_enum_default_by_name():\n | > assert default_shown(type=click.Choice(Color), multiple=True, default=[Color.Red]) == \"Red\"\n | E AssertionError: assert 'Color.Red' == 'Red'\n | E \n | E - Red\n | E + Color.Red\n | \n | __hidden__multi_enum.py:13: AssertionError\n | __________________ test_multiple_enum_defaults_joined_by_name __________________\n | \n | def test_multiple_enum_defaults_joined_by_name():\n | shown = default_shown(type=click.Choice(Color), multiple=True, default=[Color.Red, Color.Blue])\n | > assert shown == \"Red, Blue\"\n | E AssertionError: assert 'Color.Red, Color.Blue' == 'Red, Blue'\n | E \n | E - Red, Blue\n | E + Color.Red, Color.Blue\n | \n | __hidden__multi_enum.py:18: AssertionError\n | _____________________ test_multiple_enum_default_as_tuple ______________________\n | \n | def test_multiple_enum_default_as_tuple():\n | shown = default_shown(type=click.Choice(Color), multiple=True, default=(Color.Green,))\n | > assert shown == \"Green\"\n | E AssertionError: assert 'Color.Green' == 'Green'\n | E \n | E - Green\n | E + Color.Green\n | \n | __hidden__multi_enum.py:23: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__multi_enum.py::test_multiple_enum_default_by_name - Assertio...\n | FAILED __hidden__multi_enum.py::test_multiple_enum_defaults_joined_by_name - ...\n | FAILED __hidden__multi_enum.py::test_multiple_enum_default_as_tuple - Asserti...\n | 3 failed, 1 passed in 0.08s\n -----\nFAIL multi_enum\n",
198
+ "stderr": "",
199
+ "_parameters": {
200
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh multi_enum'",
201
+ "cwd": "/workspace/repo",
202
+ "timeout_seconds": 600
203
+ }
204
+ }
205
+ },
206
+ {
207
+ "name": "multi_empty_string",
208
+ "weight": 0.125,
209
+ "value": 0.0,
210
+ "children": null,
211
+ "info": {
212
+ "exit_code": 1,
213
+ "stdout": " ----- hidden suite __hidden__multi_empty_string.py (last 2500 bytes) -----\n | .FF. [100%]\n | =================================== FAILURES ===================================\n | _______________________ test_multiple_with_empty_string ________________________\n | \n | def test_multiple_with_empty_string():\n | > assert default_shown(multiple=True, default=[\"\", \"x\"]) == '\"\", x'\n | E assert ', x' == '\"\", x'\n | E \n | E - \"\", x\n | E ? --\n | E + , x\n | \n | __hidden__multi_empty_string.py:11: AssertionError\n | _______________________ test_multiple_only_empty_strings _______________________\n | \n | def test_multiple_only_empty_strings():\n | > assert default_shown(multiple=True, default=[\"\", \"\"]) == '\"\", \"\"'\n | E assert ',' == '\"\", \"\"'\n | E \n | E - \"\", \"\"\n | E + ,\n | \n | __hidden__multi_empty_string.py:15: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__multi_empty_string.py::test_multiple_with_empty_string - ass...\n | FAILED __hidden__multi_empty_string.py::test_multiple_only_empty_strings - as...\n | 2 failed, 2 passed in 0.08s\n -----\nFAIL multi_empty_string\n",
214
+ "stderr": "",
215
+ "_parameters": {
216
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh multi_empty_string'",
217
+ "cwd": "/workspace/repo",
218
+ "timeout_seconds": 600
219
+ }
220
+ }
221
+ },
222
+ {
223
+ "name": "nested_values",
224
+ "weight": 0.0625,
225
+ "value": 0.0,
226
+ "children": null,
227
+ "info": {
228
+ "exit_code": 1,
229
+ "stdout": " ----- hidden suite __hidden__nested_values.py (last 2500 bytes) -----\n | F.FF [100%]\n | =================================== FAILURES ===================================\n | ______________________ test_nargs_with_multiple_flattens _______________________\n | \n | def test_nargs_with_multiple_flattens():\n | > assert default_shown(nargs=2, multiple=True, default=[(1, 2), (3, 4)]) == \"1, 2, 3, 4\"\n | E AssertionError: assert '(1, 2), (3, 4)' == '1, 2, 3, 4'\n | E \n | E - 1, 2, 3, 4\n | E + (1, 2), (3, 4)\n | E ? + + + +\n | \n | __hidden__nested_values.py:9: AssertionError\n | _______________________ test_mixed_values_in_one_default _______________________\n | \n | def test_mixed_values_in_one_default():\n | shown = default_shown(type=click.Choice(Color), multiple=True, default=[Color.Red, Color.Green])\n | > assert shown == \"Red, Green\"\n | E AssertionError: assert 'Color.Red, Color.Green' == 'Red, Green'\n | E \n | E - Red, Green\n | E + Color.Red, Color.Green\n | \n | __hidden__nested_values.py:18: AssertionError\n | ______________________ test_nested_enum_and_empty_string _______________________\n | \n | def test_nested_enum_and_empty_string():\n | > assert default_shown(nargs=2, multiple=True, default=[(Color.Red, \"\"), (Color.Blue, \"z\")]) == 'Red, \"\", Blue, z'\n | E assert \"(<Color.Red:... 'z')\" == 'Red, \"\", Blue, z'\n | E \n | E - Red, \"\", Blue, z\n | E + (<Color.Red: 'r'>, ''), (<Color.Blue: 'b'>, 'z')\n | \n | __hidden__nested_values.py:24: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__nested_values.py::test_nargs_with_multiple_flattens - Assert...\n | FAILED __hidden__nested_values.py::test_mixed_values_in_one_default - Asserti...\n | FAILED __hidden__nested_values.py::test_nested_enum_and_empty_string - assert...\n | 3 failed, 1 passed in 0.08s\n -----\nFAIL nested_values\n",
230
+ "stderr": "",
231
+ "_parameters": {
232
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh nested_values'",
233
+ "cwd": "/workspace/repo",
234
+ "timeout_seconds": 600
235
+ }
236
+ }
237
+ },
238
+ {
239
+ "name": "prompt_rendering",
240
+ "weight": 0.125,
241
+ "value": 0.0,
242
+ "children": null,
243
+ "info": {
244
+ "exit_code": 1,
245
+ "stdout": "...\n | def test_enum_default_preview_is_its_name():\n | line = prompt_text(type=click.Choice(Color), default=Color.Green)\n | > assert \"[Green]\" in line\n | E AssertionError: assert '[Green]' in 'Value (Color.Red, Color.Green, Color.Blue) [Color.Green]: '\n | \n | __hidden__prompt_rendering.py:18: AssertionError\n | ______________ test_enum_default_without_choice_type_is_its_name _______________\n | \n | def test_enum_default_without_choice_type_is_its_name():\n | line = prompt_text(default=Color.Blue, type=click.UNPROCESSED)\n | > assert \"[Blue]\" in line\n | E AssertionError: assert '[Blue]' in 'Value [Color.Blue]: '\n | \n | __hidden__prompt_rendering.py:24: AssertionError\n | _________________ test_empty_string_default_preview_is_quoted __________________\n | \n | def test_empty_string_default_preview_is_quoted():\n | line = prompt_text(default=\"\")\n | > assert '[\"\"]' in line\n | E assert '[\"\"]' in 'Value []: '\n | \n | __hidden__prompt_rendering.py:29: AssertionError\n | ____________________ test_shown_enum_name_is_accepted_back _____________________\n | \n | def test_shown_enum_name_is_accepted_back():\n | @click.command()\n | @click.option(\"--opt\", prompt=\"Value\", type=click.Choice(Color), default=Color.Red)\n | def cmd(opt):\n | click.echo(opt.name)\n | \n | result = CliRunner().invoke(cmd, [], input=\"Green\\n\")\n | assert result.exit_code == 0\n | assert result.output.endswith(\"Green\\n\")\n | > assert \"Color.\" not in result.output\n | E AssertionError: assert 'Color.' not in 'Value (Colo...een\\nGreen\\n'\n | E \n | E 'Color.' is contained here:\n | E Value (Color.Red, Color.Green, Color.Blue) [Color.Red]: Green\n | E ? ++++++\n | E Green\n | \n | __hidden__prompt_rendering.py:41: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__prompt_rendering.py::test_enum_choices_are_listed_by_name - ...\n | FAILED __hidden__prompt_rendering.py::test_enum_default_preview_is_its_name\n | FAILED __hidden__prompt_rendering.py::test_enum_default_without_choice_type_is_its_name\n | FAILED __hidden__prompt_rendering.py::test_empty_string_default_preview_is_quoted\n | FAILED __hidden__prompt_rendering.py::test_shown_enum_name_is_accepted_back\n | 5 failed, 2 passed in 0.09s\n -----\nFAIL prompt_rendering\n",
246
+ "stderr": "",
247
+ "_parameters": {
248
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh prompt_rendering'",
249
+ "cwd": "/workspace/repo",
250
+ "timeout_seconds": 600
251
+ }
252
+ }
253
+ },
254
+ {
255
+ "name": "untouched_paths",
256
+ "weight": 0.125,
257
+ "value": 0.0,
258
+ "children": null,
259
+ "info": {
260
+ "exit_code": 0,
261
+ "stdout": "PASS untouched_paths\n",
262
+ "stderr": "",
263
+ "_parameters": {
264
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh untouched_paths'",
265
+ "cwd": "/workspace/repo",
266
+ "timeout_seconds": 600
267
+ },
268
+ "gated": "zeroed: a gate line failed"
269
+ }
270
+ },
271
+ {
272
+ "name": "prompt_function",
273
+ "weight": 0.0625,
274
+ "value": 0.0,
275
+ "children": null,
276
+ "info": {
277
+ "exit_code": 1,
278
+ "stdout": "...============================\n | ____________________ test_enum_choices_and_default_by_name _____________________\n | \n | def test_enum_choices_and_default_by_name():\n | out = _line(type=click.Choice(Color), default=Color.Blue)\n | > assert out.startswith(\"Value (Red, Green, Blue) [Blue]:\")\n | E assert False\n | E + where False = <built-in method startswith of str object at 0x78a5b65c3730>('Value (Red, Green, Blue) [Blue]:')\n | E + where <built-in method startswith of str object at 0x78a5b65c3730> = \"Value (Color.Red, Color.Green, Color.Blue) [Color.Blue]: \\nGOT=<Color.Blue: 'b'>\\n\".startswith\n | \n | __hidden__prompt_function.py:20: AssertionError\n | _____________________ test_empty_string_default_is_quoted ______________________\n | \n | def test_empty_string_default_is_quoted():\n | > assert _line(default=\"\").startswith('Value [\"\"]:')\n | E assert False\n | E + where False = <built-in method startswith of str object at 0x78a5b6638e30>('Value [\"\"]:')\n | E + where <built-in method startswith of str object at 0x78a5b6638e30> = \"Value []: \\nGOT=''\\n\".startswith\n | E + where \"Value []: \\nGOT=''\\n\" = _line(default='')\n | \n | __hidden__prompt_function.py:25: AssertionError\n | ____________________ test_multi_valued_default_is_one_list _____________________\n | \n | def test_multi_valued_default_is_one_list():\n | > assert _line(default=[Color.Red, \"\"], type=click.UNPROCESSED).startswith('Value [Red, \"\"]:')\n | E assert False\n | E + where False = <built-in method startswith of str object at 0x78a5b64bfad0>('Value [Red, \"\"]:')\n | E + where <built-in method startswith of str object at 0x78a5b64bfad0> = \"Value [[<Color.Red: 'r'>, '']]: \\nGOT=[<Color.Red: 'r'>, '']\\n\".startswith\n | E + where \"Value [[<Color.Red: 'r'>, '']]: \\nGOT=[<Color.Red: 'r'>, '']\\n\" = _line(default=[<Color.Red: 'r'>, ''], type=UNPROCESSED)\n | E + where UNPROCESSED = click.UNPROCESSED\n | \n | __hidden__prompt_function.py:29: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__prompt_function.py::test_enum_choices_and_default_by_name - ...\n | FAILED __hidden__prompt_function.py::test_empty_string_default_is_quoted - as...\n | FAILED __hidden__prompt_function.py::test_multi_valued_default_is_one_list - ...\n | 3 failed, 1 passed in 0.08s\n -----\nFAIL prompt_function\n",
279
+ "stderr": "",
280
+ "_parameters": {
281
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh prompt_function'",
282
+ "cwd": "/workspace/repo",
283
+ "timeout_seconds": 600
284
+ }
285
+ }
286
+ },
287
+ {
288
+ "name": "typeback_single",
289
+ "weight": 0.0625,
290
+ "value": 0.0,
291
+ "children": null,
292
+ "info": {
293
+ "exit_code": 1,
294
+ "stdout": " ----- hidden suite __hidden__typeback_single.py (last 2500 bytes) -----\n | FF. [100%]\n | =================================== FAILURES ===================================\n | ___________ test_quoted_empty_string_typed_back_is_the_empty_string ____________\n | \n | def test_quoted_empty_string_typed_back_is_the_empty_string():\n | > assert _got('\"\"\\n', default=\"\") == \"''\"\n | E assert '\\'\"\"\\'' == \"''\"\n | E \n | E - ''\n | E + '\"\"'\n | \n | __hidden__typeback_single.py:21: AssertionError\n | _______________ test_enum_name_typed_back_is_the_default_member ________________\n | \n | def test_enum_name_typed_back_is_the_default_member():\n | # Without a Choice type the name is not converted by the type, yet what\n | # the prompt showed still selects the default.\n | > assert _got(\"Green\\n\", default=Color.Green, type=click.UNPROCESSED) == repr(Color.Green)\n | E assert \"'Green'\" == \"<Color.Green: 'g'>\"\n | E \n | E - <Color.Green: 'g'>\n | E + 'Green'\n | \n | __hidden__typeback_single.py:28: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__typeback_single.py::test_quoted_empty_string_typed_back_is_the_empty_string\n | FAILED __hidden__typeback_single.py::test_enum_name_typed_back_is_the_default_member\n | 2 failed, 1 passed in 0.08s\n -----\nFAIL typeback_single\n",
295
+ "stderr": "",
296
+ "_parameters": {
297
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh typeback_single'",
298
+ "cwd": "/workspace/repo",
299
+ "timeout_seconds": 600
300
+ }
301
+ }
302
+ },
303
+ {
304
+ "name": "typeback_multi",
305
+ "weight": 0.0625,
306
+ "value": 0.0,
307
+ "children": null,
308
+ "info": {
309
+ "exit_code": 1,
310
+ "stdout": "..._ _ _ _ _ \n | \n | input_text = '\"\", x\\n', option_kwargs = {'multiple': True, 'default': ['', 'x']}\n | \n | def _got(input_text, **option_kwargs):\n | @click.command()\n | @click.option(\"--opt\", prompt=\"Value\", **option_kwargs)\n | def cmd(opt):\n | click.echo(f\"GOT={opt!r}\")\n | \n | result = CliRunner().invoke(cmd, [], input=input_text)\n | > assert result.exit_code == 0, result.output\n | E AssertionError: Value [['', 'x']]: \"\", x\n | E Error: Value must be an iterable.\n | E Aborted!\n | E Value [['', 'x']]: \n | E assert 1 == 0\n | E + where 1 = <Result SystemExit(1)>.exit_code\n | \n | __hidden__typeback_multi.py:16: AssertionError\n | ________________________ test_nargs_default_typed_back _________________________\n | \n | def test_nargs_default_typed_back():\n | > got = _got(\"Red, x\\n\", nargs=2, type=(click.Choice(Color), str), default=(Color.Red, \"x\"))\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n | \n | __hidden__typeback_multi.py:30: \n | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n | \n | input_text = 'Red, x\\n'\n | option_kwargs = {'nargs': 2, 'type': (Choice([<Color.Red: 'r'>, <Color.Green: 'g'>, <Color.Blue: 'b'>]), <class 'str'>), 'default': (<Color.Red: 'r'>, 'x')}\n | \n | def _got(input_text, **option_kwargs):\n | @click.command()\n | @click.option(\"--opt\", prompt=\"Value\", **option_kwargs)\n | def cmd(opt):\n | click.echo(f\"GOT={opt!r}\")\n | \n | result = CliRunner().invoke(cmd, [], input=input_text)\n | > assert result.exit_code == 0, result.output\n | E AssertionError: Value [(<Color.Red: 'r'>, 'x')]: Red, x\n | E Error: 2 values are required, but 6 were given.\n | E Aborted!\n | E Value [(<Color.Red: 'r'>, 'x')]: \n | E assert 1 == 0\n | E + where 1 = <Result SystemExit(1)>.exit_code\n | \n | __hidden__typeback_multi.py:16: AssertionError\n | =========================== short test summary info ============================\n | FAILED __hidden__typeback_multi.py::test_multiple_enum_default_typed_back - A...\n | FAILED __hidden__typeback_multi.py::test_multiple_default_with_empty_string_typed_back\n | FAILED __hidden__typeback_multi.py::test_nargs_default_typed_back - Assertion...\n | 3 failed in 0.09s\n -----\nFAIL typeback_multi\n",
311
+ "stderr": "",
312
+ "_parameters": {
313
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh typeback_multi'",
314
+ "cwd": "/workspace/repo",
315
+ "timeout_seconds": 600
316
+ }
317
+ }
318
+ },
319
+ {
320
+ "name": "no_regression",
321
+ "weight": 0.0625,
322
+ "value": 0.0,
323
+ "children": null,
324
+ "info": {
325
+ "exit_code": 0,
326
+ "stdout": "PASS no_regression\n",
327
+ "stderr": "",
328
+ "_parameters": {
329
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh no_regression'",
330
+ "cwd": "/workspace/repo",
331
+ "timeout_seconds": 900
332
+ },
333
+ "gated": "zeroed: a gate line failed"
334
+ }
335
+ },
336
+ {
337
+ "name": "test_quality",
338
+ "weight": 0.0625,
339
+ "value": 0.0,
340
+ "children": null,
341
+ "info": {
342
+ "exit_code": 1,
343
+ "stdout": " [grader] no test files added or changed under tests/\nFAIL test_quality\n",
344
+ "stderr": "",
345
+ "_parameters": {
346
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh test_quality'",
347
+ "cwd": "/workspace/repo",
348
+ "timeout_seconds": 600
349
+ }
350
+ }
351
+ },
352
+ {
353
+ "name": "maintainer_review",
354
+ "weight": 0.0625,
355
+ "value": 0.0,
356
+ "children": null,
357
+ "info": {
358
+ "reason": "empty diff: the diff contains no change to review"
359
+ }
360
+ }
361
+ ]
362
+ },
363
+ "judge": {
364
+ "model": "anthropic/claude-sonnet-5.5",
365
+ "endpoint": "openrouter.ai"
366
+ }
367
+ }
harbor/evidence/click/reports/reference.json ADDED
@@ -0,0 +1,462 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "revision": "coding-rubric-v2",
3
+ "task_id": "help_defaults",
4
+ "grader_version": "0.6.13",
5
+ "commands": [
6
+ {
7
+ "name": "multi_enum",
8
+ "weight": 0.1875,
9
+ "value": 1.0,
10
+ "children": null,
11
+ "info": {
12
+ "exit_code": 0,
13
+ "stdout": "PASS multi_enum\n",
14
+ "stderr": "",
15
+ "_parameters": {
16
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh multi_enum'",
17
+ "cwd": "/workspace/repo",
18
+ "timeout_seconds": 600
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "name": "multi_empty_string",
24
+ "weight": 0.125,
25
+ "value": 1.0,
26
+ "children": null,
27
+ "info": {
28
+ "exit_code": 0,
29
+ "stdout": "PASS multi_empty_string\n",
30
+ "stderr": "",
31
+ "_parameters": {
32
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh multi_empty_string'",
33
+ "cwd": "/workspace/repo",
34
+ "timeout_seconds": 600
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "name": "nested_values",
40
+ "weight": 0.0625,
41
+ "value": 1.0,
42
+ "children": null,
43
+ "info": {
44
+ "exit_code": 0,
45
+ "stdout": "PASS nested_values\n",
46
+ "stderr": "",
47
+ "_parameters": {
48
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh nested_values'",
49
+ "cwd": "/workspace/repo",
50
+ "timeout_seconds": 600
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "prompt_rendering",
56
+ "weight": 0.125,
57
+ "value": 1.0,
58
+ "children": null,
59
+ "info": {
60
+ "exit_code": 0,
61
+ "stdout": "PASS prompt_rendering\n",
62
+ "stderr": "",
63
+ "_parameters": {
64
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh prompt_rendering'",
65
+ "cwd": "/workspace/repo",
66
+ "timeout_seconds": 600
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "name": "untouched_paths",
72
+ "weight": 0.125,
73
+ "value": 1.0,
74
+ "children": null,
75
+ "info": {
76
+ "exit_code": 0,
77
+ "stdout": "PASS untouched_paths\n",
78
+ "stderr": "",
79
+ "_parameters": {
80
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh untouched_paths'",
81
+ "cwd": "/workspace/repo",
82
+ "timeout_seconds": 600
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "name": "prompt_function",
88
+ "weight": 0.0625,
89
+ "value": 1.0,
90
+ "children": null,
91
+ "info": {
92
+ "exit_code": 0,
93
+ "stdout": "PASS prompt_function\n",
94
+ "stderr": "",
95
+ "_parameters": {
96
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh prompt_function'",
97
+ "cwd": "/workspace/repo",
98
+ "timeout_seconds": 600
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "typeback_single",
104
+ "weight": 0.0625,
105
+ "value": 1.0,
106
+ "children": null,
107
+ "info": {
108
+ "exit_code": 0,
109
+ "stdout": "PASS typeback_single\n",
110
+ "stderr": "",
111
+ "_parameters": {
112
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh typeback_single'",
113
+ "cwd": "/workspace/repo",
114
+ "timeout_seconds": 600
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "name": "typeback_multi",
120
+ "weight": 0.0625,
121
+ "value": 1.0,
122
+ "children": null,
123
+ "info": {
124
+ "exit_code": 0,
125
+ "stdout": "PASS typeback_multi\n",
126
+ "stderr": "",
127
+ "_parameters": {
128
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh typeback_multi'",
129
+ "cwd": "/workspace/repo",
130
+ "timeout_seconds": 600
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "name": "no_regression",
136
+ "weight": 0.0625,
137
+ "value": 1.0,
138
+ "children": null,
139
+ "info": {
140
+ "exit_code": 0,
141
+ "stdout": "PASS no_regression\n",
142
+ "stderr": "",
143
+ "_parameters": {
144
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh no_regression'",
145
+ "cwd": "/workspace/repo",
146
+ "timeout_seconds": 900
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "name": "test_quality",
152
+ "weight": 0.0625,
153
+ "value": 1.0,
154
+ "children": null,
155
+ "info": {
156
+ "exit_code": 0,
157
+ "stdout": " [grader] agent test files: tests/test_help_defaults_multiple.py\nPASS test_quality\n",
158
+ "stderr": "",
159
+ "_parameters": {
160
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh test_quality'",
161
+ "cwd": "/workspace/repo",
162
+ "timeout_seconds": 600
163
+ }
164
+ }
165
+ }
166
+ ],
167
+ "status": "graded",
168
+ "patch_sha256": "5b113409ce2338da470404ae9e391b6c2c383f2cc7f07c01751b2f6f84da0457",
169
+ "result": {
170
+ "reward": 1.0,
171
+ "done": true,
172
+ "content": null,
173
+ "info": {
174
+ "diff_stat": {
175
+ "files": [
176
+ "CHANGES.md",
177
+ "src/click/_utils.py",
178
+ "src/click/core.py",
179
+ "src/click/termui.py",
180
+ "tests/test_help_defaults_multiple.py"
181
+ ],
182
+ "added": 133,
183
+ "removed": 9
184
+ },
185
+ "graded_diff": "diff --git a/CHANGES.md b/CHANGES.md\nindex 8853860..4976b6c 100644\n--- a/CHANGES.md\n+++ b/CHANGES.md\n@@ -11,6 +11,10 @@ Unreleased\n \n Unreleased\n \n+- The `[default: ...]` shown in help for an option with `multiple=True`\n+ renders each value the way a single value is rendered: `Enum` members by\n+ name, empty strings as `\"\"`. The prompt of an option lists its choices and\n+ previews its default the same way, so what it shows can be typed back.\n - Fix `copy.deepcopy()` and `pickle` on a `Parameter`, `Option` or `Command`. {pr}`3805`\n - A `KeyboardInterrupt` arriving while `Command.main()` reports an abort or an error,\n or while it exits, no longer escapes as an unhandled traceback. The command still\ndiff --git a/src/click/_utils.py b/src/click/_utils.py\nindex 2d4e8f2..e2811bb 100644\n--- a/src/click/_utils.py\n+++ b/src/click/_utils.py\n@@ -1,7 +1,9 @@\n from __future__ import annotations\n \n import enum\n+import inspect\n import typing as t\n+from gettext import gettext as _\n \n \n class Sentinel(enum.Enum):\n@@ -43,3 +45,33 @@ T_UNSET: t.TypeAlias = t.Literal[Sentinel.UNSET]\n \n T_FLAG_NEEDS_VALUE: t.TypeAlias = t.Literal[Sentinel.FLAG_NEEDS_VALUE]\n \"\"\"Type hint for the :data:`FLAG_NEEDS_VALUE` sentinel value.\"\"\"\n+\n+\n+def _format_default_value(value: t.Any) -> str:\n+ \"\"\"Render a value the way ``[default: ...]`` and prompts show it.\n+\n+ A list or tuple renders as its values, comma separated, each rendered by\n+ the same rules as a single value: an Enum member by its name, an empty\n+ string as ``\"\"``, a plain function as ``(dynamic)``, anything else with\n+ ``str()``.\n+\n+ :meta private:\n+ \"\"\"\n+ if isinstance(value, (list, tuple)):\n+ return \", \".join(_format_default_value(item) for item in value)\n+ if isinstance(value, enum.Enum):\n+ return value.name\n+ if inspect.isfunction(value):\n+ return _(\"(dynamic)\")\n+ if isinstance(value, str) and value == \"\":\n+ return '\"\"'\n+ return str(value)\n+\n+\n+def _format_choice(choice: t.Any) -> str:\n+ \"\"\"Render one choice the way prompts and help list it: an Enum member by\n+ its name, anything else with ``str()``.\n+\n+ :meta private:\n+ \"\"\"\n+ return choice.name if isinstance(choice, enum.Enum) else str(choice)\ndiff --git a/src/click/core.py b/src/click/core.py\nindex 1f9323a..e82eaa0 100644\n--- a/src/click/core.py\n+++ b/src/click/core.py\n@@ -23,6 +23,7 @@ from types import TracebackType\n \n from . import types\n from ._utils import FLAG_NEEDS_VALUE\n+from ._utils import _format_default_value\n from ._utils import UNSET\n from .exceptions import Abort\n from .exceptions import BadParameter\n@@ -3564,12 +3565,13 @@ class Option(Parameter):\n ):\n if show_default_is_str:\n default_string = f\"({self.show_default})\"\n- elif isinstance(default_value, (list, tuple)):\n- default_string = \", \".join(str(d) for d in default_value)\n- elif isinstance(default_value, enum.Enum):\n- default_string = default_value.name\n- elif inspect.isfunction(default_value):\n- default_string = _(\"(dynamic)\")\n+ elif isinstance(default_value, (list, tuple)) or (\n+ isinstance(default_value, enum.Enum)\n+ or inspect.isfunction(default_value)\n+ ):\n+ # Multi-valued defaults render each value the way the same\n+ # value renders for a single-valued option.\n+ default_string = _format_default_value(default_value)\n elif self.is_bool_flag and self.secondary_opts:\n # For boolean flags that have distinct True/False opts,\n # use the opt without prefix instead of the value.\ndiff --git a/src/click/termui.py b/src/click/termui.py\nindex 8fe0085..0caa7cd 100644\n--- a/src/click/termui.py\n+++ b/src/click/termui.py\n@@ -15,6 +15,8 @@ from gettext import gettext as _\n from . import _compat\n from ._compat import isatty\n from ._compat import strip_ansi\n+from ._utils import _format_choice\n+from ._utils import _format_default_value\n from .exceptions import Abort\n from .exceptions import UsageError\n from .globals import resolve_color_default\n@@ -115,7 +117,9 @@ def _build_prompt(\n ) -> str:\n prompt = text\n if type is not None and show_choices and isinstance(type, Choice):\n- prompt += f\" ({', '.join(map(str, type.choices))})\"\n+ # Each choice is listed the way it can be typed back, which for an\n+ # Enum member is its name, as the help and the error message show it.\n+ prompt += f\" ({', '.join(_format_choice(choice) for choice in type.choices)})\"\n default_preview = \"\"\n if show_default:\n if isinstance(show_default, str):\n@@ -132,7 +136,9 @@ def _format_default(default: V) -> V | str:\n if name is not None:\n return str(name)\n \n- return default\n+ # The default is previewed the way the help renders it, so that what is\n+ # shown is what the user can type back.\n+ return _format_default_value(default)\n \n \n @t.overload\n@@ -250,6 +256,15 @@ def prompt(\n prompt = _build_prompt(\n text, prompt_suffix, show_default, default, show_choices, type\n )\n+ # The default exactly as the prompt shows it. Typing that text back\n+ # selects the default itself, as pressing Enter does, so that a value\n+ # rendered for display (a quoted empty string, a list of values) can be\n+ # typed back as shown.\n+ shown_default = (\n+ str(_format_default(default))\n+ if default is not None and show_default and not isinstance(show_default, str)\n+ else None\n+ )\n \n if confirmation_prompt:\n if confirmation_prompt is True:\n@@ -269,7 +284,9 @@ def prompt(\n value = t.cast(\"str\", default)\n break\n try:\n- result = value_proc(value)\n+ result = value_proc(\n+ default if shown_default is not None and value == shown_default else value\n+ )\n except UsageError as e:\n message = _mask_hidden_input(e.message, value) if hide_input else e.message\n echo(_(\"Error: {message}\").format(message=message), err=err)\ndiff --git a/tests/test_help_defaults_multiple.py b/tests/test_help_defaults_multiple.py\nnew file mode 100644\nindex 0000000..cb6eb77\n--- /dev/null\n+++ b/tests/test_help_defaults_multiple.py\n@@ -0,0 +1,69 @@\n+import enum\n+\n+import click\n+from click.testing import CliRunner\n+\n+\n+class Color(enum.Enum):\n+ Red = \"r\"\n+ Blue = \"b\"\n+\n+\n+def _help(**kwargs):\n+ @click.command()\n+ @click.option(\"--opt\", show_default=True, **kwargs)\n+ def cmd(opt):\n+ pass\n+\n+ return CliRunner().invoke(cmd, [\"--help\"]).output\n+\n+\n+def test_multiple_enum_default_shows_names():\n+ assert \"[default: Red, Blue]\" in _help(\n+ type=click.Choice(Color), multiple=True, default=[Color.Red, Color.Blue]\n+ )\n+\n+\n+def test_multiple_empty_string_default_is_quoted():\n+ assert '[default: \"\", x]' in _help(multiple=True, default=[\"\", \"x\"])\n+\n+\n+def test_nargs_with_multiple_renders_every_value():\n+ assert \"[default: 1, 2, 3, 4]\" in _help(nargs=2, multiple=True, default=[(1, 2), (3, 4)])\n+\n+\n+def _prompt_line(input_text=\"\\n\", **kwargs):\n+ @click.command()\n+ @click.option(\"--opt\", prompt=\"Value\", **kwargs)\n+ def cmd(opt):\n+ pass\n+\n+ return CliRunner().invoke(cmd, [], input=input_text).output.split(\"\\n\", 1)[0]\n+\n+\n+def test_prompt_lists_enum_choices_and_default_by_name():\n+ line = _prompt_line(type=click.Choice(Color), default=Color.Blue)\n+ assert \"(Red, Blue)\" in line\n+ assert \"[Blue]\" in line\n+\n+\n+def test_prompt_previews_empty_string_default_quoted():\n+ assert '[\"\"]' in _prompt_line(default=\"\")\n+\n+\n+def test_prompt_default_typed_back_as_shown():\n+ line = CliRunner().invoke(\n+ _typed_back_cmd(multiple=True, default=[\"\", \"x\"]), [], input='\"\", x\\n'\n+ ).output\n+ assert \"GOT=('', 'x')\" in line\n+ line = CliRunner().invoke(_typed_back_cmd(default=\"\"), [], input='\"\"\\n').output\n+ assert \"GOT=''\" in line\n+\n+\n+def _typed_back_cmd(**kwargs):\n+ @click.command()\n+ @click.option(\"--opt\", prompt=\"Value\", **kwargs)\n+ def cmd(opt):\n+ click.echo(f\"GOT={opt!r}\")\n+\n+ return cmd\n"
186
+ },
187
+ "isError": false,
188
+ "subscores": [
189
+ {
190
+ "name": "multi_enum",
191
+ "weight": 0.1875,
192
+ "value": 1.0,
193
+ "children": null,
194
+ "info": {
195
+ "exit_code": 0,
196
+ "stdout": "PASS multi_enum\n",
197
+ "stderr": "",
198
+ "_parameters": {
199
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh multi_enum'",
200
+ "cwd": "/workspace/repo",
201
+ "timeout_seconds": 600
202
+ }
203
+ }
204
+ },
205
+ {
206
+ "name": "multi_empty_string",
207
+ "weight": 0.125,
208
+ "value": 1.0,
209
+ "children": null,
210
+ "info": {
211
+ "exit_code": 0,
212
+ "stdout": "PASS multi_empty_string\n",
213
+ "stderr": "",
214
+ "_parameters": {
215
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh multi_empty_string'",
216
+ "cwd": "/workspace/repo",
217
+ "timeout_seconds": 600
218
+ }
219
+ }
220
+ },
221
+ {
222
+ "name": "nested_values",
223
+ "weight": 0.0625,
224
+ "value": 1.0,
225
+ "children": null,
226
+ "info": {
227
+ "exit_code": 0,
228
+ "stdout": "PASS nested_values\n",
229
+ "stderr": "",
230
+ "_parameters": {
231
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh nested_values'",
232
+ "cwd": "/workspace/repo",
233
+ "timeout_seconds": 600
234
+ }
235
+ }
236
+ },
237
+ {
238
+ "name": "prompt_rendering",
239
+ "weight": 0.125,
240
+ "value": 1.0,
241
+ "children": null,
242
+ "info": {
243
+ "exit_code": 0,
244
+ "stdout": "PASS prompt_rendering\n",
245
+ "stderr": "",
246
+ "_parameters": {
247
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh prompt_rendering'",
248
+ "cwd": "/workspace/repo",
249
+ "timeout_seconds": 600
250
+ }
251
+ }
252
+ },
253
+ {
254
+ "name": "untouched_paths",
255
+ "weight": 0.125,
256
+ "value": 1.0,
257
+ "children": null,
258
+ "info": {
259
+ "exit_code": 0,
260
+ "stdout": "PASS untouched_paths\n",
261
+ "stderr": "",
262
+ "_parameters": {
263
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh untouched_paths'",
264
+ "cwd": "/workspace/repo",
265
+ "timeout_seconds": 600
266
+ }
267
+ }
268
+ },
269
+ {
270
+ "name": "prompt_function",
271
+ "weight": 0.0625,
272
+ "value": 1.0,
273
+ "children": null,
274
+ "info": {
275
+ "exit_code": 0,
276
+ "stdout": "PASS prompt_function\n",
277
+ "stderr": "",
278
+ "_parameters": {
279
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh prompt_function'",
280
+ "cwd": "/workspace/repo",
281
+ "timeout_seconds": 600
282
+ }
283
+ }
284
+ },
285
+ {
286
+ "name": "typeback_single",
287
+ "weight": 0.0625,
288
+ "value": 1.0,
289
+ "children": null,
290
+ "info": {
291
+ "exit_code": 0,
292
+ "stdout": "PASS typeback_single\n",
293
+ "stderr": "",
294
+ "_parameters": {
295
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh typeback_single'",
296
+ "cwd": "/workspace/repo",
297
+ "timeout_seconds": 600
298
+ }
299
+ }
300
+ },
301
+ {
302
+ "name": "typeback_multi",
303
+ "weight": 0.0625,
304
+ "value": 1.0,
305
+ "children": null,
306
+ "info": {
307
+ "exit_code": 0,
308
+ "stdout": "PASS typeback_multi\n",
309
+ "stderr": "",
310
+ "_parameters": {
311
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh typeback_multi'",
312
+ "cwd": "/workspace/repo",
313
+ "timeout_seconds": 600
314
+ }
315
+ }
316
+ },
317
+ {
318
+ "name": "no_regression",
319
+ "weight": 0.0625,
320
+ "value": 1.0,
321
+ "children": null,
322
+ "info": {
323
+ "exit_code": 0,
324
+ "stdout": "PASS no_regression\n",
325
+ "stderr": "",
326
+ "_parameters": {
327
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh no_regression'",
328
+ "cwd": "/workspace/repo",
329
+ "timeout_seconds": 900
330
+ }
331
+ }
332
+ },
333
+ {
334
+ "name": "test_quality",
335
+ "weight": 0.0625,
336
+ "value": 1.0,
337
+ "children": null,
338
+ "info": {
339
+ "exit_code": 0,
340
+ "stdout": " [grader] agent test files: tests/test_help_defaults_multiple.py\nPASS test_quality\n",
341
+ "stderr": "",
342
+ "_parameters": {
343
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh test_quality'",
344
+ "cwd": "/workspace/repo",
345
+ "timeout_seconds": 600
346
+ }
347
+ }
348
+ },
349
+ {
350
+ "name": "maintainer_review",
351
+ "weight": 0.0625,
352
+ "value": 1.0,
353
+ "children": [
354
+ {
355
+ "name": "The diff changes how the [default: ...] text of an option's help is rendered, in src/click/core.py or in a helper that code calls; a change that only adds comments, whitespace or formatting does not count.",
356
+ "weight": 1.0,
357
+ "value": 1.0,
358
+ "children": null,
359
+ "info": {
360
+ "reason": "core.py's Option help-rendering now calls the new _format_default_value helper, which recursively renders each item of a list/tuple default (Enum by name, empty string as \"\") instead of using str(d). This is a real behavioral change to [default: ...] rendering."
361
+ }
362
+ },
363
+ {
364
+ "name": "The diff changes how a prompt lists an option's choices or previews its default, in src/click/termui.py or in a helper that code calls; a change that only adds comments, whitespace or formatting does not count.",
365
+ "weight": 1.0,
366
+ "value": 1.0,
367
+ "children": null,
368
+ "info": {
369
+ "reason": "termui.py's _build_prompt now lists choices via _format_choice (Enum members by name), and _format_default now returns _format_default_value(default) (quoted empty strings, recursive list rendering). Both are real behavior changes to choice listing and default preview, using helpers in _utils.py."
370
+ }
371
+ },
372
+ {
373
+ "name": "Look only at the files under src/click that the diff changes. Answer No only if one of those changes has nothing to do with any of these: rendering a default value or a choice for the help text or a prompt; a prompt accepting its default typed back exactly as it was shown (for example comparing the typed input with the shown default and using the default when they match); or code that this directly relies on (for example a shared helper it calls, or an import it needs). Changes to CHANGES.md, to test files and to any file outside src/click are not judged here and never count as unrelated edits.",
374
+ "weight": 1.0,
375
+ "value": 1.0,
376
+ "children": null,
377
+ "info": {
378
+ "reason": "Every change under src/click is tied to default or choice rendering, the typed-back-default comparison, or code those rely on. In _utils.py, the new helpers and their imports (inspect, gettext) serve the rendering. In core.py, the import and the help default-string change are about rendering. In termui.py, the changes to choice listing, default preview and the typed-back comparison in prompt are all covered. No unrelated edit appears."
379
+ }
380
+ },
381
+ {
382
+ "name": "The diff leaves every test file that existed before it unchanged. Test files that the diff creates are new, not changed, and count as Yes.",
383
+ "weight": 1.0,
384
+ "value": 1.0,
385
+ "children": null,
386
+ "info": {
387
+ "reason": "The only test file in the diff is tests/test_help_defaults_multiple.py, which is newly created (new file mode). No existing test file is modified, so the criterion is met."
388
+ }
389
+ },
390
+ {
391
+ "name": "Look at every method or property name that the lines the diff adds define inside a class under src/click, and at every parameter the diff adds to such a method. Answer No only if one of those names does not start with an underscore and is not already defined before the diff, under the same name, on the class being changed or a class it inherits from. Names that start with an underscore count as Yes; this includes special methods such as __init__, whose names start with two underscores.",
392
+ "weight": 1.0,
393
+ "value": 1.0,
394
+ "children": null,
395
+ "info": {
396
+ "reason": "The diff adds no method or property definitions inside any class under src/click, and no new parameters to class methods. The new functions (_format_default_value, _format_choice) are module-level and start with an underscore anyway. So no name triggers a 'No' answer, and the answer is Yes."
397
+ }
398
+ },
399
+ {
400
+ "name": "The diff does not remove, rename or make required any parameter of an existing public function or method under src/click, and does not change the type of value such a function or method returns (for example a function that returned a str still returns a str). Returning different text, as the ticket requires for the rendered defaults and choices, is a change of behaviour, not of type, and counts as Yes. A function or method is public when its name does not start with an underscore. Changes to functions or methods whose names start with an underscore, and new optional parameters whose names start with an underscore, count as Yes.",
401
+ "weight": 1.0,
402
+ "value": 1.0,
403
+ "children": null,
404
+ "info": {
405
+ "reason": "No public function or method under src/click has a parameter removed, renamed or made required, and no return type changes. The edits are to the body of the public `prompt` and `Option.get_help_extra`, whose signatures and return types stay the same, and to private underscore-prefixed helpers (`_format_default`, `_build_prompt`, plus the new `_format_default_value` and `_format_choice`). The new text rendering is a change of behaviour, not of type."
406
+ }
407
+ },
408
+ {
409
+ "name": "At least one test file added by the diff invokes a command's --help (for example through click.testing.CliRunner) for an option that has multiple=True (or nargs greater than 1 together with multiple) and a default containing an Enum member or an empty string, and asserts on the [default: ...] text in the output. Tests that only assert on a single-valued default do not meet this criterion.",
410
+ "weight": 1.0,
411
+ "value": 1.0,
412
+ "children": null,
413
+ "info": {
414
+ "reason": "The added tests invoke --help via CliRunner on options with multiple=True and defaults containing Enum members ([Color.Red, Color.Blue]) or an empty string (['', 'x']), and assert on '[default: Red, Blue]' and '[default: \"\", x]'."
415
+ }
416
+ },
417
+ {
418
+ "name": "The diff adds an entry to CHANGES.md under a version that is not yet released.",
419
+ "weight": 1.0,
420
+ "value": 1.0,
421
+ "children": null,
422
+ "info": {
423
+ "reason": "The diff adds a bullet to CHANGES.md. The hunk context shows the \"Unreleased\" heading appearing twice, and the new entry is inserted after the second \"Unreleased\" line, alongside other unreleased entr"
424
+ }
425
+ },
426
+ {
427
+ "name": "The entry the diff adds to CHANGES.md describes the change to how the help-text default of a multi-valued option is rendered.",
428
+ "weight": 1.0,
429
+ "value": 1.0,
430
+ "children": null,
431
+ "info": {
432
+ "reason": "The added CHANGES.md entry explicitly states that the `[default: ...]` help text for `multiple=True` options now renders each value as a single value is rendered (Enum members by name, empty strings as `\"\"`)."
433
+ }
434
+ }
435
+ ],
436
+ "info": {
437
+ "model": "anthropic/claude-sonnet-5.5",
438
+ "_parameters": {
439
+ "answer": "(answer elided; 8241 chars)",
440
+ "criteria": [
441
+ "The diff changes how the [default: ...] text of an option's help is rendered, in src/click/core.py or in a helper that code calls; a change that only adds comments, whitespace or formatting does not count.",
442
+ "The diff changes how a prompt lists an option's choices or previews its default, in src/click/termui.py or in a helper that code calls; a change that only adds comments, whitespace or formatting does not count.",
443
+ "Look only at the files under src/click that the diff changes. Answer No only if one of those changes has nothing to do with any of these: rendering a default value or a choice for the help text or a prompt; a prompt accepting its default typed back exactly as it was shown (for example comparing the typed input with the shown default and using the default when they match); or code that this directly relies on (for example a shared helper it calls, or an import it needs). Changes to CHANGES.md, to test files and to any file outside src/click are not judged here and never count as unrelated edits.",
444
+ "The diff leaves every test file that existed before it unchanged. Test files that the diff creates are new, not changed, and count as Yes.",
445
+ "Look at every method or property name that the lines the diff adds define inside a class under src/click, and at every parameter the diff adds to such a method. Answer No only if one of those names does not start with an underscore and is not already defined before the diff, under the same name, on the class being changed or a class it inherits from. Names that start with an underscore count as Yes; this includes special methods such as __init__, whose names start with two underscores.",
446
+ "The diff does not remove, rename or make required any parameter of an existing public function or method under src/click, and does not change the type of value such a function or method returns (for example a function that returned a str still returns a str). Returning different text, as the ticket requires for the rendered defaults and choices, is a change of behaviour, not of type, and counts as Yes. A function or method is public when its name does not start with an underscore. Changes to functions or methods whose names start with an underscore, and new optional parameters whose names start with an underscore, count as Yes.",
447
+ "At least one test file added by the diff invokes a command's --help (for example through click.testing.CliRunner) for an option that has multiple=True (or nargs greater than 1 together with multiple) and a default containing an Enum member or an empty string, and asserts on the [default: ...] text in the output. Tests that only assert on a single-valued default do not meet this criterion.",
448
+ "The diff adds an entry to CHANGES.md under a version that is not yet released.",
449
+ "The entry the diff adds to CHANGES.md describes the change to how the help-text default of a multi-valued option is rendered."
450
+ ],
451
+ "question": "(question elided; 529 chars)",
452
+ "model": "anthropic/claude-sonnet-5.5"
453
+ }
454
+ }
455
+ }
456
+ ]
457
+ },
458
+ "judge": {
459
+ "model": "anthropic/claude-sonnet-5.5",
460
+ "endpoint": "openrouter.ai"
461
+ }
462
+ }
harbor/evidence/click/summary.json ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "click",
3
+ "build": {
4
+ "ok": true,
5
+ "image_id": "sha256:3de2158d1e4d4336d8948d1e29594f2ab51a6b7f1031116030d6d458061f6fcc",
6
+ "ladder": {},
7
+ "source_digest": "cf3fcd6cef677a22",
8
+ "source": "edited",
9
+ "seconds": 77
10
+ },
11
+ "task_id": "help_defaults",
12
+ "image": "ec-swe-click:source-v9",
13
+ "measure": {
14
+ "ok": true,
15
+ "hud": "0.6.13",
16
+ "path": "/opt/agentvenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games",
17
+ "handed": [],
18
+ "repo_dir": "/workspace/repo",
19
+ "python_usr_local": true,
20
+ "seconds": 6
21
+ },
22
+ "parity": {
23
+ "ok": true,
24
+ "reward": 1.0,
25
+ "criteria": 11,
26
+ "unmet": [],
27
+ "info": {
28
+ "diff_stat": {
29
+ "files": [
30
+ "CHANGES.md",
31
+ "src/click/_utils.py",
32
+ "src/click/core.py",
33
+ "src/click/termui.py",
34
+ "tests/test_help_defaults_multiple.py"
35
+ ],
36
+ "added": 133,
37
+ "removed": 9
38
+ },
39
+ "graded_diff": "diff --git a/CHANGES.md b/CHANGES.md\nindex 8853860..4976b6c 100644\n--- a/CHANGES.md\n+++ b/CHANGES.md\n@@ -11,6 +11,10 @@ Unreleased\n \n Unreleased\n \n+- The `[default: ...]` shown in help for an option with `multiple=True`\n+ renders each value the way a single value is rendered: `Enum` members by\n+ name, empty strings as `\"\"`. The prompt of an option lists its choices and\n+ previews its default the same way, so what it shows can be typed back.\n - Fix `copy.deepcopy()` and `pickle` on a `Parameter`, `Option` or `Command`. {pr}`3805`\n - A `KeyboardInterrupt` arriving while `Command.main()` reports an abort or an error,\n or while it exits, no longer escapes as an unhandled traceback. The command still\ndiff --git a/src/click/_utils.py b/src/click/_utils.py\nindex 2d4e8f2..e2811bb 100644\n--- a/src/click/_utils.py\n+++ b/src/click/_utils.py\n@@ -1,7 +1,9 @@\n from __future__ import annotations\n \n import enum\n+import inspect\n import typing as t\n+from gettext import gettext as _\n \n \n class Sentinel(enum.Enum):\n@@ -43,3 +45,33 @@ T_UNSET: t.TypeAlias = t.Literal[Sentinel.UNSET]\n \n T_FLAG_NEEDS_VALUE: t.TypeAlias = t.Literal[Sentinel.FLAG_NEEDS_VALUE]\n \"\"\"Type hint for the :data:`FLAG_NEEDS_VALUE` sentinel value.\"\"\"\n+\n+\n+def _format_default_value(value: t.Any) -> str:\n+ \"\"\"Render a value the way ``[default: ...]`` and prompts show it.\n+\n+ A list or tuple renders as its values, comma separated, each rendered by\n+ the same rules as a single value: an Enum member by its name, an empty\n+ string as ``\"\"``, a plain function as ``(dynamic)``, anything else with\n+ ``str()``.\n+\n+ :meta private:\n+ \"\"\"\n+ if isinstance(value, (list, tuple)):\n+ return \", \".join(_format_default_value(item) for item in value)\n+ if isinstance(value, enum.Enum):\n+ return value.name\n+ if inspect.isfunction(value):\n+ return _(\"(dynamic)\")\n+ if isinstance(value, str) and value == \"\":\n+ return '\"\"'\n+ return str(value)\n+\n+\n+def _format_choice(choice: t.Any) -> str:\n+ \"\"\"Render one choice the way prompts and help list it: an Enum member by\n+ its name, anything else with ``str()``.\n+\n+ :meta private:\n+ \"\"\"\n+ return choice.name if isinstance(choice, enum.Enum) else str(choice)\ndiff --git a/src/click/core.py b/src/click/core.py\nindex 1f9323a..e82eaa0 100644\n--- a/src/click/core.py\n+++ b/src/click/core.py\n@@ -23,6 +23,7 @@ from types import TracebackType\n \n from . import types\n from ._utils import FLAG_NEEDS_VALUE\n+from ._utils import _format_default_value\n from ._utils import UNSET\n from .exceptions import Abort\n from .exceptions import BadParameter\n@@ -3564,12 +3565,13 @@ class Option(Parameter):\n ):\n if show_default_is_str:\n default_string = f\"({self.show_default})\"\n- elif isinstance(default_value, (list, tuple)):\n- default_string = \", \".join(str(d) for d in default_value)\n- elif isinstance(default_value, enum.Enum):\n- default_string = default_value.name\n- elif inspect.isfunction(default_value):\n- default_string = _(\"(dynamic)\")\n+ elif isinstance(default_value, (list, tuple)) or (\n+ isinstance(default_value, enum.Enum)\n+ or inspect.isfunction(default_value)\n+ ):\n+ # Multi-valued defaults render each value the way the same\n+ # value renders for a single-valued option.\n+ default_string = _format_default_value(default_value)\n elif self.is_bool_flag and self.secondary_opts:\n # For boolean flags that have distinct True/False opts,\n # use the opt without prefix instead of the value.\ndiff --git a/src/click/termui.py b/src/click/termui.py\nindex 8fe0085..0caa7cd 100644\n--- a/src/click/termui.py\n+++ b/src/click/termui.py\n@@ -15,6 +15,8 @@ from gettext import gettext as _\n from . import _compat\n from ._compat import isatty\n from ._compat import strip_ansi\n+from ._utils import _format_choice\n+from ._utils import _format_default_value\n from .exceptions import Abort\n from .exceptions import UsageError\n from .globals import resolve_color_default\n@@ -115,7 +117,9 @@ def _build_prompt(\n ) -> str:\n prompt = text\n if type is not None and show_choices and isinstance(type, Choice):\n- prompt += f\" ({', '.join(map(str, type.choices))})\"\n+ # Each choice is listed the way it can be typed back, which for an\n+ # Enum member is its name, as the help and the error message show it.\n+ prompt += f\" ({', '.join(_format_choice(choice) for choice in type.choices)})\"\n default_preview = \"\"\n if show_default:\n if isinstance(show_default, str):\n@@ -132,7 +136,9 @@ def _format_default(default: V) -> V | str:\n if name is not None:\n return str(name)\n \n- return default\n+ # The default is previewed the way the help renders it, so that what is\n+ # shown is what the user can type back.\n+ return _format_default_value(default)\n \n \n @t.overload\n@@ -250,6 +256,15 @@ def prompt(\n prompt = _build_prompt(\n text, prompt_suffix, show_default, default, show_choices, type\n )\n+ # The default exactly as the prompt shows it. Typing that text back\n+ # selects the default itself, as pressing Enter does, so that a value\n+ # rendered for display (a quoted empty string, a list of values) can be\n+ # typed back as shown.\n+ shown_default = (\n+ str(_format_default(default))\n+ if default is not None and show_default and not isinstance(show_default, str)\n+ else None\n+ )\n \n if confirmation_prompt:\n if confirmation_prompt is True:\n@@ -269,7 +284,9 @@ def prompt(\n value = t.cast(\"str\", default)\n break\n try:\n- result = value_proc(value)\n+ result = value_proc(\n+ default if shown_default is not None and value == shown_default else value\n+ )\n except UsageError as e:\n message = _mask_hidden_input(e.message, value) if hide_input else e.message\n echo(_(\"Error: {message}\").format(message=message), err=err)\ndiff --git a/tests/test_help_defaults_multiple.py b/tests/test_help_defaults_multiple.py\nnew file mode 100644\nindex 0000000..cb6eb77\n--- /dev/null\n+++ b/tests/test_help_defaults_multiple.py\n@@ -0,0 +1,69 @@\n+import enum\n+\n+import click\n+from click.testing import CliRunner\n+\n+\n+class Color(enum.Enum):\n+ Red = \"r\"\n+ Blue = \"b\"\n+\n+\n+def _help(**kwargs):\n+ @click.command()\n+ @click.option(\"--opt\", show_default=True, **kwargs)\n+ def cmd(opt):\n+ pass\n+\n+ return CliRunner().invoke(cmd, [\"--help\"]).output\n+\n+\n+def test_multiple_enum_default_shows_names():\n+ assert \"[default: Red, Blue]\" in _help(\n+ type=click.Choice(Color), multiple=True, default=[Color.Red, Color.Blue]\n+ )\n+\n+\n+def test_multiple_empty_string_default_is_quoted():\n+ assert '[default: \"\", x]' in _help(multiple=True, default=[\"\", \"x\"])\n+\n+\n+def test_nargs_with_multiple_renders_every_value():\n+ assert \"[default: 1, 2, 3, 4]\" in _help(nargs=2, multiple=True, default=[(1, 2), (3, 4)])\n+\n+\n+def _prompt_line(input_text=\"\\n\", **kwargs):\n+ @click.command()\n+ @click.option(\"--opt\", prompt=\"Value\", **kwargs)\n+ def cmd(opt):\n+ pass\n+\n+ return CliRunner().invoke(cmd, [], input=input_text).output.split(\"\\n\", 1)[0]\n+\n+\n+def test_prompt_lists_enum_choices_and_default_by_name():\n+ line = _prompt_line(type=click.Choice(Color), default=Color.Blue)\n+ assert \"(Red, Blue)\" in line\n+ assert \"[Blue]\" in line\n+\n+\n+def test_prompt_previews_empty_string_default_quoted():\n+ assert '[\"\"]' in _prompt_line(default=\"\")\n+\n+\n+def test_prompt_default_typed_back_as_shown():\n+ line = CliRunner().invoke(\n+ _typed_back_cmd(multiple=True, default=[\"\", \"x\"]), [], input='\"\", x\\n'\n+ ).output\n+ assert \"GOT=('', 'x')\" in line\n+ line = CliRunner().invoke(_typed_back_cmd(default=\"\"), [], input='\"\"\\n').output\n+ assert \"GOT=''\" in line\n+\n+\n+def _typed_back_cmd(**kwargs):\n+ @click.command()\n+ @click.option(\"--opt\", prompt=\"Value\", **kwargs)\n+ def cmd(opt):\n+ click.echo(f\"GOT={opt!r}\")\n+\n+ return cmd\n"
40
+ },
41
+ "seconds": 17
42
+ },
43
+ "prepare": {
44
+ "ok": true,
45
+ "bundle": "click-r3",
46
+ "converter": "b8bba68767da888f",
47
+ "judge_runner": "4bd8d8cb9f9a3683",
48
+ "pinned_files": 18,
49
+ "criteria": 11,
50
+ "seconds": 0
51
+ },
52
+ "qualified": false,
53
+ "controls": {
54
+ "ok": false,
55
+ "checks": {
56
+ "noop_is_zero": true,
57
+ "reference_is_one": true,
58
+ "reference_equals_native": true,
59
+ "agent_is_isolated": true
60
+ },
61
+ "results": {
62
+ "noop": {
63
+ "run": "click-r3-control-noop-1793705817",
64
+ "reward": 0.0,
65
+ "stop": "completed",
66
+ "error": null,
67
+ "seconds": 132,
68
+ "probe": false,
69
+ "status": "graded",
70
+ "verifier_error": null,
71
+ "exit_codes": [
72
+ 0,
73
+ 1
74
+ ],
75
+ "attempts": 1
76
+ },
77
+ "reference": {
78
+ "run": "click-r3-control-reference-1793705949",
79
+ "reward": 1.0,
80
+ "stop": "completed",
81
+ "error": null,
82
+ "seconds": 71,
83
+ "probe": true,
84
+ "status": "graded",
85
+ "verifier_error": null,
86
+ "exit_codes": [
87
+ 0
88
+ ],
89
+ "subscores": {
90
+ "multi_enum": [
91
+ 1.0,
92
+ 0.1875
93
+ ],
94
+ "multi_empty_string": [
95
+ 1.0,
96
+ 0.125
97
+ ],
98
+ "nested_values": [
99
+ 1.0,
100
+ 0.0625
101
+ ],
102
+ "prompt_rendering": [
103
+ 1.0,
104
+ 0.125
105
+ ],
106
+ "untouched_paths": [
107
+ 1.0,
108
+ 0.125
109
+ ],
110
+ "prompt_function": [
111
+ 1.0,
112
+ 0.0625
113
+ ],
114
+ "typeback_single": [
115
+ 1.0,
116
+ 0.0625
117
+ ],
118
+ "typeback_multi": [
119
+ 1.0,
120
+ 0.0625
121
+ ],
122
+ "no_regression": [
123
+ 1.0,
124
+ 0.0625
125
+ ],
126
+ "test_quality": [
127
+ 1.0,
128
+ 0.0625
129
+ ],
130
+ "maintainer_review": [
131
+ 1.0,
132
+ 0.0625
133
+ ]
134
+ },
135
+ "attempts": 1
136
+ }
137
+ },
138
+ "bundle": "click-r3",
139
+ "complete": false,
140
+ "seconds": 203
141
+ },
142
+ "leak": {
143
+ "scan_finished": true,
144
+ "hits_outside_checkout": [],
145
+ "other_files_holding_only_upstream_lines": 0,
146
+ "library_files_sharing_a_line": 0,
147
+ "most_lines_shared_by_one_library_file": 0,
148
+ "private_paths_absent": true,
149
+ "public_lines_shared_with_patch_and_graders": [
150
+ 0,
151
+ 0
152
+ ],
153
+ "private_lines_only_in_agent_checkout": [
154
+ 0,
155
+ 0
156
+ ],
157
+ "ok": true,
158
+ "seconds": 20
159
+ }
160
+ }
harbor/evidence/druid/agent-image-scan.txt ADDED
The diff for this file is too large to render. See raw diff
 
harbor/evidence/druid/native-reference.json ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "reward": 1.0,
3
+ "done": true,
4
+ "content": null,
5
+ "info": {},
6
+ "isError": false,
7
+ "subscores": [
8
+ {
9
+ "name": "clean_equals_strict",
10
+ "weight": 0.0417,
11
+ "value": 1.0,
12
+ "children": null,
13
+ "info": {
14
+ "exit_code": 0,
15
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE clean_equals_strict 4/4\nPASS clean_equals_strict\n",
16
+ "stderr": "",
17
+ "_parameters": {
18
+ "command": "bash /hud/grader/run_grading.sh clean_equals_strict",
19
+ "cwd": "/workspace/repo",
20
+ "timeout_seconds": 1800
21
+ }
22
+ }
23
+ },
24
+ {
25
+ "name": "simple_bad",
26
+ "weight": 0.0417,
27
+ "value": 1.0,
28
+ "children": null,
29
+ "info": {
30
+ "exit_code": 0,
31
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE simple_bad 4/4\nPASS simple_bad\n",
32
+ "stderr": "",
33
+ "_parameters": {
34
+ "command": "bash /hud/grader/run_grading.sh simple_bad",
35
+ "cwd": "/workspace/repo",
36
+ "timeout_seconds": 1800
37
+ }
38
+ }
39
+ },
40
+ {
41
+ "name": "block_extent",
42
+ "weight": 0.1761,
43
+ "value": 1.0,
44
+ "children": null,
45
+ "info": {
46
+ "exit_code": 0,
47
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE block_extent 4/4\nPASS block_extent\n",
48
+ "stderr": "",
49
+ "_parameters": {
50
+ "command": "bash /hud/grader/run_grading.sh block_extent",
51
+ "cwd": "/workspace/repo",
52
+ "timeout_seconds": 1800
53
+ }
54
+ }
55
+ },
56
+ {
57
+ "name": "keyword_context",
58
+ "weight": 0.1343,
59
+ "value": 1.0,
60
+ "children": null,
61
+ "info": {
62
+ "exit_code": 0,
63
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE keyword_context 4/4\nPASS keyword_context\n",
64
+ "stderr": "",
65
+ "_parameters": {
66
+ "command": "bash /hud/grader/run_grading.sh keyword_context",
67
+ "cwd": "/workspace/repo",
68
+ "timeout_seconds": 1800
69
+ }
70
+ }
71
+ },
72
+ {
73
+ "name": "lexer_tail",
74
+ "weight": 0.0927,
75
+ "value": 1.0,
76
+ "children": null,
77
+ "info": {
78
+ "exit_code": 0,
79
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\n dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\n dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE lexer_tail 12/12\nPASS lexer_tail\n",
80
+ "stderr": "",
81
+ "_parameters": {
82
+ "command": "bash /hud/grader/run_grading.sh lexer_tail",
83
+ "cwd": "/workspace/repo",
84
+ "timeout_seconds": 1800
85
+ }
86
+ }
87
+ },
88
+ {
89
+ "name": "error_identity",
90
+ "weight": 0.0927,
91
+ "value": 1.0,
92
+ "children": null,
93
+ "info": {
94
+ "exit_code": 0,
95
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE error_identity 4/4\nPASS error_identity\n",
96
+ "stderr": "",
97
+ "_parameters": {
98
+ "command": "bash /hud/grader/run_grading.sh error_identity",
99
+ "cwd": "/workspace/repo",
100
+ "timeout_seconds": 1800
101
+ }
102
+ }
103
+ },
104
+ {
105
+ "name": "mixed",
106
+ "weight": 0.0833,
107
+ "value": 1.0,
108
+ "children": null,
109
+ "info": {
110
+ "exit_code": 0,
111
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE mixed 4/4\nPASS mixed\n",
112
+ "stderr": "",
113
+ "_parameters": {
114
+ "command": "bash /hud/grader/run_grading.sh mixed",
115
+ "cwd": "/workspace/repo",
116
+ "timeout_seconds": 1800
117
+ }
118
+ }
119
+ },
120
+ {
121
+ "name": "budget",
122
+ "weight": 0.0833,
123
+ "value": 1.0,
124
+ "children": null,
125
+ "info": {
126
+ "exit_code": 0,
127
+ "stdout": " budget budget.mysql.sql: chars 394579/364824 = 1.082, tokens 74761/67979 = 1.100, ms 11580/949\n dialect mysql: PASS\n budget budget.oracle.sql: chars 1238223/1158732 = 1.069, tokens 87599/81731 = 1.072, ms 149/101\n dialect oracle: PASS\n budget budget.postgresql.sql: chars 346768/329521 = 1.052, tokens 75519/70921 = 1.065, ms 8641/9\n dialect postgresql: PASS\n budget budget.sqlserver.sql: chars 1031964/986601 = 1.046, tokens 71318/67127 = 1.062, ms 13165/1322\n dialect sqlserver: PASS\nSCORE budget 4/4\nPASS budget\n",
128
+ "stderr": "",
129
+ "_parameters": {
130
+ "command": "bash /hud/grader/run_grading.sh budget",
131
+ "cwd": "/workspace/repo",
132
+ "timeout_seconds": 1800
133
+ }
134
+ }
135
+ },
136
+ {
137
+ "name": "line_endings",
138
+ "weight": 0.0671,
139
+ "value": 1.0,
140
+ "children": null,
141
+ "info": {
142
+ "exit_code": 0,
143
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE line_endings 4/4\nPASS line_endings\n",
144
+ "stderr": "",
145
+ "_parameters": {
146
+ "command": "bash /hud/grader/run_grading.sh line_endings",
147
+ "cwd": "/workspace/repo",
148
+ "timeout_seconds": 1800
149
+ }
150
+ }
151
+ },
152
+ {
153
+ "name": "comments",
154
+ "weight": 0.0671,
155
+ "value": 1.0,
156
+ "children": null,
157
+ "info": {
158
+ "exit_code": 0,
159
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE comments 4/4\nPASS comments\n",
160
+ "stderr": "",
161
+ "_parameters": {
162
+ "command": "bash /hud/grader/run_grading.sh comments",
163
+ "cwd": "/workspace/repo",
164
+ "timeout_seconds": 1800
165
+ }
166
+ }
167
+ },
168
+ {
169
+ "name": "wall",
170
+ "weight": 0.1,
171
+ "value": 1.0,
172
+ "children": null,
173
+ "info": {
174
+ "exit_code": 0,
175
+ "stdout": "PASS source_change: 3 file(s) under core/src/main changed and the entry point exists\nPASS anti_cheat\n[WARNING] Tests run: 2674, Failures: 0, Errors: 0, Skipped: 1\nPASS committed_tests\nPASS wall\n",
176
+ "stderr": "",
177
+ "_parameters": {
178
+ "command": "bash /hud/grader/run_grading.sh wall",
179
+ "cwd": "/workspace/repo",
180
+ "timeout_seconds": 3000
181
+ }
182
+ }
183
+ },
184
+ {
185
+ "name": "maintainer_review",
186
+ "weight": 0.02,
187
+ "value": 1.0,
188
+ "children": [
189
+ {
190
+ "name": "The diff adds a public static method named parseStatementsLenient, taking a String and a DbType, to SQLUtils.",
191
+ "weight": 1.0,
192
+ "value": 1.0,
193
+ "children": null,
194
+ "info": {
195
+ "reason": "The diff adds `public static List<SQLStatement> parseStatementsLenient(String sql, DbType dbType)` to SQLUtils.java, with the required name, parameter types, and public static modifiers."
196
+ }
197
+ },
198
+ {
199
+ "name": "The diff adds a new public class named SQLUnparsedStatement that extends a class in Druid's SQLStatement hierarchy, such as SQLStatementImpl, so an instance can sit in the same List<SQLStatement> as the parsed statements.",
200
+ "weight": 1.0,
201
+ "value": 1.0,
202
+ "children": null,
203
+ "info": {
204
+ "reason": "The diff adds `public class SQLUnparsedStatement extends SQLStatementImpl` in core/src/main/java/com/alibaba/druid/sql/ast/statement/. SQLStatementImpl is in Druid's SQLStatement hierarchy, so instances can be added to a List<SQLStatement>, and LenientScriptParser does exactly that."
205
+ }
206
+ },
207
+ {
208
+ "name": "The SQLUnparsedStatement the diff adds declares all four accessors the ticket names: getSql, getError, getLine and getColumn.",
209
+ "weight": 1.0,
210
+ "value": 1.0,
211
+ "children": null,
212
+ "info": {
213
+ "reason": "The diff adds the new class SQLUnparsedStatement with public getSql(), getError(), getLine() and getColumn() methods, which are all four accessors the ticket names."
214
+ }
215
+ },
216
+ {
217
+ "name": "The SQLUnparsedStatement the diff adds overrides toString so that it returns the statement's own source text instead of delegating to Druid's output visitor.",
218
+ "weight": 1.0,
219
+ "value": 1.0,
220
+ "children": null,
221
+ "info": {
222
+ "reason": "SQLUnparsedStatement in the diff overrides `toString()` to `return sql;`, which is the statement's own source text. It does not call Druid's output visitor. It also overrides `toString(VisitorFeature...)` the same way."
223
+ }
224
+ },
225
+ {
226
+ "name": "The code the diff adds to perform the lenient read lives in files under core/src/main/java/.",
227
+ "weight": 1.0,
228
+ "value": 1.0,
229
+ "children": null,
230
+ "info": {
231
+ "reason": "The lenient read logic is added in core/src/main/java/: LenientScriptParser.java (the parsing and extent scanning), SQLUnparsedStatement.java, and the parseStatementsLenient entry in SQLUtils.java. All of them are under core/src/main/java/."
232
+ }
233
+ },
234
+ {
235
+ "name": "The diff adds at least one new test file under core/src/test/java/ covering the lenient read.",
236
+ "weight": 1.0,
237
+ "value": 1.0,
238
+ "children": null,
239
+ "info": {
240
+ "reason": "The diff adds a new file core/src/test/java/com/alibaba/druid/bvt/sql/LenientScriptReadTest.java, with multiple tests that call SQLUtils.parseStatementsLenient."
241
+ }
242
+ }
243
+ ],
244
+ "info": {
245
+ "model": "anthropic/claude-sonnet-5.5",
246
+ "_parameters": {
247
+ "answer": "diff --git a/core/src/main/java/com/alibaba/druid/sql/SQLUtils.java b/core/src/main/java/com/alibaba/druid/sql/SQLUtils.java\nindex 2ad08d6..1ebbe21 100644\n--- a/core/src/main/java/com/alibaba/druid/sql/SQLUtils.java\n+++ b/core/src/main/java/com/alibaba/druid/sql/SQLUtils.java\n@@ -677,6 +677,14 @@ public class SQLUtils {\n return parseStatements(sql, DbType.of(dbType), features);\n }\n \n+ /**\n+ * Reads a whole script; statements the strict parser cannot read come back as\n+ * {@link com.alibaba.druid.sql.ast.statement.SQLUnparsedStatement} in place, the rest as today.\n+ */\n+ public static List<SQLStatement> parseStatementsLenient(String sql, DbType dbType) {\n+ return new com.alibaba.druid.sql.parser.LenientScriptParser(sql, dbType).parse();\n+ }\n+\n public static List<SQLStatement> parseStatements(String sql, DbType dbType, SQLParserFeature... features) {\n SQLStatementParser parser = SQLParserUtils.createSQLStatementParser(sql, dbType, features);\n List<SQLStatement> stmtList = new ArrayList<SQLStatement>();\ndiff --git a/core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnparsedStatement.java b/core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnparsedStatement.java\nnew file mode 100644\nindex 0000000..336039b\n--- /dev/null\n+++ b/core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnparsedStatement.java\n@@ -0,0 +1,69 @@\n+package com.alibaba.druid.sql.ast.statement;\n+\n+import com.alibaba.druid.DbType;\n+import com.alibaba.druid.sql.ast.SQLStatementImpl;\n+import com.alibaba.druid.sql.visitor.SQLASTVisitor;\n+import com.alibaba.druid.sql.visitor.VisitorFeature;\n+\n+/**\n+ * A statement the strict parser could not read, kept as its source text by the lenient script read.\n+ */\n+public class SQLUnparsedStatement extends SQLStatementImpl {\n+ private final String sql;\n+ private final String error;\n+ private final int line;\n+ private final int column;\n+\n+ public SQLUnparsedStatement(DbType dbType, String sql, String error, int line, int column) {\n+ super(dbType);\n+ this.sql = sql;\n+ this.error = error;\n+ this.line = line;\n+ this.column = column;\n+ }\n+\n+ /** The statement's source text, exactly as written, without its delimiter. */\n+ public String getSql() {\n+ return sql;\n+ }\n+\n+ /** The strict parser's message for this text, positions counted from the start of the whole script. */\n+ public String getError() {\n+ return error;\n+ }\n+\n+ public int getLine() {\n+ return line;\n+ }\n+\n+ public int getColumn() {\n+ return column;\n+ }\n+\n+ @Override\n+ protected void accept0(SQLASTVisitor v) {\n+ // nothing to visit\n+ }\n+\n+ @Override\n+ public void output(StringBuilder buf) {\n+ buf.append(sql);\n+ }\n+\n+ @Override\n+ public String toString() {\n+ return sql;\n+ }\n+\n+ @Override\n+ public String toString(VisitorFeature... features) {\n+ return sql;\n+ }\n+\n+ @Override\n+ public SQLUnparsedStatement clone() {\n+ SQLUnparsedStatement x = new SQLUnparsedStatement(dbType, sql, error, line, column);\n+ x.setAfterSemi(afterSemi);\n+ return x;\n+ }\n+}\ndiff --git a/core/src/main/java/com/alibaba/druid/sql/parser/LenientScriptParser.java b/core/src/main/java/com/alibaba/druid/sql/parser/LenientScriptParser.java\nnew file mode 100644\nindex 0000000..9fba816\n--- /dev/null\n+++ b/core/src/main/java/com/alibaba/druid/sql/parser/LenientScriptParser.java\n@@ -0,0 +1,462 @@\n+package com.alibaba.druid.sql.parser;\n+\n+import com.alibaba.druid.DbType;\n+import com.alibaba.druid.sql.ast.SQLStatement;\n+import com.alibaba.druid.sql.ast.statement.SQLUnparsedStatement;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+/**\n+ * Reads a whole script in one lexer pass. Every statement the strict parser reads is returned as today; every\n+ * statement it cannot read is returned as {@link SQLUnparsedStatement} holding its exact source text and the strict\n+ * parser's message for that text, with positions moved to the script. The extent of an unparsed statement is found\n+ * by scanning its tokens with the dialect's block structure (a compound statement is one statement) up to the\n+ * semicolon that ends it at the top level; a statement whose lexer never recovers runs to the end of the input.\n+ */\n+public class LenientScriptParser {\n+ /** the script as handed in */\n+ private final String sql;\n+ /** the text the lexer reads: the parser factory rewrites CRLF to LF, so lexer positions refer to this one */\n+ private final String text;\n+ private final DbType dbType;\n+ private final SQLStatementParser parser;\n+ private final Lexer lexer;\n+\n+ public LenientScriptParser(String sql, DbType dbType) {\n+ this.sql = sql;\n+ this.dbType = dbType == null ? DbType.other : dbType;\n+ this.parser = SQLParserUtils.createSQLStatementParser(sql, this.dbType, new SQLParserFeature[0]);\n+ this.lexer = parser.getLexer();\n+ this.text = lexer.text;\n+ }\n+\n+ /** original offset of a normalized offset; end = true maps the exclusive end of a slice */\n+ private int orig(int idx, boolean end) {\n+ if (text.length() == sql.length()) {\n+ return idx;\n+ }\n+ if (end) {\n+ if (idx <= 0) {\n+ return 0;\n+ }\n+ return orig(idx - 1, false) + 1;\n+ }\n+ // walk both strings: every \"\\r\\n\" of the original is one \"\\n\" of the text\n+ int j = 0;\n+ for (int i = 0; i < idx && j < sql.length(); i++) {\n+ if (sql.charAt(j) == '\\r' && j + 1 < sql.length() && sql.charAt(j + 1) == '\\n' && text.charAt(i) == '\\n') {\n+ j++;\n+ }\n+ j++;\n+ }\n+ if (idx < text.length() && j < sql.length() && sql.charAt(j) == '\\r' && j + 1 < sql.length() && sql.charAt(j + 1) == '\\n' && text.charAt(idx) == '\\n') {\n+ j++;\n+ }\n+ return j;\n+ }\n+\n+ public List<SQLStatement> parse() {\n+ List<SQLStatement> out = new ArrayList<SQLStatement>();\n+ while (true) {\n+ // delimiters and comment tokens between statements, handled as the dialect's own loop handles them: the\n+ // base loop hands the comments after a delimiter to the previous statement, Oracle's loop leaves them for\n+ // the next one\n+ try {\n+ while (true) {\n+ while (lexer.token() == Token.MULTI_LINE_COMMENT || lexer.token() == Token.LINE_COMMENT) {\n+ lexer.nextToken();\n+ }\n+ if (lexer.token() != Token.SEMI) {\n+ break;\n+ }\n+ char ch = lexer.ch;\n+ lexer.nextToken();\n+ if (!out.isEmpty()) {\n+ SQLStatement last = out.get(out.size() - 1);\n+ last.setAfterSemi(true);\n+ if (!isOracle() && lexer.isKeepComments()) {\n+ if (ch == '\\n' && lexer.getComments() != null && !lexer.getComments().isEmpty()\n+ && !(last instanceof com.alibaba.druid.sql.ast.statement.SQLSetStatement)) {\n+ lexer.getComments().add(0, new String(\"\\n\"));\n+ }\n+ last.addAfterComment(lexer.readAndResetComments());\n+ }\n+ }\n+ }\n+ } catch (RuntimeException e) {\n+ // the lexer failed on the first token after a delimiter: that statement runs to the end of the input\n+ addUnparsed(out, firstTokenStart(lexer.mark), text.length());\n+ return out;\n+ }\n+ if (lexer.token() == Token.EOF) {\n+ break;\n+ }\n+ Lexer.SavePoint sp = lexer.mark();\n+ int before = out.size();\n+ boolean ok;\n+ try {\n+ // one statement through the dialect's own loop, which also consumes delimiters and comments as today\n+ parser.parseStatementList(out, before + 1, null);\n+ // what the strict loop accepted as one statement is one statement; only delimiters and comments\n+ // followed by the end of the input add nothing\n+ ok = out.size() == before + 1 || (out.size() == before && lexer.token() == Token.EOF);\n+ } catch (RuntimeException e) {\n+ ok = false;\n+ }\n+ if (ok) {\n+ if (out.size() == before) {\n+ break;\n+ }\n+ continue;\n+ }\n+ while (out.size() > before) {\n+ out.remove(out.size() - 1);\n+ }\n+ lexer.reset(sp);\n+ int[] se = skipStatement();\n+ addUnparsed(out, se[0], se[1]);\n+ if (se[1] >= text.length()) {\n+ return out;\n+ }\n+ // the lexer stands on the delimiter; the next round's strict loop consumes it as today\n+ }\n+ return out;\n+ }\n+\n+ /**\n+ * The lexer's startPos for a token that follows kept comments points at the first comment; the statement's text\n+ * begins at its first token, so step over whitespace and comments from there (offsets in the lexer's text).\n+ */\n+ private int firstTokenStart(int from) {\n+ int i = from < 0 ? 0 : from;\n+ int n = text.length();\n+ while (i < n) {\n+ char c = text.charAt(i);\n+ if (Character.isWhitespace(c)) {\n+ i++;\n+ } else if (c == '-' && i + 1 < n && text.charAt(i + 1) == '-') {\n+ while (i < n && text.charAt(i) != '\\n') {\n+ i++;\n+ }\n+ } else if (c == '#' && isMySql()) {\n+ while (i < n && text.charAt(i) != '\\n') {\n+ i++;\n+ }\n+ } else if (c == '/' && i + 1 < n && text.charAt(i + 1) == '*') {\n+ int close = text.indexOf(\"*/\", i + 2);\n+ if (close < 0) {\n+ return i;\n+ }\n+ i = close + 2;\n+ } else {\n+ break;\n+ }\n+ }\n+ return i;\n+ }\n+\n+ /** start and end are offsets in the lexer's text; the item keeps the original characters */\n+ private void addUnparsed(List<SQLStatement> out, int start, int end) {\n+ if (start < 0) {\n+ start = 0;\n+ }\n+ if (end > text.length()) {\n+ end = text.length();\n+ }\n+ if (end < start) {\n+ end = start;\n+ }\n+ int oStart = orig(start, false);\n+ int oEnd = end >= text.length() ? sql.length() : orig(end, true);\n+ if (oEnd < oStart) {\n+ oEnd = oStart;\n+ }\n+ start = oStart;\n+ String item = sql.substring(oStart, oEnd);\n+ String msg = strictMessage(item);\n+ int line = 1, col = 1;\n+ for (int i = 0; i < start; i++) {\n+ if (sql.charAt(i) == '\\n') {\n+ line++;\n+ col = 1;\n+ } else {\n+ col++;\n+ }\n+ }\n+ String moved = move(msg, start, line, col);\n+ int[] lc = lineCol(moved);\n+ SQLUnparsedStatement u = new SQLUnparsedStatement(dbType, item, moved, lc[0], lc[1]);\n+ out.add(u);\n+ }\n+\n+ /** The strict parser's message for the text on its own. */\n+ private String strictMessage(String text) {\n+ try {\n+ SQLStatementParser p = SQLParserUtils.createSQLStatementParser(text, dbType, new SQLParserFeature[0]);\n+ List<SQLStatement> l = new ArrayList<SQLStatement>();\n+ p.parseStatementList(l, -1, null);\n+ if (p.getLexer().token() != Token.EOF) {\n+ return \"syntax error : \" + p.getLexer().info();\n+ }\n+ return \"syntax error\";\n+ } catch (RuntimeException e) {\n+ return e.getMessage() == null ? e.toString() : e.getMessage();\n+ }\n+ }\n+\n+ // ------------------------------------------------------------------ extent\n+\n+ private boolean isMySql() {\n+ return dbType == DbType.mysql || dbType == DbType.mariadb || dbType == DbType.tidb || dbType == DbType.oceanbase\n+ || dbType == DbType.polardbx || dbType == DbType.drds || dbType == DbType.ads;\n+ }\n+\n+ private boolean isOracle() {\n+ return dbType == DbType.oracle || dbType == DbType.oceanbase_oracle || dbType == DbType.polardb2;\n+ }\n+\n+ private boolean isSqlServer() {\n+ return dbType == DbType.sqlserver || dbType == DbType.jtds;\n+ }\n+\n+ private boolean isPg() {\n+ return dbType == DbType.postgresql || dbType == DbType.edb || dbType == DbType.greenplum || dbType == DbType.gaussdb\n+ || dbType == DbType.hologres || dbType == DbType.redshift;\n+ }\n+\n+ /**\n+ * From the first token of a statement, scan to the delimiter ending it as a top level statement. Returns the end\n+ * offset (exclusive) of its last token and leaves the lexer on that delimiter (or EOF). When the lexer cannot read\n+ * on, the statement runs to the end of the input.\n+ */\n+ private int[] skipStatement() {\n+ // leading delimiters and comment tokens belong to no statement\n+ try {\n+ while (lexer.token() == Token.SEMI || lexer.token() == Token.MULTI_LINE_COMMENT || lexer.token() == Token.LINE_COMMENT) {\n+ lexer.nextToken();\n+ }\n+ } catch (RuntimeException e) {\n+ // the lexer failed on the first token: that statement runs to the end of the input\n+ return new int[] {firstTokenStart(lexer.mark), text.length()};\n+ }\n+ int start = firstTokenStart(lexer.startPos);\n+ if (lexer.token() == Token.EOF) {\n+ return new int[] {start, start};\n+ }\n+ int depth = 0;\n+ // per depth: whether the next BEGIN at this level is the body of an already opened block (DECLARE, IS/AS)\n+ boolean[] absorb = new boolean[256];\n+ int end = lexer.pos();\n+ boolean stmtStart = true;\n+ boolean afterEnd = false;\n+ boolean routinePending = false;\n+ Token prev = null;\n+ while (true) {\n+ Token t = lexer.token();\n+ if (t == Token.EOF) {\n+ return new int[] {start, end};\n+ }\n+ if (t == Token.ERROR) {\n+ // a literal, quoted name or comment the lexer could not close runs to the end of the input;\n+ // any other unreadable character is just a token of the statement\n+ char c = lexer.startPos < text.length() ? text.charAt(lexer.startPos) : ' ';\n+ if (lexer.pos() >= text.length() || c == '\\'' || c == '\"' || c == '`' || c == '[' || c == '/') {\n+ return new int[] {start, text.length()};\n+ }\n+ }\n+ if (t == Token.SEMI && depth == 0) {\n+ if (isSqlServer()) {\n+ // IF cond stmt; ELSE stmt; is one statement\n+ Lexer.SavePoint sp = lexer.mark();\n+ try {\n+ lexer.nextToken();\n+ } catch (RuntimeException e) {\n+ return new int[] {start, text.length()};\n+ }\n+ if (lexer.token() == Token.ELSE) {\n+ prev = Token.SEMI;\n+ stmtStart = true;\n+ // fall through to treat ELSE as an ordinary token\n+ } else {\n+ lexer.reset(sp);\n+ return new int[] {start, end};\n+ }\n+ } else {\n+ return new int[] {start, end};\n+ }\n+ }\n+ t = lexer.token();\n+ boolean startHere = stmtStart;\n+ boolean opener = false;\n+ boolean closerKeyword = false;\n+ if (afterEnd) {\n+ if (t == Token.IF || t == Token.LOOP || t == Token.CASE || t == Token.WHILE || t == Token.REPEAT\n+ || lexer.identifierEquals(\"TRY\") || lexer.identifierEquals(\"CATCH\")) {\n+ closerKeyword = true;\n+ }\n+ afterEnd = false;\n+ }\n+ if (!closerKeyword) {\n+ if (t == Token.BEGIN) {\n+ opener = beginOpensBlock();\n+ if (opener && depth > 0 && absorb[depth]) {\n+ opener = false;\n+ absorb[depth] = false;\n+ }\n+ } else if (t == Token.CASE || t == Token.LOOP) {\n+ opener = true;\n+ } else if (t == Token.IF) {\n+ opener = startHere && !isSqlServer();\n+ } else if (t == Token.WHILE || t == Token.REPEAT) {\n+ opener = startHere && isMySql();\n+ } else if (t == Token.DECLARE) {\n+ if (startHere && (isOracle() || isPg())) {\n+ opener = true;\n+ if (depth + 1 < absorb.length) {\n+ absorb[depth + 1] = true;\n+ }\n+ }\n+ } else if (t == Token.PROCEDURE || t == Token.FUNCTION || lexer.identifierEquals(\"PACKAGE\")) {\n+ if (isOracle() && (startHere || prev == Token.CREATE || prev == Token.REPLACE)) {\n+ routinePending = true;\n+ }\n+ } else if ((t == Token.IS || t == Token.AS) && routinePending) {\n+ routinePending = false;\n+ opener = true;\n+ if (depth + 1 < absorb.length) {\n+ absorb[depth + 1] = true;\n+ }\n+ } else if (t == Token.END) {\n+ if (depth > 0) {\n+ absorb[depth] = false;\n+ depth--;\n+ }\n+ afterEnd = true;\n+ }\n+ }\n+ if (opener) {\n+ depth++;\n+ if (t == Token.BEGIN || t == Token.LOOP || t == Token.CASE || t == Token.IF || t == Token.WHILE || t == Token.REPEAT) {\n+ // a fresh block: nothing pending to absorb at this level unless set above\n+ if (t != Token.BEGIN && depth < absorb.length && !(t == Token.DECLARE)) {\n+ absorb[depth] = absorb[depth] && false;\n+ }\n+ }\n+ }\n+ stmtStart = t == Token.SEMI || t == Token.BEGIN || t == Token.THEN || t == Token.ELSE || t == Token.DO\n+ || t == Token.LOOP || t == Token.EXCEPTION || t == Token.ELSEIF\n+ || (t == Token.VARIANT && lexer.stringVal() != null && lexer.stringVal().startsWith(\"$\"))\n+ || (t == Token.VARIANT && \":\".equals(lexer.stringVal()))\n+ || (t == Token.IS || t == Token.AS) && opener\n+ || t == Token.GTGT;\n+ prev = t;\n+ end = lexer.pos();\n+ try {\n+ lexer.nextToken();\n+ } catch (RuntimeException e) {\n+ return new int[] {start, text.length()};\n+ }\n+ }\n+ }\n+\n+ /** BEGIN opens a block unless the dialect reads it as a transaction command. Consumes nothing (peeks and resets). */\n+ private boolean beginOpensBlock() {\n+ if (isOracle()) {\n+ return true;\n+ }\n+ Lexer.SavePoint sp = lexer.mark();\n+ boolean block;\n+ try {\n+ lexer.nextToken();\n+ Token n = lexer.token();\n+ if (isMySql()) {\n+ block = !(n == Token.SEMI || n == Token.EOF || n == Token.IDENTIFIER);\n+ } else if (isSqlServer()) {\n+ block = !(lexer.identifierEquals(\"TRANSACTION\") || lexer.identifierEquals(\"TRAN\") || lexer.identifierEquals(\"DISTRIBUTED\"));\n+ } else {\n+ block = !(n == Token.SEMI || n == Token.EOF || lexer.identifierEquals(\"WORK\") || lexer.identifierEquals(\"TRANSACTION\")\n+ || lexer.identifierEquals(\"ISOLATION\") || lexer.identifierEquals(\"READ\") || lexer.identifierEquals(\"DEFERRABLE\")\n+ || lexer.identifierEquals(\"NOT\"));\n+ }\n+ } catch (RuntimeException e) {\n+ block = true;\n+ }\n+ lexer.reset(sp);\n+ return block;\n+ }\n+\n+ // ------------------------------------------------------------------ positions\n+\n+ /** Rewrites every \"pos N, line L, column C\" in a message from the statement's frame to the script's. */\n+ static String move(String m, int start, int sLine, int sCol) {\n+ if (m == null) {\n+ return null;\n+ }\n+ StringBuilder sb = new StringBuilder();\n+ int i = 0;\n+ while (true) {\n+ int p = m.indexOf(\"pos \", i);\n+ if (p < 0) {\n+ sb.append(m.substring(i));\n+ break;\n+ }\n+ int pe = p + 4;\n+ while (pe < m.length() && Character.isDigit(m.charAt(pe))) {\n+ pe++;\n+ }\n+ if (pe == p + 4 || !m.startsWith(\", line \", pe)) {\n+ sb.append(m, i, pe);\n+ i = pe;\n+ continue;\n+ }\n+ int le = pe + 7;\n+ while (le < m.length() && Character.isDigit(m.charAt(le))) {\n+ le++;\n+ }\n+ if (le == pe + 7 || !m.startsWith(\", column \", le)) {\n+ sb.append(m, i, le);\n+ i = le;\n+ continue;\n+ }\n+ int ce = le + 9;\n+ while (ce < m.length() && Character.isDigit(m.charAt(ce))) {\n+ ce++;\n+ }\n+ if (ce == le + 9) {\n+ sb.append(m, i, ce);\n+ i = ce;\n+ continue;\n+ }\n+ int pos = Integer.parseInt(m.substring(p + 4, pe));\n+ int line = Integer.parseInt(m.substring(pe + 7, le));\n+ int col = Integer.parseInt(m.substring(le + 9, ce));\n+ sb.append(m, i, p).append(\"pos \").append(pos + start).append(\", line \").append(line + sLine - 1)\n+ .append(\", column \").append(line == 1 ? col + sCol - 1 : col);\n+ i = ce;\n+ }\n+ return sb.toString();\n+ }\n+\n+ static int[] lineCol(String m) {\n+ if (m == null) {\n+ return new int[] {-1, -1};\n+ }\n+ int li = m.indexOf(\", line \");\n+ if (li < 0) {\n+ return new int[] {-1, -1};\n+ }\n+ int l = num(m, li + 7);\n+ int ci = m.indexOf(\", column \", li);\n+ int c = ci < 0 ? -1 : num(m, ci + 9);\n+ return new int[] {l, c};\n+ }\n+\n+ static int num(String m, int j) {\n+ int k = j;\n+ while (k < m.length() && Character.isDigit(m.charAt(k))) {\n+ k++;\n+ }\n+ return k == j ? -1 : Integer.parseInt(m.substring(j, k));\n+ }\n+}\ndiff --git a/core/src/test/java/com/alibaba/druid/bvt/sql/LenientScriptReadTest.java b/core/src/test/java/com/alibaba/druid/bvt/sql/LenientScriptReadTest.java\nnew file mode 100644\nindex 0000000..9bdc701\n--- /dev/null\n+++ b/core/src/test/java/com/alibaba/druid/bvt/sql/LenientScriptReadTest.java\n@@ -0,0 +1,227 @@\n+package com.alibaba.druid.bvt.sql;\n+\n+import com.alibaba.druid.DbType;\n+import com.alibaba.druid.sql.SQLUtils;\n+import com.alibaba.druid.sql.ast.SQLStatement;\n+import com.alibaba.druid.sql.ast.statement.SQLUnparsedStatement;\n+import org.junit.jupiter.api.Test;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.regex.Matcher;\n+import java.util.regex.Pattern;\n+\n+import static org.junit.jupiter.api.Assertions.assertEquals;\n+import static org.junit.jupiter.api.Assertions.assertFalse;\n+import static org.junit.jupiter.api.Assertions.assertTrue;\n+import static org.junit.jupiter.api.Assertions.fail;\n+\n+/**\n+ * The lenient whole-script read: SQLUtils.parseStatementsLenient returns what the strict call reads as today and the\n+ * rest as SQLUnparsedStatement carrying the statement's exact text and the strict message for that text on its own,\n+ * with pos, line and column counted from the script start.\n+ */\n+public class LenientScriptReadTest {\n+ private static final Pattern POS = Pattern.compile(\"pos (\\\\d+), line (\\\\d+), column (\\\\d+)\");\n+\n+ private static List<SQLUnparsedStatement> unparsedOf(List<SQLStatement> list) {\n+ List<SQLUnparsedStatement> out = new ArrayList<SQLUnparsedStatement>();\n+ for (SQLStatement s : list) {\n+ if (s instanceof SQLUnparsedStatement) {\n+ out.add((SQLUnparsedStatement) s);\n+ }\n+ }\n+ return out;\n+ }\n+\n+ /** the message the strict call gives for a text on its own */\n+ private static String strictMessage(String sql, DbType dbType) {\n+ try {\n+ SQLUtils.parseStatements(sql, dbType);\n+ } catch (Exception e) {\n+ return e.getMessage();\n+ }\n+ fail(\"the text should not parse on its own: \" + sql);\n+ return null;\n+ }\n+\n+ /** the same message with pos, line and column counted from the script start, for a statement starting at (offset, line, column) */\n+ private static String counted(String standalone, int offset, int line, int column) {\n+ Matcher m = POS.matcher(standalone);\n+ StringBuffer sb = new StringBuffer();\n+ while (m.find()) {\n+ int p = Integer.parseInt(m.group(1)), l = Integer.parseInt(m.group(2)), c = Integer.parseInt(m.group(3));\n+ m.appendReplacement(sb, \"pos \" + (p + offset) + \", line \" + (l + line - 1) + \", column \" + (l == 1 ? c + column - 1 : c));\n+ }\n+ m.appendTail(sb);\n+ return sb.toString();\n+ }\n+\n+ private static int lineOf(String error) {\n+ Matcher m = POS.matcher(error);\n+ assertTrue(m.find(), error);\n+ return Integer.parseInt(m.group(2));\n+ }\n+\n+ private static int columnOf(String error) {\n+ Matcher m = POS.matcher(error);\n+ assertTrue(m.find(), error);\n+ return Integer.parseInt(m.group(3));\n+ }\n+\n+ @Test\n+ public void allGoodComesBackAsStrict() {\n+ String sql = \"select id from t where x = 1; insert into t (a) values (2); update t set a = 3;\";\n+ List<SQLStatement> strict = SQLUtils.parseStatements(sql, DbType.mysql);\n+ List<SQLStatement> lenient = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(strict.size(), lenient.size());\n+ for (int i = 0; i < strict.size(); ++i) {\n+ assertEquals(strict.get(i).toString(), lenient.get(i).toString());\n+ }\n+ assertTrue(unparsedOf(lenient).isEmpty());\n+ }\n+\n+ @Test\n+ public void badSimpleStatementBetweenGoodOnes() {\n+ String bad = \"select a from where a = 1\";\n+ String sql = \"select 1; \" + bad + \"; select 3;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(3, list.size());\n+ assertFalse(list.get(0) instanceof SQLUnparsedStatement);\n+ assertFalse(list.get(2) instanceof SQLUnparsedStatement);\n+\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(1);\n+ assertEquals(bad, u.getSql());\n+ assertEquals(bad, u.toString());\n+ String standalone = strictMessage(bad, DbType.mysql);\n+ assertEquals(counted(standalone, 10, 1, 11), u.getError());\n+ assertEquals(lineOf(u.getError()), u.getLine());\n+ assertEquals(columnOf(u.getError()), u.getColumn());\n+ }\n+\n+ @Test\n+ public void errorLineCountedFromScriptStart() {\n+ String sql = \"select 1;\\nselect * from t where a ==== 1;\\nselect 3;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(3, list.size());\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(1);\n+ assertEquals(\"select * from t where a ==== 1\", u.getSql());\n+ assertEquals(\"ERROR. pos 38, line 2, column 27, token ==\", u.getError());\n+ assertEquals(2, u.getLine());\n+ assertEquals(27, u.getColumn());\n+ }\n+\n+ @Test\n+ public void whatFollowsParsesAsTheScriptWithoutIt() {\n+ String script = \"select 1; nonsense here; select 2 from t; create table x (id bigint);\";\n+ String without = \"select 1; select 2 from t; create table x (id bigint);\";\n+ List<SQLStatement> lenient = SQLUtils.parseStatementsLenient(script, DbType.mysql);\n+ List<SQLStatement> strict = SQLUtils.parseStatements(without, DbType.mysql);\n+ assertEquals(4, lenient.size());\n+ assertTrue(lenient.get(1) instanceof SQLUnparsedStatement);\n+ assertEquals(strict.get(0).toString(), lenient.get(0).toString());\n+ assertEquals(strict.get(1).toString(), lenient.get(2).toString());\n+ assertEquals(strict.get(2).toString(), lenient.get(3).toString());\n+ }\n+\n+ @Test\n+ public void compoundStatementIsOneStatement() {\n+ String sql = \"create procedure p() begin if x > 0 then begin select bad from; end; end if; end; select 7;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(2, list.size());\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(0);\n+ assertEquals(\"create procedure p() begin if x > 0 then begin select bad from; end; end if; end\", u.getSql());\n+ assertFalse(list.get(1) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void compoundLoopsAreOneStatement() {\n+ String sql = \"create procedure p() begin while i < 10 do set i = i + + ; end while; end; select 7;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(2, list.size());\n+ assertEquals(\"create procedure p() begin while i < 10 do set i = i + + ; end while; end\",\n+ ((SQLUnparsedStatement) list.get(0)).getSql());\n+ assertFalse(list.get(1) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void oracleDeclareSectionBelongsToTheBlock() {\n+ String sql = \"begin null; end;\\ndeclare x number; begin x := ; end;\\nselect 1 from dual;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.oracle);\n+ assertEquals(3, list.size());\n+ assertFalse(list.get(0) instanceof SQLUnparsedStatement);\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(1);\n+ assertEquals(\"declare x number; begin x := ; end\", u.getSql());\n+ assertEquals(2, u.getLine());\n+ assertFalse(list.get(2) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void sqlServerIfElseBranchesAreOneStatement() {\n+ String sql = \"if 1 = 1 select bad from; else select 2;\\nselect 3;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.sqlserver);\n+ assertEquals(2, list.size());\n+ assertEquals(\"if 1 = 1 select bad from; else select 2\", ((SQLUnparsedStatement) list.get(0)).getSql());\n+ assertFalse(list.get(1) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void keywordsAsNamesFunctionsModifiersAndTransactionsOpenNothing() {\n+ String sql = \"begin; select 1; commit; select if(a, 1, 2) from t; select `end` from t; drop table if exists t2;\"\n+ + \" delete from where a = 1; select 4;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ List<SQLUnparsedStatement> bad = unparsedOf(list);\n+ assertEquals(1, bad.size());\n+ assertEquals(\"delete from where a = 1\", bad.get(0).getSql());\n+ assertEquals(8, list.size());\n+ assertFalse(list.get(7) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void unclosedStringRunsToTheEndOfTheInput() {\n+ String tail = \"select 'abc; select 3;\";\n+ String sql = \"select 1; \" + tail;\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(2, list.size());\n+ assertFalse(list.get(0) instanceof SQLUnparsedStatement);\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(1);\n+ assertEquals(tail, u.getSql());\n+ assertEquals(counted(strictMessage(tail, DbType.mysql), 10, 1, 11), u.getError());\n+ }\n+\n+ @Test\n+ public void textIsExactUnderCrlf() {\n+ String bad = \"select a from where a = 1\";\n+ String sql = \"select 1;\\r\\n\" + bad + \";\\r\\nselect 3;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(3, list.size());\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(1);\n+ assertEquals(bad, u.getSql());\n+ assertEquals(2, u.getLine());\n+ assertEquals(counted(strictMessage(bad, DbType.mysql), 11, 2, 1), u.getError());\n+ assertFalse(list.get(2) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void commentAheadOfABadStatementIsNotPartOfItsText() {\n+ String bad = \"select a from where a = 1\";\n+ String sql = \"select 1;\\n-- note\\n\" + bad + \";\\n/* block */ select 3;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(3, list.size());\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(1);\n+ assertEquals(bad, u.getSql());\n+ assertEquals(3, u.getLine());\n+ assertEquals(counted(strictMessage(bad, DbType.mysql), 18, 3, 1), u.getError());\n+ assertFalse(list.get(2) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void strictEntryPointsUnchanged() {\n+ try {\n+ SQLUtils.parseStatements(\"select 1; select a from where a = 1; select 3;\", DbType.mysql);\n+ fail(\"the strict call must still fail on a bad statement\");\n+ } catch (Exception e) {\n+ assertTrue(e.getMessage().contains(\"pos \"), e.getMessage());\n+ }\n+ }\n+}\n",
248
+ "criteria": [
249
+ "The diff adds a public static method named parseStatementsLenient, taking a String and a DbType, to SQLUtils.",
250
+ "The diff adds a new public class named SQLUnparsedStatement that extends a class in Druid's SQLStatement hierarchy, such as SQLStatementImpl, so an instance can sit in the same List<SQLStatement> as the parsed statements.",
251
+ "The SQLUnparsedStatement the diff adds declares all four accessors the ticket names: getSql, getError, getLine and getColumn.",
252
+ "The SQLUnparsedStatement the diff adds overrides toString so that it returns the statement's own source text instead of delegating to Druid's output visitor.",
253
+ "The code the diff adds to perform the lenient read lives in files under core/src/main/java/.",
254
+ "The diff adds at least one new test file under core/src/test/java/ covering the lenient read."
255
+ ],
256
+ "question": "You are an Alibaba Druid maintainer reviewing a pull request against the core module. The ticket: a bad statement loses a whole SQL script at the first error; add a lenient whole-script read, SQLUtils.parseStatementsLenient(String sql, DbType dbType), that returns the statements the strict parser reads as today and the rest as SQLUnparsedStatement, a new public statement class whose getSql is the statement's exact source text, whose getError is the strict parser's message for that text with positions counted from the script start, whose getLine and getColumn are those two numbers, and whose toString returns the sql. The ticket also says to work in the core module and to put new tests in new files. Below is the pull request's diff. Judge ONLY what the diff shows, one criterion at a time, and mark a criterion MET only when the diff plainly shows the named symbol or path. Each criterion is a single fact: do not withhold it because of anything another criterion asks. The ticket does not prescribe an implementation, so never mark a criterion unmet because you would have written the code differently: a design that differs from the one you would choose still meets a criterion when the named symbol or path is there. Every criterion asks for something the diff must ADD, so a diff that is empty, or that says the checkout is untouched, or that adds no lenient read, meets none of them.",
257
+ "model": "anthropic/claude-sonnet-5.5"
258
+ }
259
+ }
260
+ }
261
+ ]
262
+ }
harbor/evidence/druid/reports/noop.json ADDED
@@ -0,0 +1,457 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "revision": "coding-rubric-v2",
3
+ "task_id": "druid_lenient_script",
4
+ "grader_version": "0.6.17",
5
+ "commands": [
6
+ {
7
+ "name": "clean_equals_strict",
8
+ "weight": 0.0417,
9
+ "value": 0.0,
10
+ "children": null,
11
+ "info": {
12
+ "exit_code": 1,
13
+ "stdout": "FAIL clean_equals_strict (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
14
+ "stderr": "",
15
+ "_parameters": {
16
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh clean_equals_strict'",
17
+ "cwd": "/workspace/repo",
18
+ "timeout_seconds": 1800
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "name": "simple_bad",
24
+ "weight": 0.0417,
25
+ "value": 0.0,
26
+ "children": null,
27
+ "info": {
28
+ "exit_code": 1,
29
+ "stdout": "FAIL simple_bad (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
30
+ "stderr": "",
31
+ "_parameters": {
32
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh simple_bad'",
33
+ "cwd": "/workspace/repo",
34
+ "timeout_seconds": 1800
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "name": "block_extent",
40
+ "weight": 0.1761,
41
+ "value": 0.0,
42
+ "children": null,
43
+ "info": {
44
+ "exit_code": 1,
45
+ "stdout": "FAIL block_extent (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
46
+ "stderr": "",
47
+ "_parameters": {
48
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh block_extent'",
49
+ "cwd": "/workspace/repo",
50
+ "timeout_seconds": 1800
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "keyword_context",
56
+ "weight": 0.1343,
57
+ "value": 0.0,
58
+ "children": null,
59
+ "info": {
60
+ "exit_code": 1,
61
+ "stdout": "FAIL keyword_context (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
62
+ "stderr": "",
63
+ "_parameters": {
64
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh keyword_context'",
65
+ "cwd": "/workspace/repo",
66
+ "timeout_seconds": 1800
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "name": "lexer_tail",
72
+ "weight": 0.0927,
73
+ "value": 0.0,
74
+ "children": null,
75
+ "info": {
76
+ "exit_code": 1,
77
+ "stdout": "FAIL lexer_tail (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
78
+ "stderr": "",
79
+ "_parameters": {
80
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh lexer_tail'",
81
+ "cwd": "/workspace/repo",
82
+ "timeout_seconds": 1800
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "name": "error_identity",
88
+ "weight": 0.0927,
89
+ "value": 0.0,
90
+ "children": null,
91
+ "info": {
92
+ "exit_code": 1,
93
+ "stdout": "FAIL error_identity (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
94
+ "stderr": "",
95
+ "_parameters": {
96
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh error_identity'",
97
+ "cwd": "/workspace/repo",
98
+ "timeout_seconds": 1800
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "mixed",
104
+ "weight": 0.0833,
105
+ "value": 0.0,
106
+ "children": null,
107
+ "info": {
108
+ "exit_code": 1,
109
+ "stdout": "FAIL mixed (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
110
+ "stderr": "",
111
+ "_parameters": {
112
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh mixed'",
113
+ "cwd": "/workspace/repo",
114
+ "timeout_seconds": 1800
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "name": "budget",
120
+ "weight": 0.0833,
121
+ "value": 0.0,
122
+ "children": null,
123
+ "info": {
124
+ "exit_code": 1,
125
+ "stdout": "FAIL budget (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
126
+ "stderr": "",
127
+ "_parameters": {
128
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh budget'",
129
+ "cwd": "/workspace/repo",
130
+ "timeout_seconds": 1800
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "name": "line_endings",
136
+ "weight": 0.0671,
137
+ "value": 0.0,
138
+ "children": null,
139
+ "info": {
140
+ "exit_code": 1,
141
+ "stdout": "FAIL line_endings (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
142
+ "stderr": "",
143
+ "_parameters": {
144
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh line_endings'",
145
+ "cwd": "/workspace/repo",
146
+ "timeout_seconds": 1800
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "name": "comments",
152
+ "weight": 0.0671,
153
+ "value": 0.0,
154
+ "children": null,
155
+ "info": {
156
+ "exit_code": 1,
157
+ "stdout": "FAIL comments (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
158
+ "stderr": "",
159
+ "_parameters": {
160
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh comments'",
161
+ "cwd": "/workspace/repo",
162
+ "timeout_seconds": 1800
163
+ }
164
+ }
165
+ },
166
+ {
167
+ "name": "wall",
168
+ "weight": 0.1,
169
+ "value": 0.0,
170
+ "children": null,
171
+ "info": {
172
+ "exit_code": 1,
173
+ "stdout": "FAIL source_change: no file under core/src/main changed\nFAIL wall\n",
174
+ "stderr": "",
175
+ "_parameters": {
176
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh wall'",
177
+ "cwd": "/workspace/repo",
178
+ "timeout_seconds": 3000
179
+ }
180
+ }
181
+ }
182
+ ],
183
+ "status": "graded",
184
+ "patch_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
185
+ "result": {
186
+ "reward": 0.0,
187
+ "done": true,
188
+ "content": "Blocker failed (wall); cap 0.60, reward 0.000 (uncapped 0.000). | failed: block_extent; budget; clean_equals_strict; comments; error_identity; keyword_context; lexer_tail; line_endings; mixed; simple_bad",
189
+ "info": {
190
+ "uncapped_reward": 0.0,
191
+ "failed_blockers": [
192
+ "wall"
193
+ ],
194
+ "blocker_cap": 0.6
195
+ },
196
+ "isError": false,
197
+ "subscores": [
198
+ {
199
+ "name": "clean_equals_strict",
200
+ "weight": 0.0417,
201
+ "value": 0.0,
202
+ "children": null,
203
+ "info": {
204
+ "exit_code": 1,
205
+ "stdout": "FAIL clean_equals_strict (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
206
+ "stderr": "",
207
+ "_parameters": {
208
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh clean_equals_strict'",
209
+ "cwd": "/workspace/repo",
210
+ "timeout_seconds": 1800
211
+ }
212
+ }
213
+ },
214
+ {
215
+ "name": "simple_bad",
216
+ "weight": 0.0417,
217
+ "value": 0.0,
218
+ "children": null,
219
+ "info": {
220
+ "exit_code": 1,
221
+ "stdout": "FAIL simple_bad (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
222
+ "stderr": "",
223
+ "_parameters": {
224
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh simple_bad'",
225
+ "cwd": "/workspace/repo",
226
+ "timeout_seconds": 1800
227
+ }
228
+ }
229
+ },
230
+ {
231
+ "name": "block_extent",
232
+ "weight": 0.1761,
233
+ "value": 0.0,
234
+ "children": null,
235
+ "info": {
236
+ "exit_code": 1,
237
+ "stdout": "FAIL block_extent (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
238
+ "stderr": "",
239
+ "_parameters": {
240
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh block_extent'",
241
+ "cwd": "/workspace/repo",
242
+ "timeout_seconds": 1800
243
+ }
244
+ }
245
+ },
246
+ {
247
+ "name": "keyword_context",
248
+ "weight": 0.1343,
249
+ "value": 0.0,
250
+ "children": null,
251
+ "info": {
252
+ "exit_code": 1,
253
+ "stdout": "FAIL keyword_context (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
254
+ "stderr": "",
255
+ "_parameters": {
256
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh keyword_context'",
257
+ "cwd": "/workspace/repo",
258
+ "timeout_seconds": 1800
259
+ }
260
+ }
261
+ },
262
+ {
263
+ "name": "lexer_tail",
264
+ "weight": 0.0927,
265
+ "value": 0.0,
266
+ "children": null,
267
+ "info": {
268
+ "exit_code": 1,
269
+ "stdout": "FAIL lexer_tail (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
270
+ "stderr": "",
271
+ "_parameters": {
272
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh lexer_tail'",
273
+ "cwd": "/workspace/repo",
274
+ "timeout_seconds": 1800
275
+ }
276
+ }
277
+ },
278
+ {
279
+ "name": "error_identity",
280
+ "weight": 0.0927,
281
+ "value": 0.0,
282
+ "children": null,
283
+ "info": {
284
+ "exit_code": 1,
285
+ "stdout": "FAIL error_identity (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
286
+ "stderr": "",
287
+ "_parameters": {
288
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh error_identity'",
289
+ "cwd": "/workspace/repo",
290
+ "timeout_seconds": 1800
291
+ }
292
+ }
293
+ },
294
+ {
295
+ "name": "mixed",
296
+ "weight": 0.0833,
297
+ "value": 0.0,
298
+ "children": null,
299
+ "info": {
300
+ "exit_code": 1,
301
+ "stdout": "FAIL mixed (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
302
+ "stderr": "",
303
+ "_parameters": {
304
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh mixed'",
305
+ "cwd": "/workspace/repo",
306
+ "timeout_seconds": 1800
307
+ }
308
+ }
309
+ },
310
+ {
311
+ "name": "budget",
312
+ "weight": 0.0833,
313
+ "value": 0.0,
314
+ "children": null,
315
+ "info": {
316
+ "exit_code": 1,
317
+ "stdout": "FAIL budget (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
318
+ "stderr": "",
319
+ "_parameters": {
320
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh budget'",
321
+ "cwd": "/workspace/repo",
322
+ "timeout_seconds": 1800
323
+ }
324
+ }
325
+ },
326
+ {
327
+ "name": "line_endings",
328
+ "weight": 0.0671,
329
+ "value": 0.0,
330
+ "children": null,
331
+ "info": {
332
+ "exit_code": 1,
333
+ "stdout": "FAIL line_endings (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
334
+ "stderr": "",
335
+ "_parameters": {
336
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh line_endings'",
337
+ "cwd": "/workspace/repo",
338
+ "timeout_seconds": 1800
339
+ }
340
+ }
341
+ },
342
+ {
343
+ "name": "comments",
344
+ "weight": 0.0671,
345
+ "value": 0.0,
346
+ "children": null,
347
+ "info": {
348
+ "exit_code": 1,
349
+ "stdout": "FAIL comments (no SQLUtils.parseStatementsLenient(String, DbType): java.lang.NoSuchMethodException: com.alibaba.druid.sql.SQLUtils.parseStatementsLenient(java.lang.String,com.alibaba.druid.DbType))\n",
350
+ "stderr": "",
351
+ "_parameters": {
352
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh comments'",
353
+ "cwd": "/workspace/repo",
354
+ "timeout_seconds": 1800
355
+ }
356
+ }
357
+ },
358
+ {
359
+ "name": "wall",
360
+ "weight": 0.1,
361
+ "value": 0.0,
362
+ "children": null,
363
+ "info": {
364
+ "exit_code": 1,
365
+ "stdout": "FAIL source_change: no file under core/src/main changed\nFAIL wall\n",
366
+ "stderr": "",
367
+ "_parameters": {
368
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh wall'",
369
+ "cwd": "/workspace/repo",
370
+ "timeout_seconds": 3000
371
+ }
372
+ }
373
+ },
374
+ {
375
+ "name": "maintainer_review",
376
+ "weight": 0.02,
377
+ "value": 0.0,
378
+ "children": [
379
+ {
380
+ "name": "The diff adds a public static method named parseStatementsLenient, taking a String and a DbType, to SQLUtils.",
381
+ "weight": 1.0,
382
+ "value": 0.0,
383
+ "children": null,
384
+ "info": {
385
+ "reason": "The diff is empty and the checkout is untouched, so it adds no parseStatementsLenient method to SQLUtils."
386
+ }
387
+ },
388
+ {
389
+ "name": "The diff adds a new public class named SQLUnparsedStatement that extends a class in Druid's SQLStatement hierarchy, such as SQLStatementImpl, so an instance can sit in the same List<SQLStatement> as the parsed statements.",
390
+ "weight": 1.0,
391
+ "value": 0.0,
392
+ "children": null,
393
+ "info": {
394
+ "reason": "The diff is empty and adds no SQLUnparsedStatement class, so the criterion is not satisfied."
395
+ }
396
+ },
397
+ {
398
+ "name": "The SQLUnparsedStatement the diff adds declares all four accessors the ticket names: getSql, getError, getLine and getColumn.",
399
+ "weight": 1.0,
400
+ "value": 0.0,
401
+ "children": null,
402
+ "info": {
403
+ "reason": "The diff is empty and the checkout is untouched, so no SQLUnparsedStatement or any of its accessors (getSql, getError, getLine, getColumn) are added."
404
+ }
405
+ },
406
+ {
407
+ "name": "The SQLUnparsedStatement the diff adds overrides toString so that it returns the statement's own source text instead of delegating to Druid's output visitor.",
408
+ "weight": 1.0,
409
+ "value": 0.0,
410
+ "children": null,
411
+ "info": {
412
+ "reason": "The diff is empty and adds no SQLUnparsedStatement class, so no toString override exists."
413
+ }
414
+ },
415
+ {
416
+ "name": "The code the diff adds to perform the lenient read lives in files under core/src/main/java/.",
417
+ "weight": 1.0,
418
+ "value": 0.0,
419
+ "children": null,
420
+ "info": {
421
+ "reason": "The diff is empty and adds no code, so no lenient-read code appears under core/src/main/java/."
422
+ }
423
+ },
424
+ {
425
+ "name": "The diff adds at least one new test file under core/src/test/java/ covering the lenient read.",
426
+ "weight": 1.0,
427
+ "value": 0.0,
428
+ "children": null,
429
+ "info": {
430
+ "reason": "The diff is empty and the checkout is untouched, so no new test file under core/src/test/java/ is added."
431
+ }
432
+ }
433
+ ],
434
+ "info": {
435
+ "model": "anthropic/claude-sonnet-5.5",
436
+ "_parameters": {
437
+ "answer": "(empty diff: the checkout is untouched)",
438
+ "criteria": [
439
+ "The diff adds a public static method named parseStatementsLenient, taking a String and a DbType, to SQLUtils.",
440
+ "The diff adds a new public class named SQLUnparsedStatement that extends a class in Druid's SQLStatement hierarchy, such as SQLStatementImpl, so an instance can sit in the same List<SQLStatement> as the parsed statements.",
441
+ "The SQLUnparsedStatement the diff adds declares all four accessors the ticket names: getSql, getError, getLine and getColumn.",
442
+ "The SQLUnparsedStatement the diff adds overrides toString so that it returns the statement's own source text instead of delegating to Druid's output visitor.",
443
+ "The code the diff adds to perform the lenient read lives in files under core/src/main/java/.",
444
+ "The diff adds at least one new test file under core/src/test/java/ covering the lenient read."
445
+ ],
446
+ "question": "You are an Alibaba Druid maintainer reviewing a pull request against the core module. The ticket: a bad statement loses a whole SQL script at the first error; add a lenient whole-script read, SQLUtils.parseStatementsLenient(String sql, DbType dbType), that returns the statements the strict parser reads as today and the rest as SQLUnparsedStatement, a new public statement class whose getSql is the statement's exact source text, whose getError is the strict parser's message for that text with positions counted from the script start, whose getLine and getColumn are those two numbers, and whose toString returns the sql. The ticket also says to work in the core module and to put new tests in new files. Below is the pull request's diff. Judge ONLY what the diff shows, one criterion at a time, and mark a criterion MET only when the diff plainly shows the named symbol or path. Each criterion is a single fact: do not withhold it because of anything another criterion asks. The ticket does not prescribe an implementation, so never mark a criterion unmet because you would have written the code differently: a design that differs from the one you would choose still meets a criterion when the named symbol or path is there. Every criterion asks for something the diff must ADD, so a diff that is empty, or that says the checkout is untouched, or that adds no lenient read, meets none of them.",
447
+ "model": "anthropic/claude-sonnet-5.5"
448
+ }
449
+ }
450
+ }
451
+ ]
452
+ },
453
+ "judge": {
454
+ "model": "anthropic/claude-sonnet-5.5",
455
+ "endpoint": "openrouter.ai"
456
+ }
457
+ }
harbor/evidence/druid/reports/reference.json ADDED
@@ -0,0 +1,451 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "revision": "coding-rubric-v2",
3
+ "task_id": "druid_lenient_script",
4
+ "grader_version": "0.6.17",
5
+ "commands": [
6
+ {
7
+ "name": "clean_equals_strict",
8
+ "weight": 0.0417,
9
+ "value": 1.0,
10
+ "children": null,
11
+ "info": {
12
+ "exit_code": 0,
13
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE clean_equals_strict 4/4\nPASS clean_equals_strict\n",
14
+ "stderr": "",
15
+ "_parameters": {
16
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh clean_equals_strict'",
17
+ "cwd": "/workspace/repo",
18
+ "timeout_seconds": 1800
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "name": "simple_bad",
24
+ "weight": 0.0417,
25
+ "value": 1.0,
26
+ "children": null,
27
+ "info": {
28
+ "exit_code": 0,
29
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE simple_bad 4/4\nPASS simple_bad\n",
30
+ "stderr": "",
31
+ "_parameters": {
32
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh simple_bad'",
33
+ "cwd": "/workspace/repo",
34
+ "timeout_seconds": 1800
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "name": "block_extent",
40
+ "weight": 0.1761,
41
+ "value": 1.0,
42
+ "children": null,
43
+ "info": {
44
+ "exit_code": 0,
45
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE block_extent 4/4\nPASS block_extent\n",
46
+ "stderr": "",
47
+ "_parameters": {
48
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh block_extent'",
49
+ "cwd": "/workspace/repo",
50
+ "timeout_seconds": 1800
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "keyword_context",
56
+ "weight": 0.1343,
57
+ "value": 1.0,
58
+ "children": null,
59
+ "info": {
60
+ "exit_code": 0,
61
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE keyword_context 4/4\nPASS keyword_context\n",
62
+ "stderr": "",
63
+ "_parameters": {
64
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh keyword_context'",
65
+ "cwd": "/workspace/repo",
66
+ "timeout_seconds": 1800
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "name": "lexer_tail",
72
+ "weight": 0.0927,
73
+ "value": 1.0,
74
+ "children": null,
75
+ "info": {
76
+ "exit_code": 0,
77
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\n dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\n dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE lexer_tail 12/12\nPASS lexer_tail\n",
78
+ "stderr": "",
79
+ "_parameters": {
80
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh lexer_tail'",
81
+ "cwd": "/workspace/repo",
82
+ "timeout_seconds": 1800
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "name": "error_identity",
88
+ "weight": 0.0927,
89
+ "value": 1.0,
90
+ "children": null,
91
+ "info": {
92
+ "exit_code": 0,
93
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE error_identity 4/4\nPASS error_identity\n",
94
+ "stderr": "",
95
+ "_parameters": {
96
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh error_identity'",
97
+ "cwd": "/workspace/repo",
98
+ "timeout_seconds": 1800
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "mixed",
104
+ "weight": 0.0833,
105
+ "value": 1.0,
106
+ "children": null,
107
+ "info": {
108
+ "exit_code": 0,
109
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE mixed 4/4\nPASS mixed\n",
110
+ "stderr": "",
111
+ "_parameters": {
112
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh mixed'",
113
+ "cwd": "/workspace/repo",
114
+ "timeout_seconds": 1800
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "name": "budget",
120
+ "weight": 0.0833,
121
+ "value": 1.0,
122
+ "children": null,
123
+ "info": {
124
+ "exit_code": 0,
125
+ "stdout": " budget budget.mysql.sql: chars 394579/364824 = 1.082, tokens 74761/67979 = 1.100, ms 11461/949\n dialect mysql: PASS\n budget budget.oracle.sql: chars 1238223/1158732 = 1.069, tokens 87599/81731 = 1.072, ms 149/102\n dialect oracle: PASS\n budget budget.postgresql.sql: chars 346768/329521 = 1.052, tokens 75519/70921 = 1.065, ms 8571/9\n dialect postgresql: PASS\n budget budget.sqlserver.sql: chars 1031964/986601 = 1.046, tokens 71318/67127 = 1.062, ms 13130/1310\n dialect sqlserver: PASS\nSCORE budget 4/4\nPASS budget\n",
126
+ "stderr": "",
127
+ "_parameters": {
128
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh budget'",
129
+ "cwd": "/workspace/repo",
130
+ "timeout_seconds": 1800
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "name": "line_endings",
136
+ "weight": 0.0671,
137
+ "value": 1.0,
138
+ "children": null,
139
+ "info": {
140
+ "exit_code": 0,
141
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE line_endings 4/4\nPASS line_endings\n",
142
+ "stderr": "",
143
+ "_parameters": {
144
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh line_endings'",
145
+ "cwd": "/workspace/repo",
146
+ "timeout_seconds": 1800
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "name": "comments",
152
+ "weight": 0.0671,
153
+ "value": 1.0,
154
+ "children": null,
155
+ "info": {
156
+ "exit_code": 0,
157
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE comments 4/4\nPASS comments\n",
158
+ "stderr": "",
159
+ "_parameters": {
160
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh comments'",
161
+ "cwd": "/workspace/repo",
162
+ "timeout_seconds": 1800
163
+ }
164
+ }
165
+ },
166
+ {
167
+ "name": "wall",
168
+ "weight": 0.1,
169
+ "value": 1.0,
170
+ "children": null,
171
+ "info": {
172
+ "exit_code": 0,
173
+ "stdout": "PASS source_change: 3 file(s) under core/src/main changed and the entry point exists\nPASS anti_cheat\n[WARNING] Tests run: 2674, Failures: 0, Errors: 0, Skipped: 1\nPASS committed_tests\nPASS wall\n",
174
+ "stderr": "",
175
+ "_parameters": {
176
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh wall'",
177
+ "cwd": "/workspace/repo",
178
+ "timeout_seconds": 3000
179
+ }
180
+ }
181
+ }
182
+ ],
183
+ "status": "graded",
184
+ "patch_sha256": "aa4f27637bbce70ed9a31cf49fe97af43674f5687000e02498b438be96d6e7aa",
185
+ "result": {
186
+ "reward": 1.0,
187
+ "done": true,
188
+ "content": null,
189
+ "info": {},
190
+ "isError": false,
191
+ "subscores": [
192
+ {
193
+ "name": "clean_equals_strict",
194
+ "weight": 0.0417,
195
+ "value": 1.0,
196
+ "children": null,
197
+ "info": {
198
+ "exit_code": 0,
199
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE clean_equals_strict 4/4\nPASS clean_equals_strict\n",
200
+ "stderr": "",
201
+ "_parameters": {
202
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh clean_equals_strict'",
203
+ "cwd": "/workspace/repo",
204
+ "timeout_seconds": 1800
205
+ }
206
+ }
207
+ },
208
+ {
209
+ "name": "simple_bad",
210
+ "weight": 0.0417,
211
+ "value": 1.0,
212
+ "children": null,
213
+ "info": {
214
+ "exit_code": 0,
215
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE simple_bad 4/4\nPASS simple_bad\n",
216
+ "stderr": "",
217
+ "_parameters": {
218
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh simple_bad'",
219
+ "cwd": "/workspace/repo",
220
+ "timeout_seconds": 1800
221
+ }
222
+ }
223
+ },
224
+ {
225
+ "name": "block_extent",
226
+ "weight": 0.1761,
227
+ "value": 1.0,
228
+ "children": null,
229
+ "info": {
230
+ "exit_code": 0,
231
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE block_extent 4/4\nPASS block_extent\n",
232
+ "stderr": "",
233
+ "_parameters": {
234
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh block_extent'",
235
+ "cwd": "/workspace/repo",
236
+ "timeout_seconds": 1800
237
+ }
238
+ }
239
+ },
240
+ {
241
+ "name": "keyword_context",
242
+ "weight": 0.1343,
243
+ "value": 1.0,
244
+ "children": null,
245
+ "info": {
246
+ "exit_code": 0,
247
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE keyword_context 4/4\nPASS keyword_context\n",
248
+ "stderr": "",
249
+ "_parameters": {
250
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh keyword_context'",
251
+ "cwd": "/workspace/repo",
252
+ "timeout_seconds": 1800
253
+ }
254
+ }
255
+ },
256
+ {
257
+ "name": "lexer_tail",
258
+ "weight": 0.0927,
259
+ "value": 1.0,
260
+ "children": null,
261
+ "info": {
262
+ "exit_code": 0,
263
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\n dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\n dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE lexer_tail 12/12\nPASS lexer_tail\n",
264
+ "stderr": "",
265
+ "_parameters": {
266
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh lexer_tail'",
267
+ "cwd": "/workspace/repo",
268
+ "timeout_seconds": 1800
269
+ }
270
+ }
271
+ },
272
+ {
273
+ "name": "error_identity",
274
+ "weight": 0.0927,
275
+ "value": 1.0,
276
+ "children": null,
277
+ "info": {
278
+ "exit_code": 0,
279
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE error_identity 4/4\nPASS error_identity\n",
280
+ "stderr": "",
281
+ "_parameters": {
282
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh error_identity'",
283
+ "cwd": "/workspace/repo",
284
+ "timeout_seconds": 1800
285
+ }
286
+ }
287
+ },
288
+ {
289
+ "name": "mixed",
290
+ "weight": 0.0833,
291
+ "value": 1.0,
292
+ "children": null,
293
+ "info": {
294
+ "exit_code": 0,
295
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE mixed 4/4\nPASS mixed\n",
296
+ "stderr": "",
297
+ "_parameters": {
298
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh mixed'",
299
+ "cwd": "/workspace/repo",
300
+ "timeout_seconds": 1800
301
+ }
302
+ }
303
+ },
304
+ {
305
+ "name": "budget",
306
+ "weight": 0.0833,
307
+ "value": 1.0,
308
+ "children": null,
309
+ "info": {
310
+ "exit_code": 0,
311
+ "stdout": " budget budget.mysql.sql: chars 394579/364824 = 1.082, tokens 74761/67979 = 1.100, ms 11461/949\n dialect mysql: PASS\n budget budget.oracle.sql: chars 1238223/1158732 = 1.069, tokens 87599/81731 = 1.072, ms 149/102\n dialect oracle: PASS\n budget budget.postgresql.sql: chars 346768/329521 = 1.052, tokens 75519/70921 = 1.065, ms 8571/9\n dialect postgresql: PASS\n budget budget.sqlserver.sql: chars 1031964/986601 = 1.046, tokens 71318/67127 = 1.062, ms 13130/1310\n dialect sqlserver: PASS\nSCORE budget 4/4\nPASS budget\n",
312
+ "stderr": "",
313
+ "_parameters": {
314
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh budget'",
315
+ "cwd": "/workspace/repo",
316
+ "timeout_seconds": 1800
317
+ }
318
+ }
319
+ },
320
+ {
321
+ "name": "line_endings",
322
+ "weight": 0.0671,
323
+ "value": 1.0,
324
+ "children": null,
325
+ "info": {
326
+ "exit_code": 0,
327
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE line_endings 4/4\nPASS line_endings\n",
328
+ "stderr": "",
329
+ "_parameters": {
330
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh line_endings'",
331
+ "cwd": "/workspace/repo",
332
+ "timeout_seconds": 1800
333
+ }
334
+ }
335
+ },
336
+ {
337
+ "name": "comments",
338
+ "weight": 0.0671,
339
+ "value": 1.0,
340
+ "children": null,
341
+ "info": {
342
+ "exit_code": 0,
343
+ "stdout": " dialect mysql: PASS\n dialect oracle: PASS\n dialect postgresql: PASS\n dialect sqlserver: PASS\nSCORE comments 4/4\nPASS comments\n",
344
+ "stderr": "",
345
+ "_parameters": {
346
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh comments'",
347
+ "cwd": "/workspace/repo",
348
+ "timeout_seconds": 1800
349
+ }
350
+ }
351
+ },
352
+ {
353
+ "name": "wall",
354
+ "weight": 0.1,
355
+ "value": 1.0,
356
+ "children": null,
357
+ "info": {
358
+ "exit_code": 0,
359
+ "stdout": "PASS source_change: 3 file(s) under core/src/main changed and the entry point exists\nPASS anti_cheat\n[WARNING] Tests run: 2674, Failures: 0, Errors: 0, Skipped: 1\nPASS committed_tests\nPASS wall\n",
360
+ "stderr": "",
361
+ "_parameters": {
362
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh wall'",
363
+ "cwd": "/workspace/repo",
364
+ "timeout_seconds": 3000
365
+ }
366
+ }
367
+ },
368
+ {
369
+ "name": "maintainer_review",
370
+ "weight": 0.02,
371
+ "value": 1.0,
372
+ "children": [
373
+ {
374
+ "name": "The diff adds a public static method named parseStatementsLenient, taking a String and a DbType, to SQLUtils.",
375
+ "weight": 1.0,
376
+ "value": 1.0,
377
+ "children": null,
378
+ "info": {
379
+ "reason": "The diff adds `public static List<SQLStatement> parseStatementsLenient(String sql, DbType dbType)` to SQLUtils.java, which matches the criterion exactly."
380
+ }
381
+ },
382
+ {
383
+ "name": "The diff adds a new public class named SQLUnparsedStatement that extends a class in Druid's SQLStatement hierarchy, such as SQLStatementImpl, so an instance can sit in the same List<SQLStatement> as the parsed statements.",
384
+ "weight": 1.0,
385
+ "value": 1.0,
386
+ "children": null,
387
+ "info": {
388
+ "reason": "The diff adds a new public class SQLUnparsedStatement extending SQLStatementImpl, which is in the SQLStatement hierarchy, and LenientScriptParser adds instances to a List<SQLStatement> alongside parsed statements."
389
+ }
390
+ },
391
+ {
392
+ "name": "The SQLUnparsedStatement the diff adds declares all four accessors the ticket names: getSql, getError, getLine and getColumn.",
393
+ "weight": 1.0,
394
+ "value": 1.0,
395
+ "children": null,
396
+ "info": {
397
+ "reason": "The diff adds SQLUnparsedStatement in core/src/main/java/.../ast/statement/ and declares public getSql(), getError(), getLine() and getColumn() on it."
398
+ }
399
+ },
400
+ {
401
+ "name": "The SQLUnparsedStatement the diff adds overrides toString so that it returns the statement's own source text instead of delegating to Druid's output visitor.",
402
+ "weight": 1.0,
403
+ "value": 1.0,
404
+ "children": null,
405
+ "info": {
406
+ "reason": "SQLUnparsedStatement overrides toString() to return the sql field directly, without delegating to the output visitor."
407
+ }
408
+ },
409
+ {
410
+ "name": "The code the diff adds to perform the lenient read lives in files under core/src/main/java/.",
411
+ "weight": 1.0,
412
+ "value": 1.0,
413
+ "children": null,
414
+ "info": {
415
+ "reason": "The code that performs the lenient read is added under core/src/main/java/: SQLUtils.parseStatementsLenient, the SQLUnparsedStatement class, and the LenientScriptParser that does the scanning all sit in core/src/main/java/com/alibaba/druid/... paths."
416
+ }
417
+ },
418
+ {
419
+ "name": "The diff adds at least one new test file under core/src/test/java/ covering the lenient read.",
420
+ "weight": 1.0,
421
+ "value": 1.0,
422
+ "children": null,
423
+ "info": {
424
+ "reason": "The diff adds a new file core/src/test/java/com/alibaba/druid/bvt/sql/LenientScriptReadTest.java. Its tests call SQLUtils.parseStatementsLenient and cover the lenient read."
425
+ }
426
+ }
427
+ ],
428
+ "info": {
429
+ "model": "anthropic/claude-sonnet-5.5",
430
+ "_parameters": {
431
+ "answer": "diff --git a/core/src/main/java/com/alibaba/druid/sql/SQLUtils.java b/core/src/main/java/com/alibaba/druid/sql/SQLUtils.java\nindex 2ad08d6..1ebbe21 100755\n--- a/core/src/main/java/com/alibaba/druid/sql/SQLUtils.java\n+++ b/core/src/main/java/com/alibaba/druid/sql/SQLUtils.java\n@@ -677,6 +677,14 @@ public class SQLUtils {\n return parseStatements(sql, DbType.of(dbType), features);\n }\n \n+ /**\n+ * Reads a whole script; statements the strict parser cannot read come back as\n+ * {@link com.alibaba.druid.sql.ast.statement.SQLUnparsedStatement} in place, the rest as today.\n+ */\n+ public static List<SQLStatement> parseStatementsLenient(String sql, DbType dbType) {\n+ return new com.alibaba.druid.sql.parser.LenientScriptParser(sql, dbType).parse();\n+ }\n+\n public static List<SQLStatement> parseStatements(String sql, DbType dbType, SQLParserFeature... features) {\n SQLStatementParser parser = SQLParserUtils.createSQLStatementParser(sql, dbType, features);\n List<SQLStatement> stmtList = new ArrayList<SQLStatement>();\ndiff --git a/core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnparsedStatement.java b/core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnparsedStatement.java\nnew file mode 100644\nindex 0000000..336039b\n--- /dev/null\n+++ b/core/src/main/java/com/alibaba/druid/sql/ast/statement/SQLUnparsedStatement.java\n@@ -0,0 +1,69 @@\n+package com.alibaba.druid.sql.ast.statement;\n+\n+import com.alibaba.druid.DbType;\n+import com.alibaba.druid.sql.ast.SQLStatementImpl;\n+import com.alibaba.druid.sql.visitor.SQLASTVisitor;\n+import com.alibaba.druid.sql.visitor.VisitorFeature;\n+\n+/**\n+ * A statement the strict parser could not read, kept as its source text by the lenient script read.\n+ */\n+public class SQLUnparsedStatement extends SQLStatementImpl {\n+ private final String sql;\n+ private final String error;\n+ private final int line;\n+ private final int column;\n+\n+ public SQLUnparsedStatement(DbType dbType, String sql, String error, int line, int column) {\n+ super(dbType);\n+ this.sql = sql;\n+ this.error = error;\n+ this.line = line;\n+ this.column = column;\n+ }\n+\n+ /** The statement's source text, exactly as written, without its delimiter. */\n+ public String getSql() {\n+ return sql;\n+ }\n+\n+ /** The strict parser's message for this text, positions counted from the start of the whole script. */\n+ public String getError() {\n+ return error;\n+ }\n+\n+ public int getLine() {\n+ return line;\n+ }\n+\n+ public int getColumn() {\n+ return column;\n+ }\n+\n+ @Override\n+ protected void accept0(SQLASTVisitor v) {\n+ // nothing to visit\n+ }\n+\n+ @Override\n+ public void output(StringBuilder buf) {\n+ buf.append(sql);\n+ }\n+\n+ @Override\n+ public String toString() {\n+ return sql;\n+ }\n+\n+ @Override\n+ public String toString(VisitorFeature... features) {\n+ return sql;\n+ }\n+\n+ @Override\n+ public SQLUnparsedStatement clone() {\n+ SQLUnparsedStatement x = new SQLUnparsedStatement(dbType, sql, error, line, column);\n+ x.setAfterSemi(afterSemi);\n+ return x;\n+ }\n+}\ndiff --git a/core/src/main/java/com/alibaba/druid/sql/parser/LenientScriptParser.java b/core/src/main/java/com/alibaba/druid/sql/parser/LenientScriptParser.java\nnew file mode 100644\nindex 0000000..9fba816\n--- /dev/null\n+++ b/core/src/main/java/com/alibaba/druid/sql/parser/LenientScriptParser.java\n@@ -0,0 +1,462 @@\n+package com.alibaba.druid.sql.parser;\n+\n+import com.alibaba.druid.DbType;\n+import com.alibaba.druid.sql.ast.SQLStatement;\n+import com.alibaba.druid.sql.ast.statement.SQLUnparsedStatement;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+/**\n+ * Reads a whole script in one lexer pass. Every statement the strict parser reads is returned as today; every\n+ * statement it cannot read is returned as {@link SQLUnparsedStatement} holding its exact source text and the strict\n+ * parser's message for that text, with positions moved to the script. The extent of an unparsed statement is found\n+ * by scanning its tokens with the dialect's block structure (a compound statement is one statement) up to the\n+ * semicolon that ends it at the top level; a statement whose lexer never recovers runs to the end of the input.\n+ */\n+public class LenientScriptParser {\n+ /** the script as handed in */\n+ private final String sql;\n+ /** the text the lexer reads: the parser factory rewrites CRLF to LF, so lexer positions refer to this one */\n+ private final String text;\n+ private final DbType dbType;\n+ private final SQLStatementParser parser;\n+ private final Lexer lexer;\n+\n+ public LenientScriptParser(String sql, DbType dbType) {\n+ this.sql = sql;\n+ this.dbType = dbType == null ? DbType.other : dbType;\n+ this.parser = SQLParserUtils.createSQLStatementParser(sql, this.dbType, new SQLParserFeature[0]);\n+ this.lexer = parser.getLexer();\n+ this.text = lexer.text;\n+ }\n+\n+ /** original offset of a normalized offset; end = true maps the exclusive end of a slice */\n+ private int orig(int idx, boolean end) {\n+ if (text.length() == sql.length()) {\n+ return idx;\n+ }\n+ if (end) {\n+ if (idx <= 0) {\n+ return 0;\n+ }\n+ return orig(idx - 1, false) + 1;\n+ }\n+ // walk both strings: every \"\\r\\n\" of the original is one \"\\n\" of the text\n+ int j = 0;\n+ for (int i = 0; i < idx && j < sql.length(); i++) {\n+ if (sql.charAt(j) == '\\r' && j + 1 < sql.length() && sql.charAt(j + 1) == '\\n' && text.charAt(i) == '\\n') {\n+ j++;\n+ }\n+ j++;\n+ }\n+ if (idx < text.length() && j < sql.length() && sql.charAt(j) == '\\r' && j + 1 < sql.length() && sql.charAt(j + 1) == '\\n' && text.charAt(idx) == '\\n') {\n+ j++;\n+ }\n+ return j;\n+ }\n+\n+ public List<SQLStatement> parse() {\n+ List<SQLStatement> out = new ArrayList<SQLStatement>();\n+ while (true) {\n+ // delimiters and comment tokens between statements, handled as the dialect's own loop handles them: the\n+ // base loop hands the comments after a delimiter to the previous statement, Oracle's loop leaves them for\n+ // the next one\n+ try {\n+ while (true) {\n+ while (lexer.token() == Token.MULTI_LINE_COMMENT || lexer.token() == Token.LINE_COMMENT) {\n+ lexer.nextToken();\n+ }\n+ if (lexer.token() != Token.SEMI) {\n+ break;\n+ }\n+ char ch = lexer.ch;\n+ lexer.nextToken();\n+ if (!out.isEmpty()) {\n+ SQLStatement last = out.get(out.size() - 1);\n+ last.setAfterSemi(true);\n+ if (!isOracle() && lexer.isKeepComments()) {\n+ if (ch == '\\n' && lexer.getComments() != null && !lexer.getComments().isEmpty()\n+ && !(last instanceof com.alibaba.druid.sql.ast.statement.SQLSetStatement)) {\n+ lexer.getComments().add(0, new String(\"\\n\"));\n+ }\n+ last.addAfterComment(lexer.readAndResetComments());\n+ }\n+ }\n+ }\n+ } catch (RuntimeException e) {\n+ // the lexer failed on the first token after a delimiter: that statement runs to the end of the input\n+ addUnparsed(out, firstTokenStart(lexer.mark), text.length());\n+ return out;\n+ }\n+ if (lexer.token() == Token.EOF) {\n+ break;\n+ }\n+ Lexer.SavePoint sp = lexer.mark();\n+ int before = out.size();\n+ boolean ok;\n+ try {\n+ // one statement through the dialect's own loop, which also consumes delimiters and comments as today\n+ parser.parseStatementList(out, before + 1, null);\n+ // what the strict loop accepted as one statement is one statement; only delimiters and comments\n+ // followed by the end of the input add nothing\n+ ok = out.size() == before + 1 || (out.size() == before && lexer.token() == Token.EOF);\n+ } catch (RuntimeException e) {\n+ ok = false;\n+ }\n+ if (ok) {\n+ if (out.size() == before) {\n+ break;\n+ }\n+ continue;\n+ }\n+ while (out.size() > before) {\n+ out.remove(out.size() - 1);\n+ }\n+ lexer.reset(sp);\n+ int[] se = skipStatement();\n+ addUnparsed(out, se[0], se[1]);\n+ if (se[1] >= text.length()) {\n+ return out;\n+ }\n+ // the lexer stands on the delimiter; the next round's strict loop consumes it as today\n+ }\n+ return out;\n+ }\n+\n+ /**\n+ * The lexer's startPos for a token that follows kept comments points at the first comment; the statement's text\n+ * begins at its first token, so step over whitespace and comments from there (offsets in the lexer's text).\n+ */\n+ private int firstTokenStart(int from) {\n+ int i = from < 0 ? 0 : from;\n+ int n = text.length();\n+ while (i < n) {\n+ char c = text.charAt(i);\n+ if (Character.isWhitespace(c)) {\n+ i++;\n+ } else if (c == '-' && i + 1 < n && text.charAt(i + 1) == '-') {\n+ while (i < n && text.charAt(i) != '\\n') {\n+ i++;\n+ }\n+ } else if (c == '#' && isMySql()) {\n+ while (i < n && text.charAt(i) != '\\n') {\n+ i++;\n+ }\n+ } else if (c == '/' && i + 1 < n && text.charAt(i + 1) == '*') {\n+ int close = text.indexOf(\"*/\", i + 2);\n+ if (close < 0) {\n+ return i;\n+ }\n+ i = close + 2;\n+ } else {\n+ break;\n+ }\n+ }\n+ return i;\n+ }\n+\n+ /** start and end are offsets in the lexer's text; the item keeps the original characters */\n+ private void addUnparsed(List<SQLStatement> out, int start, int end) {\n+ if (start < 0) {\n+ start = 0;\n+ }\n+ if (end > text.length()) {\n+ end = text.length();\n+ }\n+ if (end < start) {\n+ end = start;\n+ }\n+ int oStart = orig(start, false);\n+ int oEnd = end >= text.length() ? sql.length() : orig(end, true);\n+ if (oEnd < oStart) {\n+ oEnd = oStart;\n+ }\n+ start = oStart;\n+ String item = sql.substring(oStart, oEnd);\n+ String msg = strictMessage(item);\n+ int line = 1, col = 1;\n+ for (int i = 0; i < start; i++) {\n+ if (sql.charAt(i) == '\\n') {\n+ line++;\n+ col = 1;\n+ } else {\n+ col++;\n+ }\n+ }\n+ String moved = move(msg, start, line, col);\n+ int[] lc = lineCol(moved);\n+ SQLUnparsedStatement u = new SQLUnparsedStatement(dbType, item, moved, lc[0], lc[1]);\n+ out.add(u);\n+ }\n+\n+ /** The strict parser's message for the text on its own. */\n+ private String strictMessage(String text) {\n+ try {\n+ SQLStatementParser p = SQLParserUtils.createSQLStatementParser(text, dbType, new SQLParserFeature[0]);\n+ List<SQLStatement> l = new ArrayList<SQLStatement>();\n+ p.parseStatementList(l, -1, null);\n+ if (p.getLexer().token() != Token.EOF) {\n+ return \"syntax error : \" + p.getLexer().info();\n+ }\n+ return \"syntax error\";\n+ } catch (RuntimeException e) {\n+ return e.getMessage() == null ? e.toString() : e.getMessage();\n+ }\n+ }\n+\n+ // ------------------------------------------------------------------ extent\n+\n+ private boolean isMySql() {\n+ return dbType == DbType.mysql || dbType == DbType.mariadb || dbType == DbType.tidb || dbType == DbType.oceanbase\n+ || dbType == DbType.polardbx || dbType == DbType.drds || dbType == DbType.ads;\n+ }\n+\n+ private boolean isOracle() {\n+ return dbType == DbType.oracle || dbType == DbType.oceanbase_oracle || dbType == DbType.polardb2;\n+ }\n+\n+ private boolean isSqlServer() {\n+ return dbType == DbType.sqlserver || dbType == DbType.jtds;\n+ }\n+\n+ private boolean isPg() {\n+ return dbType == DbType.postgresql || dbType == DbType.edb || dbType == DbType.greenplum || dbType == DbType.gaussdb\n+ || dbType == DbType.hologres || dbType == DbType.redshift;\n+ }\n+\n+ /**\n+ * From the first token of a statement, scan to the delimiter ending it as a top level statement. Returns the end\n+ * offset (exclusive) of its last token and leaves the lexer on that delimiter (or EOF). When the lexer cannot read\n+ * on, the statement runs to the end of the input.\n+ */\n+ private int[] skipStatement() {\n+ // leading delimiters and comment tokens belong to no statement\n+ try {\n+ while (lexer.token() == Token.SEMI || lexer.token() == Token.MULTI_LINE_COMMENT || lexer.token() == Token.LINE_COMMENT) {\n+ lexer.nextToken();\n+ }\n+ } catch (RuntimeException e) {\n+ // the lexer failed on the first token: that statement runs to the end of the input\n+ return new int[] {firstTokenStart(lexer.mark), text.length()};\n+ }\n+ int start = firstTokenStart(lexer.startPos);\n+ if (lexer.token() == Token.EOF) {\n+ return new int[] {start, start};\n+ }\n+ int depth = 0;\n+ // per depth: whether the next BEGIN at this level is the body of an already opened block (DECLARE, IS/AS)\n+ boolean[] absorb = new boolean[256];\n+ int end = lexer.pos();\n+ boolean stmtStart = true;\n+ boolean afterEnd = false;\n+ boolean routinePending = false;\n+ Token prev = null;\n+ while (true) {\n+ Token t = lexer.token();\n+ if (t == Token.EOF) {\n+ return new int[] {start, end};\n+ }\n+ if (t == Token.ERROR) {\n+ // a literal, quoted name or comment the lexer could not close runs to the end of the input;\n+ // any other unreadable character is just a token of the statement\n+ char c = lexer.startPos < text.length() ? text.charAt(lexer.startPos) : ' ';\n+ if (lexer.pos() >= text.length() || c == '\\'' || c == '\"' || c == '`' || c == '[' || c == '/') {\n+ return new int[] {start, text.length()};\n+ }\n+ }\n+ if (t == Token.SEMI && depth == 0) {\n+ if (isSqlServer()) {\n+ // IF cond stmt; ELSE stmt; is one statement\n+ Lexer.SavePoint sp = lexer.mark();\n+ try {\n+ lexer.nextToken();\n+ } catch (RuntimeException e) {\n+ return new int[] {start, text.length()};\n+ }\n+ if (lexer.token() == Token.ELSE) {\n+ prev = Token.SEMI;\n+ stmtStart = true;\n+ // fall through to treat ELSE as an ordinary token\n+ } else {\n+ lexer.reset(sp);\n+ return new int[] {start, end};\n+ }\n+ } else {\n+ return new int[] {start, end};\n+ }\n+ }\n+ t = lexer.token();\n+ boolean startHere = stmtStart;\n+ boolean opener = false;\n+ boolean closerKeyword = false;\n+ if (afterEnd) {\n+ if (t == Token.IF || t == Token.LOOP || t == Token.CASE || t == Token.WHILE || t == Token.REPEAT\n+ || lexer.identifierEquals(\"TRY\") || lexer.identifierEquals(\"CATCH\")) {\n+ closerKeyword = true;\n+ }\n+ afterEnd = false;\n+ }\n+ if (!closerKeyword) {\n+ if (t == Token.BEGIN) {\n+ opener = beginOpensBlock();\n+ if (opener && depth > 0 && absorb[depth]) {\n+ opener = false;\n+ absorb[depth] = false;\n+ }\n+ } else if (t == Token.CASE || t == Token.LOOP) {\n+ opener = true;\n+ } else if (t == Token.IF) {\n+ opener = startHere && !isSqlServer();\n+ } else if (t == Token.WHILE || t == Token.REPEAT) {\n+ opener = startHere && isMySql();\n+ } else if (t == Token.DECLARE) {\n+ if (startHere && (isOracle() || isPg())) {\n+ opener = true;\n+ if (depth + 1 < absorb.length) {\n+ absorb[depth + 1] = true;\n+ }\n+ }\n+ } else if (t == Token.PROCEDURE || t == Token.FUNCTION || lexer.identifierEquals(\"PACKAGE\")) {\n+ if (isOracle() && (startHere || prev == Token.CREATE || prev == Token.REPLACE)) {\n+ routinePending = true;\n+ }\n+ } else if ((t == Token.IS || t == Token.AS) && routinePending) {\n+ routinePending = false;\n+ opener = true;\n+ if (depth + 1 < absorb.length) {\n+ absorb[depth + 1] = true;\n+ }\n+ } else if (t == Token.END) {\n+ if (depth > 0) {\n+ absorb[depth] = false;\n+ depth--;\n+ }\n+ afterEnd = true;\n+ }\n+ }\n+ if (opener) {\n+ depth++;\n+ if (t == Token.BEGIN || t == Token.LOOP || t == Token.CASE || t == Token.IF || t == Token.WHILE || t == Token.REPEAT) {\n+ // a fresh block: nothing pending to absorb at this level unless set above\n+ if (t != Token.BEGIN && depth < absorb.length && !(t == Token.DECLARE)) {\n+ absorb[depth] = absorb[depth] && false;\n+ }\n+ }\n+ }\n+ stmtStart = t == Token.SEMI || t == Token.BEGIN || t == Token.THEN || t == Token.ELSE || t == Token.DO\n+ || t == Token.LOOP || t == Token.EXCEPTION || t == Token.ELSEIF\n+ || (t == Token.VARIANT && lexer.stringVal() != null && lexer.stringVal().startsWith(\"$\"))\n+ || (t == Token.VARIANT && \":\".equals(lexer.stringVal()))\n+ || (t == Token.IS || t == Token.AS) && opener\n+ || t == Token.GTGT;\n+ prev = t;\n+ end = lexer.pos();\n+ try {\n+ lexer.nextToken();\n+ } catch (RuntimeException e) {\n+ return new int[] {start, text.length()};\n+ }\n+ }\n+ }\n+\n+ /** BEGIN opens a block unless the dialect reads it as a transaction command. Consumes nothing (peeks and resets). */\n+ private boolean beginOpensBlock() {\n+ if (isOracle()) {\n+ return true;\n+ }\n+ Lexer.SavePoint sp = lexer.mark();\n+ boolean block;\n+ try {\n+ lexer.nextToken();\n+ Token n = lexer.token();\n+ if (isMySql()) {\n+ block = !(n == Token.SEMI || n == Token.EOF || n == Token.IDENTIFIER);\n+ } else if (isSqlServer()) {\n+ block = !(lexer.identifierEquals(\"TRANSACTION\") || lexer.identifierEquals(\"TRAN\") || lexer.identifierEquals(\"DISTRIBUTED\"));\n+ } else {\n+ block = !(n == Token.SEMI || n == Token.EOF || lexer.identifierEquals(\"WORK\") || lexer.identifierEquals(\"TRANSACTION\")\n+ || lexer.identifierEquals(\"ISOLATION\") || lexer.identifierEquals(\"READ\") || lexer.identifierEquals(\"DEFERRABLE\")\n+ || lexer.identifierEquals(\"NOT\"));\n+ }\n+ } catch (RuntimeException e) {\n+ block = true;\n+ }\n+ lexer.reset(sp);\n+ return block;\n+ }\n+\n+ // ------------------------------------------------------------------ positions\n+\n+ /** Rewrites every \"pos N, line L, column C\" in a message from the statement's frame to the script's. */\n+ static String move(String m, int start, int sLine, int sCol) {\n+ if (m == null) {\n+ return null;\n+ }\n+ StringBuilder sb = new StringBuilder();\n+ int i = 0;\n+ while (true) {\n+ int p = m.indexOf(\"pos \", i);\n+ if (p < 0) {\n+ sb.append(m.substring(i));\n+ break;\n+ }\n+ int pe = p + 4;\n+ while (pe < m.length() && Character.isDigit(m.charAt(pe))) {\n+ pe++;\n+ }\n+ if (pe == p + 4 || !m.startsWith(\", line \", pe)) {\n+ sb.append(m, i, pe);\n+ i = pe;\n+ continue;\n+ }\n+ int le = pe + 7;\n+ while (le < m.length() && Character.isDigit(m.charAt(le))) {\n+ le++;\n+ }\n+ if (le == pe + 7 || !m.startsWith(\", column \", le)) {\n+ sb.append(m, i, le);\n+ i = le;\n+ continue;\n+ }\n+ int ce = le + 9;\n+ while (ce < m.length() && Character.isDigit(m.charAt(ce))) {\n+ ce++;\n+ }\n+ if (ce == le + 9) {\n+ sb.append(m, i, ce);\n+ i = ce;\n+ continue;\n+ }\n+ int pos = Integer.parseInt(m.substring(p + 4, pe));\n+ int line = Integer.parseInt(m.substring(pe + 7, le));\n+ int col = Integer.parseInt(m.substring(le + 9, ce));\n+ sb.append(m, i, p).append(\"pos \").append(pos + start).append(\", line \").append(line + sLine - 1)\n+ .append(\", column \").append(line == 1 ? col + sCol - 1 : col);\n+ i = ce;\n+ }\n+ return sb.toString();\n+ }\n+\n+ static int[] lineCol(String m) {\n+ if (m == null) {\n+ return new int[] {-1, -1};\n+ }\n+ int li = m.indexOf(\", line \");\n+ if (li < 0) {\n+ return new int[] {-1, -1};\n+ }\n+ int l = num(m, li + 7);\n+ int ci = m.indexOf(\", column \", li);\n+ int c = ci < 0 ? -1 : num(m, ci + 9);\n+ return new int[] {l, c};\n+ }\n+\n+ static int num(String m, int j) {\n+ int k = j;\n+ while (k < m.length() && Character.isDigit(m.charAt(k))) {\n+ k++;\n+ }\n+ return k == j ? -1 : Integer.parseInt(m.substring(j, k));\n+ }\n+}\ndiff --git a/core/src/test/java/com/alibaba/druid/bvt/sql/LenientScriptReadTest.java b/core/src/test/java/com/alibaba/druid/bvt/sql/LenientScriptReadTest.java\nnew file mode 100644\nindex 0000000..9bdc701\n--- /dev/null\n+++ b/core/src/test/java/com/alibaba/druid/bvt/sql/LenientScriptReadTest.java\n@@ -0,0 +1,227 @@\n+package com.alibaba.druid.bvt.sql;\n+\n+import com.alibaba.druid.DbType;\n+import com.alibaba.druid.sql.SQLUtils;\n+import com.alibaba.druid.sql.ast.SQLStatement;\n+import com.alibaba.druid.sql.ast.statement.SQLUnparsedStatement;\n+import org.junit.jupiter.api.Test;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.regex.Matcher;\n+import java.util.regex.Pattern;\n+\n+import static org.junit.jupiter.api.Assertions.assertEquals;\n+import static org.junit.jupiter.api.Assertions.assertFalse;\n+import static org.junit.jupiter.api.Assertions.assertTrue;\n+import static org.junit.jupiter.api.Assertions.fail;\n+\n+/**\n+ * The lenient whole-script read: SQLUtils.parseStatementsLenient returns what the strict call reads as today and the\n+ * rest as SQLUnparsedStatement carrying the statement's exact text and the strict message for that text on its own,\n+ * with pos, line and column counted from the script start.\n+ */\n+public class LenientScriptReadTest {\n+ private static final Pattern POS = Pattern.compile(\"pos (\\\\d+), line (\\\\d+), column (\\\\d+)\");\n+\n+ private static List<SQLUnparsedStatement> unparsedOf(List<SQLStatement> list) {\n+ List<SQLUnparsedStatement> out = new ArrayList<SQLUnparsedStatement>();\n+ for (SQLStatement s : list) {\n+ if (s instanceof SQLUnparsedStatement) {\n+ out.add((SQLUnparsedStatement) s);\n+ }\n+ }\n+ return out;\n+ }\n+\n+ /** the message the strict call gives for a text on its own */\n+ private static String strictMessage(String sql, DbType dbType) {\n+ try {\n+ SQLUtils.parseStatements(sql, dbType);\n+ } catch (Exception e) {\n+ return e.getMessage();\n+ }\n+ fail(\"the text should not parse on its own: \" + sql);\n+ return null;\n+ }\n+\n+ /** the same message with pos, line and column counted from the script start, for a statement starting at (offset, line, column) */\n+ private static String counted(String standalone, int offset, int line, int column) {\n+ Matcher m = POS.matcher(standalone);\n+ StringBuffer sb = new StringBuffer();\n+ while (m.find()) {\n+ int p = Integer.parseInt(m.group(1)), l = Integer.parseInt(m.group(2)), c = Integer.parseInt(m.group(3));\n+ m.appendReplacement(sb, \"pos \" + (p + offset) + \", line \" + (l + line - 1) + \", column \" + (l == 1 ? c + column - 1 : c));\n+ }\n+ m.appendTail(sb);\n+ return sb.toString();\n+ }\n+\n+ private static int lineOf(String error) {\n+ Matcher m = POS.matcher(error);\n+ assertTrue(m.find(), error);\n+ return Integer.parseInt(m.group(2));\n+ }\n+\n+ private static int columnOf(String error) {\n+ Matcher m = POS.matcher(error);\n+ assertTrue(m.find(), error);\n+ return Integer.parseInt(m.group(3));\n+ }\n+\n+ @Test\n+ public void allGoodComesBackAsStrict() {\n+ String sql = \"select id from t where x = 1; insert into t (a) values (2); update t set a = 3;\";\n+ List<SQLStatement> strict = SQLUtils.parseStatements(sql, DbType.mysql);\n+ List<SQLStatement> lenient = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(strict.size(), lenient.size());\n+ for (int i = 0; i < strict.size(); ++i) {\n+ assertEquals(strict.get(i).toString(), lenient.get(i).toString());\n+ }\n+ assertTrue(unparsedOf(lenient).isEmpty());\n+ }\n+\n+ @Test\n+ public void badSimpleStatementBetweenGoodOnes() {\n+ String bad = \"select a from where a = 1\";\n+ String sql = \"select 1; \" + bad + \"; select 3;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(3, list.size());\n+ assertFalse(list.get(0) instanceof SQLUnparsedStatement);\n+ assertFalse(list.get(2) instanceof SQLUnparsedStatement);\n+\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(1);\n+ assertEquals(bad, u.getSql());\n+ assertEquals(bad, u.toString());\n+ String standalone = strictMessage(bad, DbType.mysql);\n+ assertEquals(counted(standalone, 10, 1, 11), u.getError());\n+ assertEquals(lineOf(u.getError()), u.getLine());\n+ assertEquals(columnOf(u.getError()), u.getColumn());\n+ }\n+\n+ @Test\n+ public void errorLineCountedFromScriptStart() {\n+ String sql = \"select 1;\\nselect * from t where a ==== 1;\\nselect 3;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(3, list.size());\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(1);\n+ assertEquals(\"select * from t where a ==== 1\", u.getSql());\n+ assertEquals(\"ERROR. pos 38, line 2, column 27, token ==\", u.getError());\n+ assertEquals(2, u.getLine());\n+ assertEquals(27, u.getColumn());\n+ }\n+\n+ @Test\n+ public void whatFollowsParsesAsTheScriptWithoutIt() {\n+ String script = \"select 1; nonsense here; select 2 from t; create table x (id bigint);\";\n+ String without = \"select 1; select 2 from t; create table x (id bigint);\";\n+ List<SQLStatement> lenient = SQLUtils.parseStatementsLenient(script, DbType.mysql);\n+ List<SQLStatement> strict = SQLUtils.parseStatements(without, DbType.mysql);\n+ assertEquals(4, lenient.size());\n+ assertTrue(lenient.get(1) instanceof SQLUnparsedStatement);\n+ assertEquals(strict.get(0).toString(), lenient.get(0).toString());\n+ assertEquals(strict.get(1).toString(), lenient.get(2).toString());\n+ assertEquals(strict.get(2).toString(), lenient.get(3).toString());\n+ }\n+\n+ @Test\n+ public void compoundStatementIsOneStatement() {\n+ String sql = \"create procedure p() begin if x > 0 then begin select bad from; end; end if; end; select 7;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(2, list.size());\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(0);\n+ assertEquals(\"create procedure p() begin if x > 0 then begin select bad from; end; end if; end\", u.getSql());\n+ assertFalse(list.get(1) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void compoundLoopsAreOneStatement() {\n+ String sql = \"create procedure p() begin while i < 10 do set i = i + + ; end while; end; select 7;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(2, list.size());\n+ assertEquals(\"create procedure p() begin while i < 10 do set i = i + + ; end while; end\",\n+ ((SQLUnparsedStatement) list.get(0)).getSql());\n+ assertFalse(list.get(1) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void oracleDeclareSectionBelongsToTheBlock() {\n+ String sql = \"begin null; end;\\ndeclare x number; begin x := ; end;\\nselect 1 from dual;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.oracle);\n+ assertEquals(3, list.size());\n+ assertFalse(list.get(0) instanceof SQLUnparsedStatement);\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(1);\n+ assertEquals(\"declare x number; begin x := ; end\", u.getSql());\n+ assertEquals(2, u.getLine());\n+ assertFalse(list.get(2) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void sqlServerIfElseBranchesAreOneStatement() {\n+ String sql = \"if 1 = 1 select bad from; else select 2;\\nselect 3;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.sqlserver);\n+ assertEquals(2, list.size());\n+ assertEquals(\"if 1 = 1 select bad from; else select 2\", ((SQLUnparsedStatement) list.get(0)).getSql());\n+ assertFalse(list.get(1) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void keywordsAsNamesFunctionsModifiersAndTransactionsOpenNothing() {\n+ String sql = \"begin; select 1; commit; select if(a, 1, 2) from t; select `end` from t; drop table if exists t2;\"\n+ + \" delete from where a = 1; select 4;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ List<SQLUnparsedStatement> bad = unparsedOf(list);\n+ assertEquals(1, bad.size());\n+ assertEquals(\"delete from where a = 1\", bad.get(0).getSql());\n+ assertEquals(8, list.size());\n+ assertFalse(list.get(7) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void unclosedStringRunsToTheEndOfTheInput() {\n+ String tail = \"select 'abc; select 3;\";\n+ String sql = \"select 1; \" + tail;\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(2, list.size());\n+ assertFalse(list.get(0) instanceof SQLUnparsedStatement);\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(1);\n+ assertEquals(tail, u.getSql());\n+ assertEquals(counted(strictMessage(tail, DbType.mysql), 10, 1, 11), u.getError());\n+ }\n+\n+ @Test\n+ public void textIsExactUnderCrlf() {\n+ String bad = \"select a from where a = 1\";\n+ String sql = \"select 1;\\r\\n\" + bad + \";\\r\\nselect 3;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(3, list.size());\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(1);\n+ assertEquals(bad, u.getSql());\n+ assertEquals(2, u.getLine());\n+ assertEquals(counted(strictMessage(bad, DbType.mysql), 11, 2, 1), u.getError());\n+ assertFalse(list.get(2) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void commentAheadOfABadStatementIsNotPartOfItsText() {\n+ String bad = \"select a from where a = 1\";\n+ String sql = \"select 1;\\n-- note\\n\" + bad + \";\\n/* block */ select 3;\";\n+ List<SQLStatement> list = SQLUtils.parseStatementsLenient(sql, DbType.mysql);\n+ assertEquals(3, list.size());\n+ SQLUnparsedStatement u = (SQLUnparsedStatement) list.get(1);\n+ assertEquals(bad, u.getSql());\n+ assertEquals(3, u.getLine());\n+ assertEquals(counted(strictMessage(bad, DbType.mysql), 18, 3, 1), u.getError());\n+ assertFalse(list.get(2) instanceof SQLUnparsedStatement);\n+ }\n+\n+ @Test\n+ public void strictEntryPointsUnchanged() {\n+ try {\n+ SQLUtils.parseStatements(\"select 1; select a from where a = 1; select 3;\", DbType.mysql);\n+ fail(\"the strict call must still fail on a bad statement\");\n+ } catch (Exception e) {\n+ assertTrue(e.getMessage().contains(\"pos \"), e.getMessage());\n+ }\n+ }\n+}\n",
432
+ "criteria": [
433
+ "The diff adds a public static method named parseStatementsLenient, taking a String and a DbType, to SQLUtils.",
434
+ "The diff adds a new public class named SQLUnparsedStatement that extends a class in Druid's SQLStatement hierarchy, such as SQLStatementImpl, so an instance can sit in the same List<SQLStatement> as the parsed statements.",
435
+ "The SQLUnparsedStatement the diff adds declares all four accessors the ticket names: getSql, getError, getLine and getColumn.",
436
+ "The SQLUnparsedStatement the diff adds overrides toString so that it returns the statement's own source text instead of delegating to Druid's output visitor.",
437
+ "The code the diff adds to perform the lenient read lives in files under core/src/main/java/.",
438
+ "The diff adds at least one new test file under core/src/test/java/ covering the lenient read."
439
+ ],
440
+ "question": "You are an Alibaba Druid maintainer reviewing a pull request against the core module. The ticket: a bad statement loses a whole SQL script at the first error; add a lenient whole-script read, SQLUtils.parseStatementsLenient(String sql, DbType dbType), that returns the statements the strict parser reads as today and the rest as SQLUnparsedStatement, a new public statement class whose getSql is the statement's exact source text, whose getError is the strict parser's message for that text with positions counted from the script start, whose getLine and getColumn are those two numbers, and whose toString returns the sql. The ticket also says to work in the core module and to put new tests in new files. Below is the pull request's diff. Judge ONLY what the diff shows, one criterion at a time, and mark a criterion MET only when the diff plainly shows the named symbol or path. Each criterion is a single fact: do not withhold it because of anything another criterion asks. The ticket does not prescribe an implementation, so never mark a criterion unmet because you would have written the code differently: a design that differs from the one you would choose still meets a criterion when the named symbol or path is there. Every criterion asks for something the diff must ADD, so a diff that is empty, or that says the checkout is untouched, or that adds no lenient read, meets none of them.",
441
+ "model": "anthropic/claude-sonnet-5.5"
442
+ }
443
+ }
444
+ }
445
+ ]
446
+ },
447
+ "judge": {
448
+ "model": "anthropic/claude-sonnet-5.5",
449
+ "endpoint": "openrouter.ai"
450
+ }
451
+ }
harbor/evidence/druid/summary.json ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "druid",
3
+ "build": {
4
+ "ok": true,
5
+ "image_id": "sha256:5f1b83c229945b6e5b8a1967c326e74451ba8dcc61fac88bb8afb7c5f6f3631d",
6
+ "ladder": {},
7
+ "source_digest": "4fe8bcbd96e6d755",
8
+ "source": "edited",
9
+ "seconds": 435
10
+ },
11
+ "task_id": "druid_lenient_script",
12
+ "image": "ec-swe-druid:source-v9",
13
+ "measure": {
14
+ "ok": true,
15
+ "hud": "0.6.17",
16
+ "path": "/opt/java/openjdk/bin:/usr/share/maven/bin:/usr/bin:/bin",
17
+ "handed": [],
18
+ "repo_dir": "/workspace/repo",
19
+ "python_usr_local": false,
20
+ "seconds": 2
21
+ },
22
+ "qualified": false,
23
+ "parity": {
24
+ "ok": true,
25
+ "reward": 1.0,
26
+ "criteria": 12,
27
+ "unmet": [],
28
+ "info": null,
29
+ "seconds": 339
30
+ },
31
+ "prepare": {
32
+ "ok": true,
33
+ "bundle": "druid-r1",
34
+ "converter": "b8bba68767da888f",
35
+ "judge_runner": "4bd8d8cb9f9a3683",
36
+ "pinned_files": 153,
37
+ "criteria": 12,
38
+ "seconds": 1
39
+ },
40
+ "controls": {
41
+ "ok": false,
42
+ "checks": {
43
+ "noop_is_zero": true,
44
+ "reference_is_one": true,
45
+ "reference_equals_native": true,
46
+ "agent_is_isolated": true
47
+ },
48
+ "results": {
49
+ "noop": {
50
+ "run": "druid-r5-control-noop-1793717364",
51
+ "reward": 0.0,
52
+ "stop": "completed",
53
+ "error": null,
54
+ "seconds": 226,
55
+ "probe": false,
56
+ "status": "graded",
57
+ "verifier_error": null,
58
+ "exit_codes": [
59
+ 1
60
+ ],
61
+ "attempts": 1
62
+ },
63
+ "reference": {
64
+ "run": "druid-r5-control-reference-1793717590",
65
+ "reward": 1.0,
66
+ "stop": "completed",
67
+ "error": null,
68
+ "seconds": 453,
69
+ "probe": true,
70
+ "status": "graded",
71
+ "verifier_error": null,
72
+ "exit_codes": [
73
+ 0
74
+ ],
75
+ "subscores": {
76
+ "clean_equals_strict": [
77
+ 1.0,
78
+ 0.0417
79
+ ],
80
+ "simple_bad": [
81
+ 1.0,
82
+ 0.0417
83
+ ],
84
+ "block_extent": [
85
+ 1.0,
86
+ 0.1761
87
+ ],
88
+ "keyword_context": [
89
+ 1.0,
90
+ 0.1343
91
+ ],
92
+ "lexer_tail": [
93
+ 1.0,
94
+ 0.0927
95
+ ],
96
+ "error_identity": [
97
+ 1.0,
98
+ 0.0927
99
+ ],
100
+ "mixed": [
101
+ 1.0,
102
+ 0.0833
103
+ ],
104
+ "budget": [
105
+ 1.0,
106
+ 0.0833
107
+ ],
108
+ "line_endings": [
109
+ 1.0,
110
+ 0.0671
111
+ ],
112
+ "comments": [
113
+ 1.0,
114
+ 0.0671
115
+ ],
116
+ "wall": [
117
+ 1.0,
118
+ 0.1
119
+ ],
120
+ "maintainer_review": [
121
+ 1.0,
122
+ 0.02
123
+ ]
124
+ },
125
+ "attempts": 1
126
+ }
127
+ },
128
+ "bundle": "druid-r1",
129
+ "complete": false,
130
+ "seconds": 679
131
+ },
132
+ "leak": {
133
+ "scan_finished": true,
134
+ "hits_outside_checkout": [],
135
+ "other_files_holding_only_upstream_lines": 0,
136
+ "library_files_sharing_a_line": 0,
137
+ "most_lines_shared_by_one_library_file": 0,
138
+ "private_paths_absent": true,
139
+ "public_lines_shared_with_patch_and_graders": [
140
+ 10,
141
+ 0
142
+ ],
143
+ "private_lines_only_in_agent_checkout": [
144
+ 0,
145
+ 0
146
+ ],
147
+ "ok": true,
148
+ "seconds": 1644
149
+ }
150
+ }
harbor/evidence/hooks/agent-image-scan.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ needles: 288
2
+ 2 matching line(s): /workspace/repo/packages/hooks/src/useRequest/__tests__/useCachePlugin.spec.tsx
3
+ 2 matching line(s): /workspace/repo/packages/hooks/src/useRequest/__tests__/useRefreshOnWindowFocusPlugin.spec.ts
4
+ scan finished
5
+ absent: /hud
6
+ absent: /app
7
+ absent: /tests
8
+ present: /opt/task-tools/baseline.git
9
+ reference-patch lines in the agent's tracked files: 2, of which the pristine checkout lacks: 0
10
+ grader lines in the agent's tracked files: 0, of which the pristine checkout lacks: 0
11
+ reference-patch lines in total: 131, grader lines in total: 144
12
+ private lines in 0 other files outside the checkout: 0, of which upstream lacks: 0
13
+ --- private lines only the agent's checkout holds (expect none)
14
+ --- the agent's checkout: uncommitted changes (expect none), then its history
15
+ ceab0dd baseline
harbor/evidence/hooks/native-reference.json ADDED
@@ -0,0 +1,446 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "reward": 1.0,
3
+ "done": true,
4
+ "content": null,
5
+ "info": {},
6
+ "isError": false,
7
+ "subscores": [
8
+ {
9
+ "name": "skipped_page_lands_last_saved",
10
+ "weight": 0.08,
11
+ "value": 1.0,
12
+ "children": null,
13
+ "info": {
14
+ "exit_code": 0,
15
+ "stdout": "SCORE 1/1\n",
16
+ "stderr": "",
17
+ "_parameters": {
18
+ "command": "bash /hud/grader/run_grading.sh skipped_page_lands_last_saved",
19
+ "cwd": "/workspace/repo",
20
+ "timeout_seconds": 900
21
+ }
22
+ }
23
+ },
24
+ {
25
+ "name": "answers_out_of_order",
26
+ "weight": 0.08,
27
+ "value": 1.0,
28
+ "children": null,
29
+ "info": {
30
+ "exit_code": 0,
31
+ "stdout": "SCORE 1/1\n",
32
+ "stderr": "",
33
+ "_parameters": {
34
+ "command": "bash /hud/grader/run_grading.sh answers_out_of_order",
35
+ "cwd": "/workspace/repo",
36
+ "timeout_seconds": 900
37
+ }
38
+ }
39
+ },
40
+ {
41
+ "name": "late_page_kept_for_reader",
42
+ "weight": 0.08,
43
+ "value": 1.0,
44
+ "children": null,
45
+ "info": {
46
+ "exit_code": 0,
47
+ "stdout": "SCORE 1/1\n",
48
+ "stderr": "",
49
+ "_parameters": {
50
+ "command": "bash /hud/grader/run_grading.sh late_page_kept_for_reader",
51
+ "cwd": "/workspace/repo",
52
+ "timeout_seconds": 900
53
+ }
54
+ }
55
+ },
56
+ {
57
+ "name": "skipped_page_saved",
58
+ "weight": 0.03,
59
+ "value": 1.0,
60
+ "children": null,
61
+ "info": {
62
+ "exit_code": 0,
63
+ "stdout": "SCORE 1/1\n",
64
+ "stderr": "",
65
+ "_parameters": {
66
+ "command": "bash /hud/grader/run_grading.sh skipped_page_saved",
67
+ "cwd": "/workspace/repo",
68
+ "timeout_seconds": 900
69
+ }
70
+ }
71
+ },
72
+ {
73
+ "name": "late_shown_page_saved",
74
+ "weight": 0.01,
75
+ "value": 1.0,
76
+ "children": null,
77
+ "info": {
78
+ "exit_code": 0,
79
+ "stdout": "SCORE 1/1\n",
80
+ "stderr": "",
81
+ "_parameters": {
82
+ "command": "bash /hud/grader/run_grading.sh late_shown_page_saved",
83
+ "cwd": "/workspace/repo",
84
+ "timeout_seconds": 900
85
+ }
86
+ }
87
+ },
88
+ {
89
+ "name": "fresh_page_served_on_return",
90
+ "weight": 0.01,
91
+ "value": 1.0,
92
+ "children": null,
93
+ "info": {
94
+ "exit_code": 0,
95
+ "stdout": "SCORE 1/1\n",
96
+ "stderr": "",
97
+ "_parameters": {
98
+ "command": "bash /hud/grader/run_grading.sh fresh_page_served_on_return",
99
+ "cwd": "/workspace/repo",
100
+ "timeout_seconds": 900
101
+ }
102
+ }
103
+ },
104
+ {
105
+ "name": "key_per_page_late_answer_kept",
106
+ "weight": 0.01,
107
+ "value": 1.0,
108
+ "children": null,
109
+ "info": {
110
+ "exit_code": 0,
111
+ "stdout": "SCORE 1/1\n",
112
+ "stderr": "",
113
+ "_parameters": {
114
+ "command": "bash /hud/grader/run_grading.sh key_per_page_late_answer_kept",
115
+ "cwd": "/workspace/repo",
116
+ "timeout_seconds": 900
117
+ }
118
+ }
119
+ },
120
+ {
121
+ "name": "key_per_page_panel_keeps_own_page",
122
+ "weight": 0.08,
123
+ "value": 1.0,
124
+ "children": null,
125
+ "info": {
126
+ "exit_code": 0,
127
+ "stdout": "SCORE 1/1\n",
128
+ "stderr": "",
129
+ "_parameters": {
130
+ "command": "bash /hud/grader/run_grading.sh key_per_page_panel_keeps_own_page",
131
+ "cwd": "/workspace/repo",
132
+ "timeout_seconds": 900
133
+ }
134
+ }
135
+ },
136
+ {
137
+ "name": "shared_late_response",
138
+ "weight": 0.02,
139
+ "value": 1.0,
140
+ "children": null,
141
+ "info": {
142
+ "exit_code": 0,
143
+ "stdout": "SCORE 1/1\n",
144
+ "stderr": "",
145
+ "_parameters": {
146
+ "command": "bash /hud/grader/run_grading.sh shared_late_response",
147
+ "cwd": "/workspace/repo",
148
+ "timeout_seconds": 900
149
+ }
150
+ }
151
+ },
152
+ {
153
+ "name": "own_page_after_another_loaded",
154
+ "weight": 0.01,
155
+ "value": 1.0,
156
+ "children": null,
157
+ "info": {
158
+ "exit_code": 0,
159
+ "stdout": "SCORE 1/1\n",
160
+ "stderr": "",
161
+ "_parameters": {
162
+ "command": "bash /hud/grader/run_grading.sh own_page_after_another_loaded",
163
+ "cwd": "/workspace/repo",
164
+ "timeout_seconds": 900
165
+ }
166
+ }
167
+ },
168
+ {
169
+ "name": "different_pages_at_once",
170
+ "weight": 0.01,
171
+ "value": 1.0,
172
+ "children": null,
173
+ "info": {
174
+ "exit_code": 0,
175
+ "stdout": "SCORE 1/1\n",
176
+ "stderr": "",
177
+ "_parameters": {
178
+ "command": "bash /hud/grader/run_grading.sh different_pages_at_once",
179
+ "cwd": "/workspace/repo",
180
+ "timeout_seconds": 900
181
+ }
182
+ }
183
+ },
184
+ {
185
+ "name": "caller_screen_unchanged",
186
+ "weight": 0.01,
187
+ "value": 1.0,
188
+ "children": null,
189
+ "info": {
190
+ "exit_code": 0,
191
+ "stdout": "SCORE 1/1\n",
192
+ "stderr": "",
193
+ "_parameters": {
194
+ "command": "bash /hud/grader/run_grading.sh caller_screen_unchanged",
195
+ "cwd": "/workspace/repo",
196
+ "timeout_seconds": 900
197
+ }
198
+ }
199
+ },
200
+ {
201
+ "name": "mid_load_panel_consistent",
202
+ "weight": 0.01,
203
+ "value": 1.0,
204
+ "children": null,
205
+ "info": {
206
+ "exit_code": 0,
207
+ "stdout": "SCORE 1/1\n",
208
+ "stderr": "",
209
+ "_parameters": {
210
+ "command": "bash /hud/grader/run_grading.sh mid_load_panel_consistent",
211
+ "cwd": "/workspace/repo",
212
+ "timeout_seconds": 900
213
+ }
214
+ }
215
+ },
216
+ {
217
+ "name": "refreshed_page_reaches_sharer",
218
+ "weight": 0.08,
219
+ "value": 1.0,
220
+ "children": null,
221
+ "info": {
222
+ "exit_code": 0,
223
+ "stdout": "SCORE 1/1\n",
224
+ "stderr": "",
225
+ "_parameters": {
226
+ "command": "bash /hud/grader/run_grading.sh refreshed_page_reaches_sharer",
227
+ "cwd": "/workspace/repo",
228
+ "timeout_seconds": 900
229
+ }
230
+ }
231
+ },
232
+ {
233
+ "name": "refresh_first_answer_last",
234
+ "weight": 0.08,
235
+ "value": 1.0,
236
+ "children": null,
237
+ "info": {
238
+ "exit_code": 0,
239
+ "stdout": "SCORE 1/1\n",
240
+ "stderr": "",
241
+ "_parameters": {
242
+ "command": "bash /hud/grader/run_grading.sh refresh_first_answer_last",
243
+ "cwd": "/workspace/repo",
244
+ "timeout_seconds": 900
245
+ }
246
+ }
247
+ },
248
+ {
249
+ "name": "same_page_older_answer_last",
250
+ "weight": 0.03,
251
+ "value": 1.0,
252
+ "children": null,
253
+ "info": {
254
+ "exit_code": 0,
255
+ "stdout": "SCORE 1/1\n",
256
+ "stderr": "",
257
+ "_parameters": {
258
+ "command": "bash /hud/grader/run_grading.sh same_page_older_answer_last",
259
+ "cwd": "/workspace/repo",
260
+ "timeout_seconds": 900
261
+ }
262
+ }
263
+ },
264
+ {
265
+ "name": "single_entry_store_two_components",
266
+ "weight": 0.08,
267
+ "value": 1.0,
268
+ "children": null,
269
+ "info": {
270
+ "exit_code": 0,
271
+ "stdout": "SCORE 1/1\n",
272
+ "stderr": "",
273
+ "_parameters": {
274
+ "command": "bash /hud/grader/run_grading.sh single_entry_store_two_components",
275
+ "cwd": "/workspace/repo",
276
+ "timeout_seconds": 900
277
+ }
278
+ }
279
+ },
280
+ {
281
+ "name": "single_entry_store",
282
+ "weight": 0.06,
283
+ "value": 1.0,
284
+ "children": null,
285
+ "info": {
286
+ "exit_code": 0,
287
+ "stdout": "SCORE 1/1\n",
288
+ "stderr": "",
289
+ "_parameters": {
290
+ "command": "bash /hud/grader/run_grading.sh single_entry_store",
291
+ "cwd": "/workspace/repo",
292
+ "timeout_seconds": 900
293
+ }
294
+ }
295
+ },
296
+ {
297
+ "name": "built_in_cache_two_components",
298
+ "weight": 0.01,
299
+ "value": 1.0,
300
+ "children": null,
301
+ "info": {
302
+ "exit_code": 0,
303
+ "stdout": "SCORE 1/1\n",
304
+ "stderr": "",
305
+ "_parameters": {
306
+ "command": "bash /hud/grader/run_grading.sh built_in_cache_two_components",
307
+ "cwd": "/workspace/repo",
308
+ "timeout_seconds": 900
309
+ }
310
+ }
311
+ },
312
+ {
313
+ "name": "shared_late_cache",
314
+ "weight": 0.01,
315
+ "value": 1.0,
316
+ "children": null,
317
+ "info": {
318
+ "exit_code": 0,
319
+ "stdout": "SCORE 1/1\n",
320
+ "stderr": "",
321
+ "_parameters": {
322
+ "command": "bash /hud/grader/run_grading.sh shared_late_cache",
323
+ "cwd": "/workspace/repo",
324
+ "timeout_seconds": 900
325
+ }
326
+ }
327
+ },
328
+ {
329
+ "name": "second_panel_auto_loads_page",
330
+ "weight": 0.08,
331
+ "value": 1.0,
332
+ "children": null,
333
+ "info": {
334
+ "exit_code": 0,
335
+ "stdout": "SCORE 1/1\n",
336
+ "stderr": "",
337
+ "_parameters": {
338
+ "command": "bash /hud/grader/run_grading.sh second_panel_auto_loads_page",
339
+ "cwd": "/workspace/repo",
340
+ "timeout_seconds": 900
341
+ }
342
+ }
343
+ },
344
+ {
345
+ "name": "duplicate_request",
346
+ "weight": 0.01,
347
+ "value": 1.0,
348
+ "children": null,
349
+ "info": {
350
+ "exit_code": 0,
351
+ "stdout": "SCORE 1/1\n",
352
+ "stderr": "",
353
+ "_parameters": {
354
+ "command": "bash /hud/grader/run_grading.sh duplicate_request",
355
+ "cwd": "/workspace/repo",
356
+ "timeout_seconds": 900
357
+ }
358
+ }
359
+ },
360
+ {
361
+ "name": "own_late_response",
362
+ "weight": 0.06,
363
+ "value": 1.0,
364
+ "children": null,
365
+ "info": {
366
+ "exit_code": 0,
367
+ "stdout": "SCORE 1/1\n",
368
+ "stderr": "",
369
+ "_parameters": {
370
+ "command": "bash /hud/grader/run_grading.sh own_late_response",
371
+ "cwd": "/workspace/repo",
372
+ "timeout_seconds": 900
373
+ }
374
+ }
375
+ },
376
+ {
377
+ "name": "mutate_reaches_own_page",
378
+ "weight": 0.01,
379
+ "value": 1.0,
380
+ "children": null,
381
+ "info": {
382
+ "exit_code": 0,
383
+ "stdout": "SCORE 1/1\n",
384
+ "stderr": "",
385
+ "_parameters": {
386
+ "command": "bash /hud/grader/run_grading.sh mutate_reaches_own_page",
387
+ "cwd": "/workspace/repo",
388
+ "timeout_seconds": 900
389
+ }
390
+ }
391
+ },
392
+ {
393
+ "name": "no_new_lint_findings",
394
+ "weight": 0.02,
395
+ "value": 1.0,
396
+ "children": null,
397
+ "info": {
398
+ "exit_code": 0,
399
+ "stdout": "SCORE 1/1\n",
400
+ "stderr": "",
401
+ "_parameters": {
402
+ "command": "bash /hud/grader/run_grading.sh no_new_lint_findings",
403
+ "cwd": "/workspace/repo",
404
+ "timeout_seconds": 900
405
+ }
406
+ }
407
+ },
408
+ {
409
+ "name": "maintainer_review",
410
+ "weight": 0.03,
411
+ "value": 1.0,
412
+ "children": [
413
+ {
414
+ "name": "Does the diff add at least one new test case?",
415
+ "weight": 1.0,
416
+ "value": 1.0,
417
+ "children": null,
418
+ "info": {
419
+ "reason": "The diff adds many new `test(...)` cases to useCachePlugin.spec.tsx, such as 'superseded response should still reach a custom setCache' and 'late response should not replace newer data in the cache'."
420
+ }
421
+ },
422
+ {
423
+ "name": "Does a test case added by the diff make a second call to the service while the first call's promise is still unresolved, so that both requests are in flight at the same time?",
424
+ "weight": 1.0,
425
+ "value": 1.0,
426
+ "children": null,
427
+ "info": {
428
+ "reason": "Added tests such as 'superseded response should still reach a custom setCache' call run('a', 300) and then run('b', 600) without advancing timers, so the first promise is unresolved when the second request starts and both are in flight."
429
+ }
430
+ }
431
+ ],
432
+ "info": {
433
+ "model": "anthropic/claude-sonnet-5.5",
434
+ "_parameters": {
435
+ "answer": "(answer elided; 32443 chars)",
436
+ "criteria": [
437
+ "Does the diff add at least one new test case?",
438
+ "Does a test case added by the diff make a second call to the service while the first call's promise is still unresolved, so that both requests are in flight at the same time?"
439
+ ],
440
+ "question": "Answer each question with yes or no, based only on the code this diff adds or changes in the ahooks repository. Answer yes when the diff contains what the question describes, whatever it is named or wherever it lives.",
441
+ "model": "anthropic/claude-sonnet-5.5"
442
+ }
443
+ }
444
+ }
445
+ ]
446
+ }
harbor/evidence/hooks/reports/noop.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "revision": "coding-rubric-v2",
3
+ "task_id": "ahooks_request_cache_races",
4
+ "grader_version": "0.6.13",
5
+ "commands": [],
6
+ "status": "empty_patch",
7
+ "patch_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
8
+ "result": {
9
+ "reward": 0.0,
10
+ "done": true,
11
+ "content": "Empty diff: no changes were made.",
12
+ "info": {},
13
+ "isError": false,
14
+ "subscores": null
15
+ },
16
+ "judge": {
17
+ "model": "anthropic/claude-sonnet-5.5",
18
+ "endpoint": "openrouter.ai"
19
+ }
20
+ }
harbor/evidence/hooks/reports/reference.json ADDED
@@ -0,0 +1,859 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "revision": "coding-rubric-v2",
3
+ "task_id": "ahooks_request_cache_races",
4
+ "grader_version": "0.6.13",
5
+ "commands": [
6
+ {
7
+ "name": "skipped_page_lands_last_saved",
8
+ "weight": 0.08,
9
+ "value": 1.0,
10
+ "children": null,
11
+ "info": {
12
+ "exit_code": 0,
13
+ "stdout": "SCORE 1/1\n",
14
+ "stderr": "",
15
+ "_parameters": {
16
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh skipped_page_lands_last_saved'",
17
+ "cwd": "/workspace/repo",
18
+ "timeout_seconds": 900
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "name": "answers_out_of_order",
24
+ "weight": 0.08,
25
+ "value": 1.0,
26
+ "children": null,
27
+ "info": {
28
+ "exit_code": 0,
29
+ "stdout": "SCORE 1/1\n",
30
+ "stderr": "",
31
+ "_parameters": {
32
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh answers_out_of_order'",
33
+ "cwd": "/workspace/repo",
34
+ "timeout_seconds": 900
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "name": "late_page_kept_for_reader",
40
+ "weight": 0.08,
41
+ "value": 1.0,
42
+ "children": null,
43
+ "info": {
44
+ "exit_code": 0,
45
+ "stdout": "SCORE 1/1\n",
46
+ "stderr": "",
47
+ "_parameters": {
48
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh late_page_kept_for_reader'",
49
+ "cwd": "/workspace/repo",
50
+ "timeout_seconds": 900
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "skipped_page_saved",
56
+ "weight": 0.03,
57
+ "value": 1.0,
58
+ "children": null,
59
+ "info": {
60
+ "exit_code": 0,
61
+ "stdout": "SCORE 1/1\n",
62
+ "stderr": "",
63
+ "_parameters": {
64
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh skipped_page_saved'",
65
+ "cwd": "/workspace/repo",
66
+ "timeout_seconds": 900
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "name": "late_shown_page_saved",
72
+ "weight": 0.01,
73
+ "value": 1.0,
74
+ "children": null,
75
+ "info": {
76
+ "exit_code": 0,
77
+ "stdout": "SCORE 1/1\n",
78
+ "stderr": "",
79
+ "_parameters": {
80
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh late_shown_page_saved'",
81
+ "cwd": "/workspace/repo",
82
+ "timeout_seconds": 900
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "name": "fresh_page_served_on_return",
88
+ "weight": 0.01,
89
+ "value": 1.0,
90
+ "children": null,
91
+ "info": {
92
+ "exit_code": 0,
93
+ "stdout": "SCORE 1/1\n",
94
+ "stderr": "",
95
+ "_parameters": {
96
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh fresh_page_served_on_return'",
97
+ "cwd": "/workspace/repo",
98
+ "timeout_seconds": 900
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "key_per_page_late_answer_kept",
104
+ "weight": 0.01,
105
+ "value": 1.0,
106
+ "children": null,
107
+ "info": {
108
+ "exit_code": 0,
109
+ "stdout": "SCORE 1/1\n",
110
+ "stderr": "",
111
+ "_parameters": {
112
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh key_per_page_late_answer_kept'",
113
+ "cwd": "/workspace/repo",
114
+ "timeout_seconds": 900
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "name": "key_per_page_panel_keeps_own_page",
120
+ "weight": 0.08,
121
+ "value": 1.0,
122
+ "children": null,
123
+ "info": {
124
+ "exit_code": 0,
125
+ "stdout": "SCORE 1/1\n",
126
+ "stderr": "",
127
+ "_parameters": {
128
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh key_per_page_panel_keeps_own_page'",
129
+ "cwd": "/workspace/repo",
130
+ "timeout_seconds": 900
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "name": "shared_late_response",
136
+ "weight": 0.02,
137
+ "value": 1.0,
138
+ "children": null,
139
+ "info": {
140
+ "exit_code": 0,
141
+ "stdout": "SCORE 1/1\n",
142
+ "stderr": "",
143
+ "_parameters": {
144
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh shared_late_response'",
145
+ "cwd": "/workspace/repo",
146
+ "timeout_seconds": 900
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "name": "own_page_after_another_loaded",
152
+ "weight": 0.01,
153
+ "value": 1.0,
154
+ "children": null,
155
+ "info": {
156
+ "exit_code": 0,
157
+ "stdout": "SCORE 1/1\n",
158
+ "stderr": "",
159
+ "_parameters": {
160
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh own_page_after_another_loaded'",
161
+ "cwd": "/workspace/repo",
162
+ "timeout_seconds": 900
163
+ }
164
+ }
165
+ },
166
+ {
167
+ "name": "different_pages_at_once",
168
+ "weight": 0.01,
169
+ "value": 1.0,
170
+ "children": null,
171
+ "info": {
172
+ "exit_code": 0,
173
+ "stdout": "SCORE 1/1\n",
174
+ "stderr": "",
175
+ "_parameters": {
176
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh different_pages_at_once'",
177
+ "cwd": "/workspace/repo",
178
+ "timeout_seconds": 900
179
+ }
180
+ }
181
+ },
182
+ {
183
+ "name": "caller_screen_unchanged",
184
+ "weight": 0.01,
185
+ "value": 1.0,
186
+ "children": null,
187
+ "info": {
188
+ "exit_code": 0,
189
+ "stdout": "SCORE 1/1\n",
190
+ "stderr": "",
191
+ "_parameters": {
192
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh caller_screen_unchanged'",
193
+ "cwd": "/workspace/repo",
194
+ "timeout_seconds": 900
195
+ }
196
+ }
197
+ },
198
+ {
199
+ "name": "mid_load_panel_consistent",
200
+ "weight": 0.01,
201
+ "value": 1.0,
202
+ "children": null,
203
+ "info": {
204
+ "exit_code": 0,
205
+ "stdout": "SCORE 1/1\n",
206
+ "stderr": "",
207
+ "_parameters": {
208
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh mid_load_panel_consistent'",
209
+ "cwd": "/workspace/repo",
210
+ "timeout_seconds": 900
211
+ }
212
+ }
213
+ },
214
+ {
215
+ "name": "refreshed_page_reaches_sharer",
216
+ "weight": 0.08,
217
+ "value": 1.0,
218
+ "children": null,
219
+ "info": {
220
+ "exit_code": 0,
221
+ "stdout": "SCORE 1/1\n",
222
+ "stderr": "",
223
+ "_parameters": {
224
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh refreshed_page_reaches_sharer'",
225
+ "cwd": "/workspace/repo",
226
+ "timeout_seconds": 900
227
+ }
228
+ }
229
+ },
230
+ {
231
+ "name": "refresh_first_answer_last",
232
+ "weight": 0.08,
233
+ "value": 1.0,
234
+ "children": null,
235
+ "info": {
236
+ "exit_code": 0,
237
+ "stdout": "SCORE 1/1\n",
238
+ "stderr": "",
239
+ "_parameters": {
240
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh refresh_first_answer_last'",
241
+ "cwd": "/workspace/repo",
242
+ "timeout_seconds": 900
243
+ }
244
+ }
245
+ },
246
+ {
247
+ "name": "same_page_older_answer_last",
248
+ "weight": 0.03,
249
+ "value": 1.0,
250
+ "children": null,
251
+ "info": {
252
+ "exit_code": 0,
253
+ "stdout": "SCORE 1/1\n",
254
+ "stderr": "",
255
+ "_parameters": {
256
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh same_page_older_answer_last'",
257
+ "cwd": "/workspace/repo",
258
+ "timeout_seconds": 900
259
+ }
260
+ }
261
+ },
262
+ {
263
+ "name": "single_entry_store_two_components",
264
+ "weight": 0.08,
265
+ "value": 1.0,
266
+ "children": null,
267
+ "info": {
268
+ "exit_code": 0,
269
+ "stdout": "SCORE 1/1\n",
270
+ "stderr": "",
271
+ "_parameters": {
272
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh single_entry_store_two_components'",
273
+ "cwd": "/workspace/repo",
274
+ "timeout_seconds": 900
275
+ }
276
+ }
277
+ },
278
+ {
279
+ "name": "single_entry_store",
280
+ "weight": 0.06,
281
+ "value": 1.0,
282
+ "children": null,
283
+ "info": {
284
+ "exit_code": 0,
285
+ "stdout": "SCORE 1/1\n",
286
+ "stderr": "",
287
+ "_parameters": {
288
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh single_entry_store'",
289
+ "cwd": "/workspace/repo",
290
+ "timeout_seconds": 900
291
+ }
292
+ }
293
+ },
294
+ {
295
+ "name": "built_in_cache_two_components",
296
+ "weight": 0.01,
297
+ "value": 1.0,
298
+ "children": null,
299
+ "info": {
300
+ "exit_code": 0,
301
+ "stdout": "SCORE 1/1\n",
302
+ "stderr": "",
303
+ "_parameters": {
304
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh built_in_cache_two_components'",
305
+ "cwd": "/workspace/repo",
306
+ "timeout_seconds": 900
307
+ }
308
+ }
309
+ },
310
+ {
311
+ "name": "shared_late_cache",
312
+ "weight": 0.01,
313
+ "value": 1.0,
314
+ "children": null,
315
+ "info": {
316
+ "exit_code": 0,
317
+ "stdout": "SCORE 1/1\n",
318
+ "stderr": "",
319
+ "_parameters": {
320
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh shared_late_cache'",
321
+ "cwd": "/workspace/repo",
322
+ "timeout_seconds": 900
323
+ }
324
+ }
325
+ },
326
+ {
327
+ "name": "second_panel_auto_loads_page",
328
+ "weight": 0.08,
329
+ "value": 1.0,
330
+ "children": null,
331
+ "info": {
332
+ "exit_code": 0,
333
+ "stdout": "SCORE 1/1\n",
334
+ "stderr": "",
335
+ "_parameters": {
336
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh second_panel_auto_loads_page'",
337
+ "cwd": "/workspace/repo",
338
+ "timeout_seconds": 900
339
+ }
340
+ }
341
+ },
342
+ {
343
+ "name": "duplicate_request",
344
+ "weight": 0.01,
345
+ "value": 1.0,
346
+ "children": null,
347
+ "info": {
348
+ "exit_code": 0,
349
+ "stdout": "SCORE 1/1\n",
350
+ "stderr": "",
351
+ "_parameters": {
352
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh duplicate_request'",
353
+ "cwd": "/workspace/repo",
354
+ "timeout_seconds": 900
355
+ }
356
+ }
357
+ },
358
+ {
359
+ "name": "own_late_response",
360
+ "weight": 0.06,
361
+ "value": 1.0,
362
+ "children": null,
363
+ "info": {
364
+ "exit_code": 0,
365
+ "stdout": "SCORE 1/1\n",
366
+ "stderr": "",
367
+ "_parameters": {
368
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh own_late_response'",
369
+ "cwd": "/workspace/repo",
370
+ "timeout_seconds": 900
371
+ }
372
+ }
373
+ },
374
+ {
375
+ "name": "mutate_reaches_own_page",
376
+ "weight": 0.01,
377
+ "value": 1.0,
378
+ "children": null,
379
+ "info": {
380
+ "exit_code": 0,
381
+ "stdout": "SCORE 1/1\n",
382
+ "stderr": "",
383
+ "_parameters": {
384
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh mutate_reaches_own_page'",
385
+ "cwd": "/workspace/repo",
386
+ "timeout_seconds": 900
387
+ }
388
+ }
389
+ },
390
+ {
391
+ "name": "no_new_lint_findings",
392
+ "weight": 0.02,
393
+ "value": 1.0,
394
+ "children": null,
395
+ "info": {
396
+ "exit_code": 0,
397
+ "stdout": "SCORE 1/1\n",
398
+ "stderr": "",
399
+ "_parameters": {
400
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh no_new_lint_findings'",
401
+ "cwd": "/workspace/repo",
402
+ "timeout_seconds": 900
403
+ }
404
+ }
405
+ }
406
+ ],
407
+ "status": "graded",
408
+ "patch_sha256": "64362211df834979d3b6fcc3d23cc2c127514cbb86d538f888865ae46454bac0",
409
+ "result": {
410
+ "reward": 1.0,
411
+ "done": true,
412
+ "content": null,
413
+ "info": {},
414
+ "isError": false,
415
+ "subscores": [
416
+ {
417
+ "name": "skipped_page_lands_last_saved",
418
+ "weight": 0.08,
419
+ "value": 1.0,
420
+ "children": null,
421
+ "info": {
422
+ "exit_code": 0,
423
+ "stdout": "SCORE 1/1\n",
424
+ "stderr": "",
425
+ "_parameters": {
426
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh skipped_page_lands_last_saved'",
427
+ "cwd": "/workspace/repo",
428
+ "timeout_seconds": 900
429
+ }
430
+ }
431
+ },
432
+ {
433
+ "name": "answers_out_of_order",
434
+ "weight": 0.08,
435
+ "value": 1.0,
436
+ "children": null,
437
+ "info": {
438
+ "exit_code": 0,
439
+ "stdout": "SCORE 1/1\n",
440
+ "stderr": "",
441
+ "_parameters": {
442
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh answers_out_of_order'",
443
+ "cwd": "/workspace/repo",
444
+ "timeout_seconds": 900
445
+ }
446
+ }
447
+ },
448
+ {
449
+ "name": "late_page_kept_for_reader",
450
+ "weight": 0.08,
451
+ "value": 1.0,
452
+ "children": null,
453
+ "info": {
454
+ "exit_code": 0,
455
+ "stdout": "SCORE 1/1\n",
456
+ "stderr": "",
457
+ "_parameters": {
458
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh late_page_kept_for_reader'",
459
+ "cwd": "/workspace/repo",
460
+ "timeout_seconds": 900
461
+ }
462
+ }
463
+ },
464
+ {
465
+ "name": "skipped_page_saved",
466
+ "weight": 0.03,
467
+ "value": 1.0,
468
+ "children": null,
469
+ "info": {
470
+ "exit_code": 0,
471
+ "stdout": "SCORE 1/1\n",
472
+ "stderr": "",
473
+ "_parameters": {
474
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh skipped_page_saved'",
475
+ "cwd": "/workspace/repo",
476
+ "timeout_seconds": 900
477
+ }
478
+ }
479
+ },
480
+ {
481
+ "name": "late_shown_page_saved",
482
+ "weight": 0.01,
483
+ "value": 1.0,
484
+ "children": null,
485
+ "info": {
486
+ "exit_code": 0,
487
+ "stdout": "SCORE 1/1\n",
488
+ "stderr": "",
489
+ "_parameters": {
490
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh late_shown_page_saved'",
491
+ "cwd": "/workspace/repo",
492
+ "timeout_seconds": 900
493
+ }
494
+ }
495
+ },
496
+ {
497
+ "name": "fresh_page_served_on_return",
498
+ "weight": 0.01,
499
+ "value": 1.0,
500
+ "children": null,
501
+ "info": {
502
+ "exit_code": 0,
503
+ "stdout": "SCORE 1/1\n",
504
+ "stderr": "",
505
+ "_parameters": {
506
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh fresh_page_served_on_return'",
507
+ "cwd": "/workspace/repo",
508
+ "timeout_seconds": 900
509
+ }
510
+ }
511
+ },
512
+ {
513
+ "name": "key_per_page_late_answer_kept",
514
+ "weight": 0.01,
515
+ "value": 1.0,
516
+ "children": null,
517
+ "info": {
518
+ "exit_code": 0,
519
+ "stdout": "SCORE 1/1\n",
520
+ "stderr": "",
521
+ "_parameters": {
522
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh key_per_page_late_answer_kept'",
523
+ "cwd": "/workspace/repo",
524
+ "timeout_seconds": 900
525
+ }
526
+ }
527
+ },
528
+ {
529
+ "name": "key_per_page_panel_keeps_own_page",
530
+ "weight": 0.08,
531
+ "value": 1.0,
532
+ "children": null,
533
+ "info": {
534
+ "exit_code": 0,
535
+ "stdout": "SCORE 1/1\n",
536
+ "stderr": "",
537
+ "_parameters": {
538
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh key_per_page_panel_keeps_own_page'",
539
+ "cwd": "/workspace/repo",
540
+ "timeout_seconds": 900
541
+ }
542
+ }
543
+ },
544
+ {
545
+ "name": "shared_late_response",
546
+ "weight": 0.02,
547
+ "value": 1.0,
548
+ "children": null,
549
+ "info": {
550
+ "exit_code": 0,
551
+ "stdout": "SCORE 1/1\n",
552
+ "stderr": "",
553
+ "_parameters": {
554
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh shared_late_response'",
555
+ "cwd": "/workspace/repo",
556
+ "timeout_seconds": 900
557
+ }
558
+ }
559
+ },
560
+ {
561
+ "name": "own_page_after_another_loaded",
562
+ "weight": 0.01,
563
+ "value": 1.0,
564
+ "children": null,
565
+ "info": {
566
+ "exit_code": 0,
567
+ "stdout": "SCORE 1/1\n",
568
+ "stderr": "",
569
+ "_parameters": {
570
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh own_page_after_another_loaded'",
571
+ "cwd": "/workspace/repo",
572
+ "timeout_seconds": 900
573
+ }
574
+ }
575
+ },
576
+ {
577
+ "name": "different_pages_at_once",
578
+ "weight": 0.01,
579
+ "value": 1.0,
580
+ "children": null,
581
+ "info": {
582
+ "exit_code": 0,
583
+ "stdout": "SCORE 1/1\n",
584
+ "stderr": "",
585
+ "_parameters": {
586
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh different_pages_at_once'",
587
+ "cwd": "/workspace/repo",
588
+ "timeout_seconds": 900
589
+ }
590
+ }
591
+ },
592
+ {
593
+ "name": "caller_screen_unchanged",
594
+ "weight": 0.01,
595
+ "value": 1.0,
596
+ "children": null,
597
+ "info": {
598
+ "exit_code": 0,
599
+ "stdout": "SCORE 1/1\n",
600
+ "stderr": "",
601
+ "_parameters": {
602
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh caller_screen_unchanged'",
603
+ "cwd": "/workspace/repo",
604
+ "timeout_seconds": 900
605
+ }
606
+ }
607
+ },
608
+ {
609
+ "name": "mid_load_panel_consistent",
610
+ "weight": 0.01,
611
+ "value": 1.0,
612
+ "children": null,
613
+ "info": {
614
+ "exit_code": 0,
615
+ "stdout": "SCORE 1/1\n",
616
+ "stderr": "",
617
+ "_parameters": {
618
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh mid_load_panel_consistent'",
619
+ "cwd": "/workspace/repo",
620
+ "timeout_seconds": 900
621
+ }
622
+ }
623
+ },
624
+ {
625
+ "name": "refreshed_page_reaches_sharer",
626
+ "weight": 0.08,
627
+ "value": 1.0,
628
+ "children": null,
629
+ "info": {
630
+ "exit_code": 0,
631
+ "stdout": "SCORE 1/1\n",
632
+ "stderr": "",
633
+ "_parameters": {
634
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh refreshed_page_reaches_sharer'",
635
+ "cwd": "/workspace/repo",
636
+ "timeout_seconds": 900
637
+ }
638
+ }
639
+ },
640
+ {
641
+ "name": "refresh_first_answer_last",
642
+ "weight": 0.08,
643
+ "value": 1.0,
644
+ "children": null,
645
+ "info": {
646
+ "exit_code": 0,
647
+ "stdout": "SCORE 1/1\n",
648
+ "stderr": "",
649
+ "_parameters": {
650
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh refresh_first_answer_last'",
651
+ "cwd": "/workspace/repo",
652
+ "timeout_seconds": 900
653
+ }
654
+ }
655
+ },
656
+ {
657
+ "name": "same_page_older_answer_last",
658
+ "weight": 0.03,
659
+ "value": 1.0,
660
+ "children": null,
661
+ "info": {
662
+ "exit_code": 0,
663
+ "stdout": "SCORE 1/1\n",
664
+ "stderr": "",
665
+ "_parameters": {
666
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh same_page_older_answer_last'",
667
+ "cwd": "/workspace/repo",
668
+ "timeout_seconds": 900
669
+ }
670
+ }
671
+ },
672
+ {
673
+ "name": "single_entry_store_two_components",
674
+ "weight": 0.08,
675
+ "value": 1.0,
676
+ "children": null,
677
+ "info": {
678
+ "exit_code": 0,
679
+ "stdout": "SCORE 1/1\n",
680
+ "stderr": "",
681
+ "_parameters": {
682
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh single_entry_store_two_components'",
683
+ "cwd": "/workspace/repo",
684
+ "timeout_seconds": 900
685
+ }
686
+ }
687
+ },
688
+ {
689
+ "name": "single_entry_store",
690
+ "weight": 0.06,
691
+ "value": 1.0,
692
+ "children": null,
693
+ "info": {
694
+ "exit_code": 0,
695
+ "stdout": "SCORE 1/1\n",
696
+ "stderr": "",
697
+ "_parameters": {
698
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh single_entry_store'",
699
+ "cwd": "/workspace/repo",
700
+ "timeout_seconds": 900
701
+ }
702
+ }
703
+ },
704
+ {
705
+ "name": "built_in_cache_two_components",
706
+ "weight": 0.01,
707
+ "value": 1.0,
708
+ "children": null,
709
+ "info": {
710
+ "exit_code": 0,
711
+ "stdout": "SCORE 1/1\n",
712
+ "stderr": "",
713
+ "_parameters": {
714
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh built_in_cache_two_components'",
715
+ "cwd": "/workspace/repo",
716
+ "timeout_seconds": 900
717
+ }
718
+ }
719
+ },
720
+ {
721
+ "name": "shared_late_cache",
722
+ "weight": 0.01,
723
+ "value": 1.0,
724
+ "children": null,
725
+ "info": {
726
+ "exit_code": 0,
727
+ "stdout": "SCORE 1/1\n",
728
+ "stderr": "",
729
+ "_parameters": {
730
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh shared_late_cache'",
731
+ "cwd": "/workspace/repo",
732
+ "timeout_seconds": 900
733
+ }
734
+ }
735
+ },
736
+ {
737
+ "name": "second_panel_auto_loads_page",
738
+ "weight": 0.08,
739
+ "value": 1.0,
740
+ "children": null,
741
+ "info": {
742
+ "exit_code": 0,
743
+ "stdout": "SCORE 1/1\n",
744
+ "stderr": "",
745
+ "_parameters": {
746
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh second_panel_auto_loads_page'",
747
+ "cwd": "/workspace/repo",
748
+ "timeout_seconds": 900
749
+ }
750
+ }
751
+ },
752
+ {
753
+ "name": "duplicate_request",
754
+ "weight": 0.01,
755
+ "value": 1.0,
756
+ "children": null,
757
+ "info": {
758
+ "exit_code": 0,
759
+ "stdout": "SCORE 1/1\n",
760
+ "stderr": "",
761
+ "_parameters": {
762
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh duplicate_request'",
763
+ "cwd": "/workspace/repo",
764
+ "timeout_seconds": 900
765
+ }
766
+ }
767
+ },
768
+ {
769
+ "name": "own_late_response",
770
+ "weight": 0.06,
771
+ "value": 1.0,
772
+ "children": null,
773
+ "info": {
774
+ "exit_code": 0,
775
+ "stdout": "SCORE 1/1\n",
776
+ "stderr": "",
777
+ "_parameters": {
778
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh own_late_response'",
779
+ "cwd": "/workspace/repo",
780
+ "timeout_seconds": 900
781
+ }
782
+ }
783
+ },
784
+ {
785
+ "name": "mutate_reaches_own_page",
786
+ "weight": 0.01,
787
+ "value": 1.0,
788
+ "children": null,
789
+ "info": {
790
+ "exit_code": 0,
791
+ "stdout": "SCORE 1/1\n",
792
+ "stderr": "",
793
+ "_parameters": {
794
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh mutate_reaches_own_page'",
795
+ "cwd": "/workspace/repo",
796
+ "timeout_seconds": 900
797
+ }
798
+ }
799
+ },
800
+ {
801
+ "name": "no_new_lint_findings",
802
+ "weight": 0.02,
803
+ "value": 1.0,
804
+ "children": null,
805
+ "info": {
806
+ "exit_code": 0,
807
+ "stdout": "SCORE 1/1\n",
808
+ "stderr": "",
809
+ "_parameters": {
810
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh no_new_lint_findings'",
811
+ "cwd": "/workspace/repo",
812
+ "timeout_seconds": 900
813
+ }
814
+ }
815
+ },
816
+ {
817
+ "name": "maintainer_review",
818
+ "weight": 0.03,
819
+ "value": 1.0,
820
+ "children": [
821
+ {
822
+ "name": "Does the diff add at least one new test case?",
823
+ "weight": 1.0,
824
+ "value": 1.0,
825
+ "children": null,
826
+ "info": {
827
+ "reason": "The diff adds many new `test(...)` cases to useCachePlugin.spec.tsx, such as 'superseded response should still reach a custom setCache' and 'late response should not replace newer data in the cache'."
828
+ }
829
+ },
830
+ {
831
+ "name": "Does a test case added by the diff make a second call to the service while the first call's promise is still unresolved, so that both requests are in flight at the same time?",
832
+ "weight": 1.0,
833
+ "value": 1.0,
834
+ "children": null,
835
+ "info": {
836
+ "reason": "Multiple added tests (e.g., 'superseded response should still reach a custom setCache') call run('a', 300) and then run('b', 600) with no timer advance in between, so the first promise is still pending and both requests are in flight at once."
837
+ }
838
+ }
839
+ ],
840
+ "info": {
841
+ "model": "anthropic/claude-sonnet-5.5",
842
+ "_parameters": {
843
+ "answer": "(answer elided; 32429 chars)",
844
+ "criteria": [
845
+ "Does the diff add at least one new test case?",
846
+ "Does a test case added by the diff make a second call to the service while the first call's promise is still unresolved, so that both requests are in flight at the same time?"
847
+ ],
848
+ "question": "Answer each question with yes or no, based only on the code this diff adds or changes in the ahooks repository. Answer yes when the diff contains what the question describes, whatever it is named or wherever it lives.",
849
+ "model": "anthropic/claude-sonnet-5.5"
850
+ }
851
+ }
852
+ }
853
+ ]
854
+ },
855
+ "judge": {
856
+ "model": "anthropic/claude-sonnet-5.5",
857
+ "endpoint": "openrouter.ai"
858
+ }
859
+ }
harbor/evidence/hooks/summary.json ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "hooks",
3
+ "build": {
4
+ "ok": true,
5
+ "image_id": "sha256:c8a01a3bb52d95d98778f6d7673b3c69a0d51ff7205c696fc1c0173c5976f579",
6
+ "ladder": {},
7
+ "source_digest": "4e288eb10901bf30",
8
+ "source": "edited",
9
+ "seconds": 141
10
+ },
11
+ "task_id": "ahooks_request_cache_races",
12
+ "image": "ec-swe-hooks:source-v4",
13
+ "measure": {
14
+ "ok": true,
15
+ "hud": "0.6.13",
16
+ "path": "/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games",
17
+ "handed": [],
18
+ "repo_dir": "/workspace/repo",
19
+ "python_usr_local": false,
20
+ "seconds": 8
21
+ },
22
+ "qualified": false,
23
+ "parity": {
24
+ "ok": true,
25
+ "reward": 1.0,
26
+ "criteria": 26,
27
+ "unmet": [],
28
+ "info": null,
29
+ "seconds": 51
30
+ },
31
+ "prepare": {
32
+ "ok": true,
33
+ "bundle": "hooks-r1",
34
+ "converter": "b8bba68767da888f",
35
+ "judge_runner": "4bd8d8cb9f9a3683",
36
+ "pinned_files": 35,
37
+ "criteria": 26,
38
+ "seconds": 0
39
+ },
40
+ "controls": {
41
+ "ok": false,
42
+ "checks": {
43
+ "noop_is_zero": true,
44
+ "reference_is_one": true,
45
+ "reference_equals_native": true,
46
+ "agent_is_isolated": true
47
+ },
48
+ "results": {
49
+ "noop": {
50
+ "run": "hooks-r1-control-noop-1793702221",
51
+ "reward": 0.0,
52
+ "stop": "completed",
53
+ "error": null,
54
+ "seconds": 300,
55
+ "probe": false,
56
+ "status": "empty_patch",
57
+ "verifier_error": null,
58
+ "exit_codes": [],
59
+ "attempts": 1
60
+ },
61
+ "reference": {
62
+ "run": "hooks-r1-control-reference-1793702521",
63
+ "reward": 1.0,
64
+ "stop": "completed",
65
+ "error": null,
66
+ "seconds": 299,
67
+ "probe": true,
68
+ "status": "graded",
69
+ "verifier_error": null,
70
+ "exit_codes": [
71
+ 0
72
+ ],
73
+ "subscores": {
74
+ "skipped_page_lands_last_saved": [
75
+ 1.0,
76
+ 0.08
77
+ ],
78
+ "answers_out_of_order": [
79
+ 1.0,
80
+ 0.08
81
+ ],
82
+ "late_page_kept_for_reader": [
83
+ 1.0,
84
+ 0.08
85
+ ],
86
+ "skipped_page_saved": [
87
+ 1.0,
88
+ 0.03
89
+ ],
90
+ "late_shown_page_saved": [
91
+ 1.0,
92
+ 0.01
93
+ ],
94
+ "fresh_page_served_on_return": [
95
+ 1.0,
96
+ 0.01
97
+ ],
98
+ "key_per_page_late_answer_kept": [
99
+ 1.0,
100
+ 0.01
101
+ ],
102
+ "key_per_page_panel_keeps_own_page": [
103
+ 1.0,
104
+ 0.08
105
+ ],
106
+ "shared_late_response": [
107
+ 1.0,
108
+ 0.02
109
+ ],
110
+ "own_page_after_another_loaded": [
111
+ 1.0,
112
+ 0.01
113
+ ],
114
+ "different_pages_at_once": [
115
+ 1.0,
116
+ 0.01
117
+ ],
118
+ "caller_screen_unchanged": [
119
+ 1.0,
120
+ 0.01
121
+ ],
122
+ "mid_load_panel_consistent": [
123
+ 1.0,
124
+ 0.01
125
+ ],
126
+ "refreshed_page_reaches_sharer": [
127
+ 1.0,
128
+ 0.08
129
+ ],
130
+ "refresh_first_answer_last": [
131
+ 1.0,
132
+ 0.08
133
+ ],
134
+ "same_page_older_answer_last": [
135
+ 1.0,
136
+ 0.03
137
+ ],
138
+ "single_entry_store_two_components": [
139
+ 1.0,
140
+ 0.08
141
+ ],
142
+ "single_entry_store": [
143
+ 1.0,
144
+ 0.06
145
+ ],
146
+ "built_in_cache_two_components": [
147
+ 1.0,
148
+ 0.01
149
+ ],
150
+ "shared_late_cache": [
151
+ 1.0,
152
+ 0.01
153
+ ],
154
+ "second_panel_auto_loads_page": [
155
+ 1.0,
156
+ 0.08
157
+ ],
158
+ "duplicate_request": [
159
+ 1.0,
160
+ 0.01
161
+ ],
162
+ "own_late_response": [
163
+ 1.0,
164
+ 0.06
165
+ ],
166
+ "mutate_reaches_own_page": [
167
+ 1.0,
168
+ 0.01
169
+ ],
170
+ "no_new_lint_findings": [
171
+ 1.0,
172
+ 0.02
173
+ ],
174
+ "maintainer_review": [
175
+ 1.0,
176
+ 0.03
177
+ ]
178
+ },
179
+ "attempts": 1
180
+ }
181
+ },
182
+ "bundle": "hooks-r1",
183
+ "complete": false,
184
+ "seconds": 599
185
+ },
186
+ "leak": {
187
+ "scan_finished": true,
188
+ "hits_outside_checkout": [],
189
+ "other_files_holding_only_upstream_lines": 0,
190
+ "library_files_sharing_a_line": 0,
191
+ "most_lines_shared_by_one_library_file": 0,
192
+ "private_paths_absent": true,
193
+ "public_lines_shared_with_patch_and_graders": [
194
+ 2,
195
+ 0
196
+ ],
197
+ "private_lines_only_in_agent_checkout": [
198
+ 0,
199
+ 0
200
+ ],
201
+ "ok": true,
202
+ "seconds": 53
203
+ }
204
+ }
harbor/evidence/sequelize/agent-image-scan.txt ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ needles: 321
2
+ 1 matching line(s): /workspace/repo/sscce.ts
3
+ 18 matching line(s): /workspace/repo/packages/core/lib/model.js
4
+ 3 matching line(s): /workspace/repo/packages/core/lib/associations/has-one.d.ts
5
+ 3 matching line(s): /workspace/repo/packages/core/lib/associations/belongs-to.d.ts
6
+ 1 matching line(s): /workspace/repo/packages/core/lib/associations/belongs-to-many.js.map
7
+ 1 matching line(s): /workspace/repo/packages/core/lib/associations/has-many.js.map
8
+ 1 matching line(s): /workspace/repo/packages/core/lib/associations/belongs-to.js.map
9
+ 10 matching line(s): /workspace/repo/packages/core/lib/associations/belongs-to-many.d.ts
10
+ 1 matching line(s): /workspace/repo/packages/core/lib/associations/has-one.js.map
11
+ 10 matching line(s): /workspace/repo/packages/core/lib/associations/has-many.d.ts
12
+ 10 matching line(s): /workspace/repo/packages/core/lib/decorators/legacy/attribute.d.ts
13
+ 1 matching line(s): /workspace/repo/packages/core/lib/decorators/legacy/attribute.js.map
14
+ 1 matching line(s): /workspace/repo/packages/core/lib/decorators/legacy/table.js.map
15
+ 1 matching line(s): /workspace/repo/packages/core/lib/decorators/legacy/table.d.ts
16
+ 2 matching line(s): /workspace/repo/packages/core/lib/model.d.ts
17
+ 1 matching line(s): /workspace/repo/packages/core/lib/model.js.map
18
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/query-interface/delete.test.ts
19
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/query-interface/describeTable.test.js
20
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/query-interface/truncate-table.test.ts
21
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/cls.test.ts
22
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/dialects/mssql/async-queue.test.ts
23
+ 2 matching line(s): /workspace/repo/packages/core/test/integration/model-repository/destroy.test.ts
24
+ 2 matching line(s): /workspace/repo/packages/core/test/integration/model-repository/bulk-destroy.test.ts
25
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/sequelize/destroy-all.test.ts
26
+ 2 matching line(s): /workspace/repo/packages/core/test/integration/sequelize/truncate.test.ts
27
+ 2 matching line(s): /workspace/repo/packages/core/test/integration/sequelize/transaction.test.ts
28
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/data-types/enum.test.ts
29
+ 5 matching line(s): /workspace/repo/packages/core/test/integration/data-types/data-types.test.ts
30
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/data-types/range.test.ts
31
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/data-types/geometry.test.ts
32
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/data-types/geography.test.ts
33
+ 3 matching line(s): /workspace/repo/packages/core/test/integration/data-types/methods.test.ts
34
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/include/findOne.test.js
35
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/include/separate.test.js
36
+ 10 matching line(s): /workspace/repo/packages/core/test/integration/associations/belongs-to-many.test.js
37
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/associations/belongs-to-many-mixins.test.ts
38
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/associations/has-one-mixins.test.ts
39
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/associations/has-many-mixins.test.ts
40
+ 3 matching line(s): /workspace/repo/packages/core/test/integration/instance/save.test.ts
41
+ 2 matching line(s): /workspace/repo/packages/core/test/integration/instance/decrement.test.ts
42
+ 2 matching line(s): /workspace/repo/packages/core/test/integration/instance/increment.test.ts
43
+ 2 matching line(s): /workspace/repo/packages/core/test/integration/error.test.ts
44
+ 4 matching line(s): /workspace/repo/packages/core/test/integration/json.test.ts
45
+ 6 matching line(s): /workspace/repo/packages/core/test/integration/model/update.test.ts
46
+ 2 matching line(s): /workspace/repo/packages/core/test/integration/model/destroy.test.ts
47
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/model/bulk-create.test.js
48
+ 1 matching line(s): /workspace/repo/packages/core/test/integration/model/notExist.test.js
49
+ 1 matching line(s): /workspace/repo/packages/core/test/unit/model-repository/destroy.test.ts
50
+ 1 matching line(s): /workspace/repo/packages/core/test/unit/model-repository/bulk-destroy.test.ts
51
+ 1 matching line(s): /workspace/repo/packages/core/test/unit/query.test.js
52
+ 1 matching line(s): /workspace/repo/packages/core/test/unit/associations/belongs-to-many.test.ts
53
+ 1 matching line(s): /workspace/repo/packages/core/test/unit/decorators/attribute.test.ts
54
+ 1 matching line(s): /workspace/repo/packages/core/test/unit/decorators/attribute-validator.test.ts
55
+ 2 matching line(s): /workspace/repo/packages/core/test/unit/instance/equals.test.ts
56
+ 2 matching line(s): /workspace/repo/packages/core/test/unit/instance/to-json.test.ts
57
+ 3 matching line(s): /workspace/repo/packages/core/test/unit/instance/changed.test.ts
58
+ 1 matching line(s): /workspace/repo/packages/core/test/unit/model/find-by-pk.test.ts
59
+ 1 matching line(s): /workspace/repo/packages/core/test/unit/model/define.test.ts
60
+ 3 matching line(s): /workspace/repo/packages/core/test/unit/model/overwriting-builtins.test.ts
61
+ 1 matching line(s): /workspace/repo/packages/core/test/types/models/user-group.ts
62
+ 18 matching line(s): /workspace/repo/packages/core/src/model.js
63
+ 10 matching line(s): /workspace/repo/packages/core/src/associations/belongs-to-many.ts
64
+ 3 matching line(s): /workspace/repo/packages/core/src/associations/belongs-to.ts
65
+ 10 matching line(s): /workspace/repo/packages/core/src/associations/has-many.ts
66
+ 3 matching line(s): /workspace/repo/packages/core/src/associations/has-one.ts
67
+ 10 matching line(s): /workspace/repo/packages/core/src/decorators/legacy/attribute.ts
68
+ 1 matching line(s): /workspace/repo/packages/core/src/decorators/legacy/table.ts
69
+ 2 matching line(s): /workspace/repo/packages/core/src/model.d.ts
70
+ 18 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/model.js
71
+ 3 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/associations/has-one.d.ts
72
+ 3 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/associations/belongs-to.d.ts
73
+ 1 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/associations/belongs-to-many.js.map
74
+ 1 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/associations/has-many.js.map
75
+ 1 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/associations/belongs-to.js.map
76
+ 10 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/associations/belongs-to-many.d.ts
77
+ 1 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/associations/has-one.js.map
78
+ 10 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/associations/has-many.d.ts
79
+ 10 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/decorators/legacy/attribute.d.ts
80
+ 1 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/decorators/legacy/attribute.js.map
81
+ 1 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/decorators/legacy/table.js.map
82
+ 1 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/decorators/legacy/table.d.ts
83
+ 2 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/model.d.ts
84
+ 1 matching line(s): /workspace/repo/.nx/cache/7236886943800812010/packages/core/lib/model.js.map
85
+ 2 matching line(s): /workspace/repo/.github/copilot-instructions.md
86
+ scan finished
87
+ absent: /hud
88
+ absent: /app
89
+ absent: /tests
90
+ present: /opt/task-tools/baseline.git
91
+ reference-patch lines in the agent's tracked files: 9, of which the pristine checkout lacks: 0
92
+ grader lines in the agent's tracked files: 1, of which the pristine checkout lacks: 0
93
+ reference-patch lines in total: 114, grader lines in total: 216
94
+ private lines in 0 other files outside the checkout: 0, of which upstream lacks: 0
95
+ --- private lines only the agent's checkout holds (expect none)
96
+ --- the agent's checkout: uncommitted changes (expect none), then its history
97
+ 0a0fc41 baseline
harbor/evidence/sequelize/native-reference.json ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "reward": 1.0,
3
+ "done": true,
4
+ "content": null,
5
+ "info": {
6
+ "diff_stat": {
7
+ "files": [
8
+ "packages/core/src/model.js",
9
+ "packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts"
10
+ ],
11
+ "added": 444,
12
+ "removed": 1
13
+ },
14
+ "graded_diff": "diff --git a/packages/core/src/model.js b/packages/core/src/model.js\nindex cb25a684a..da84d6840 100644\n--- a/packages/core/src/model.js\n+++ b/packages/core/src/model.js\n@@ -2327,6 +2327,10 @@ ${associationOwner._getAssociationDebugList()}`);\n \n const modelDefinition = model.modelDefinition;\n \n+ // Instances whose row the database skipped (ignoreDuplicates). They are\n+ // left as the caller built them: unsaved, and carrying no other row's values.\n+ const skipped = new Set();\n+\n options.fields = options.fields || Array.from(modelDefinition.attributes.keys());\n const createdAtAttr = modelDefinition.timestampAttributeNames.createdAt;\n const updatedAtAttr = modelDefinition.timestampAttributeNames.updatedAt;\n@@ -2497,6 +2501,21 @@ ${associationOwner._getAssociationDebugList()}`);\n );\n }\n \n+ // With ignoreDuplicates, a RETURNING dialect only hands back the rows\n+ // it actually inserted, so the returned rows cannot be matched to the\n+ // records by position. They are matched on the model's candidate keys\n+ // instead; make sure those columns come back even when the caller\n+ // restricted the returning list.\n+ const identityKeys =\n+ options.ignoreDuplicates &&\n+ options.returning &&\n+ model.sequelize.dialect.supports.returnValues\n+ ? model._bulkCreateIdentityKeys()\n+ : null;\n+ if (identityKeys && Array.isArray(options.returning)) {\n+ options.returning = uniq([...options.returning, ...identityKeys.flat()]);\n+ }\n+\n const results = await model.queryInterface.bulkInsert(\n model.table,\n records,\n@@ -2504,9 +2523,17 @@ ${associationOwner._getAssociationDebugList()}`);\n fieldMappedAttributes,\n );\n if (Array.isArray(results)) {\n- for (const [i, result] of results.entries()) {\n+ const resultForInstance = identityKeys\n+ ? model._matchReturnedRows(instances, records, results, identityKeys, skipped)\n+ : results;\n+\n+ for (const [i, result] of resultForInstance.entries()) {\n const instance = instances[i];\n \n+ if (!result) {\n+ continue;\n+ }\n+\n for (const key in result) {\n if (!Object.hasOwn(result, key)) {\n continue;\n@@ -2555,6 +2582,12 @@ ${associationOwner._getAssociationDebugList()}`);\n const associationInstanceIndexToInstanceMap = [];\n \n for (const instance of instances) {\n+ if (skipped.has(instance)) {\n+ // the parent row was not created by this call, so its key\n+ // is unknown; its children must not be stored under it\n+ continue;\n+ }\n+\n let associated = instance.get(include.as);\n if (!Array.isArray(associated)) {\n associated = [associated];\n@@ -2660,6 +2693,20 @@ ${associationOwner._getAssociationDebugList()}`);\n \n // map fields back to attributes\n for (const instance of instances) {\n+ if (skipped.has(instance)) {\n+ // the timestamps this call filled in were never stored for a\n+ // skipped record; drop them so the instance shows only its own state\n+ if (createdAtAttr && instance.dataValues[createdAtAttr] === now) {\n+ delete instance.dataValues[createdAtAttr];\n+ }\n+\n+ if (updatedAtAttr && instance.dataValues[updatedAtAttr] === now) {\n+ delete instance.dataValues[updatedAtAttr];\n+ }\n+\n+ continue;\n+ }\n+\n const attributeDefs = modelDefinition.attributes;\n \n for (const attribute of attributeDefs.values()) {\n@@ -2692,6 +2739,165 @@ ${associationOwner._getAssociationDebugList()}`);\n return await recursiveBulkCreate(instances, options);\n }\n \n+ /**\n+ * The column sets a returned row can be identified by: the primary key and\n+ * every non-partial unique index. Used by {@link Model.bulkCreate} to match\n+ * the rows a RETURNING dialect hands back to the records that were sent\n+ * when `ignoreDuplicates` may have skipped some of them.\n+ *\n+ * @returns {string[][]} column names, one array per candidate key\n+ * @private\n+ */\n+ static _bulkCreateIdentityKeys() {\n+ const keys = [];\n+ const seen = new Set();\n+ const add = columns => {\n+ const normalized = columns.map(column => (typeof column === 'string' ? column : column.name));\n+ const id = normalized.join('\\0');\n+ if (normalized.length > 0 && !seen.has(id)) {\n+ seen.add(id);\n+ keys.push(normalized);\n+ }\n+ };\n+\n+ add(Object.values(this.primaryKeys).map(attribute => attribute.field));\n+ for (const index of this.getIndexes()) {\n+ if (index.unique && !index.where && index.fields) {\n+ add(index.fields);\n+ }\n+ }\n+\n+ return keys;\n+ }\n+\n+ /**\n+ * Pairs the rows returned by a bulk INSERT with the records that produced\n+ * them. A row belongs to the first not-yet-paired record that agrees with\n+ * it on one of the candidate keys; the row order is never relied on.\n+ * Records that no row matches were skipped by the database and are added\n+ * to `skipped`. Refuses to guess: if a returned row cannot be attributed\n+ * to any record, an error is thrown rather than assigning it by position.\n+ *\n+ * @param {Model[]} instances the instances, in record order\n+ * @param {object[]} records the column-keyed values sent for each instance\n+ * @param {object[]} results the rows the database returned\n+ * @param {string[][]} identityKeys from {@link Model._bulkCreateIdentityKeys}\n+ * @param {Set<Model>} skipped receives the instances whose row was not inserted\n+ * @returns {Array<object|null>} the matching row for each instance, or null\n+ * @private\n+ */\n+ static _matchReturnedRows(instances, records, results, identityKeys, skipped) {\n+ const modelDefinition = this.modelDefinition;\n+\n+ const normalize = value => {\n+ if (value instanceof Date) {\n+ return value.toISOString();\n+ }\n+\n+ if (Buffer.isBuffer(value)) {\n+ return value.toString('hex');\n+ }\n+\n+ return String(value);\n+ };\n+\n+ const parseRow = row => {\n+ const out = pojo();\n+ for (const column of Object.keys(row)) {\n+ const attribute = modelDefinition.columns.get(column);\n+ out[column] =\n+ row[column] != null && attribute?.type instanceof AbstractDataType\n+ ? attribute.type.parseDatabaseValue(row[column])\n+ : row[column];\n+ }\n+\n+ return out;\n+ };\n+\n+ // every key signature a column-keyed value set can be identified by\n+ const signaturesOf = values => {\n+ const signatures = [];\n+ for (const [k, key] of identityKeys.entries()) {\n+ const parts = [];\n+ for (const column of key) {\n+ if (values[column] == null) {\n+ parts.length = 0;\n+ break;\n+ }\n+\n+ parts.push(normalize(values[column]));\n+ }\n+\n+ if (parts.length > 0) {\n+ signatures.push(`${k}:${parts.join('\\0')}`);\n+ }\n+ }\n+\n+ return signatures;\n+ };\n+\n+ const rowsBySignature = new Map();\n+ const unpaired = new Set(results);\n+ for (const row of results) {\n+ for (const signature of signaturesOf(parseRow(row))) {\n+ if (!rowsBySignature.has(signature)) {\n+ rowsBySignature.set(signature, []);\n+ }\n+\n+ rowsBySignature.get(signature).push(row);\n+ }\n+ }\n+\n+ const paired = instances.map(() => null);\n+ const withoutKey = [];\n+ for (const [i, instance] of instances.entries()) {\n+ const signatures = signaturesOf(records[i]);\n+ if (signatures.length === 0) {\n+ withoutKey.push(i);\n+ continue;\n+ }\n+\n+ for (const signature of signatures) {\n+ const row = (rowsBySignature.get(signature) ?? []).find(candidate =>\n+ unpaired.has(candidate),\n+ );\n+ if (row) {\n+ paired[i] = row;\n+ unpaired.delete(row);\n+ break;\n+ }\n+ }\n+\n+ if (!paired[i]) {\n+ skipped.add(instance);\n+ }\n+ }\n+\n+ // Records that carry no value for any candidate key cannot have\n+ // conflicted, so the leftover rows are theirs, provided the counts agree.\n+ if (withoutKey.length > 0) {\n+ if (unpaired.size !== withoutKey.length) {\n+ throw new Error(\n+ `bulkCreate could not attribute the rows returned by the database to the records: ${unpaired.size} returned row(s) left for ${withoutKey.length} record(s) without a key value.`,\n+ );\n+ }\n+\n+ const leftovers = results.filter(row => unpaired.has(row));\n+ for (const [j, i] of withoutKey.entries()) {\n+ paired[i] = leftovers[j];\n+ unpaired.delete(leftovers[j]);\n+ }\n+ }\n+\n+ if (unpaired.size > 0) {\n+ throw new Error(\n+ `bulkCreate could not attribute ${unpaired.size} row(s) returned by the database to any record. Every candidate key column must be part of the returned columns.`,\n+ );\n+ }\n+\n+ return paired;\n+ }\n+\n /**\n * Truncates the table associated with the model.\n *\ndiff --git a/packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts b/packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts\nnew file mode 100644\nindex 000000000..69e8c1ab8\n--- /dev/null\n+++ b/packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts\n@@ -0,0 +1,237 @@\n+import type {\n+ CreationOptional,\n+ InferAttributes,\n+ InferCreationAttributes,\n+ NonAttribute,\n+} from '@sequelize/core';\n+import { DataTypes, Model } from '@sequelize/core';\n+import { expect } from 'chai';\n+import { beforeAll2, sequelize, setResetMode } from '../../support';\n+\n+const dialect = sequelize.dialect;\n+\n+// With ignoreDuplicates, a RETURNING dialect only returns the rows it actually\n+// inserted. The instances bulkCreate returns must still line up with the\n+// records that were passed in.\n+describe('Model.bulkCreate with ignoreDuplicates on a RETURNING dialect', () => {\n+ if (\n+ !dialect.supports.returnValues ||\n+ !(dialect.supports.inserts.ignoreDuplicates || dialect.supports.inserts.onConflictDoNothing)\n+ ) {\n+ return;\n+ }\n+\n+ setResetMode('destroy');\n+\n+ const vars = beforeAll2(async () => {\n+ class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> {\n+ declare id: CreationOptional<number>;\n+ declare uniqueName: string;\n+ declare secretValue: string | null;\n+ declare createdAt: CreationOptional<Date>;\n+ declare updatedAt: CreationOptional<Date>;\n+ declare tasks?: NonAttribute<Task[]>;\n+ }\n+\n+ class Task extends Model<InferAttributes<Task>, InferCreationAttributes<Task>> {\n+ declare id: CreationOptional<number>;\n+ declare title: string;\n+ declare userId: CreationOptional<number | null>;\n+ }\n+\n+ class Seat extends Model<InferAttributes<Seat>, InferCreationAttributes<Seat>> {\n+ declare id: CreationOptional<number>;\n+ declare room: string;\n+ declare number: number;\n+ declare label: string | null;\n+ }\n+\n+ class Code extends Model<InferAttributes<Code>, InferCreationAttributes<Code>> {\n+ declare code: string;\n+ declare label: string | null;\n+ }\n+\n+ User.init(\n+ {\n+ id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },\n+ uniqueName: { type: DataTypes.STRING, unique: true, allowNull: false },\n+ secretValue: DataTypes.STRING,\n+ },\n+ { sequelize },\n+ );\n+ Task.init(\n+ {\n+ id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },\n+ title: { type: DataTypes.STRING, allowNull: false },\n+ },\n+ { sequelize },\n+ );\n+ Seat.init(\n+ {\n+ id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },\n+ room: { type: DataTypes.STRING, allowNull: false },\n+ number: { type: DataTypes.INTEGER, allowNull: false },\n+ label: DataTypes.STRING,\n+ },\n+ { sequelize, indexes: [{ unique: true, fields: ['room', 'number'] }] },\n+ );\n+ Code.init(\n+ {\n+ code: { type: DataTypes.STRING, primaryKey: true },\n+ label: DataTypes.STRING,\n+ },\n+ { sequelize },\n+ );\n+\n+ User.hasMany(Task, { as: 'tasks', foreignKey: 'userId' });\n+\n+ await sequelize.sync({ force: true });\n+\n+ return { User, Task, Seat, Code };\n+ });\n+\n+ it('assigns each returned row to its own record when some records are skipped', async () => {\n+ const { User } = vars;\n+ await User.bulkCreate([\n+ { uniqueName: 'Peter', secretValue: '42' },\n+ { uniqueName: 'Paul', secretValue: '23' },\n+ ]);\n+\n+ const statements: string[] = [];\n+ const result = await User.bulkCreate(\n+ [\n+ { uniqueName: 'Peter', secretValue: 'dup' },\n+ { uniqueName: 'Michael', secretValue: '26' },\n+ { uniqueName: 'Paul', secretValue: 'dup' },\n+ { uniqueName: 'Anna', secretValue: '27' },\n+ ],\n+ { ignoreDuplicates: true, logging: sql => statements.push(sql) },\n+ );\n+\n+ expect(statements).to.have.length(1);\n+ expect(result.map(user => user.uniqueName)).to.deep.equal(['Peter', 'Michael', 'Paul', 'Anna']);\n+\n+ const rows = await User.findAll({ order: ['id'], raw: true });\n+ expect(rows.map(row => row.uniqueName)).to.deep.equal(['Peter', 'Paul', 'Michael', 'Anna']);\n+\n+ const byName = new Map(rows.map(row => [row.uniqueName, row]));\n+ for (const inserted of [result[1], result[3]]) {\n+ expect(inserted.isNewRecord).to.equal(false);\n+ expect(inserted.id).to.equal(byName.get(inserted.uniqueName)!.id);\n+ expect(inserted.secretValue).to.equal(byName.get(inserted.uniqueName)!.secretValue);\n+ expect(inserted.changed()).to.equal(false);\n+ }\n+\n+ for (const skipped of [result[0], result[2]]) {\n+ expect(skipped.isNewRecord).to.equal(true);\n+ expect(skipped.id).to.equal(null);\n+ expect(skipped.secretValue).to.equal('dup');\n+ // nothing was stored for it, so it carries no generated timestamps either\n+ expect(skipped.createdAt).to.equal(undefined);\n+ expect(skipped.updatedAt).to.equal(undefined);\n+ }\n+ });\n+\n+ it('does not report any record as persisted when every row is skipped', async () => {\n+ const { User } = vars;\n+ await User.bulkCreate([{ uniqueName: 'Peter' }, { uniqueName: 'Paul' }]);\n+\n+ const result = await User.bulkCreate([{ uniqueName: 'Peter' }, { uniqueName: 'Paul' }], {\n+ ignoreDuplicates: true,\n+ });\n+\n+ expect(result.map(user => user.uniqueName)).to.deep.equal(['Peter', 'Paul']);\n+ for (const user of result) {\n+ expect(user.isNewRecord).to.equal(true);\n+ expect(user.id).to.equal(null);\n+ }\n+\n+ expect(await User.count()).to.equal(2);\n+ });\n+\n+ it('does not store the children of a skipped record under another record', async () => {\n+ const { User, Task } = vars;\n+ await User.bulkCreate([{ uniqueName: 'Peter' }]);\n+\n+ const records = [\n+ { uniqueName: 'Peter', secretValue: null, tasks: [{ title: 'peter-task' }] },\n+ { uniqueName: 'Michael', secretValue: null, tasks: [{ title: 'michael-task' }] },\n+ ];\n+ const result = await User.bulkCreate(records, {\n+ ignoreDuplicates: true,\n+ include: [{ model: Task, as: 'tasks' }],\n+ });\n+\n+ const michael = await User.findOne({ where: { uniqueName: 'Michael' }, rejectOnEmpty: true });\n+ expect(result[1].id).to.equal(michael.id);\n+\n+ const tasks = await Task.findAll({ order: ['id'], raw: true });\n+ expect(tasks).to.have.length(1);\n+ expect(tasks[0].title).to.equal('michael-task');\n+ expect(tasks[0].userId).to.equal(michael.id);\n+\n+ expect(result[0].isNewRecord).to.equal(true);\n+ expect(result[0].tasks![0].isNewRecord).to.equal(true);\n+ });\n+\n+ it('matches on a composite unique key', async () => {\n+ const { Seat } = vars;\n+ await Seat.bulkCreate([{ room: 'A', number: 1, label: 'taken' }]);\n+\n+ const result = await Seat.bulkCreate(\n+ [\n+ { room: 'A', number: 1, label: 'dup' },\n+ { room: 'A', number: 2, label: 'new' },\n+ { room: 'B', number: 1, label: 'new' },\n+ ],\n+ { ignoreDuplicates: true },\n+ );\n+\n+ const rows = await Seat.findAll({ order: ['id'], raw: true });\n+ expect(rows).to.have.length(3);\n+ expect(result[0].isNewRecord).to.equal(true);\n+ expect(result[0].label).to.equal('dup');\n+ expect(result[1].id).to.equal(rows[1].id);\n+ expect(result[1].room + result[1].number).to.equal('A2');\n+ expect(result[2].id).to.equal(rows[2].id);\n+ expect(result[2].room + result[2].number).to.equal('B1');\n+ });\n+\n+ it('matches on a caller-supplied primary key', async () => {\n+ const { Code } = vars;\n+ await Code.bulkCreate([{ code: 'x', label: 'taken' }]);\n+\n+ const result = await Code.bulkCreate(\n+ [\n+ { code: 'x', label: 'dup' },\n+ { code: 'y', label: 'new' },\n+ ],\n+ { ignoreDuplicates: true },\n+ );\n+\n+ expect(result[0].isNewRecord).to.equal(true);\n+ expect(result[0].label).to.equal('dup');\n+ expect(result[1].isNewRecord).to.equal(false);\n+ expect(result[1].label).to.equal('new');\n+ expect((await Code.findByPk('x', { rejectOnEmpty: true })).label).to.equal('taken');\n+ });\n+\n+ it('keeps the rows aligned when the returning list omits the key columns', async () => {\n+ const { User } = vars;\n+ await User.bulkCreate([{ uniqueName: 'Peter', secretValue: '42' }]);\n+\n+ const result = await User.bulkCreate(\n+ [\n+ { uniqueName: 'Peter', secretValue: 'dup' },\n+ { uniqueName: 'Michael', secretValue: '26' },\n+ ],\n+ { ignoreDuplicates: true, returning: ['id'] },\n+ );\n+\n+ const michael = await User.findOne({ where: { uniqueName: 'Michael' }, rejectOnEmpty: true });\n+ expect(result[0].isNewRecord).to.equal(true);\n+ expect(result[0].id).to.equal(null);\n+ expect(result[1].id).to.equal(michael.id);\n+ expect(result[1].isNewRecord).to.equal(false);\n+ });\n+});\n"
15
+ },
16
+ "isError": false,
17
+ "subscores": [
18
+ {
19
+ "name": "aligned_inserted",
20
+ "weight": 0.1875,
21
+ "value": 1.0,
22
+ "children": null,
23
+ "info": {
24
+ "exit_code": 0,
25
+ "stdout": "CRITERION aligned_inserted: PASS\n",
26
+ "stderr": "",
27
+ "_parameters": {
28
+ "command": "bash /hud/grader/run_grading.sh aligned_inserted",
29
+ "cwd": "/workspace/repo",
30
+ "timeout_seconds": 900
31
+ }
32
+ }
33
+ },
34
+ {
35
+ "name": "skipped_honest",
36
+ "weight": 0.125,
37
+ "value": 1.0,
38
+ "children": null,
39
+ "info": {
40
+ "exit_code": 0,
41
+ "stdout": "CRITERION skipped_honest: PASS\n",
42
+ "stderr": "",
43
+ "_parameters": {
44
+ "command": "bash /hud/grader/run_grading.sh skipped_honest",
45
+ "cwd": "/workspace/repo",
46
+ "timeout_seconds": 900
47
+ }
48
+ }
49
+ },
50
+ {
51
+ "name": "expression_columns",
52
+ "weight": 0.0625,
53
+ "value": 1.0,
54
+ "children": null,
55
+ "info": {
56
+ "exit_code": 0,
57
+ "stdout": "CRITERION expression_columns: PASS\n",
58
+ "stderr": "",
59
+ "_parameters": {
60
+ "command": "bash /hud/grader/run_grading.sh expression_columns",
61
+ "cwd": "/workspace/repo",
62
+ "timeout_seconds": 900
63
+ }
64
+ }
65
+ },
66
+ {
67
+ "name": "skipped_timestamps",
68
+ "weight": 0.0625,
69
+ "value": 1.0,
70
+ "children": null,
71
+ "info": {
72
+ "exit_code": 0,
73
+ "stdout": "CRITERION skipped_timestamps: PASS\n",
74
+ "stderr": "",
75
+ "_parameters": {
76
+ "command": "bash /hud/grader/run_grading.sh skipped_timestamps",
77
+ "cwd": "/workspace/repo",
78
+ "timeout_seconds": 900
79
+ }
80
+ }
81
+ },
82
+ {
83
+ "name": "returning_restricted",
84
+ "weight": 0.125,
85
+ "value": 1.0,
86
+ "children": null,
87
+ "info": {
88
+ "exit_code": 0,
89
+ "stdout": "CRITERION returning_restricted: PASS\n",
90
+ "stderr": "",
91
+ "_parameters": {
92
+ "command": "bash /hud/grader/run_grading.sh returning_restricted",
93
+ "cwd": "/workspace/repo",
94
+ "timeout_seconds": 900
95
+ }
96
+ }
97
+ },
98
+ {
99
+ "name": "date_key",
100
+ "weight": 0.0625,
101
+ "value": 1.0,
102
+ "children": null,
103
+ "info": {
104
+ "exit_code": 0,
105
+ "stdout": "CRITERION date_key: PASS\n",
106
+ "stderr": "",
107
+ "_parameters": {
108
+ "command": "bash /hud/grader/run_grading.sh date_key",
109
+ "cwd": "/workspace/repo",
110
+ "timeout_seconds": 900
111
+ }
112
+ }
113
+ },
114
+ {
115
+ "name": "children_attachment",
116
+ "weight": 0.0625,
117
+ "value": 1.0,
118
+ "children": null,
119
+ "info": {
120
+ "exit_code": 0,
121
+ "stdout": "CRITERION children_attachment: PASS\n",
122
+ "stderr": "",
123
+ "_parameters": {
124
+ "command": "bash /hud/grader/run_grading.sh children_attachment",
125
+ "cwd": "/workspace/repo",
126
+ "timeout_seconds": 900
127
+ }
128
+ }
129
+ },
130
+ {
131
+ "name": "key_variants",
132
+ "weight": 0.0625,
133
+ "value": 1.0,
134
+ "children": null,
135
+ "info": {
136
+ "exit_code": 0,
137
+ "stdout": "CRITERION key_variants: PASS\n",
138
+ "stderr": "",
139
+ "_parameters": {
140
+ "command": "bash /hud/grader/run_grading.sh key_variants",
141
+ "cwd": "/workspace/repo",
142
+ "timeout_seconds": 900
143
+ }
144
+ }
145
+ },
146
+ {
147
+ "name": "untouched_paths",
148
+ "weight": 0.0625,
149
+ "value": 1.0,
150
+ "children": null,
151
+ "info": {
152
+ "exit_code": 0,
153
+ "stdout": "CRITERION untouched_paths: PASS\n",
154
+ "stderr": "",
155
+ "_parameters": {
156
+ "command": "bash /hud/grader/run_grading.sh untouched_paths",
157
+ "cwd": "/workspace/repo",
158
+ "timeout_seconds": 900
159
+ }
160
+ }
161
+ },
162
+ {
163
+ "name": "no_regression",
164
+ "weight": 0.0625,
165
+ "value": 1.0,
166
+ "children": null,
167
+ "info": {
168
+ "exit_code": 0,
169
+ "stdout": "CRITERION no_regression: PASS\n",
170
+ "stderr": "",
171
+ "_parameters": {
172
+ "command": "bash /hud/grader/run_grading.sh no_regression",
173
+ "cwd": "/workspace/repo",
174
+ "timeout_seconds": 1800
175
+ }
176
+ }
177
+ },
178
+ {
179
+ "name": "test_quality",
180
+ "weight": 0.0625,
181
+ "value": 1.0,
182
+ "children": null,
183
+ "info": {
184
+ "exit_code": 0,
185
+ "stdout": " [grader] agent test files: integration/model/bulk-create/ignore-duplicates.test.ts\nCRITERION test_quality: PASS\n",
186
+ "stderr": "",
187
+ "_parameters": {
188
+ "command": "bash /hud/grader/run_grading.sh test_quality",
189
+ "cwd": "/workspace/repo",
190
+ "timeout_seconds": 900
191
+ }
192
+ }
193
+ },
194
+ {
195
+ "name": "maintainer_review",
196
+ "weight": 0.0625,
197
+ "value": 1.0,
198
+ "children": [
199
+ {
200
+ "name": "The diff changes the behaviour of the bulk-create path in packages/core/src/model.js (a diff that adds only comments, whitespace or formatting does not) and stays on-ticket: changes are confined to that path and closely related code, plus its tests. No unrelated drive-by edits, and no edits to pre-existing test files.",
201
+ "weight": 1.0,
202
+ "value": 1.0,
203
+ "children": null,
204
+ "info": {
205
+ "reason": "The diff changes bulkCreate behaviour in model.js. It matches returned rows to records by key, tracks skipped instances, skips children of skipped parents, and widens the returning list. The two new static helpers serve only this path. The only test change is a new test file, and no pre-existing test files are edited. I found no unrelated drive-by edits."
206
+ }
207
+ },
208
+ {
209
+ "name": "Judge only the lines the diff adds to packages/core/src/model.js; ignore test files and every other file. The ticket requires the behaviour to hold \"whatever the model definition\". Check this mechanically: list every quoted string literal (single, double or backtick quotes) in those added lines. Answer No only if one of those literals is exactly equal to one of these names used by the ticket's or the tests' models: 'id', 'uniqueName', 'secretValue', 'createdAt', 'updatedAt', 'deletedAt', 'room', 'number', 'code', 'label', 'title', 'userId', 'users', 'User', 'Task', 'Seat', 'Code'. Every other literal counts as Yes, for example type names in typeof checks such as 'string' or 'object', encodings such as 'hex', separators such as '\\0' or ':', option names such as 'ignoreDuplicates' or 'returning', dialect names, error messages, and keys the code makes up for its own bookkeeping. Reading names through variables, loops, attribute.field, primaryKeys, rawAttributes, getIndexes() or other model metadata is not a quoted literal and counts as Yes. If no added line contains one of the listed names as a whole quoted literal, answer Yes. Do not mark this No for weaknesses in the matching logic itself; other checks grade behaviour.",
210
+ "weight": 1.0,
211
+ "value": 1.0,
212
+ "children": null,
213
+ "info": {
214
+ "reason": "The quoted literals added to model.js are 'string', 'hex', '\\0', the `${k}:${...}` template and two error-message templates. None of them exactly equals a listed name such as 'id', 'uniqueName' or 'User'. Key and column names are read from model metadata (primaryKeys, attribute.field, getIndexes(), columns) rather than hardcoded."
215
+ }
216
+ },
217
+ {
218
+ "name": "At least one test file added by the diff calls bulkCreate with ignoreDuplicates: true on a batch in which at least one record conflicts with a row already in the table, and asserts on the instances returned by that same call: for an inserted record, isNewRecord is false and its primary key equals the key of its row in the table; for a skipped record, isNewRecord is true. Assertions made only on the table contents (count, findAll) do not meet this criterion.",
219
+ "weight": 1.0,
220
+ "value": 1.0,
221
+ "children": null,
222
+ "info": {
223
+ "reason": "The first integration test in ignore-duplicates.test.ts calls User.bulkCreate with ignoreDuplicates: true on a batch where Peter and Paul already exist in the table. It asserts on the instances returned by that same call. For the inserted records (Michael, Anna), isNewRecord is false and id equals the id of the matching row read back with findAll. For the skipped records (Peter, Paul), isNewRecord is true. These are assertions on the returned instances, not only on table contents."
224
+ }
225
+ }
226
+ ],
227
+ "info": {
228
+ "model": "anthropic/claude-sonnet-5.5",
229
+ "_parameters": {
230
+ "answer": "(answer elided; 18232 chars)",
231
+ "criteria": [
232
+ "The diff changes the behaviour of the bulk-create path in packages/core/src/model.js (a diff that adds only comments, whitespace or formatting does not) and stays on-ticket: changes are confined to that path and closely related code, plus its tests. No unrelated drive-by edits, and no edits to pre-existing test files.",
233
+ "Judge only the lines the diff adds to packages/core/src/model.js; ignore test files and every other file. The ticket requires the behaviour to hold \"whatever the model definition\". Check this mechanically: list every quoted string literal (single, double or backtick quotes) in those added lines. Answer No only if one of those literals is exactly equal to one of these names used by the ticket's or the tests' models: 'id', 'uniqueName', 'secretValue', 'createdAt', 'updatedAt', 'deletedAt', 'room', 'number', 'code', 'label', 'title', 'userId', 'users', 'User', 'Task', 'Seat', 'Code'. Every other literal counts as Yes, for example type names in typeof checks such as 'string' or 'object', encodings such as 'hex', separators such as '\\0' or ':', option names such as 'ignoreDuplicates' or 'returning', dialect names, error messages, and keys the code makes up for its own bookkeeping. Reading names through variables, loops, attribute.field, primaryKeys, rawAttributes, getIndexes() or other model metadata is not a quoted literal and counts as Yes. If no added line contains one of the listed names as a whole quoted literal, answer Yes. Do not mark this No for weaknesses in the matching logic itself; other checks grade behaviour.",
234
+ "At least one test file added by the diff calls bulkCreate with ignoreDuplicates: true on a batch in which at least one record conflicts with a row already in the table, and asserts on the instances returned by that same call: for an inserted record, isNewRecord is false and its primary key equals the key of its row in the table; for a skipped record, isNewRecord is true. Assertions made only on the table contents (count, findAll) do not meet this criterion."
235
+ ],
236
+ "question": "(question elided; 441 chars)",
237
+ "model": "anthropic/claude-sonnet-5.5"
238
+ }
239
+ }
240
+ }
241
+ ]
242
+ }
harbor/evidence/sequelize/reports/noop.json ADDED
@@ -0,0 +1,399 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "revision": "coding-rubric-v2",
3
+ "task_id": "bulkcreate_ignore_duplicates",
4
+ "grader_version": "0.6.13",
5
+ "commands": [
6
+ {
7
+ "name": "aligned_inserted",
8
+ "weight": 0.1875,
9
+ "value": 0.0,
10
+ "children": null,
11
+ "info": {
12
+ "exit_code": 1,
13
+ "stdout": " ----- hidden suite __hidden__aligned_inserted.test.js (last 2500 bytes) -----\n | hidden: inserted records are aligned with their rows\n | mixed batch: each inserted instance carries its own row:\n | \n | AssertionError: expected [ 'Michael', 'Anna', 'Paul', 'Anna' ] to deeply equal [ 'Peter', 'Michael', 'Paul', 'Anna' ] \n | actual expected\n | \n | 1 | [\n | 2 | \"MichaelPeter\"\n | 3 | \"AnnaMichael\"\n | 4 | \"Paul\"\n | 5 | \"Anna\"\n | 6 | ]\n | \n | at Proxy.assertEql (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1097:10)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1035:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__aligned_inserted.test.js:33:51)\n | \n | 2) hidden: inserted records are aligned with their rows\n | a skipped record first, then several inserted ones:\n | \n | AssertionError: expected 'c' to equal 'b' \n | actual expected\n | \n | cb\n | \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__aligned_inserted.test.js:80:39)\n | \n | \n | \n -----\nCRITERION aligned_inserted: FAIL\n",
14
+ "stderr": "",
15
+ "_parameters": {
16
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh aligned_inserted'",
17
+ "cwd": "/workspace/repo",
18
+ "timeout_seconds": 900
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "name": "skipped_honest",
24
+ "weight": 0.125,
25
+ "value": 0.0,
26
+ "children": null,
27
+ "info": {
28
+ "exit_code": 1,
29
+ "stdout": " ----- hidden suite __hidden__skipped_honest.test.js (last 2500 bytes) -----\n | ssertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__skipped_honest.test.js:34:37)\n | \n | 2) hidden: skipped records are reported honestly\n | all records skipped: no throw, nothing persisted, table unchanged:\n | \n | AssertionError: expected false to equal true \n | actual expected\n | \n | falsetrue\n | \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__skipped_honest.test.js:64:35)\n | \n | 3) hidden: skipped records are reported honestly\n | duplicates inside the same batch: the second copy is skipped:\n | \n | AssertionError: expected [ \u2026(3) ] to have a length of 2 but got 3 \n | actual expected\n | \n | 32\n | \n | at Proxy.assertLength (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:2147:10)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:272:28)\n | at Proxy.overwritingChainableMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js:60:34)\n | at Proxy.chainableMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addChainableMethod.js:113:49)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__skipped_honest.test.js:86:31)\n | \n | \n | \n -----\nCRITERION skipped_honest: FAIL\n",
30
+ "stderr": "",
31
+ "_parameters": {
32
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh skipped_honest'",
33
+ "cwd": "/workspace/repo",
34
+ "timeout_seconds": 900
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "name": "expression_columns",
40
+ "weight": 0.0625,
41
+ "value": 0.0,
42
+ "children": null,
43
+ "info": {
44
+ "exit_code": 1,
45
+ "stdout": " ----- hidden suite __hidden__expression_columns.test.js (last 2500 bytes) -----\n | /runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1035:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__expression_columns.test.js:31:45)\n | \n | 2) hidden: non-key columns computed by the database\n | value passed as a SQL expression in a non-key column:\n | \n | AssertionError: expected [ 'b', 'c', 'c' ] to deeply equal [ 'a', 'b', 'c' ] \n | actual expected\n | \n | 1 | [\n | 2 | \"ba\"\n | 3 | \"cb\"\n | 4 | \"c\"\n | 5 | ]\n | \n | at Proxy.assertEql (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1097:10)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1035:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__expression_columns.test.js:64:44)\n | \n | \n | \n -----\nCRITERION expression_columns: FAIL\n",
46
+ "stderr": "",
47
+ "_parameters": {
48
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh expression_columns'",
49
+ "cwd": "/workspace/repo",
50
+ "timeout_seconds": 900
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "skipped_timestamps",
56
+ "weight": 0.0625,
57
+ "value": 0.0,
58
+ "children": null,
59
+ "info": {
60
+ "exit_code": 1,
61
+ "stdout": " ----- hidden suite __hidden__skipped_timestamps.test.js (last 2500 bytes) -----\n | (node:389) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:\n | --import 'data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"ts-node/esm\", pathToFileURL(\"./\"));'\n | (Use `node --trace-warnings ...` to show where the warning was created)\n | (node:389) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.\n | (Use `node --trace-deprecation ...` to show where the warning was created)\n | \n | \n | hidden: timestamps on skipped records\n | 1) a skipped record carries no generated timestamps\n | 2) a timestamp the caller supplied on a skipped record is kept\n | \n | \n | 0 passing (93ms)\n | 2 failing\n | \n | 1) hidden: timestamps on skipped records\n | a skipped record carries no generated timestamps:\n | \n | AssertionError: expected false to equal true \n | actual expected\n | \n | falsetrue\n | \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__skipped_timestamps.test.js:22:38)\n | \n | 2) hidden: timestamps on skipped records\n | a timestamp the caller supplied on a skipped record is kept:\n | \n | AssertionError: expected false to equal true \n | actual expected\n | \n | falsetrue\n | \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__skipped_timestamps.test.js:46:38)\n | \n | \n | \n -----\nCRITERION skipped_timestamps: FAIL\n",
62
+ "stderr": "",
63
+ "_parameters": {
64
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh skipped_timestamps'",
65
+ "cwd": "/workspace/repo",
66
+ "timeout_seconds": 900
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "name": "returning_restricted",
72
+ "weight": 0.125,
73
+ "value": 0.0,
74
+ "children": null,
75
+ "info": {
76
+ "exit_code": 1,
77
+ "stdout": " ----- hidden suite __hidden__returning_restricted.test.js (last 2500 bytes) -----\n | st\n | returning: [id] with a composite unique key:\n | \n | AssertionError: expected false to equal true \n | actual expected\n | \n | falsetrue\n | \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__returning_restricted.test.js:58:38)\n | \n | 3) hidden: restricted returning list\n | restricted returning list, non-key values identical across the batch:\n | AssertionError: expected 3 to equal null\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__returning_restricted.test.js:81:29)\n | \n | 4) hidden: restricted returning list\n | restricted returning list, skipped record has no non-key values:\n | AssertionError: expected 3 to equal null\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__returning_restricted.test.js:105:29)\n | \n | \n | \n -----\nCRITERION returning_restricted: FAIL\n",
78
+ "stderr": "",
79
+ "_parameters": {
80
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh returning_restricted'",
81
+ "cwd": "/workspace/repo",
82
+ "timeout_seconds": 900
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "name": "date_key",
88
+ "weight": 0.0625,
89
+ "value": 0.0,
90
+ "children": null,
91
+ "info": {
92
+ "exit_code": 1,
93
+ "stdout": " ----- hidden suite __hidden__date_key.test.js (last 2500 bytes) -----\n | (node:523) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:\n | --import 'data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"ts-node/esm\", pathToFileURL(\"./\"));'\n | (Use `node --trace-warnings ...` to show where the warning was created)\n | (node:523) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.\n | (Use `node --trace-deprecation ...` to show where the warning was created)\n | \n | \n | hidden: unique key of DATE type\n | 1) mixed batch keyed by a DATE column, other columns identical\n | \n | \n | 0 passing (80ms)\n | 1 failing\n | \n | 1) hidden: unique key of DATE type\n | mixed batch keyed by a DATE column, other columns identical:\n | \n | AssertionError: expected false to equal true \n | actual expected\n | \n | falsetrue\n | \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__date_key.test.js:42:38)\n | \n | \n | \n -----\nCRITERION date_key: FAIL\n",
94
+ "stderr": "",
95
+ "_parameters": {
96
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh date_key'",
97
+ "cwd": "/workspace/repo",
98
+ "timeout_seconds": 900
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "children_attachment",
104
+ "weight": 0.0625,
105
+ "value": 0.0,
106
+ "children": null,
107
+ "info": {
108
+ "exit_code": 1,
109
+ "stdout": " ----- hidden suite __hidden__children_attachment.test.js (last 2500 bytes) -----\n | the next parent\n | 2) skipped parent in the middle\n | \n | \n | 0 passing (133ms)\n | 2 failing\n | \n | 1) hidden: children of skipped records\n | skipped parent first: its children are not attached to the next parent:\n | \n | AssertionError: expected 4 to equal 3 \n | actual expected\n | \n | 43\n | \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__children_attachment.test.js:30:29)\n | \n | 2) hidden: children of skipped records\n | skipped parent in the middle:\n | \n | AssertionError: expected [ 'a1', 'b1', 'c1', 'c2' ] to deeply equal [ 'a1', 'c1', 'c2' ] \n | actual expected\n | \n | 1 | [\n | 2 | \"a1\"\n | 3 | \"b1\"\n | 4 | \"c1\"\n | 5 | \"c2\"\n | 6 | ]\n | \n | at Proxy.assertEql (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1097:10)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1035:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__children_attachment.test.js:72:52)\n | \n | \n | \n -----\nCRITERION children_attachment: FAIL\n",
110
+ "stderr": "",
111
+ "_parameters": {
112
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh children_attachment'",
113
+ "cwd": "/workspace/repo",
114
+ "timeout_seconds": 900
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "name": "key_variants",
120
+ "weight": 0.0625,
121
+ "value": 0.0,
122
+ "children": null,
123
+ "info": {
124
+ "exit_code": 1,
125
+ "stdout": " ----- hidden suite __hidden__key_variants.test.js (last 2500 bytes) -----\n | .js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1035:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__key_variants.test.js:35:37)\n | \n | 2) hidden: key variants\n | caller-supplied string primary key:\n | \n | AssertionError: expected [ 'y', 'z', 'z' ] to deeply equal [ 'x', 'y', 'z' ] \n | actual expected\n | \n | 1 | [\n | 2 | \"yx\"\n | 3 | \"zy\"\n | 4 | \"z\"\n | 5 | ]\n | \n | at Proxy.assertEql (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1097:10)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1035:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__key_variants.test.js:64:45)\n | \n | \n | \n -----\nCRITERION key_variants: FAIL\n",
126
+ "stderr": "",
127
+ "_parameters": {
128
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh key_variants'",
129
+ "cwd": "/workspace/repo",
130
+ "timeout_seconds": 900
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "name": "untouched_paths",
136
+ "weight": 0.0625,
137
+ "value": 1.0,
138
+ "children": null,
139
+ "info": {
140
+ "exit_code": 0,
141
+ "stdout": "CRITERION untouched_paths: PASS\n",
142
+ "stderr": "",
143
+ "_parameters": {
144
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh untouched_paths'",
145
+ "cwd": "/workspace/repo",
146
+ "timeout_seconds": 900
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "name": "no_regression",
152
+ "weight": 0.0625,
153
+ "value": 1.0,
154
+ "children": null,
155
+ "info": {
156
+ "exit_code": 0,
157
+ "stdout": "CRITERION no_regression: PASS\n",
158
+ "stderr": "",
159
+ "_parameters": {
160
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh no_regression'",
161
+ "cwd": "/workspace/repo",
162
+ "timeout_seconds": 1800
163
+ }
164
+ }
165
+ },
166
+ {
167
+ "name": "test_quality",
168
+ "weight": 0.0625,
169
+ "value": 0.0,
170
+ "children": null,
171
+ "info": {
172
+ "exit_code": 1,
173
+ "stdout": " [grader] no test files added or changed under packages/core/test\nCRITERION test_quality: FAIL\n",
174
+ "stderr": "",
175
+ "_parameters": {
176
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh test_quality'",
177
+ "cwd": "/workspace/repo",
178
+ "timeout_seconds": 900
179
+ }
180
+ }
181
+ }
182
+ ],
183
+ "status": "graded",
184
+ "patch_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
185
+ "result": {
186
+ "reward": 0.0,
187
+ "done": true,
188
+ "content": "Blocker criteria failed (aligned_inserted, expression_columns, returning_restricted, skipped_honest); reward scaled down to 0.000 (uncapped 0.000).",
189
+ "info": {
190
+ "diff_stat": {
191
+ "files": [],
192
+ "added": 0,
193
+ "removed": 0
194
+ },
195
+ "graded_diff": "",
196
+ "uncapped_reward": 0.0,
197
+ "failed_blockers": [
198
+ "aligned_inserted",
199
+ "expression_columns",
200
+ "returning_restricted",
201
+ "skipped_honest"
202
+ ]
203
+ },
204
+ "isError": false,
205
+ "subscores": [
206
+ {
207
+ "name": "aligned_inserted",
208
+ "weight": 0.1875,
209
+ "value": 0.0,
210
+ "children": null,
211
+ "info": {
212
+ "exit_code": 1,
213
+ "stdout": "...eply equal [ 'Peter', 'Michael', 'Paul', 'Anna' ] \n | actual expected\n | \n | 1 | [\n | 2 | \"MichaelPeter\"\n | 3 | \"AnnaMichael\"\n | 4 | \"Paul\"\n | 5 | \"Anna\"\n | 6 | ]\n | \n | at Proxy.assertEql (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1097:10)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1035:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__aligned_inserted.test.js:33:51)\n | \n | 2) hidden: inserted records are aligned with their rows\n | a skipped record first, then several inserted ones:\n | \n | AssertionError: expected 'c' to equal 'b' \n | actual expected\n | \n | cb\n | \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__aligned_inserted.test.js:80:39)\n | \n | \n | \n -----\nCRITERION aligned_inserted: FAIL\n",
214
+ "stderr": "",
215
+ "_parameters": {
216
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh aligned_inserted'",
217
+ "cwd": "/workspace/repo",
218
+ "timeout_seconds": 900
219
+ }
220
+ }
221
+ },
222
+ {
223
+ "name": "skipped_honest",
224
+ "weight": 0.125,
225
+ "value": 0.0,
226
+ "children": null,
227
+ "info": {
228
+ "exit_code": 1,
229
+ "stdout": "...5)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__skipped_honest.test.js:34:37)\n | \n | 2) hidden: skipped records are reported honestly\n | all records skipped: no throw, nothing persisted, table unchanged:\n | \n | AssertionError: expected false to equal true \n | actual expected\n | \n | falsetrue\n | \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__skipped_honest.test.js:64:35)\n | \n | 3) hidden: skipped records are reported honestly\n | duplicates inside the same batch: the second copy is skipped:\n | \n | AssertionError: expected [ \u2026(3) ] to have a length of 2 but got 3 \n | actual expected\n | \n | 32\n | \n | at Proxy.assertLength (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:2147:10)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:272:28)\n | at Proxy.overwritingChainableMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js:60:34)\n | at Proxy.chainableMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addChainableMethod.js:113:49)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__skipped_honest.test.js:86:31)\n | \n | \n | \n -----\nCRITERION skipped_honest: FAIL\n",
230
+ "stderr": "",
231
+ "_parameters": {
232
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh skipped_honest'",
233
+ "cwd": "/workspace/repo",
234
+ "timeout_seconds": 900
235
+ }
236
+ }
237
+ },
238
+ {
239
+ "name": "expression_columns",
240
+ "weight": 0.0625,
241
+ "value": 0.0,
242
+ "children": null,
243
+ "info": {
244
+ "exit_code": 1,
245
+ "stdout": "... | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1035:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__expression_columns.test.js:31:45)\n | \n | 2) hidden: non-key columns computed by the database\n | value passed as a SQL expression in a non-key column:\n | \n | AssertionError: expected [ 'b', 'c', 'c' ] to deeply equal [ 'a', 'b', 'c' ] \n | actual expected\n | \n | 1 | [\n | 2 | \"ba\"\n | 3 | \"cb\"\n | 4 | \"c\"\n | 5 | ]\n | \n | at Proxy.assertEql (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1097:10)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1035:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__expression_columns.test.js:64:44)\n | \n | \n | \n -----\nCRITERION expression_columns: FAIL\n",
246
+ "stderr": "",
247
+ "_parameters": {
248
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh expression_columns'",
249
+ "cwd": "/workspace/repo",
250
+ "timeout_seconds": 900
251
+ }
252
+ }
253
+ },
254
+ {
255
+ "name": "skipped_timestamps",
256
+ "weight": 0.0625,
257
+ "value": 0.0,
258
+ "children": null,
259
+ "info": {
260
+ "exit_code": 1,
261
+ "stdout": "... { pathToFileURL } from \"node:url\"; register(\"ts-node/esm\", pathToFileURL(\"./\"));'\n | (Use `node --trace-warnings ...` to show where the warning was created)\n | (node:389) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.\n | (Use `node --trace-deprecation ...` to show where the warning was created)\n | \n | \n | hidden: timestamps on skipped records\n | 1) a skipped record carries no generated timestamps\n | 2) a timestamp the caller supplied on a skipped record is kept\n | \n | \n | 0 passing (93ms)\n | 2 failing\n | \n | 1) hidden: timestamps on skipped records\n | a skipped record carries no generated timestamps:\n | \n | AssertionError: expected false to equal true \n | actual expected\n | \n | falsetrue\n | \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__skipped_timestamps.test.js:22:38)\n | \n | 2) hidden: timestamps on skipped records\n | a timestamp the caller supplied on a skipped record is kept:\n | \n | AssertionError: expected false to equal true \n | actual expected\n | \n | falsetrue\n | \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__skipped_timestamps.test.js:46:38)\n | \n | \n | \n -----\nCRITERION skipped_timestamps: FAIL\n",
262
+ "stderr": "",
263
+ "_parameters": {
264
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh skipped_timestamps'",
265
+ "cwd": "/workspace/repo",
266
+ "timeout_seconds": 900
267
+ }
268
+ }
269
+ },
270
+ {
271
+ "name": "returning_restricted",
272
+ "weight": 0.125,
273
+ "value": 0.0,
274
+ "children": null,
275
+ "info": {
276
+ "exit_code": 1,
277
+ "stdout": "... \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__returning_restricted.test.js:58:38)\n | \n | 3) hidden: restricted returning list\n | restricted returning list, non-key values identical across the batch:\n | AssertionError: expected 3 to equal null\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__returning_restricted.test.js:81:29)\n | \n | 4) hidden: restricted returning list\n | restricted returning list, skipped record has no non-key values:\n | AssertionError: expected 3 to equal null\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__returning_restricted.test.js:105:29)\n | \n | \n | \n -----\nCRITERION returning_restricted: FAIL\n",
278
+ "stderr": "",
279
+ "_parameters": {
280
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh returning_restricted'",
281
+ "cwd": "/workspace/repo",
282
+ "timeout_seconds": 900
283
+ }
284
+ }
285
+ },
286
+ {
287
+ "name": "date_key",
288
+ "weight": 0.0625,
289
+ "value": 0.0,
290
+ "children": null,
291
+ "info": {
292
+ "exit_code": 1,
293
+ "stdout": " ----- hidden suite __hidden__date_key.test.js (last 2500 bytes) -----\n | (node:523) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:\n | --import 'data:text/javascript,import { register } from \"node:module\"; import { pathToFileURL } from \"node:url\"; register(\"ts-node/esm\", pathToFileURL(\"./\"));'\n | (Use `node --trace-warnings ...` to show where the warning was created)\n | (node:523) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.\n | (Use `node --trace-deprecation ...` to show where the warning was created)\n | \n | \n | hidden: unique key of DATE type\n | 1) mixed batch keyed by a DATE column, other columns identical\n | \n | \n | 0 passing (80ms)\n | 1 failing\n | \n | 1) hidden: unique key of DATE type\n | mixed batch keyed by a DATE column, other columns identical:\n | \n | AssertionError: expected false to equal true \n | actual expected\n | \n | falsetrue\n | \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__date_key.test.js:42:38)\n | \n | \n | \n -----\nCRITERION date_key: FAIL\n",
294
+ "stderr": "",
295
+ "_parameters": {
296
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh date_key'",
297
+ "cwd": "/workspace/repo",
298
+ "timeout_seconds": 900
299
+ }
300
+ }
301
+ },
302
+ {
303
+ "name": "children_attachment",
304
+ "weight": 0.0625,
305
+ "value": 0.0,
306
+ "children": null,
307
+ "info": {
308
+ "exit_code": 1,
309
+ "stdout": "...t:\n | \n | AssertionError: expected 4 to equal 3 \n | actual expected\n | \n | 43\n | \n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1038:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__children_attachment.test.js:30:29)\n | \n | 2) hidden: children of skipped records\n | skipped parent in the middle:\n | \n | AssertionError: expected [ 'a1', 'b1', 'c1', 'c2' ] to deeply equal [ 'a1', 'c1', 'c2' ] \n | actual expected\n | \n | 1 | [\n | 2 | \"a1\"\n | 3 | \"b1\"\n | 4 | \"c1\"\n | 5 | \"c2\"\n | 6 | ]\n | \n | at Proxy.assertEql (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1097:10)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1035:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__children_attachment.test.js:72:52)\n | \n | \n | \n -----\nCRITERION children_attachment: FAIL\n",
310
+ "stderr": "",
311
+ "_parameters": {
312
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh children_attachment'",
313
+ "cwd": "/workspace/repo",
314
+ "timeout_seconds": 900
315
+ }
316
+ }
317
+ },
318
+ {
319
+ "name": "key_variants",
320
+ "weight": 0.0625,
321
+ "value": 0.0,
322
+ "children": null,
323
+ "info": {
324
+ "exit_code": 1,
325
+ "stdout": "...r/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1035:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__key_variants.test.js:35:37)\n | \n | 2) hidden: key variants\n | caller-supplied string primary key:\n | \n | AssertionError: expected [ 'y', 'z', 'z' ] to deeply equal [ 'x', 'y', 'z' ] \n | actual expected\n | \n | 1 | [\n | 2 | \"yx\"\n | 3 | \"zy\"\n | 4 | \"z\"\n | 5 | ]\n | \n | at Proxy.assertEql (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1097:10)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Proxy.assertEqual (/hud/grader/runner/node_modules/chai/lib/chai/core/assertions.js:1035:12)\n | at Proxy.methodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/addMethod.js:57:25)\n | at doAsserterAsyncAndAddThen (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:289:22)\n | at Proxy.<anonymous> (/hud/grader/runner/node_modules/chai-as-promised/lib/chai-as-promised.js:255:20)\n | at Proxy.overwritingMethodWrapper (/hud/grader/runner/node_modules/chai/lib/chai/utils/overwriteMethod.js:78:33)\n | at Context.<anonymous> (/hud/grader/runner/packages/core/test/hidden/__hidden__key_variants.test.js:64:45)\n | \n | \n | \n -----\nCRITERION key_variants: FAIL\n",
326
+ "stderr": "",
327
+ "_parameters": {
328
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh key_variants'",
329
+ "cwd": "/workspace/repo",
330
+ "timeout_seconds": 900
331
+ }
332
+ }
333
+ },
334
+ {
335
+ "name": "untouched_paths",
336
+ "weight": 0.0625,
337
+ "value": 0.0,
338
+ "children": null,
339
+ "info": {
340
+ "exit_code": 0,
341
+ "stdout": "CRITERION untouched_paths: PASS\n",
342
+ "stderr": "",
343
+ "_parameters": {
344
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh untouched_paths'",
345
+ "cwd": "/workspace/repo",
346
+ "timeout_seconds": 900
347
+ },
348
+ "gated": "zeroed: a gate line failed"
349
+ }
350
+ },
351
+ {
352
+ "name": "no_regression",
353
+ "weight": 0.0625,
354
+ "value": 0.0,
355
+ "children": null,
356
+ "info": {
357
+ "exit_code": 0,
358
+ "stdout": "CRITERION no_regression: PASS\n",
359
+ "stderr": "",
360
+ "_parameters": {
361
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh no_regression'",
362
+ "cwd": "/workspace/repo",
363
+ "timeout_seconds": 1800
364
+ },
365
+ "gated": "zeroed: a gate line failed"
366
+ }
367
+ },
368
+ {
369
+ "name": "test_quality",
370
+ "weight": 0.0625,
371
+ "value": 0.0,
372
+ "children": null,
373
+ "info": {
374
+ "exit_code": 1,
375
+ "stdout": " [grader] no test files added or changed under packages/core/test\nCRITERION test_quality: FAIL\n",
376
+ "stderr": "",
377
+ "_parameters": {
378
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh test_quality'",
379
+ "cwd": "/workspace/repo",
380
+ "timeout_seconds": 900
381
+ }
382
+ }
383
+ },
384
+ {
385
+ "name": "maintainer_review",
386
+ "weight": 0.0625,
387
+ "value": 0.0,
388
+ "children": null,
389
+ "info": {
390
+ "reason": "empty diff: the diff contains no change to review"
391
+ }
392
+ }
393
+ ]
394
+ },
395
+ "judge": {
396
+ "model": "anthropic/claude-sonnet-5.5",
397
+ "endpoint": "openrouter.ai"
398
+ }
399
+ }
harbor/evidence/sequelize/reports/reference.json ADDED
@@ -0,0 +1,431 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "revision": "coding-rubric-v2",
3
+ "task_id": "bulkcreate_ignore_duplicates",
4
+ "grader_version": "0.6.13",
5
+ "commands": [
6
+ {
7
+ "name": "aligned_inserted",
8
+ "weight": 0.1875,
9
+ "value": 1.0,
10
+ "children": null,
11
+ "info": {
12
+ "exit_code": 0,
13
+ "stdout": "CRITERION aligned_inserted: PASS\n",
14
+ "stderr": "",
15
+ "_parameters": {
16
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh aligned_inserted'",
17
+ "cwd": "/workspace/repo",
18
+ "timeout_seconds": 900
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "name": "skipped_honest",
24
+ "weight": 0.125,
25
+ "value": 1.0,
26
+ "children": null,
27
+ "info": {
28
+ "exit_code": 0,
29
+ "stdout": "CRITERION skipped_honest: PASS\n",
30
+ "stderr": "",
31
+ "_parameters": {
32
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh skipped_honest'",
33
+ "cwd": "/workspace/repo",
34
+ "timeout_seconds": 900
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "name": "expression_columns",
40
+ "weight": 0.0625,
41
+ "value": 1.0,
42
+ "children": null,
43
+ "info": {
44
+ "exit_code": 0,
45
+ "stdout": "CRITERION expression_columns: PASS\n",
46
+ "stderr": "",
47
+ "_parameters": {
48
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh expression_columns'",
49
+ "cwd": "/workspace/repo",
50
+ "timeout_seconds": 900
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "skipped_timestamps",
56
+ "weight": 0.0625,
57
+ "value": 1.0,
58
+ "children": null,
59
+ "info": {
60
+ "exit_code": 0,
61
+ "stdout": "CRITERION skipped_timestamps: PASS\n",
62
+ "stderr": "",
63
+ "_parameters": {
64
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh skipped_timestamps'",
65
+ "cwd": "/workspace/repo",
66
+ "timeout_seconds": 900
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "name": "returning_restricted",
72
+ "weight": 0.125,
73
+ "value": 1.0,
74
+ "children": null,
75
+ "info": {
76
+ "exit_code": 0,
77
+ "stdout": "CRITERION returning_restricted: PASS\n",
78
+ "stderr": "",
79
+ "_parameters": {
80
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh returning_restricted'",
81
+ "cwd": "/workspace/repo",
82
+ "timeout_seconds": 900
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "name": "date_key",
88
+ "weight": 0.0625,
89
+ "value": 1.0,
90
+ "children": null,
91
+ "info": {
92
+ "exit_code": 0,
93
+ "stdout": "CRITERION date_key: PASS\n",
94
+ "stderr": "",
95
+ "_parameters": {
96
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh date_key'",
97
+ "cwd": "/workspace/repo",
98
+ "timeout_seconds": 900
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "children_attachment",
104
+ "weight": 0.0625,
105
+ "value": 1.0,
106
+ "children": null,
107
+ "info": {
108
+ "exit_code": 0,
109
+ "stdout": "CRITERION children_attachment: PASS\n",
110
+ "stderr": "",
111
+ "_parameters": {
112
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh children_attachment'",
113
+ "cwd": "/workspace/repo",
114
+ "timeout_seconds": 900
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "name": "key_variants",
120
+ "weight": 0.0625,
121
+ "value": 1.0,
122
+ "children": null,
123
+ "info": {
124
+ "exit_code": 0,
125
+ "stdout": "CRITERION key_variants: PASS\n",
126
+ "stderr": "",
127
+ "_parameters": {
128
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh key_variants'",
129
+ "cwd": "/workspace/repo",
130
+ "timeout_seconds": 900
131
+ }
132
+ }
133
+ },
134
+ {
135
+ "name": "untouched_paths",
136
+ "weight": 0.0625,
137
+ "value": 1.0,
138
+ "children": null,
139
+ "info": {
140
+ "exit_code": 0,
141
+ "stdout": "CRITERION untouched_paths: PASS\n",
142
+ "stderr": "",
143
+ "_parameters": {
144
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh untouched_paths'",
145
+ "cwd": "/workspace/repo",
146
+ "timeout_seconds": 900
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "name": "no_regression",
152
+ "weight": 0.0625,
153
+ "value": 1.0,
154
+ "children": null,
155
+ "info": {
156
+ "exit_code": 0,
157
+ "stdout": "CRITERION no_regression: PASS\n",
158
+ "stderr": "",
159
+ "_parameters": {
160
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh no_regression'",
161
+ "cwd": "/workspace/repo",
162
+ "timeout_seconds": 1800
163
+ }
164
+ }
165
+ },
166
+ {
167
+ "name": "test_quality",
168
+ "weight": 0.0625,
169
+ "value": 1.0,
170
+ "children": null,
171
+ "info": {
172
+ "exit_code": 0,
173
+ "stdout": " [grader] agent test files: integration/model/bulk-create/ignore-duplicates.test.ts\nCRITERION test_quality: PASS\n",
174
+ "stderr": "",
175
+ "_parameters": {
176
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh test_quality'",
177
+ "cwd": "/workspace/repo",
178
+ "timeout_seconds": 900
179
+ }
180
+ }
181
+ }
182
+ ],
183
+ "status": "graded",
184
+ "patch_sha256": "a19e606fc3fa9a6d1dfb1a40783e4b09cd4ec91dc25d73b4a36cd490b54f39c4",
185
+ "result": {
186
+ "reward": 1.0,
187
+ "done": true,
188
+ "content": null,
189
+ "info": {
190
+ "diff_stat": {
191
+ "files": [
192
+ "packages/core/src/model.js",
193
+ "packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts"
194
+ ],
195
+ "added": 444,
196
+ "removed": 1
197
+ },
198
+ "graded_diff": "diff --git a/packages/core/src/model.js b/packages/core/src/model.js\nindex cb25a68..da84d68 100644\n--- a/packages/core/src/model.js\n+++ b/packages/core/src/model.js\n@@ -2327,6 +2327,10 @@ ${associationOwner._getAssociationDebugList()}`);\n \n const modelDefinition = model.modelDefinition;\n \n+ // Instances whose row the database skipped (ignoreDuplicates). They are\n+ // left as the caller built them: unsaved, and carrying no other row's values.\n+ const skipped = new Set();\n+\n options.fields = options.fields || Array.from(modelDefinition.attributes.keys());\n const createdAtAttr = modelDefinition.timestampAttributeNames.createdAt;\n const updatedAtAttr = modelDefinition.timestampAttributeNames.updatedAt;\n@@ -2497,6 +2501,21 @@ ${associationOwner._getAssociationDebugList()}`);\n );\n }\n \n+ // With ignoreDuplicates, a RETURNING dialect only hands back the rows\n+ // it actually inserted, so the returned rows cannot be matched to the\n+ // records by position. They are matched on the model's candidate keys\n+ // instead; make sure those columns come back even when the caller\n+ // restricted the returning list.\n+ const identityKeys =\n+ options.ignoreDuplicates &&\n+ options.returning &&\n+ model.sequelize.dialect.supports.returnValues\n+ ? model._bulkCreateIdentityKeys()\n+ : null;\n+ if (identityKeys && Array.isArray(options.returning)) {\n+ options.returning = uniq([...options.returning, ...identityKeys.flat()]);\n+ }\n+\n const results = await model.queryInterface.bulkInsert(\n model.table,\n records,\n@@ -2504,9 +2523,17 @@ ${associationOwner._getAssociationDebugList()}`);\n fieldMappedAttributes,\n );\n if (Array.isArray(results)) {\n- for (const [i, result] of results.entries()) {\n+ const resultForInstance = identityKeys\n+ ? model._matchReturnedRows(instances, records, results, identityKeys, skipped)\n+ : results;\n+\n+ for (const [i, result] of resultForInstance.entries()) {\n const instance = instances[i];\n \n+ if (!result) {\n+ continue;\n+ }\n+\n for (const key in result) {\n if (!Object.hasOwn(result, key)) {\n continue;\n@@ -2555,6 +2582,12 @@ ${associationOwner._getAssociationDebugList()}`);\n const associationInstanceIndexToInstanceMap = [];\n \n for (const instance of instances) {\n+ if (skipped.has(instance)) {\n+ // the parent row was not created by this call, so its key\n+ // is unknown; its children must not be stored under it\n+ continue;\n+ }\n+\n let associated = instance.get(include.as);\n if (!Array.isArray(associated)) {\n associated = [associated];\n@@ -2660,6 +2693,20 @@ ${associationOwner._getAssociationDebugList()}`);\n \n // map fields back to attributes\n for (const instance of instances) {\n+ if (skipped.has(instance)) {\n+ // the timestamps this call filled in were never stored for a\n+ // skipped record; drop them so the instance shows only its own state\n+ if (createdAtAttr && instance.dataValues[createdAtAttr] === now) {\n+ delete instance.dataValues[createdAtAttr];\n+ }\n+\n+ if (updatedAtAttr && instance.dataValues[updatedAtAttr] === now) {\n+ delete instance.dataValues[updatedAtAttr];\n+ }\n+\n+ continue;\n+ }\n+\n const attributeDefs = modelDefinition.attributes;\n \n for (const attribute of attributeDefs.values()) {\n@@ -2692,6 +2739,165 @@ ${associationOwner._getAssociationDebugList()}`);\n return await recursiveBulkCreate(instances, options);\n }\n \n+ /**\n+ * The column sets a returned row can be identified by: the primary key and\n+ * every non-partial unique index. Used by {@link Model.bulkCreate} to match\n+ * the rows a RETURNING dialect hands back to the records that were sent\n+ * when `ignoreDuplicates` may have skipped some of them.\n+ *\n+ * @returns {string[][]} column names, one array per candidate key\n+ * @private\n+ */\n+ static _bulkCreateIdentityKeys() {\n+ const keys = [];\n+ const seen = new Set();\n+ const add = columns => {\n+ const normalized = columns.map(column => (typeof column === 'string' ? column : column.name));\n+ const id = normalized.join('\\0');\n+ if (normalized.length > 0 && !seen.has(id)) {\n+ seen.add(id);\n+ keys.push(normalized);\n+ }\n+ };\n+\n+ add(Object.values(this.primaryKeys).map(attribute => attribute.field));\n+ for (const index of this.getIndexes()) {\n+ if (index.unique && !index.where && index.fields) {\n+ add(index.fields);\n+ }\n+ }\n+\n+ return keys;\n+ }\n+\n+ /**\n+ * Pairs the rows returned by a bulk INSERT with the records that produced\n+ * them. A row belongs to the first not-yet-paired record that agrees with\n+ * it on one of the candidate keys; the row order is never relied on.\n+ * Records that no row matches were skipped by the database and are added\n+ * to `skipped`. Refuses to guess: if a returned row cannot be attributed\n+ * to any record, an error is thrown rather than assigning it by position.\n+ *\n+ * @param {Model[]} instances the instances, in record order\n+ * @param {object[]} records the column-keyed values sent for each instance\n+ * @param {object[]} results the rows the database returned\n+ * @param {string[][]} identityKeys from {@link Model._bulkCreateIdentityKeys}\n+ * @param {Set<Model>} skipped receives the instances whose row was not inserted\n+ * @returns {Array<object|null>} the matching row for each instance, or null\n+ * @private\n+ */\n+ static _matchReturnedRows(instances, records, results, identityKeys, skipped) {\n+ const modelDefinition = this.modelDefinition;\n+\n+ const normalize = value => {\n+ if (value instanceof Date) {\n+ return value.toISOString();\n+ }\n+\n+ if (Buffer.isBuffer(value)) {\n+ return value.toString('hex');\n+ }\n+\n+ return String(value);\n+ };\n+\n+ const parseRow = row => {\n+ const out = pojo();\n+ for (const column of Object.keys(row)) {\n+ const attribute = modelDefinition.columns.get(column);\n+ out[column] =\n+ row[column] != null && attribute?.type instanceof AbstractDataType\n+ ? attribute.type.parseDatabaseValue(row[column])\n+ : row[column];\n+ }\n+\n+ return out;\n+ };\n+\n+ // every key signature a column-keyed value set can be identified by\n+ const signaturesOf = values => {\n+ const signatures = [];\n+ for (const [k, key] of identityKeys.entries()) {\n+ const parts = [];\n+ for (const column of key) {\n+ if (values[column] == null) {\n+ parts.length = 0;\n+ break;\n+ }\n+\n+ parts.push(normalize(values[column]));\n+ }\n+\n+ if (parts.length > 0) {\n+ signatures.push(`${k}:${parts.join('\\0')}`);\n+ }\n+ }\n+\n+ return signatures;\n+ };\n+\n+ const rowsBySignature = new Map();\n+ const unpaired = new Set(results);\n+ for (const row of results) {\n+ for (const signature of signaturesOf(parseRow(row))) {\n+ if (!rowsBySignature.has(signature)) {\n+ rowsBySignature.set(signature, []);\n+ }\n+\n+ rowsBySignature.get(signature).push(row);\n+ }\n+ }\n+\n+ const paired = instances.map(() => null);\n+ const withoutKey = [];\n+ for (const [i, instance] of instances.entries()) {\n+ const signatures = signaturesOf(records[i]);\n+ if (signatures.length === 0) {\n+ withoutKey.push(i);\n+ continue;\n+ }\n+\n+ for (const signature of signatures) {\n+ const row = (rowsBySignature.get(signature) ?? []).find(candidate =>\n+ unpaired.has(candidate),\n+ );\n+ if (row) {\n+ paired[i] = row;\n+ unpaired.delete(row);\n+ break;\n+ }\n+ }\n+\n+ if (!paired[i]) {\n+ skipped.add(instance);\n+ }\n+ }\n+\n+ // Records that carry no value for any candidate key cannot have\n+ // conflicted, so the leftover rows are theirs, provided the counts agree.\n+ if (withoutKey.length > 0) {\n+ if (unpaired.size !== withoutKey.length) {\n+ throw new Error(\n+ `bulkCreate could not attribute the rows returned by the database to the records: ${unpaired.size} returned row(s) left for ${withoutKey.length} record(s) without a key value.`,\n+ );\n+ }\n+\n+ const leftovers = results.filter(row => unpaired.has(row));\n+ for (const [j, i] of withoutKey.entries()) {\n+ paired[i] = leftovers[j];\n+ unpaired.delete(leftovers[j]);\n+ }\n+ }\n+\n+ if (unpaired.size > 0) {\n+ throw new Error(\n+ `bulkCreate could not attribute ${unpaired.size} row(s) returned by the database to any record. Every candidate key column must be part of the returned columns.`,\n+ );\n+ }\n+\n+ return paired;\n+ }\n+\n /**\n * Truncates the table associated with the model.\n *\ndiff --git a/packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts b/packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts\nnew file mode 100644\nindex 0000000..69e8c1a\n--- /dev/null\n+++ b/packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts\n@@ -0,0 +1,237 @@\n+import type {\n+ CreationOptional,\n+ InferAttributes,\n+ InferCreationAttributes,\n+ NonAttribute,\n+} from '@sequelize/core';\n+import { DataTypes, Model } from '@sequelize/core';\n+import { expect } from 'chai';\n+import { beforeAll2, sequelize, setResetMode } from '../../support';\n+\n+const dialect = sequelize.dialect;\n+\n+// With ignoreDuplicates, a RETURNING dialect only returns the rows it actually\n+// inserted. The instances bulkCreate returns must still line up with the\n+// records that were passed in.\n+describe('Model.bulkCreate with ignoreDuplicates on a RETURNING dialect', () => {\n+ if (\n+ !dialect.supports.returnValues ||\n+ !(dialect.supports.inserts.ignoreDuplicates || dialect.supports.inserts.onConflictDoNothing)\n+ ) {\n+ return;\n+ }\n+\n+ setResetMode('destroy');\n+\n+ const vars = beforeAll2(async () => {\n+ class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> {\n+ declare id: CreationOptional<number>;\n+ declare uniqueName: string;\n+ declare secretValue: string | null;\n+ declare createdAt: CreationOptional<Date>;\n+ declare updatedAt: CreationOptional<Date>;\n+ declare tasks?: NonAttribute<Task[]>;\n+ }\n+\n+ class Task extends Model<InferAttributes<Task>, InferCreationAttributes<Task>> {\n+ declare id: CreationOptional<number>;\n+ declare title: string;\n+ declare userId: CreationOptional<number | null>;\n+ }\n+\n+ class Seat extends Model<InferAttributes<Seat>, InferCreationAttributes<Seat>> {\n+ declare id: CreationOptional<number>;\n+ declare room: string;\n+ declare number: number;\n+ declare label: string | null;\n+ }\n+\n+ class Code extends Model<InferAttributes<Code>, InferCreationAttributes<Code>> {\n+ declare code: string;\n+ declare label: string | null;\n+ }\n+\n+ User.init(\n+ {\n+ id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },\n+ uniqueName: { type: DataTypes.STRING, unique: true, allowNull: false },\n+ secretValue: DataTypes.STRING,\n+ },\n+ { sequelize },\n+ );\n+ Task.init(\n+ {\n+ id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },\n+ title: { type: DataTypes.STRING, allowNull: false },\n+ },\n+ { sequelize },\n+ );\n+ Seat.init(\n+ {\n+ id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },\n+ room: { type: DataTypes.STRING, allowNull: false },\n+ number: { type: DataTypes.INTEGER, allowNull: false },\n+ label: DataTypes.STRING,\n+ },\n+ { sequelize, indexes: [{ unique: true, fields: ['room', 'number'] }] },\n+ );\n+ Code.init(\n+ {\n+ code: { type: DataTypes.STRING, primaryKey: true },\n+ label: DataTypes.STRING,\n+ },\n+ { sequelize },\n+ );\n+\n+ User.hasMany(Task, { as: 'tasks', foreignKey: 'userId' });\n+\n+ await sequelize.sync({ force: true });\n+\n+ return { User, Task, Seat, Code };\n+ });\n+\n+ it('assigns each returned row to its own record when some records are skipped', async () => {\n+ const { User } = vars;\n+ await User.bulkCreate([\n+ { uniqueName: 'Peter', secretValue: '42' },\n+ { uniqueName: 'Paul', secretValue: '23' },\n+ ]);\n+\n+ const statements: string[] = [];\n+ const result = await User.bulkCreate(\n+ [\n+ { uniqueName: 'Peter', secretValue: 'dup' },\n+ { uniqueName: 'Michael', secretValue: '26' },\n+ { uniqueName: 'Paul', secretValue: 'dup' },\n+ { uniqueName: 'Anna', secretValue: '27' },\n+ ],\n+ { ignoreDuplicates: true, logging: sql => statements.push(sql) },\n+ );\n+\n+ expect(statements).to.have.length(1);\n+ expect(result.map(user => user.uniqueName)).to.deep.equal(['Peter', 'Michael', 'Paul', 'Anna']);\n+\n+ const rows = await User.findAll({ order: ['id'], raw: true });\n+ expect(rows.map(row => row.uniqueName)).to.deep.equal(['Peter', 'Paul', 'Michael', 'Anna']);\n+\n+ const byName = new Map(rows.map(row => [row.uniqueName, row]));\n+ for (const inserted of [result[1], result[3]]) {\n+ expect(inserted.isNewRecord).to.equal(false);\n+ expect(inserted.id).to.equal(byName.get(inserted.uniqueName)!.id);\n+ expect(inserted.secretValue).to.equal(byName.get(inserted.uniqueName)!.secretValue);\n+ expect(inserted.changed()).to.equal(false);\n+ }\n+\n+ for (const skipped of [result[0], result[2]]) {\n+ expect(skipped.isNewRecord).to.equal(true);\n+ expect(skipped.id).to.equal(null);\n+ expect(skipped.secretValue).to.equal('dup');\n+ // nothing was stored for it, so it carries no generated timestamps either\n+ expect(skipped.createdAt).to.equal(undefined);\n+ expect(skipped.updatedAt).to.equal(undefined);\n+ }\n+ });\n+\n+ it('does not report any record as persisted when every row is skipped', async () => {\n+ const { User } = vars;\n+ await User.bulkCreate([{ uniqueName: 'Peter' }, { uniqueName: 'Paul' }]);\n+\n+ const result = await User.bulkCreate([{ uniqueName: 'Peter' }, { uniqueName: 'Paul' }], {\n+ ignoreDuplicates: true,\n+ });\n+\n+ expect(result.map(user => user.uniqueName)).to.deep.equal(['Peter', 'Paul']);\n+ for (const user of result) {\n+ expect(user.isNewRecord).to.equal(true);\n+ expect(user.id).to.equal(null);\n+ }\n+\n+ expect(await User.count()).to.equal(2);\n+ });\n+\n+ it('does not store the children of a skipped record under another record', async () => {\n+ const { User, Task } = vars;\n+ await User.bulkCreate([{ uniqueName: 'Peter' }]);\n+\n+ const records = [\n+ { uniqueName: 'Peter', secretValue: null, tasks: [{ title: 'peter-task' }] },\n+ { uniqueName: 'Michael', secretValue: null, tasks: [{ title: 'michael-task' }] },\n+ ];\n+ const result = await User.bulkCreate(records, {\n+ ignoreDuplicates: true,\n+ include: [{ model: Task, as: 'tasks' }],\n+ });\n+\n+ const michael = await User.findOne({ where: { uniqueName: 'Michael' }, rejectOnEmpty: true });\n+ expect(result[1].id).to.equal(michael.id);\n+\n+ const tasks = await Task.findAll({ order: ['id'], raw: true });\n+ expect(tasks).to.have.length(1);\n+ expect(tasks[0].title).to.equal('michael-task');\n+ expect(tasks[0].userId).to.equal(michael.id);\n+\n+ expect(result[0].isNewRecord).to.equal(true);\n+ expect(result[0].tasks![0].isNewRecord).to.equal(true);\n+ });\n+\n+ it('matches on a composite unique key', async () => {\n+ const { Seat } = vars;\n+ await Seat.bulkCreate([{ room: 'A', number: 1, label: 'taken' }]);\n+\n+ const result = await Seat.bulkCreate(\n+ [\n+ { room: 'A', number: 1, label: 'dup' },\n+ { room: 'A', number: 2, label: 'new' },\n+ { room: 'B', number: 1, label: 'new' },\n+ ],\n+ { ignoreDuplicates: true },\n+ );\n+\n+ const rows = await Seat.findAll({ order: ['id'], raw: true });\n+ expect(rows).to.have.length(3);\n+ expect(result[0].isNewRecord).to.equal(true);\n+ expect(result[0].label).to.equal('dup');\n+ expect(result[1].id).to.equal(rows[1].id);\n+ expect(result[1].room + result[1].number).to.equal('A2');\n+ expect(result[2].id).to.equal(rows[2].id);\n+ expect(result[2].room + result[2].number).to.equal('B1');\n+ });\n+\n+ it('matches on a caller-supplied primary key', async () => {\n+ const { Code } = vars;\n+ await Code.bulkCreate([{ code: 'x', label: 'taken' }]);\n+\n+ const result = await Code.bulkCreate(\n+ [\n+ { code: 'x', label: 'dup' },\n+ { code: 'y', label: 'new' },\n+ ],\n+ { ignoreDuplicates: true },\n+ );\n+\n+ expect(result[0].isNewRecord).to.equal(true);\n+ expect(result[0].label).to.equal('dup');\n+ expect(result[1].isNewRecord).to.equal(false);\n+ expect(result[1].label).to.equal('new');\n+ expect((await Code.findByPk('x', { rejectOnEmpty: true })).label).to.equal('taken');\n+ });\n+\n+ it('keeps the rows aligned when the returning list omits the key columns', async () => {\n+ const { User } = vars;\n+ await User.bulkCreate([{ uniqueName: 'Peter', secretValue: '42' }]);\n+\n+ const result = await User.bulkCreate(\n+ [\n+ { uniqueName: 'Peter', secretValue: 'dup' },\n+ { uniqueName: 'Michael', secretValue: '26' },\n+ ],\n+ { ignoreDuplicates: true, returning: ['id'] },\n+ );\n+\n+ const michael = await User.findOne({ where: { uniqueName: 'Michael' }, rejectOnEmpty: true });\n+ expect(result[0].isNewRecord).to.equal(true);\n+ expect(result[0].id).to.equal(null);\n+ expect(result[1].id).to.equal(michael.id);\n+ expect(result[1].isNewRecord).to.equal(false);\n+ });\n+});\n"
199
+ },
200
+ "isError": false,
201
+ "subscores": [
202
+ {
203
+ "name": "aligned_inserted",
204
+ "weight": 0.1875,
205
+ "value": 1.0,
206
+ "children": null,
207
+ "info": {
208
+ "exit_code": 0,
209
+ "stdout": "CRITERION aligned_inserted: PASS\n",
210
+ "stderr": "",
211
+ "_parameters": {
212
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh aligned_inserted'",
213
+ "cwd": "/workspace/repo",
214
+ "timeout_seconds": 900
215
+ }
216
+ }
217
+ },
218
+ {
219
+ "name": "skipped_honest",
220
+ "weight": 0.125,
221
+ "value": 1.0,
222
+ "children": null,
223
+ "info": {
224
+ "exit_code": 0,
225
+ "stdout": "CRITERION skipped_honest: PASS\n",
226
+ "stderr": "",
227
+ "_parameters": {
228
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh skipped_honest'",
229
+ "cwd": "/workspace/repo",
230
+ "timeout_seconds": 900
231
+ }
232
+ }
233
+ },
234
+ {
235
+ "name": "expression_columns",
236
+ "weight": 0.0625,
237
+ "value": 1.0,
238
+ "children": null,
239
+ "info": {
240
+ "exit_code": 0,
241
+ "stdout": "CRITERION expression_columns: PASS\n",
242
+ "stderr": "",
243
+ "_parameters": {
244
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh expression_columns'",
245
+ "cwd": "/workspace/repo",
246
+ "timeout_seconds": 900
247
+ }
248
+ }
249
+ },
250
+ {
251
+ "name": "skipped_timestamps",
252
+ "weight": 0.0625,
253
+ "value": 1.0,
254
+ "children": null,
255
+ "info": {
256
+ "exit_code": 0,
257
+ "stdout": "CRITERION skipped_timestamps: PASS\n",
258
+ "stderr": "",
259
+ "_parameters": {
260
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh skipped_timestamps'",
261
+ "cwd": "/workspace/repo",
262
+ "timeout_seconds": 900
263
+ }
264
+ }
265
+ },
266
+ {
267
+ "name": "returning_restricted",
268
+ "weight": 0.125,
269
+ "value": 1.0,
270
+ "children": null,
271
+ "info": {
272
+ "exit_code": 0,
273
+ "stdout": "CRITERION returning_restricted: PASS\n",
274
+ "stderr": "",
275
+ "_parameters": {
276
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh returning_restricted'",
277
+ "cwd": "/workspace/repo",
278
+ "timeout_seconds": 900
279
+ }
280
+ }
281
+ },
282
+ {
283
+ "name": "date_key",
284
+ "weight": 0.0625,
285
+ "value": 1.0,
286
+ "children": null,
287
+ "info": {
288
+ "exit_code": 0,
289
+ "stdout": "CRITERION date_key: PASS\n",
290
+ "stderr": "",
291
+ "_parameters": {
292
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh date_key'",
293
+ "cwd": "/workspace/repo",
294
+ "timeout_seconds": 900
295
+ }
296
+ }
297
+ },
298
+ {
299
+ "name": "children_attachment",
300
+ "weight": 0.0625,
301
+ "value": 1.0,
302
+ "children": null,
303
+ "info": {
304
+ "exit_code": 0,
305
+ "stdout": "CRITERION children_attachment: PASS\n",
306
+ "stderr": "",
307
+ "_parameters": {
308
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh children_attachment'",
309
+ "cwd": "/workspace/repo",
310
+ "timeout_seconds": 900
311
+ }
312
+ }
313
+ },
314
+ {
315
+ "name": "key_variants",
316
+ "weight": 0.0625,
317
+ "value": 1.0,
318
+ "children": null,
319
+ "info": {
320
+ "exit_code": 0,
321
+ "stdout": "CRITERION key_variants: PASS\n",
322
+ "stderr": "",
323
+ "_parameters": {
324
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh key_variants'",
325
+ "cwd": "/workspace/repo",
326
+ "timeout_seconds": 900
327
+ }
328
+ }
329
+ },
330
+ {
331
+ "name": "untouched_paths",
332
+ "weight": 0.0625,
333
+ "value": 1.0,
334
+ "children": null,
335
+ "info": {
336
+ "exit_code": 0,
337
+ "stdout": "CRITERION untouched_paths: PASS\n",
338
+ "stderr": "",
339
+ "_parameters": {
340
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh untouched_paths'",
341
+ "cwd": "/workspace/repo",
342
+ "timeout_seconds": 900
343
+ }
344
+ }
345
+ },
346
+ {
347
+ "name": "no_regression",
348
+ "weight": 0.0625,
349
+ "value": 1.0,
350
+ "children": null,
351
+ "info": {
352
+ "exit_code": 0,
353
+ "stdout": "CRITERION no_regression: PASS\n",
354
+ "stderr": "",
355
+ "_parameters": {
356
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh no_regression'",
357
+ "cwd": "/workspace/repo",
358
+ "timeout_seconds": 1800
359
+ }
360
+ }
361
+ },
362
+ {
363
+ "name": "test_quality",
364
+ "weight": 0.0625,
365
+ "value": 1.0,
366
+ "children": null,
367
+ "info": {
368
+ "exit_code": 0,
369
+ "stdout": " [grader] agent test files: integration/model/bulk-create/ignore-duplicates.test.ts\nCRITERION test_quality: PASS\n",
370
+ "stderr": "",
371
+ "_parameters": {
372
+ "command": "setpriv --reuid 1000 --regid 1000 --clear-groups --no-new-privs env HOME=/tmp/agent-home bash -lc 'bash /hud/grader/run_grading.sh test_quality'",
373
+ "cwd": "/workspace/repo",
374
+ "timeout_seconds": 900
375
+ }
376
+ }
377
+ },
378
+ {
379
+ "name": "maintainer_review",
380
+ "weight": 0.0625,
381
+ "value": 1.0,
382
+ "children": [
383
+ {
384
+ "name": "The diff changes the behaviour of the bulk-create path in packages/core/src/model.js (a diff that adds only comments, whitespace or formatting does not) and stays on-ticket: changes are confined to that path and closely related code, plus its tests. No unrelated drive-by edits, and no edits to pre-existing test files.",
385
+ "weight": 1.0,
386
+ "value": 1.0,
387
+ "children": null,
388
+ "info": {
389
+ "reason": "The diff makes substantive behavioural changes to the bulkCreate path in packages/core/src/model.js (matching returned rows by identity keys, tracking skipped instances, skipping children of skipped parents, dropping generated timestamps). The changes are confined to bulkCreate and two new private helper methods that it uses. The only test change is a new file, ignore-duplicates.test.ts, and no pre-existing test files are edited. There are no unrelated drive-by edits."
390
+ }
391
+ },
392
+ {
393
+ "name": "Judge only the lines the diff adds to packages/core/src/model.js; ignore test files and every other file. The ticket requires the behaviour to hold \"whatever the model definition\". Check this mechanically: list every quoted string literal (single, double or backtick quotes) in those added lines. Answer No only if one of those literals is exactly equal to one of these names used by the ticket's or the tests' models: 'id', 'uniqueName', 'secretValue', 'createdAt', 'updatedAt', 'deletedAt', 'room', 'number', 'code', 'label', 'title', 'userId', 'users', 'User', 'Task', 'Seat', 'Code'. Every other literal counts as Yes, for example type names in typeof checks such as 'string' or 'object', encodings such as 'hex', separators such as '\\0' or ':', option names such as 'ignoreDuplicates' or 'returning', dialect names, error messages, and keys the code makes up for its own bookkeeping. Reading names through variables, loops, attribute.field, primaryKeys, rawAttributes, getIndexes() or other model metadata is not a quoted literal and counts as Yes. If no added line contains one of the listed names as a whole quoted literal, answer Yes. Do not mark this No for weaknesses in the matching logic itself; other checks grade behaviour.",
394
+ "weight": 1.0,
395
+ "value": 1.0,
396
+ "children": null,
397
+ "info": {
398
+ "reason": "The string literals in the added model.js lines are 'string', 'hex', '\\0', and two template literals (the `${k}:...` signature and the error messages). None of them exactly equals a listed model-specific name such as 'id', 'uniqueName', 'room' or 'User'. Key names come from metadata (primaryKeys, attribute.field, getIndexes(), index.fields), not from quoted literals."
399
+ }
400
+ },
401
+ {
402
+ "name": "At least one test file added by the diff calls bulkCreate with ignoreDuplicates: true on a batch in which at least one record conflicts with a row already in the table, and asserts on the instances returned by that same call: for an inserted record, isNewRecord is false and its primary key equals the key of its row in the table; for a skipped record, isNewRecord is true. Assertions made only on the table contents (count, findAll) do not meet this criterion.",
403
+ "weight": 1.0,
404
+ "value": 1.0,
405
+ "children": null,
406
+ "info": {
407
+ "reason": "The first integration test calls bulkCreate with ignoreDuplicates on a batch with conflicting records and asserts on the returned instances: inserted ones have isNewRecord false and id equal to the table row's id (looked up by uniqueName), and skipped ones have isNewRecord true."
408
+ }
409
+ }
410
+ ],
411
+ "info": {
412
+ "model": "anthropic/claude-sonnet-5.5",
413
+ "_parameters": {
414
+ "answer": "(answer elided; 18224 chars)",
415
+ "criteria": [
416
+ "The diff changes the behaviour of the bulk-create path in packages/core/src/model.js (a diff that adds only comments, whitespace or formatting does not) and stays on-ticket: changes are confined to that path and closely related code, plus its tests. No unrelated drive-by edits, and no edits to pre-existing test files.",
417
+ "Judge only the lines the diff adds to packages/core/src/model.js; ignore test files and every other file. The ticket requires the behaviour to hold \"whatever the model definition\". Check this mechanically: list every quoted string literal (single, double or backtick quotes) in those added lines. Answer No only if one of those literals is exactly equal to one of these names used by the ticket's or the tests' models: 'id', 'uniqueName', 'secretValue', 'createdAt', 'updatedAt', 'deletedAt', 'room', 'number', 'code', 'label', 'title', 'userId', 'users', 'User', 'Task', 'Seat', 'Code'. Every other literal counts as Yes, for example type names in typeof checks such as 'string' or 'object', encodings such as 'hex', separators such as '\\0' or ':', option names such as 'ignoreDuplicates' or 'returning', dialect names, error messages, and keys the code makes up for its own bookkeeping. Reading names through variables, loops, attribute.field, primaryKeys, rawAttributes, getIndexes() or other model metadata is not a quoted literal and counts as Yes. If no added line contains one of the listed names as a whole quoted literal, answer Yes. Do not mark this No for weaknesses in the matching logic itself; other checks grade behaviour.",
418
+ "At least one test file added by the diff calls bulkCreate with ignoreDuplicates: true on a batch in which at least one record conflicts with a row already in the table, and asserts on the instances returned by that same call: for an inserted record, isNewRecord is false and its primary key equals the key of its row in the table; for a skipped record, isNewRecord is true. Assertions made only on the table contents (count, findAll) do not meet this criterion."
419
+ ],
420
+ "question": "(question elided; 441 chars)",
421
+ "model": "anthropic/claude-sonnet-5.5"
422
+ }
423
+ }
424
+ }
425
+ ]
426
+ },
427
+ "judge": {
428
+ "model": "anthropic/claude-sonnet-5.5",
429
+ "endpoint": "openrouter.ai"
430
+ }
431
+ }
harbor/evidence/sequelize/summary.json ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "sequelize",
3
+ "build": {
4
+ "ok": true,
5
+ "image_id": "sha256:d43e9d9aeb62ac7db98c705e031fa92efce5a91248bdcc00033dc8b8937d02e4",
6
+ "ladder": {},
7
+ "source_digest": "b0f412a44098e456",
8
+ "source": "edited",
9
+ "seconds": 353
10
+ },
11
+ "task_id": "bulkcreate_ignore_duplicates",
12
+ "image": "ec-swe-sequelize:source-v27",
13
+ "measure": {
14
+ "ok": true,
15
+ "hud": "0.6.13",
16
+ "path": "/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games",
17
+ "handed": [],
18
+ "repo_dir": "/workspace/repo",
19
+ "python_usr_local": true,
20
+ "seconds": 8
21
+ },
22
+ "qualified": false,
23
+ "parity": {
24
+ "ok": true,
25
+ "reward": 1.0,
26
+ "criteria": 12,
27
+ "unmet": [],
28
+ "info": {
29
+ "diff_stat": {
30
+ "files": [
31
+ "packages/core/src/model.js",
32
+ "packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts"
33
+ ],
34
+ "added": 444,
35
+ "removed": 1
36
+ },
37
+ "graded_diff": "diff --git a/packages/core/src/model.js b/packages/core/src/model.js\nindex cb25a684a..da84d6840 100644\n--- a/packages/core/src/model.js\n+++ b/packages/core/src/model.js\n@@ -2327,6 +2327,10 @@ ${associationOwner._getAssociationDebugList()}`);\n \n const modelDefinition = model.modelDefinition;\n \n+ // Instances whose row the database skipped (ignoreDuplicates). They are\n+ // left as the caller built them: unsaved, and carrying no other row's values.\n+ const skipped = new Set();\n+\n options.fields = options.fields || Array.from(modelDefinition.attributes.keys());\n const createdAtAttr = modelDefinition.timestampAttributeNames.createdAt;\n const updatedAtAttr = modelDefinition.timestampAttributeNames.updatedAt;\n@@ -2497,6 +2501,21 @@ ${associationOwner._getAssociationDebugList()}`);\n );\n }\n \n+ // With ignoreDuplicates, a RETURNING dialect only hands back the rows\n+ // it actually inserted, so the returned rows cannot be matched to the\n+ // records by position. They are matched on the model's candidate keys\n+ // instead; make sure those columns come back even when the caller\n+ // restricted the returning list.\n+ const identityKeys =\n+ options.ignoreDuplicates &&\n+ options.returning &&\n+ model.sequelize.dialect.supports.returnValues\n+ ? model._bulkCreateIdentityKeys()\n+ : null;\n+ if (identityKeys && Array.isArray(options.returning)) {\n+ options.returning = uniq([...options.returning, ...identityKeys.flat()]);\n+ }\n+\n const results = await model.queryInterface.bulkInsert(\n model.table,\n records,\n@@ -2504,9 +2523,17 @@ ${associationOwner._getAssociationDebugList()}`);\n fieldMappedAttributes,\n );\n if (Array.isArray(results)) {\n- for (const [i, result] of results.entries()) {\n+ const resultForInstance = identityKeys\n+ ? model._matchReturnedRows(instances, records, results, identityKeys, skipped)\n+ : results;\n+\n+ for (const [i, result] of resultForInstance.entries()) {\n const instance = instances[i];\n \n+ if (!result) {\n+ continue;\n+ }\n+\n for (const key in result) {\n if (!Object.hasOwn(result, key)) {\n continue;\n@@ -2555,6 +2582,12 @@ ${associationOwner._getAssociationDebugList()}`);\n const associationInstanceIndexToInstanceMap = [];\n \n for (const instance of instances) {\n+ if (skipped.has(instance)) {\n+ // the parent row was not created by this call, so its key\n+ // is unknown; its children must not be stored under it\n+ continue;\n+ }\n+\n let associated = instance.get(include.as);\n if (!Array.isArray(associated)) {\n associated = [associated];\n@@ -2660,6 +2693,20 @@ ${associationOwner._getAssociationDebugList()}`);\n \n // map fields back to attributes\n for (const instance of instances) {\n+ if (skipped.has(instance)) {\n+ // the timestamps this call filled in were never stored for a\n+ // skipped record; drop them so the instance shows only its own state\n+ if (createdAtAttr && instance.dataValues[createdAtAttr] === now) {\n+ delete instance.dataValues[createdAtAttr];\n+ }\n+\n+ if (updatedAtAttr && instance.dataValues[updatedAtAttr] === now) {\n+ delete instance.dataValues[updatedAtAttr];\n+ }\n+\n+ continue;\n+ }\n+\n const attributeDefs = modelDefinition.attributes;\n \n for (const attribute of attributeDefs.values()) {\n@@ -2692,6 +2739,165 @@ ${associationOwner._getAssociationDebugList()}`);\n return await recursiveBulkCreate(instances, options);\n }\n \n+ /**\n+ * The column sets a returned row can be identified by: the primary key and\n+ * every non-partial unique index. Used by {@link Model.bulkCreate} to match\n+ * the rows a RETURNING dialect hands back to the records that were sent\n+ * when `ignoreDuplicates` may have skipped some of them.\n+ *\n+ * @returns {string[][]} column names, one array per candidate key\n+ * @private\n+ */\n+ static _bulkCreateIdentityKeys() {\n+ const keys = [];\n+ const seen = new Set();\n+ const add = columns => {\n+ const normalized = columns.map(column => (typeof column === 'string' ? column : column.name));\n+ const id = normalized.join('\\0');\n+ if (normalized.length > 0 && !seen.has(id)) {\n+ seen.add(id);\n+ keys.push(normalized);\n+ }\n+ };\n+\n+ add(Object.values(this.primaryKeys).map(attribute => attribute.field));\n+ for (const index of this.getIndexes()) {\n+ if (index.unique && !index.where && index.fields) {\n+ add(index.fields);\n+ }\n+ }\n+\n+ return keys;\n+ }\n+\n+ /**\n+ * Pairs the rows returned by a bulk INSERT with the records that produced\n+ * them. A row belongs to the first not-yet-paired record that agrees with\n+ * it on one of the candidate keys; the row order is never relied on.\n+ * Records that no row matches were skipped by the database and are added\n+ * to `skipped`. Refuses to guess: if a returned row cannot be attributed\n+ * to any record, an error is thrown rather than assigning it by position.\n+ *\n+ * @param {Model[]} instances the instances, in record order\n+ * @param {object[]} records the column-keyed values sent for each instance\n+ * @param {object[]} results the rows the database returned\n+ * @param {string[][]} identityKeys from {@link Model._bulkCreateIdentityKeys}\n+ * @param {Set<Model>} skipped receives the instances whose row was not inserted\n+ * @returns {Array<object|null>} the matching row for each instance, or null\n+ * @private\n+ */\n+ static _matchReturnedRows(instances, records, results, identityKeys, skipped) {\n+ const modelDefinition = this.modelDefinition;\n+\n+ const normalize = value => {\n+ if (value instanceof Date) {\n+ return value.toISOString();\n+ }\n+\n+ if (Buffer.isBuffer(value)) {\n+ return value.toString('hex');\n+ }\n+\n+ return String(value);\n+ };\n+\n+ const parseRow = row => {\n+ const out = pojo();\n+ for (const column of Object.keys(row)) {\n+ const attribute = modelDefinition.columns.get(column);\n+ out[column] =\n+ row[column] != null && attribute?.type instanceof AbstractDataType\n+ ? attribute.type.parseDatabaseValue(row[column])\n+ : row[column];\n+ }\n+\n+ return out;\n+ };\n+\n+ // every key signature a column-keyed value set can be identified by\n+ const signaturesOf = values => {\n+ const signatures = [];\n+ for (const [k, key] of identityKeys.entries()) {\n+ const parts = [];\n+ for (const column of key) {\n+ if (values[column] == null) {\n+ parts.length = 0;\n+ break;\n+ }\n+\n+ parts.push(normalize(values[column]));\n+ }\n+\n+ if (parts.length > 0) {\n+ signatures.push(`${k}:${parts.join('\\0')}`);\n+ }\n+ }\n+\n+ return signatures;\n+ };\n+\n+ const rowsBySignature = new Map();\n+ const unpaired = new Set(results);\n+ for (const row of results) {\n+ for (const signature of signaturesOf(parseRow(row))) {\n+ if (!rowsBySignature.has(signature)) {\n+ rowsBySignature.set(signature, []);\n+ }\n+\n+ rowsBySignature.get(signature).push(row);\n+ }\n+ }\n+\n+ const paired = instances.map(() => null);\n+ const withoutKey = [];\n+ for (const [i, instance] of instances.entries()) {\n+ const signatures = signaturesOf(records[i]);\n+ if (signatures.length === 0) {\n+ withoutKey.push(i);\n+ continue;\n+ }\n+\n+ for (const signature of signatures) {\n+ const row = (rowsBySignature.get(signature) ?? []).find(candidate =>\n+ unpaired.has(candidate),\n+ );\n+ if (row) {\n+ paired[i] = row;\n+ unpaired.delete(row);\n+ break;\n+ }\n+ }\n+\n+ if (!paired[i]) {\n+ skipped.add(instance);\n+ }\n+ }\n+\n+ // Records that carry no value for any candidate key cannot have\n+ // conflicted, so the leftover rows are theirs, provided the counts agree.\n+ if (withoutKey.length > 0) {\n+ if (unpaired.size !== withoutKey.length) {\n+ throw new Error(\n+ `bulkCreate could not attribute the rows returned by the database to the records: ${unpaired.size} returned row(s) left for ${withoutKey.length} record(s) without a key value.`,\n+ );\n+ }\n+\n+ const leftovers = results.filter(row => unpaired.has(row));\n+ for (const [j, i] of withoutKey.entries()) {\n+ paired[i] = leftovers[j];\n+ unpaired.delete(leftovers[j]);\n+ }\n+ }\n+\n+ if (unpaired.size > 0) {\n+ throw new Error(\n+ `bulkCreate could not attribute ${unpaired.size} row(s) returned by the database to any record. Every candidate key column must be part of the returned columns.`,\n+ );\n+ }\n+\n+ return paired;\n+ }\n+\n /**\n * Truncates the table associated with the model.\n *\ndiff --git a/packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts b/packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts\nnew file mode 100644\nindex 000000000..69e8c1ab8\n--- /dev/null\n+++ b/packages/core/test/integration/model/bulk-create/ignore-duplicates.test.ts\n@@ -0,0 +1,237 @@\n+import type {\n+ CreationOptional,\n+ InferAttributes,\n+ InferCreationAttributes,\n+ NonAttribute,\n+} from '@sequelize/core';\n+import { DataTypes, Model } from '@sequelize/core';\n+import { expect } from 'chai';\n+import { beforeAll2, sequelize, setResetMode } from '../../support';\n+\n+const dialect = sequelize.dialect;\n+\n+// With ignoreDuplicates, a RETURNING dialect only returns the rows it actually\n+// inserted. The instances bulkCreate returns must still line up with the\n+// records that were passed in.\n+describe('Model.bulkCreate with ignoreDuplicates on a RETURNING dialect', () => {\n+ if (\n+ !dialect.supports.returnValues ||\n+ !(dialect.supports.inserts.ignoreDuplicates || dialect.supports.inserts.onConflictDoNothing)\n+ ) {\n+ return;\n+ }\n+\n+ setResetMode('destroy');\n+\n+ const vars = beforeAll2(async () => {\n+ class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> {\n+ declare id: CreationOptional<number>;\n+ declare uniqueName: string;\n+ declare secretValue: string | null;\n+ declare createdAt: CreationOptional<Date>;\n+ declare updatedAt: CreationOptional<Date>;\n+ declare tasks?: NonAttribute<Task[]>;\n+ }\n+\n+ class Task extends Model<InferAttributes<Task>, InferCreationAttributes<Task>> {\n+ declare id: CreationOptional<number>;\n+ declare title: string;\n+ declare userId: CreationOptional<number | null>;\n+ }\n+\n+ class Seat extends Model<InferAttributes<Seat>, InferCreationAttributes<Seat>> {\n+ declare id: CreationOptional<number>;\n+ declare room: string;\n+ declare number: number;\n+ declare label: string | null;\n+ }\n+\n+ class Code extends Model<InferAttributes<Code>, InferCreationAttributes<Code>> {\n+ declare code: string;\n+ declare label: string | null;\n+ }\n+\n+ User.init(\n+ {\n+ id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },\n+ uniqueName: { type: DataTypes.STRING, unique: true, allowNull: false },\n+ secretValue: DataTypes.STRING,\n+ },\n+ { sequelize },\n+ );\n+ Task.init(\n+ {\n+ id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },\n+ title: { type: DataTypes.STRING, allowNull: false },\n+ },\n+ { sequelize },\n+ );\n+ Seat.init(\n+ {\n+ id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },\n+ room: { type: DataTypes.STRING, allowNull: false },\n+ number: { type: DataTypes.INTEGER, allowNull: false },\n+ label: DataTypes.STRING,\n+ },\n+ { sequelize, indexes: [{ unique: true, fields: ['room', 'number'] }] },\n+ );\n+ Code.init(\n+ {\n+ code: { type: DataTypes.STRING, primaryKey: true },\n+ label: DataTypes.STRING,\n+ },\n+ { sequelize },\n+ );\n+\n+ User.hasMany(Task, { as: 'tasks', foreignKey: 'userId' });\n+\n+ await sequelize.sync({ force: true });\n+\n+ return { User, Task, Seat, Code };\n+ });\n+\n+ it('assigns each returned row to its own record when some records are skipped', async () => {\n+ const { User } = vars;\n+ await User.bulkCreate([\n+ { uniqueName: 'Peter', secretValue: '42' },\n+ { uniqueName: 'Paul', secretValue: '23' },\n+ ]);\n+\n+ const statements: string[] = [];\n+ const result = await User.bulkCreate(\n+ [\n+ { uniqueName: 'Peter', secretValue: 'dup' },\n+ { uniqueName: 'Michael', secretValue: '26' },\n+ { uniqueName: 'Paul', secretValue: 'dup' },\n+ { uniqueName: 'Anna', secretValue: '27' },\n+ ],\n+ { ignoreDuplicates: true, logging: sql => statements.push(sql) },\n+ );\n+\n+ expect(statements).to.have.length(1);\n+ expect(result.map(user => user.uniqueName)).to.deep.equal(['Peter', 'Michael', 'Paul', 'Anna']);\n+\n+ const rows = await User.findAll({ order: ['id'], raw: true });\n+ expect(rows.map(row => row.uniqueName)).to.deep.equal(['Peter', 'Paul', 'Michael', 'Anna']);\n+\n+ const byName = new Map(rows.map(row => [row.uniqueName, row]));\n+ for (const inserted of [result[1], result[3]]) {\n+ expect(inserted.isNewRecord).to.equal(false);\n+ expect(inserted.id).to.equal(byName.get(inserted.uniqueName)!.id);\n+ expect(inserted.secretValue).to.equal(byName.get(inserted.uniqueName)!.secretValue);\n+ expect(inserted.changed()).to.equal(false);\n+ }\n+\n+ for (const skipped of [result[0], result[2]]) {\n+ expect(skipped.isNewRecord).to.equal(true);\n+ expect(skipped.id).to.equal(null);\n+ expect(skipped.secretValue).to.equal('dup');\n+ // nothing was stored for it, so it carries no generated timestamps either\n+ expect(skipped.createdAt).to.equal(undefined);\n+ expect(skipped.updatedAt).to.equal(undefined);\n+ }\n+ });\n+\n+ it('does not report any record as persisted when every row is skipped', async () => {\n+ const { User } = vars;\n+ await User.bulkCreate([{ uniqueName: 'Peter' }, { uniqueName: 'Paul' }]);\n+\n+ const result = await User.bulkCreate([{ uniqueName: 'Peter' }, { uniqueName: 'Paul' }], {\n+ ignoreDuplicates: true,\n+ });\n+\n+ expect(result.map(user => user.uniqueName)).to.deep.equal(['Peter', 'Paul']);\n+ for (const user of result) {\n+ expect(user.isNewRecord).to.equal(true);\n+ expect(user.id).to.equal(null);\n+ }\n+\n+ expect(await User.count()).to.equal(2);\n+ });\n+\n+ it('does not store the children of a skipped record under another record', async () => {\n+ const { User, Task } = vars;\n+ await User.bulkCreate([{ uniqueName: 'Peter' }]);\n+\n+ const records = [\n+ { uniqueName: 'Peter', secretValue: null, tasks: [{ title: 'peter-task' }] },\n+ { uniqueName: 'Michael', secretValue: null, tasks: [{ title: 'michael-task' }] },\n+ ];\n+ const result = await User.bulkCreate(records, {\n+ ignoreDuplicates: true,\n+ include: [{ model: Task, as: 'tasks' }],\n+ });\n+\n+ const michael = await User.findOne({ where: { uniqueName: 'Michael' }, rejectOnEmpty: true });\n+ expect(result[1].id).to.equal(michael.id);\n+\n+ const tasks = await Task.findAll({ order: ['id'], raw: true });\n+ expect(tasks).to.have.length(1);\n+ expect(tasks[0].title).to.equal('michael-task');\n+ expect(tasks[0].userId).to.equal(michael.id);\n+\n+ expect(result[0].isNewRecord).to.equal(true);\n+ expect(result[0].tasks![0].isNewRecord).to.equal(true);\n+ });\n+\n+ it('matches on a composite unique key', async () => {\n+ const { Seat } = vars;\n+ await Seat.bulkCreate([{ room: 'A', number: 1, label: 'taken' }]);\n+\n+ const result = await Seat.bulkCreate(\n+ [\n+ { room: 'A', number: 1, label: 'dup' },\n+ { room: 'A', number: 2, label: 'new' },\n+ { room: 'B', number: 1, label: 'new' },\n+ ],\n+ { ignoreDuplicates: true },\n+ );\n+\n+ const rows = await Seat.findAll({ order: ['id'], raw: true });\n+ expect(rows).to.have.length(3);\n+ expect(result[0].isNewRecord).to.equal(true);\n+ expect(result[0].label).to.equal('dup');\n+ expect(result[1].id).to.equal(rows[1].id);\n+ expect(result[1].room + result[1].number).to.equal('A2');\n+ expect(result[2].id).to.equal(rows[2].id);\n+ expect(result[2].room + result[2].number).to.equal('B1');\n+ });\n+\n+ it('matches on a caller-supplied primary key', async () => {\n+ const { Code } = vars;\n+ await Code.bulkCreate([{ code: 'x', label: 'taken' }]);\n+\n+ const result = await Code.bulkCreate(\n+ [\n+ { code: 'x', label: 'dup' },\n+ { code: 'y', label: 'new' },\n+ ],\n+ { ignoreDuplicates: true },\n+ );\n+\n+ expect(result[0].isNewRecord).to.equal(true);\n+ expect(result[0].label).to.equal('dup');\n+ expect(result[1].isNewRecord).to.equal(false);\n+ expect(result[1].label).to.equal('new');\n+ expect((await Code.findByPk('x', { rejectOnEmpty: true })).label).to.equal('taken');\n+ });\n+\n+ it('keeps the rows aligned when the returning list omits the key columns', async () => {\n+ const { User } = vars;\n+ await User.bulkCreate([{ uniqueName: 'Peter', secretValue: '42' }]);\n+\n+ const result = await User.bulkCreate(\n+ [\n+ { uniqueName: 'Peter', secretValue: 'dup' },\n+ { uniqueName: 'Michael', secretValue: '26' },\n+ ],\n+ { ignoreDuplicates: true, returning: ['id'] },\n+ );\n+\n+ const michael = await User.findOne({ where: { uniqueName: 'Michael' }, rejectOnEmpty: true });\n+ expect(result[0].isNewRecord).to.equal(true);\n+ expect(result[0].id).to.equal(null);\n+ expect(result[1].id).to.equal(michael.id);\n+ expect(result[1].isNewRecord).to.equal(false);\n+ });\n+});\n"
38
+ },
39
+ "seconds": 71
40
+ },
41
+ "prepare": {
42
+ "ok": true,
43
+ "bundle": "sequelize-r1",
44
+ "converter": "b8bba68767da888f",
45
+ "judge_runner": "4bd8d8cb9f9a3683",
46
+ "pinned_files": 19,
47
+ "criteria": 12,
48
+ "seconds": 0
49
+ },
50
+ "controls": {
51
+ "ok": false,
52
+ "checks": {
53
+ "noop_is_zero": true,
54
+ "reference_is_one": true,
55
+ "reference_equals_native": true,
56
+ "agent_is_isolated": true
57
+ },
58
+ "results": {
59
+ "noop": {
60
+ "run": "sequelize-r1-control-noop-1793702241",
61
+ "reward": 0.0,
62
+ "stop": "completed",
63
+ "error": null,
64
+ "seconds": 336,
65
+ "probe": false,
66
+ "status": "graded",
67
+ "verifier_error": null,
68
+ "exit_codes": [
69
+ 0,
70
+ 1
71
+ ],
72
+ "attempts": 1
73
+ },
74
+ "reference": {
75
+ "run": "sequelize-r1-control-reference-1793702577",
76
+ "reward": 1.0,
77
+ "stop": "completed",
78
+ "error": null,
79
+ "seconds": 206,
80
+ "probe": true,
81
+ "status": "graded",
82
+ "verifier_error": null,
83
+ "exit_codes": [
84
+ 0
85
+ ],
86
+ "subscores": {
87
+ "aligned_inserted": [
88
+ 1.0,
89
+ 0.1875
90
+ ],
91
+ "skipped_honest": [
92
+ 1.0,
93
+ 0.125
94
+ ],
95
+ "expression_columns": [
96
+ 1.0,
97
+ 0.0625
98
+ ],
99
+ "skipped_timestamps": [
100
+ 1.0,
101
+ 0.0625
102
+ ],
103
+ "returning_restricted": [
104
+ 1.0,
105
+ 0.125
106
+ ],
107
+ "date_key": [
108
+ 1.0,
109
+ 0.0625
110
+ ],
111
+ "children_attachment": [
112
+ 1.0,
113
+ 0.0625
114
+ ],
115
+ "key_variants": [
116
+ 1.0,
117
+ 0.0625
118
+ ],
119
+ "untouched_paths": [
120
+ 1.0,
121
+ 0.0625
122
+ ],
123
+ "no_regression": [
124
+ 1.0,
125
+ 0.0625
126
+ ],
127
+ "test_quality": [
128
+ 1.0,
129
+ 0.0625
130
+ ],
131
+ "maintainer_review": [
132
+ 1.0,
133
+ 0.0625
134
+ ]
135
+ },
136
+ "attempts": 1
137
+ }
138
+ },
139
+ "bundle": "sequelize-r1",
140
+ "complete": false,
141
+ "seconds": 542
142
+ },
143
+ "leak": {
144
+ "scan_finished": true,
145
+ "hits_outside_checkout": [],
146
+ "other_files_holding_only_upstream_lines": 0,
147
+ "library_files_sharing_a_line": 0,
148
+ "most_lines_shared_by_one_library_file": 0,
149
+ "private_paths_absent": true,
150
+ "public_lines_shared_with_patch_and_graders": [
151
+ 9,
152
+ 1
153
+ ],
154
+ "private_lines_only_in_agent_checkout": [
155
+ 0,
156
+ 0
157
+ ],
158
+ "ok": true,
159
+ "seconds": 48
160
+ }
161
+ }
harbor/manifest.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "schema_version": 1,
3
- "created": "2026-11-02",
4
  "contains": "reference solutions and hidden graders; keep away from evaluated models",
5
  "package_revision": "coding-rubric-v2",
6
  "runtime": {
@@ -9,6 +9,49 @@
9
  "platform": "linux/amd64"
10
  },
11
  "tasks": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  {
13
  "task_id": "journal_recovery_after_unclean_stop",
14
  "name": "badger",
@@ -129,6 +172,94 @@
129
  "what": "the environment name was changed to a neutral one (ec-swe-celery-retry-expires-countdown)"
130
  }
131
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  {
133
  "task_id": "epicyon_deleted_post_announce_cache_contract",
134
  "name": "epicyon",
@@ -240,6 +371,48 @@
240
  "what": "the environment name was changed to a neutral one (ec-swe-go-mysql-mariadb-compressed-columns)"
241
  }
242
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243
  {
244
  "task_id": "kratos_cleanup_stale_flows_courier_contract",
245
  "name": "kratos",
@@ -599,6 +772,48 @@
599
  "what": "the environment name was changed to a neutral one (ec-swe-rust-postgres-abandoned-ops)"
600
  }
601
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
602
  {
603
  "task_id": "retained_top_level_names_keep_their_values",
604
  "name": "terser",
@@ -734,106 +949,6 @@
734
  }
735
  }
736
  ],
737
- "unpackaged": [
738
- {
739
- "source_edited": {
740
- "changed": [
741
- "env.py",
742
- "tasks.py"
743
- ],
744
- "removed": [],
745
- "what": "the environment name was changed to a neutral one (ec-swe-click); the judge's model is read from JUDGE_MODEL (default claude-sonnet-5-5) instead of the hud library's default"
746
- },
747
- "task_id": "click",
748
- "name": "click",
749
- "dataset_instance_id": "pallets__click-click-help-defaults",
750
- "repository": "pallets/click",
751
- "source_folder": "click-v9",
752
- "dockerfile": "Dockerfile.hud",
753
- "source_image": "ec-swe-click:source-v9",
754
- "package": null,
755
- "why_no_package": "one criterion is judged by a language model through HUD's gateway, which a packaged grader cannot reach offline"
756
- },
757
- {
758
- "source_edited": {
759
- "changed": [
760
- "env.py",
761
- "tasks.py"
762
- ],
763
- "removed": [],
764
- "what": "the environment name was changed to a neutral one (ec-swe-sequelize); the judge's model is read from JUDGE_MODEL (default claude-sonnet-5-5) instead of the hud library's default"
765
- },
766
- "task_id": "sequelize",
767
- "name": "sequelize",
768
- "dataset_instance_id": "sequelize__sequelize-sequelize-bulkcreate-ignore-duplicates",
769
- "repository": "sequelize/sequelize",
770
- "source_folder": "sequelize-v27",
771
- "dockerfile": "Dockerfile.hud",
772
- "source_image": "ec-swe-sequelize:source-v27",
773
- "package": null,
774
- "why_no_package": "one criterion is judged by a language model through HUD's gateway, which a packaged grader cannot reach offline"
775
- },
776
- {
777
- "source_edited": {
778
- "changed": [
779
- "env.py",
780
- "tasks.py"
781
- ],
782
- "removed": [],
783
- "what": "the environment name was changed to a neutral one (ec-swe-hooks2675-v2); the judge's model is read from JUDGE_MODEL (default claude-sonnet-5-5) instead of the hud library's default"
784
- },
785
- "task_id": "hooks",
786
- "name": "hooks",
787
- "dataset_instance_id": "alibaba__hooks-ahooks_request_cache_races",
788
- "repository": "alibaba/hooks",
789
- "source_folder": "hooks-v4",
790
- "dockerfile": "Dockerfile.hud",
791
- "source_image": "ec-swe-hooks:source-v4",
792
- "package": null,
793
- "why_no_package": "one criterion is judged by a language model through HUD's gateway, which a packaged grader cannot reach offline"
794
- },
795
- {
796
- "source_edited": {
797
- "changed": [
798
- "preflight.sh",
799
- "tasks.py"
800
- ],
801
- "removed": [
802
- ".hud/config.json",
803
- "task/grader/maintainer_review.judge.json.as-submitted-2026-09-18",
804
- "tasks.py.bak-2026-09-20"
805
- ],
806
- "what": "comments that recorded internal review history were shortened in two files, and three files the image build does not read were removed; tasks.py is the same program; the judge's model is read from JUDGE_MODEL (default claude-sonnet-5-5) instead of the hud library's default"
807
- },
808
- "task_id": "druid",
809
- "name": "druid",
810
- "dataset_instance_id": "alibaba__druid-druid_lenient_script",
811
- "repository": "alibaba/druid",
812
- "source_folder": "druid-v9",
813
- "dockerfile": "Dockerfile.hud",
814
- "source_image": "ec-swe-druid:source-v9",
815
- "package": null,
816
- "why_no_package": "one criterion is judged by a language model through HUD's gateway, which a packaged grader cannot reach offline"
817
- },
818
- {
819
- "source_edited": {
820
- "changed": [
821
- "env.py",
822
- "pyproject.toml"
823
- ],
824
- "removed": [],
825
- "what": "the environment name was changed to a neutral one (ec-swe-babylonjs-scene-remove-owner-refs)"
826
- },
827
- "task_id": "babylonjs",
828
- "name": "babylonjs",
829
- "dataset_instance_id": "BabylonJS__Babylon.js-babylonjs_scene_remove_owner_refs_contract-382616f8",
830
- "repository": "BabylonJS/Babylon.js",
831
- "source_folder": "babylonjs-v8",
832
- "dockerfile": "Dockerfile.hud",
833
- "source_image": "ec-swe-babylonjs:source-v8",
834
- "package": null,
835
- "why_no_package": "no package was made: the image is about 10 GB and its setup changes the owner of the whole dependency tree within a ten-minute limit"
836
- }
837
- ],
838
  "not_included": {}
839
  }
 
1
  {
2
  "schema_version": 1,
3
+ "created": "2026-11-03",
4
  "contains": "reference solutions and hidden graders; keep away from evaluated models",
5
  "package_revision": "coding-rubric-v2",
6
  "runtime": {
 
9
  "platform": "linux/amd64"
10
  },
11
  "tasks": [
12
+ {
13
+ "task_id": "babylonjs_scene_remove_owner_refs_contract",
14
+ "name": "babylonjs",
15
+ "dataset_instance_id": "BabylonJS__Babylon.js-babylonjs_scene_remove_owner_refs_contract-382616f8",
16
+ "repository": "BabylonJS/Babylon.js",
17
+ "language": "TypeScript",
18
+ "source_folder": "babylonjs-v8",
19
+ "dockerfile": "Dockerfile.hud",
20
+ "source_image": "ec-swe-babylonjs:source-v8",
21
+ "source_image_id_at_qualification": "sha256:a354fe63ae1481c66c056a04b4853d476db6e12b295b3d94f84ccd02d3dcf582",
22
+ "grader_version": "0.6.15",
23
+ "criteria": 16,
24
+ "reward_rule": "weighted_cap",
25
+ "blocker_cap": 0.6,
26
+ "author_calibration": {
27
+ "gold": 1.0,
28
+ "base": 0.0,
29
+ "noop": 0.0,
30
+ "lazy": 0.15,
31
+ "w1": 0.6,
32
+ "alt": 0.85,
33
+ "cheat": 0.57
34
+ },
35
+ "provenance": {
36
+ "repository": "BabylonJS/Babylon.js",
37
+ "environment_id": "4195a25b-5801-4c1e-9125-154dded71080",
38
+ "build": 8,
39
+ "build_id": "7d89a4f9-b1c0-4f3d-9377-13444abcda9c",
40
+ "hosted_task": "babylonjs_scene_remove_owner_refs_contract-382616f8",
41
+ "task_version": 1,
42
+ "source_archive_sha256": "cc8a1e5e8e0991122a6ed6fb02d69c8b9c17f257f1ccbf5840db1988e57ceb52",
43
+ "hosted_revision_argument": "not recorded; the scenario does not read it"
44
+ },
45
+ "source_edited": {
46
+ "changed": [
47
+ "env.py",
48
+ "pyproject.toml",
49
+ "task/grader/run_grading.sh"
50
+ ],
51
+ "removed": [],
52
+ "what": "the environment name was changed to a neutral one (ec-swe-babylonjs-scene-remove-owner-refs); the grader runs vitest from a fresh copy of its harness in its state folder, because vite writes next to its configuration and a grader that does not run as root cannot write under /hud/grader"
53
+ }
54
+ },
55
  {
56
  "task_id": "journal_recovery_after_unclean_stop",
57
  "name": "badger",
 
172
  "what": "the environment name was changed to a neutral one (ec-swe-celery-retry-expires-countdown)"
173
  }
174
  },
175
+ {
176
+ "task_id": "help_defaults",
177
+ "name": "click",
178
+ "dataset_instance_id": "pallets__click-click-help-defaults",
179
+ "repository": "pallets/click",
180
+ "language": "Python",
181
+ "source_folder": "click-v9",
182
+ "dockerfile": "Dockerfile.hud",
183
+ "source_image": "ec-swe-click:source-v9",
184
+ "source_image_id_at_qualification": "sha256:e8e795f66f12a38f30b7e9be2e430e4b4f8b6c2d11c0b9685a5b7f597dac403f",
185
+ "grader_version": "0.6.13",
186
+ "criteria": 11,
187
+ "reward_rule": "authored",
188
+ "blocker_cap": 0.1,
189
+ "author_calibration": {},
190
+ "provenance": {
191
+ "repository": "pallets/click",
192
+ "environment_id": "29c14648-17d9-42d0-8d59-724a9c0d0feb",
193
+ "build": 9,
194
+ "build_id": "4505ff57-3be4-4ecc-aa01-decc9c8d8dce",
195
+ "hosted_task": "click-help-defaults",
196
+ "task_version": 5,
197
+ "source_archive_sha256": "19246fda734704552a40171add83070a3e3181c11aad73b24eff2244939a2400",
198
+ "hosted_revision_argument": "not recorded; the scenario does not read it"
199
+ },
200
+ "judge": {
201
+ "criteria": [
202
+ "maintainer_review"
203
+ ],
204
+ "weight": 0.0625,
205
+ "base_url": "https://openrouter.ai/api/v1",
206
+ "model": "anthropic/claude-sonnet-5.5"
207
+ },
208
+ "source_edited": {
209
+ "changed": [
210
+ "env.py",
211
+ "tasks.py"
212
+ ],
213
+ "removed": [],
214
+ "what": "the environment name was changed to a neutral one (ec-swe-click); the judge's model is read from JUDGE_MODEL (default claude-sonnet-5-5) instead of the hud library's default"
215
+ }
216
+ },
217
+ {
218
+ "task_id": "druid_lenient_script",
219
+ "name": "druid",
220
+ "dataset_instance_id": "alibaba__druid-druid_lenient_script",
221
+ "repository": "alibaba/druid",
222
+ "language": "Java",
223
+ "source_folder": "druid-v9",
224
+ "dockerfile": "Dockerfile.hud",
225
+ "source_image": "ec-swe-druid:source-v9",
226
+ "source_image_id_at_qualification": "sha256:5f1b83c229945b6e5b8a1967c326e74451ba8dcc61fac88bb8afb7c5f6f3631d",
227
+ "grader_version": "0.6.17",
228
+ "criteria": 12,
229
+ "reward_rule": "authored",
230
+ "blocker_cap": 0.6,
231
+ "author_calibration": {},
232
+ "provenance": {
233
+ "repository": "alibaba/druid",
234
+ "environment_id": "4fce1a24-1403-4334-bf16-4501cb4c1d65",
235
+ "build": 9,
236
+ "build_id": "4b38f7d2-3002-4aaf-b77d-d99b6013d8e8",
237
+ "hosted_task": "druid_lenient_script",
238
+ "task_version": 1,
239
+ "source_archive_sha256": "d600f5069d646a71e959d38c9d27873c2cc6fb253ca1491111f71bd28f45c7fc",
240
+ "hosted_revision_argument": "not recorded; the scenario does not read it"
241
+ },
242
+ "judge": {
243
+ "criteria": [
244
+ "maintainer_review"
245
+ ],
246
+ "weight": 0.02,
247
+ "base_url": "https://openrouter.ai/api/v1",
248
+ "model": "anthropic/claude-sonnet-5.5"
249
+ },
250
+ "source_edited": {
251
+ "changed": [
252
+ "preflight.sh",
253
+ "tasks.py"
254
+ ],
255
+ "removed": [
256
+ ".hud/config.json",
257
+ "task/grader/maintainer_review.judge.json.as-submitted-2026-09-18",
258
+ "tasks.py.bak-2026-09-20"
259
+ ],
260
+ "what": "comments that recorded internal review history were shortened in two files, and three files the image build does not read were removed; tasks.py is the same program; the judge's model is read from JUDGE_MODEL (default claude-sonnet-5-5) instead of the hud library's default"
261
+ }
262
+ },
263
  {
264
  "task_id": "epicyon_deleted_post_announce_cache_contract",
265
  "name": "epicyon",
 
371
  "what": "the environment name was changed to a neutral one (ec-swe-go-mysql-mariadb-compressed-columns)"
372
  }
373
  },
374
+ {
375
+ "task_id": "ahooks_request_cache_races",
376
+ "name": "hooks",
377
+ "dataset_instance_id": "alibaba__hooks-ahooks_request_cache_races",
378
+ "repository": "alibaba/hooks",
379
+ "language": "TypeScript",
380
+ "source_folder": "hooks-v4",
381
+ "dockerfile": "Dockerfile.hud",
382
+ "source_image": "ec-swe-hooks:source-v4",
383
+ "source_image_id_at_qualification": "sha256:c8a01a3bb52d95d98778f6d7673b3c69a0d51ff7205c696fc1c0173c5976f579",
384
+ "grader_version": "0.6.13",
385
+ "criteria": 26,
386
+ "reward_rule": "authored",
387
+ "blocker_cap": null,
388
+ "author_calibration": {},
389
+ "provenance": {
390
+ "repository": "alibaba/hooks",
391
+ "environment_id": "44d3580d-4543-44f2-9cae-f91c03b86b2e",
392
+ "build": 4,
393
+ "build_id": "482645e0-2341-4ed7-9a14-3f76bf855163",
394
+ "hosted_task": "ahooks_request_cache_races",
395
+ "task_version": 1,
396
+ "source_archive_sha256": "97027bc58fd09d811b17adfdc0759b7febcbb1983a62b16b30777a88dc610e22",
397
+ "hosted_revision_argument": "not recorded; the scenario does not read it"
398
+ },
399
+ "judge": {
400
+ "criteria": [
401
+ "maintainer_review"
402
+ ],
403
+ "weight": 0.03,
404
+ "base_url": "https://openrouter.ai/api/v1",
405
+ "model": "anthropic/claude-sonnet-5.5"
406
+ },
407
+ "source_edited": {
408
+ "changed": [
409
+ "env.py",
410
+ "tasks.py"
411
+ ],
412
+ "removed": [],
413
+ "what": "the environment name was changed to a neutral one (ec-swe-hooks2675-v2); the judge's model is read from JUDGE_MODEL (default claude-sonnet-5-5) instead of the hud library's default"
414
+ }
415
+ },
416
  {
417
  "task_id": "kratos_cleanup_stale_flows_courier_contract",
418
  "name": "kratos",
 
772
  "what": "the environment name was changed to a neutral one (ec-swe-rust-postgres-abandoned-ops)"
773
  }
774
  },
775
+ {
776
+ "task_id": "bulkcreate_ignore_duplicates",
777
+ "name": "sequelize",
778
+ "dataset_instance_id": "sequelize__sequelize-sequelize-bulkcreate-ignore-duplicates",
779
+ "repository": "sequelize/sequelize",
780
+ "language": "TypeScript",
781
+ "source_folder": "sequelize-v27",
782
+ "dockerfile": "Dockerfile.hud",
783
+ "source_image": "ec-swe-sequelize:source-v27",
784
+ "source_image_id_at_qualification": "sha256:d43e9d9aeb62ac7db98c705e031fa92efce5a91248bdcc00033dc8b8937d02e4",
785
+ "grader_version": "0.6.13",
786
+ "criteria": 12,
787
+ "reward_rule": "authored",
788
+ "blocker_cap": 0.1,
789
+ "author_calibration": {},
790
+ "provenance": {
791
+ "repository": "sequelize/sequelize",
792
+ "environment_id": "03307997-4ff6-442a-ad24-121dfb3b41f9",
793
+ "build": 27,
794
+ "build_id": "83e3edf3-4193-483a-9b22-b171913d7963",
795
+ "hosted_task": "sequelize-bulkcreate-ignore-duplicates",
796
+ "task_version": 1,
797
+ "source_archive_sha256": "80501260a5e9f7d67d8c622ec5bb6ff39646f1847b7cfb54eb409a69d1e54949",
798
+ "hosted_revision_argument": "not recorded; the scenario does not read it"
799
+ },
800
+ "judge": {
801
+ "criteria": [
802
+ "maintainer_review"
803
+ ],
804
+ "weight": 0.0625,
805
+ "base_url": "https://openrouter.ai/api/v1",
806
+ "model": "anthropic/claude-sonnet-5.5"
807
+ },
808
+ "source_edited": {
809
+ "changed": [
810
+ "env.py",
811
+ "tasks.py"
812
+ ],
813
+ "removed": [],
814
+ "what": "the environment name was changed to a neutral one (ec-swe-sequelize); the judge's model is read from JUDGE_MODEL (default claude-sonnet-5-5) instead of the hud library's default"
815
+ }
816
+ },
817
  {
818
  "task_id": "retained_top_level_names_keep_their_values",
819
  "name": "terser",
 
949
  }
950
  }
951
  ],
952
+ "unpackaged": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
953
  "not_included": {}
954
  }
harbor/run_checks.py CHANGED
@@ -73,9 +73,10 @@ def variant_for(case: str, package: Path, scratch: Path) -> tuple[Path, str]:
73
  if case == "noop":
74
  return variant, "nop"
75
  if case == "reference":
76
- marker = "cd /workspace/repo\n"
77
- text = solve.read_text()
78
- solve.write_text(text.replace(marker, marker + PROBE, 1), newline="\n")
 
79
  elif case == "broken":
80
  patch = (variant / "solution/reference.patch").read_text()
81
  paths = re.findall(r"^\+\+\+ b/(\S+)", patch, flags=re.MULTILINE)
@@ -120,8 +121,10 @@ def main() -> None:
120
  log = output / f"{job}.log"
121
  with log.open("wb") as handle:
122
  subprocess.run(
 
 
123
  ["harbor", "run", "-p", str(variant), "-a", agent, "--jobs-dir", str(output / "jobs"),
124
- "--job-name", job, "-n", "1"],
125
  stdout=handle, stderr=subprocess.STDOUT,
126
  )
127
  results = sorted((output / "jobs" / job).glob("*/result.json"))
@@ -138,8 +141,18 @@ def main() -> None:
138
  ok = reward == EXPECTED[case] and (error is None) == (case != "infra")
139
  if case == "reference":
140
  ok = ok and bool(probe)
 
 
 
 
 
 
 
 
141
  row = {"task": task, "case": case, "reward": reward, "expected": EXPECTED[case], "ok": ok,
142
  "error": error, "seconds": round(time.time() - started)}
 
 
143
  if case == "reference":
144
  row["agent_isolated"] = probe
145
  summary.append(row)
 
73
  if case == "noop":
74
  return variant, "nop"
75
  if case == "reference":
76
+ # Bytes: a repository with CRLF files has CRLF lines in its reference fix.
77
+ marker = b"cd /workspace/repo\n"
78
+ text = solve.read_bytes()
79
+ solve.write_bytes(text.replace(marker, marker + PROBE.encode(), 1))
80
  elif case == "broken":
81
  patch = (variant / "solution/reference.patch").read_text()
82
  paths = re.findall(r"^\+\+\+ b/(\S+)", patch, flags=re.MULTILINE)
 
121
  log = output / f"{job}.log"
122
  with log.open("wb") as handle:
123
  subprocess.run(
124
+ # --yes: a task with a judged criterion reads JUDGE_* from this shell, which
125
+ # Harbor otherwise asks about first.
126
  ["harbor", "run", "-p", str(variant), "-a", agent, "--jobs-dir", str(output / "jobs"),
127
+ "--job-name", job, "-n", "1", "--yes"],
128
  stdout=handle, stderr=subprocess.STDOUT,
129
  )
130
  results = sorted((output / "jobs" / job).glob("*/result.json"))
 
141
  ok = reward == EXPECTED[case] and (error is None) == (case != "infra")
142
  if case == "reference":
143
  ok = ok and bool(probe)
144
+ config = json.loads((root / "tasks" / task / "tests/config.json").read_text())
145
+ judged = {row[0]: row[1] for row in config["criteria"] if row[3] == "judge"}
146
+ if case == "broken" and judged and reward is not None and error is None:
147
+ # A judged criterion reads the diff, not the tests, and may credit a broken fix's
148
+ # design up to its weight; every tested criterion must still earn nothing.
149
+ report = json.loads((results[0].parent / "verifier/report.json").read_text())
150
+ tested = [s for s in report["result"]["subscores"] if s["name"] not in judged]
151
+ ok = all(s["value"] == 0 for s in tested) and reward <= sum(judged.values()) + 1e-9
152
  row = {"task": task, "case": case, "reward": reward, "expected": EXPECTED[case], "ok": ok,
153
  "error": error, "seconds": round(time.time() - started)}
154
+ if case == "broken" and judged:
155
+ row["judged_at_most"] = sum(judged.values())
156
  if case == "reference":
157
  row["agent_isolated"] = probe
158
  summary.append(row)
harbor/sources/babylonjs-v8/task/grader/run_grading.sh CHANGED
@@ -100,6 +100,11 @@ need_toolchain() {
100
  [ -f "$CONFIG" ] || fault "the grading configuration is missing at $CONFIG"
101
  [ -f "$BASE_SRC/tsconfig.pristine.json" ] || fault "the pristine tsconfig is missing"
102
  [ -f "$BASE_SRC/vitest.setup.ts" ] || fault "the pristine vitest setup is missing"
 
 
 
 
 
103
  }
104
 
105
  vitest() {
 
100
  [ -f "$CONFIG" ] || fault "the grading configuration is missing at $CONFIG"
101
  [ -f "$BASE_SRC/tsconfig.pristine.json" ] || fault "the pristine tsconfig is missing"
102
  [ -f "$BASE_SRC/vitest.setup.ts" ] || fault "the pristine vitest setup is missing"
103
+ # vite writes a bundled copy of its configuration next to it, and a grader
104
+ # that does not run as root cannot write under /hud/grader: run a fresh copy.
105
+ rm -rf "$STATE/harness" && cp -R "$HARNESS_DIR/harness" "$STATE/harness" \
106
+ || fault "cannot copy the harness to $STATE"
107
+ CONFIG=$STATE/harness/vitest.hud.mjs
108
  }
109
 
110
  vitest() {