Publish consolidated inventory of 1597 agent tasks
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- LICENSES.md +9 -0
- README.md +71 -0
- SHA256SUMS +111 -0
- bundles/tasksmith-0ba04a338dbb.tar.gz +3 -0
- bundles/tasksmith-2e594e91712a.tar.gz +3 -0
- bundles/tasksmith-584e4c2811de.tar.gz +3 -0
- bundles/tasksmith-74f059424102.tar.gz +3 -0
- bundles/tasksmith-7dc334aa969d.tar.gz +3 -0
- bundles/tasksmith-87860368c397.tar.gz +3 -0
- bundles/tasksmith-87ce453762d0.tar.gz +3 -0
- bundles/tasksmith-935610dc9283.tar.gz +3 -0
- bundles/tasksmith-a7e859277e7a.tar.gz +3 -0
- bundles/tasksmith-a9cb6b87c28d.tar.gz +3 -0
- bundles/tasksmith-ae872f5c3953.tar.gz +3 -0
- bundles/tasksmith-b6d969373e1e.tar.gz +3 -0
- bundles/tasksmith-ca08ab4caec6.tar.gz +3 -0
- bundles/tasksmith-eb64d1312ca8.tar.gz +3 -0
- data/tasks.jsonl +3 -0
- download_task.py +41 -0
- provenance/automation-LICENSES.md +31 -0
- provenance/automation-dataset-card.md +205 -0
- provenance/build-summary.json +19 -0
- provenance/business_automation.jsonl +0 -0
- provenance/coding-baseline-summary.json +23 -0
- provenance/coding-validation.json +292 -0
- provenance/coding_additions.jsonl +15 -0
- provenance/coding_baseline.jsonl +0 -0
- provenance/knowledge_work.jsonl +0 -0
- provenance/tasksmith-0ba04a338dbb/candidate-intake.json +17 -0
- provenance/tasksmith-0ba04a338dbb/files.json +0 -0
- provenance/tasksmith-0ba04a338dbb/native-proof.json +7 -0
- provenance/tasksmith-0ba04a338dbb/quality-label.json +9 -0
- provenance/tasksmith-0ba04a338dbb/quality-result.json +192 -0
- provenance/tasksmith-0ba04a338dbb/source.json +37 -0
- provenance/tasksmith-2e594e91712a/candidate-intake.json +17 -0
- provenance/tasksmith-2e594e91712a/files.json +420 -0
- provenance/tasksmith-2e594e91712a/native-proof.json +7 -0
- provenance/tasksmith-2e594e91712a/quality-label.json +9 -0
- provenance/tasksmith-2e594e91712a/quality-result.json +192 -0
- provenance/tasksmith-2e594e91712a/source.json +66 -0
- provenance/tasksmith-584e4c2811de/candidate-intake.json +17 -0
- provenance/tasksmith-584e4c2811de/files.json +343 -0
- provenance/tasksmith-584e4c2811de/native-proof.json +7 -0
- provenance/tasksmith-584e4c2811de/quality-label.json +9 -0
- provenance/tasksmith-584e4c2811de/quality-result.json +200 -0
- provenance/tasksmith-584e4c2811de/source.json +43 -0
- provenance/tasksmith-74f059424102/candidate-intake.json +17 -0
- provenance/tasksmith-74f059424102/files.json +0 -0
- provenance/tasksmith-74f059424102/native-proof.json +7 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
data/tasks.jsonl filter=lfs diff=lfs merge=lfs -text
|
LICENSES.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Licences
|
| 2 |
+
|
| 3 |
+
This collection has no single blanket licence. Each task retains its source licence and notices. Consult `source_license`, `source_record_json`, and the task's own licence files before use.
|
| 4 |
+
|
| 5 |
+
- Coding baseline: licences are recorded per row in the pinned source dataset. `source_license_spdx` describes the source code; a missing task-bundle licence is not filled in or inferred here.
|
| 6 |
+
- Coding additions: the original code, notices and provenance accompany each bundled task. Per-task source licence declarations are retained in the inventory.
|
| 7 |
+
- Knowledge work and business automation: see [the source licence inventory](provenance/automation-LICENSES.md), and each selected row. That source document covers the larger original release, including tasks not selected here.
|
| 8 |
+
|
| 9 |
+
This aggregation does not grant additional rights to upstream material.
|
README.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: mixed-per-task
|
| 4 |
+
license_link: https://huggingface.co/datasets/harness-hub/agent-tasks/blob/main/LICENSES.md
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
size_categories:
|
| 8 |
+
- 1K<n<10K
|
| 9 |
+
tags:
|
| 10 |
+
- agents
|
| 11 |
+
- coding
|
| 12 |
+
- knowledge-work
|
| 13 |
+
- business-automation
|
| 14 |
+
- harbor
|
| 15 |
+
configs:
|
| 16 |
+
- config_name: default
|
| 17 |
+
data_files:
|
| 18 |
+
- split: inventory
|
| 19 |
+
path: data/tasks.jsonl
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# Agent tasks
|
| 23 |
+
|
| 24 |
+
A consolidated inventory of **1,597 distinct agent tasks**, covering coding, knowledge work and business automation. Each row includes the instruction, original metadata, qualification label and the location of its task files.
|
| 25 |
+
|
| 26 |
+
| Pool | Tasks | Recorded qualification |
|
| 27 |
+
|---|---:|---|
|
| 28 |
+
| `coding_baseline` | 871 | Historical coding validation; original `training_admissible=false` and `usage=quarantine_only` are preserved |
|
| 29 |
+
| `coding_additions` | 14 | Historical validation passed; oracle, no-op and oracle-replay controls recorded |
|
| 30 |
+
| `knowledge_work` | 502 | Nine-point review |
|
| 31 |
+
| `business_automation` | 210 | Three-test review; nine-point review outstanding |
|
| 32 |
+
|
| 33 |
+
This is an inventory, not a declaration that every row is ready for training. Only 502 rows have `nine_point_qualified=true`. A null `training_admissible` means that the source supplied no such decision. The proposed Inkling qualification campaign had not run when this snapshot was assembled. No new solves or runtime validation were performed for this release.
|
| 34 |
+
|
| 35 |
+
## Load the inventory
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
from datasets import load_dataset
|
| 39 |
+
|
| 40 |
+
tasks = load_dataset("harness-hub/agent-tasks", split="inventory")
|
| 41 |
+
knowledge = tasks.filter(lambda row: row["pool"] == "knowledge_work")
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
## Obtain task files
|
| 45 |
+
|
| 46 |
+
The 871 baseline coding bundles are referenced at revision `5d320e93b7832c6c66e6a5acd8403fb1a3c50bc6` of [harness-adapters](https://huggingface.co/datasets/harness-hub/harness-adapters).
|
| 47 |
+
The 712 knowledge-work and automation bundles are referenced at revision `7e3c1fefe791bc43901d93fbd4a11d6d39d851b5` of [automation-adapter-envs](https://huggingface.co/datasets/harness-hub/automation-adapter-envs).
|
| 48 |
+
These files remain in their source repositories; this release does not duplicate them. Their exact repository, revision and path are recorded in every row.
|
| 49 |
+
|
| 50 |
+
The 14 coding additions are included as individual archives under `bundles/`, with SHA-256 hashes in the rows. They contain the original exported source tasks. Their historical adapted runtime images and validation results are recorded in `validation_record_json`; the archives are not a claim of fresh runtime qualification.
|
| 51 |
+
|
| 52 |
+
The included `download_task.py` downloads a selected task, following the pinned references or verifying and extracting its archive:
|
| 53 |
+
|
| 54 |
+
```bash
|
| 55 |
+
pip install huggingface_hub
|
| 56 |
+
python download_task.py TASK_ID --output ./task-files
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
Task bundles include grader tests and solutions. Keep those outside the agent workspace. Consult each task's configuration for its runtime and artifact contract. External container images are dependencies, not included in this dataset.
|
| 60 |
+
|
| 61 |
+
## Provenance and qualification
|
| 62 |
+
|
| 63 |
+
`source_record_json` preserves the complete source row as JSON, including original quality flags, provenance paths, source revisions, licences and difficulty measurements. Paths inside this field retain their source-relative meaning. `validation_record_json` contains the historical coding-addition validation record. Files under `provenance/` retain the input manifests, source documentation, coding-addition provenance and build hashes.
|
| 64 |
+
|
| 65 |
+
The original coding-additions export has 15 candidates. Only the 14 with `validation=pass` appear in the dataset. The excluded candidate remains in the original provenance manifest for traceability.
|
| 66 |
+
|
| 67 |
+
The nine-point bar checks provenance, well-posedness, blind key verification, solvability, dependence on inputs, grader correctness, realism, stability and unique instructions. The three-test bar checks the key, sandbox gate and grader canaries. See the preserved [source dataset card](provenance/automation-dataset-card.md) for exact definitions and limitations.
|
| 68 |
+
|
| 69 |
+
Held-out evaluation splits and repeated experiment splits are excluded. This does not establish cross-benchmark semantic non-overlap; original restrictions remain in the source metadata. Known automation families share instruction text, so use `task_id` as the identifier.
|
| 70 |
+
|
| 71 |
+
Snapshot assembled on 2026-11-27. Counts and historical quality claims describe the selected source artifacts.
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cbd508512ec8de43d6cb4584a9bd60cc783f768e783c404f2f4e141ea81bacd3 LICENSES.md
|
| 2 |
+
ad2d3a0bde67e2b7b8dd774fc6e08c83eaa2c9bde439ea25740da2c45d86f4cc README.md
|
| 3 |
+
63ffc4d91661789dc4ed1d15a71934aed57a326742bcdbebd7a96e2f137ee2a8 bundles/tasksmith-0ba04a338dbb.tar.gz
|
| 4 |
+
3518cb5b8d75853eedc381b6e4b23acba83018ccdb353b0e400d3d4f10815bcb bundles/tasksmith-2e594e91712a.tar.gz
|
| 5 |
+
9ac2e41c898aa39ebc7a0167bdc8cd5bccc13dde5030f8d35387815c14ee6bb1 bundles/tasksmith-584e4c2811de.tar.gz
|
| 6 |
+
1b266e5ccb0b70b374b2e238352e67f7e08143cadbdac0c1bd2f57eb05391d05 bundles/tasksmith-74f059424102.tar.gz
|
| 7 |
+
25fd57940e0fed89fb1b261ca074674f00f46dd170682469d6ba956d6320222d bundles/tasksmith-7dc334aa969d.tar.gz
|
| 8 |
+
d7dcf612e254a0b74912b9c453f4a3e49dd3b1b2a517cb9c85c32810e31ff1bd bundles/tasksmith-87860368c397.tar.gz
|
| 9 |
+
43beb26e2d740c98525fb931f78ea81088a2599415285470ac4c6b3f8be5423a bundles/tasksmith-87ce453762d0.tar.gz
|
| 10 |
+
b4439558df4e2d4ebfa7a7c69a198009c2b682c19e02c72b600bf5b859ef7b1d bundles/tasksmith-935610dc9283.tar.gz
|
| 11 |
+
ac3f78788559c82f418be11a7109967a40b09bf11de8ce271461531c85587923 bundles/tasksmith-a7e859277e7a.tar.gz
|
| 12 |
+
6e006d69819af499a232435f262160f6f16731b77b8321d30e5cd049e2c649f1 bundles/tasksmith-a9cb6b87c28d.tar.gz
|
| 13 |
+
7ffe514b660ec99fc08c5a78335aba489d62df9265aa821f08153238745dc8a2 bundles/tasksmith-ae872f5c3953.tar.gz
|
| 14 |
+
645dd194544d64225492fef16954f9c23b3a87c8e3dffcf56399187f83144d13 bundles/tasksmith-b6d969373e1e.tar.gz
|
| 15 |
+
f28a9af1fb4a2a3a0d595c906deaabddbd25a1f5f1fbe563272693bd0e1390ac bundles/tasksmith-ca08ab4caec6.tar.gz
|
| 16 |
+
c214639cb02403e7cb95c6392766ef03cfb3145e6178182ae95e20b42b26dc94 bundles/tasksmith-eb64d1312ca8.tar.gz
|
| 17 |
+
dd5930e6e587ef7a66487620206fba2a68b1a0bc78a6c4eacff04a218383cc10 data/tasks.jsonl
|
| 18 |
+
b36829daa01ad413452f7ee213fe558f25021c0653798f744733b0d92437c9a1 download_task.py
|
| 19 |
+
d4836787a3c68f208033aacfc457202471b666e4ff1550605eeb5d16f92bee22 provenance/automation-LICENSES.md
|
| 20 |
+
88f8ccd90d50f98f7019dc27c1b2591a335c76b6df7807ef3786d1a75894a82a provenance/automation-dataset-card.md
|
| 21 |
+
35d177b6fc49c36c3f6a2e230778eb2ffc6d4eb52096013e668f79b17d5ab15e provenance/build-summary.json
|
| 22 |
+
b934ecdab7a4e7fc160a33bcbfd18841febdd69c6d95a10c97bfa0318bc796ff provenance/business_automation.jsonl
|
| 23 |
+
752078804c82138a1aa7dc1112bb0d7d5a060c587d88901554f205c868ac180b provenance/coding-baseline-summary.json
|
| 24 |
+
2ff75990c725a842a67579583c1ad5d81f4e6358dbeb6b47cd8f21ebd509b652 provenance/coding-validation.json
|
| 25 |
+
ce3f649107f02b5a13478936d5d26cc6b74629040ca879c50ba9ced203b2b155 provenance/coding_additions.jsonl
|
| 26 |
+
13aafbf59d7ae530916cde1e37f1cc6ddc691c6b1e909cf0eb9cb3d8e150c292 provenance/coding_baseline.jsonl
|
| 27 |
+
a663d7fb687edcc450be0eacfea3b14aa07ad53eae3aa7a604fd0e71de946e50 provenance/knowledge_work.jsonl
|
| 28 |
+
17f01e5fcf6ba9d1b1dfe87003d5b248214816fee509422431592778ae5c637d provenance/tasksmith-0ba04a338dbb/candidate-intake.json
|
| 29 |
+
e8aae9bd8007e3f68323ca825d70c31058213e5a8a73cbbd07f5ac58e3d8a0ac provenance/tasksmith-0ba04a338dbb/files.json
|
| 30 |
+
00441dda6312c989cef9e0b01fb0d7b4fbfb7e53b9e22ca2efb510ea32fd62f5 provenance/tasksmith-0ba04a338dbb/native-proof.json
|
| 31 |
+
2412f2c16e9a027fadf223302bb00d665cd08db4db4599bc94e3dbfd67fa5b61 provenance/tasksmith-0ba04a338dbb/quality-label.json
|
| 32 |
+
7368aedd46cb5c697f45a42e586e6446dc07056bae766d0362596ad304749788 provenance/tasksmith-0ba04a338dbb/quality-result.json
|
| 33 |
+
3c749030c50f270d74acbb7cfefc046a1d24885a8afda9156f86481e428ffe6d provenance/tasksmith-0ba04a338dbb/source.json
|
| 34 |
+
83b86e8850334c3f530ff9155c023b0bbfb43182701c8a6fa48f31f6d07deb0d provenance/tasksmith-2e594e91712a/candidate-intake.json
|
| 35 |
+
f2c29509262aaf2a74f6b4e7493f15dbcfe0a143345907d35ff269a8944f13b8 provenance/tasksmith-2e594e91712a/files.json
|
| 36 |
+
8657f009c624944ad31c216f767d8f44019753bf48b041c3d7ac689590c7f0ad provenance/tasksmith-2e594e91712a/native-proof.json
|
| 37 |
+
5170218e2735654230db0b9fd24d50ca28c3b037f034351f16a12acdf120cd94 provenance/tasksmith-2e594e91712a/quality-label.json
|
| 38 |
+
20a2bf2593550d83d32f4d62ef7e462f0a8962d63c73f5c8ad157ec28aa4618d provenance/tasksmith-2e594e91712a/quality-result.json
|
| 39 |
+
4a41ff60f0b71ae7ad0049a5aee77bafc37df6344b380effd7a4e31ee6899b3d provenance/tasksmith-2e594e91712a/source.json
|
| 40 |
+
646c8d7ae6efe895226e706f36eafed5e2cd635a08198b825a52838e645d9288 provenance/tasksmith-584e4c2811de/candidate-intake.json
|
| 41 |
+
893c7d12c41ce21e30b726adb0c5a3407d02bc7fa73c1714a73551f9297036e7 provenance/tasksmith-584e4c2811de/files.json
|
| 42 |
+
7ea2a00ef35da21448eaab7ae12ba069b25f8c27affc6e32440051745de1eb67 provenance/tasksmith-584e4c2811de/native-proof.json
|
| 43 |
+
fce6610b4570d6b7b5caf447119f5fa8ec1ccf54aefd901c0aa643ea0d214c01 provenance/tasksmith-584e4c2811de/quality-label.json
|
| 44 |
+
edb58fb9c196a22d0cfeb7a4413061b6fc08c3c672c4f5cfe978c3a715b82289 provenance/tasksmith-584e4c2811de/quality-result.json
|
| 45 |
+
5e381fb347749d68cfc4350854d3abd64f82cfb49d7509ea2307f85d7bf08fea provenance/tasksmith-584e4c2811de/source.json
|
| 46 |
+
00ec4ef09cff6da86c52d2fa05d9a4245e519425c17aa245b42b704335866978 provenance/tasksmith-74f059424102/candidate-intake.json
|
| 47 |
+
6e0c5e84c0ec8779d84b3a38601f2e7636d1a3fc9f993140ec74b1ac4cb67f46 provenance/tasksmith-74f059424102/files.json
|
| 48 |
+
e72f43f7d4571c4188c73cf2a120d558a448f7a73ee8e279ed00c04a2b019575 provenance/tasksmith-74f059424102/native-proof.json
|
| 49 |
+
3a89dcb0bfce3e9c0f86b57bd9db4b44bde0d0dba0c48343d2a22473b84b94fe provenance/tasksmith-74f059424102/quality-label.json
|
| 50 |
+
4e2f1eb090a7cdf732e311c6175662c4e0ea1fa3563ea324286e066bc98230a0 provenance/tasksmith-74f059424102/quality-result.json
|
| 51 |
+
34d178a118e36b9d359fd6c50160d90fe6cfb9b098bd68ef570574f97cfe14a8 provenance/tasksmith-74f059424102/source.json
|
| 52 |
+
1f21befa128436ad7104d9a973e73ed4c1a11d2ecab51002d7737f40d690dcae provenance/tasksmith-7dc334aa969d/candidate-intake.json
|
| 53 |
+
57f0b406c25ddf3fccba310b4e752e01478fd1f2828b2d835567ff47160469c1 provenance/tasksmith-7dc334aa969d/files.json
|
| 54 |
+
791e73b127e31e420462e6721df9d319d14459068ff657c150dd9ada0c8c852f provenance/tasksmith-7dc334aa969d/native-proof.json
|
| 55 |
+
dc95a7baa3769c298510699b2ffc42b3b19f267bcd394cc76c603bb190559643 provenance/tasksmith-7dc334aa969d/quality-label.json
|
| 56 |
+
5864aaf46c7c955f593e14a727e0670d51d9bb7f0d22b5f9cbf699df0f4f8f0d provenance/tasksmith-7dc334aa969d/quality-result.json
|
| 57 |
+
e414b42d3c7d190c51ca5aef289b0369402fc4f72900d05837e903662d05169b provenance/tasksmith-7dc334aa969d/source.json
|
| 58 |
+
0d2abe9b873c3fedadf50701033c7581678ae8bdf8bd27d26725c9ea22215828 provenance/tasksmith-87860368c397/candidate-intake.json
|
| 59 |
+
d4ad9c4c6eeeb353ac679c2438720564d3a18f6f95a34be293a8a36d23267cf9 provenance/tasksmith-87860368c397/files.json
|
| 60 |
+
709769b1aa63182e0bf28b06c727d41a96d46cbff062330cc2a9269513756ec8 provenance/tasksmith-87860368c397/native-proof.json
|
| 61 |
+
c628d386881b7603b26bbeb30b81f8599a690fbaa4d33abea3c20bb4f681eb57 provenance/tasksmith-87860368c397/quality-label.json
|
| 62 |
+
93f51aa65630b0696600c01e51a4ff0684a15c8459b9492bad302878d5e02b24 provenance/tasksmith-87860368c397/quality-result.json
|
| 63 |
+
5c68acd625591bd354000bca42f9cac26447fc9c670d235154b5abcd1ddc0b63 provenance/tasksmith-87860368c397/source.json
|
| 64 |
+
1d76934d18fdc4868a1811fd3d014ffa9a7bd10358e6a14ac5b1531d1bf8404d provenance/tasksmith-87ce453762d0/candidate-intake.json
|
| 65 |
+
50626e4cccd9dda60d99aa9cbae775ccea55ad0da2b06512d39845b395657965 provenance/tasksmith-87ce453762d0/files.json
|
| 66 |
+
4e7192e15ad92aafaf55a73788c482356902e33142be3cc097bd95e6e9e1cfc6 provenance/tasksmith-87ce453762d0/native-proof.json
|
| 67 |
+
a7a76d4bd8699b5f0071a4029697aac3833dc4cc1b1ef5d3944cb372a33f9eea provenance/tasksmith-87ce453762d0/quality-label.json
|
| 68 |
+
03c91a422f2af8b4d413045b28d254ba10a79888567343e12d4b498867fff721 provenance/tasksmith-87ce453762d0/quality-result.json
|
| 69 |
+
a0647da319fae386095fc7868159c6d34717b556aeb91b6b13ebf5a1713bde85 provenance/tasksmith-87ce453762d0/source.json
|
| 70 |
+
50eb8c69a82381fd9ec60bde453c38f03c81fa441e948ce90b02e8b1aa86bea0 provenance/tasksmith-935610dc9283/candidate-intake.json
|
| 71 |
+
761c3a987b137a25506487fde9d5b8ef5bf2dbe3be844bc5aacc67a944ed315b provenance/tasksmith-935610dc9283/files.json
|
| 72 |
+
5a8baf53b47757cd79e26a45a1cd03b002919ff1b88ae55b280fcaa0b84d15db provenance/tasksmith-935610dc9283/native-proof.json
|
| 73 |
+
3473570551afd7b62bfe8ce06be80c12acd084eaae599ee747e521c58ae048bb provenance/tasksmith-935610dc9283/quality-label.json
|
| 74 |
+
30eef2304c3db8e014e4aa884075e1df3f55bd6bdeef68f7cc8604ab56259f05 provenance/tasksmith-935610dc9283/quality-result.json
|
| 75 |
+
fb71ccc4a5a1ccd98c6f5c149148d1a72cd1901f230394b9c2c091f0a167c2be provenance/tasksmith-935610dc9283/source.json
|
| 76 |
+
84ebd3e0dded1b96200ac01d1e6af1d9097204f2250af2b888bbc47420682b0c provenance/tasksmith-a7e859277e7a/candidate-intake.json
|
| 77 |
+
298c8f108f06dee1a4fd9c1fba54fb770eed9e07f2d7383a8a526e178163d05c provenance/tasksmith-a7e859277e7a/files.json
|
| 78 |
+
7f1737811baf711de265659d9be9e8f0fa3f08ffce4b2bb485d6601984f67b07 provenance/tasksmith-a7e859277e7a/native-proof.json
|
| 79 |
+
b74afe7e8bc6a978708ac3b5da2b4be9a7b4e0472288cd22c760156d252a95ca provenance/tasksmith-a7e859277e7a/quality-label.json
|
| 80 |
+
9c9daf5f84e1215481be46b3d906594d52a87c7c955091f8e1a1471189957fbf provenance/tasksmith-a7e859277e7a/quality-result.json
|
| 81 |
+
eb1e299d0b548c9b6d1fd126c134a92ee9a15bfa8b61347353df1b93fa8c89ec provenance/tasksmith-a7e859277e7a/source.json
|
| 82 |
+
4549113d2ceccb722fe4f3a31f23dee13db0168b0771449fbae0b32dcbc349db provenance/tasksmith-a9cb6b87c28d/candidate-intake.json
|
| 83 |
+
d5ec4ac316da81d5a17f9763104443f54d18ec6e63ce710a0de365deb18b8ce1 provenance/tasksmith-a9cb6b87c28d/files.json
|
| 84 |
+
4a8a8c7f41ab433fd849035fa151209034d1288ec1f8c5dd79a85ee859e4a2a4 provenance/tasksmith-a9cb6b87c28d/native-proof.json
|
| 85 |
+
0b2d09e598cfe61162c772faee28f38a2c635840fb34d4981c0612295b7ed17b provenance/tasksmith-a9cb6b87c28d/quality-label.json
|
| 86 |
+
73ba977fd14b1a6e2d21bdcc21b7232825a2e782a69b06dfc85d0082189025f2 provenance/tasksmith-a9cb6b87c28d/quality-result.json
|
| 87 |
+
d5f937e4dbad2956d9e04d78859ebbb9c4c42b396fc112c3d9c25ce9fcc78577 provenance/tasksmith-a9cb6b87c28d/source.json
|
| 88 |
+
722024bed0454d968af85f509e1eb18b6b3e3a0fd3b554eece53d47dad539f62 provenance/tasksmith-ae872f5c3953/candidate-intake.json
|
| 89 |
+
80d4359351cbc9c796fbce869ef947ca69d53c2973c97d0be723c4710d3be567 provenance/tasksmith-ae872f5c3953/files.json
|
| 90 |
+
845930371445b8c4b0243472ef00ee364037ac27efae7d3bf5bb91b306e5062a provenance/tasksmith-ae872f5c3953/native-proof.json
|
| 91 |
+
a9b3021a40692a03355d596a8d4a97409bb247ce51c5c61b4ca0293f058089fb provenance/tasksmith-ae872f5c3953/quality-label.json
|
| 92 |
+
a9c282cd0a28b69a4054a5f650dfb43e8236b6f5f91160b620928d1bbac8f082 provenance/tasksmith-ae872f5c3953/quality-result.json
|
| 93 |
+
832bb522d9be8ac24051b034fcd69bc324a10caae9ebcabfc0eea74ad46348c2 provenance/tasksmith-ae872f5c3953/source.json
|
| 94 |
+
10eb40a3b79cdc2650849a44baa2d0813cb64f6a914ebfa8cae7e0df426a98ca provenance/tasksmith-b6d969373e1e/candidate-intake.json
|
| 95 |
+
e6f8b8aab15cb6c5d75fd34c78c84cec11e1862340f50b1259459a143d8aa775 provenance/tasksmith-b6d969373e1e/files.json
|
| 96 |
+
4aad75d300168797eab2588cfb15553af449667f802f9c0dadb4335d999cb87c provenance/tasksmith-b6d969373e1e/native-proof.json
|
| 97 |
+
c109807f8336ffa9f36d38c9db138e5ab5aa28928d00d9f07552a6cc5b8ca179 provenance/tasksmith-b6d969373e1e/quality-label.json
|
| 98 |
+
960e582090075e402be184c7fe589558eba3f1f0fc9c33f43cf34c8bb6e10087 provenance/tasksmith-b6d969373e1e/quality-result.json
|
| 99 |
+
58e41d8a6dd527856e6839a4a0a21ed121f9a37e355d5eb8d9220c17b78b1f9c provenance/tasksmith-b6d969373e1e/source.json
|
| 100 |
+
55e545c584932ae807addbe356157a71fc73842389066c663047408c1acf9278 provenance/tasksmith-ca08ab4caec6/candidate-intake.json
|
| 101 |
+
fbd27036ed3ff99334a337d948600e4ea2ffff188de34c8b3894df5d661f870b provenance/tasksmith-ca08ab4caec6/files.json
|
| 102 |
+
2268485e12e06c439daee95eebaf78d46f7e75cf51d603ebb373e64081fd0ae2 provenance/tasksmith-ca08ab4caec6/native-proof.json
|
| 103 |
+
91ae92a466a525174712ddeb4c49ecb415b69a16ec76d367b275673b003835ca provenance/tasksmith-ca08ab4caec6/quality-label.json
|
| 104 |
+
314d2bd350edce5bfd0a8939b7b2d8f9a47d5b5af3674071c4ea00868b43c2e1 provenance/tasksmith-ca08ab4caec6/quality-result.json
|
| 105 |
+
44d33362be8a3c02f3790444d581fc29a7b34fa5d295ee16eae833d945210fbc provenance/tasksmith-ca08ab4caec6/source.json
|
| 106 |
+
1a3f5686e4d0d4483401370df2da652ebcd8700c040972b2e9bab7df3be349bd provenance/tasksmith-eb64d1312ca8/candidate-intake.json
|
| 107 |
+
3579b7c485be142f824504c4f7d28c3c218fbffd0959f0a779d420274586f8ca provenance/tasksmith-eb64d1312ca8/files.json
|
| 108 |
+
16aa83e35cfd0e2331e3740486c8500b29b5c462193befc730ee6311842471b3 provenance/tasksmith-eb64d1312ca8/native-proof.json
|
| 109 |
+
92f994dd6e78b59a020100eeeb2520a4c4945d1adbb17f8eb785461930bfbd3d provenance/tasksmith-eb64d1312ca8/quality-label.json
|
| 110 |
+
47e37ca417109efab71324d04e73098b38ebccb13fcdd6b52ee9428e0b832ae7 provenance/tasksmith-eb64d1312ca8/quality-result.json
|
| 111 |
+
4d76dbb4c1686820cabd567d72f8aea358909765eb8626774c68099b4ba492e1 provenance/tasksmith-eb64d1312ca8/source.json
|
bundles/tasksmith-0ba04a338dbb.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:63ffc4d91661789dc4ed1d15a71934aed57a326742bcdbebd7a96e2f137ee2a8
|
| 3 |
+
size 86558704
|
bundles/tasksmith-2e594e91712a.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3518cb5b8d75853eedc381b6e4b23acba83018ccdb353b0e400d3d4f10815bcb
|
| 3 |
+
size 270507
|
bundles/tasksmith-584e4c2811de.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ac2e41c898aa39ebc7a0167bdc8cd5bccc13dde5030f8d35387815c14ee6bb1
|
| 3 |
+
size 1602584
|
bundles/tasksmith-74f059424102.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b266e5ccb0b70b374b2e238352e67f7e08143cadbdac0c1bd2f57eb05391d05
|
| 3 |
+
size 100540042
|
bundles/tasksmith-7dc334aa969d.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:25fd57940e0fed89fb1b261ca074674f00f46dd170682469d6ba956d6320222d
|
| 3 |
+
size 70985
|
bundles/tasksmith-87860368c397.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7dcf612e254a0b74912b9c453f4a3e49dd3b1b2a517cb9c85c32810e31ff1bd
|
| 3 |
+
size 15420171
|
bundles/tasksmith-87ce453762d0.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43beb26e2d740c98525fb931f78ea81088a2599415285470ac4c6b3f8be5423a
|
| 3 |
+
size 89546
|
bundles/tasksmith-935610dc9283.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b4439558df4e2d4ebfa7a7c69a198009c2b682c19e02c72b600bf5b859ef7b1d
|
| 3 |
+
size 3039013
|
bundles/tasksmith-a7e859277e7a.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac3f78788559c82f418be11a7109967a40b09bf11de8ce271461531c85587923
|
| 3 |
+
size 76215
|
bundles/tasksmith-a9cb6b87c28d.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6e006d69819af499a232435f262160f6f16731b77b8321d30e5cd049e2c649f1
|
| 3 |
+
size 87214
|
bundles/tasksmith-ae872f5c3953.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ffe514b660ec99fc08c5a78335aba489d62df9265aa821f08153238745dc8a2
|
| 3 |
+
size 2818277
|
bundles/tasksmith-b6d969373e1e.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:645dd194544d64225492fef16954f9c23b3a87c8e3dffcf56399187f83144d13
|
| 3 |
+
size 175559
|
bundles/tasksmith-ca08ab4caec6.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f28a9af1fb4a2a3a0d595c906deaabddbd25a1f5f1fbe563272693bd0e1390ac
|
| 3 |
+
size 3767124
|
bundles/tasksmith-eb64d1312ca8.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c214639cb02403e7cb95c6392766ef03cfb3145e6178182ae95e20b42b26dc94
|
| 3 |
+
size 80178
|
data/tasks.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd5930e6e587ef7a66487620206fba2a68b1a0bc78a6c4eacff04a218383cc10
|
| 3 |
+
size 11511283
|
download_task.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Download one inventory task with pinned source selection and archive verification."""
|
| 2 |
+
import argparse
|
| 3 |
+
import hashlib
|
| 4 |
+
import json
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
import tarfile
|
| 7 |
+
from huggingface_hub import HfApi, hf_hub_download
|
| 8 |
+
|
| 9 |
+
def main():
|
| 10 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 11 |
+
parser.add_argument('task_id')
|
| 12 |
+
parser.add_argument('--output', type=Path, required=True)
|
| 13 |
+
parser.add_argument('--revision', default='main')
|
| 14 |
+
args = parser.parse_args()
|
| 15 |
+
api = HfApi()
|
| 16 |
+
repo = 'harness-hub/agent-tasks'
|
| 17 |
+
revision = api.dataset_info(repo, revision=args.revision).sha
|
| 18 |
+
manifest = hf_hub_download(repo, 'data/tasks.jsonl', repo_type='dataset', revision=revision)
|
| 19 |
+
rows = [json.loads(line) for line in Path(manifest).read_text().splitlines()]
|
| 20 |
+
row = next((r for r in rows if r['task_id'] == args.task_id), None)
|
| 21 |
+
if row is None:
|
| 22 |
+
parser.error('Task ID is absent from this inventory')
|
| 23 |
+
args.output.mkdir(parents=True, exist_ok=True)
|
| 24 |
+
if row['bundle_archive']:
|
| 25 |
+
archive = Path(hf_hub_download(repo, row['bundle_archive'], repo_type='dataset', revision=revision))
|
| 26 |
+
if hashlib.sha256(archive.read_bytes()).hexdigest() != row['bundle_sha256']:
|
| 27 |
+
raise ValueError('Archive checksum mismatch')
|
| 28 |
+
with tarfile.open(archive) as tf:
|
| 29 |
+
tf.extractall(args.output, filter='data')
|
| 30 |
+
print(args.output / row['task_path'])
|
| 31 |
+
else:
|
| 32 |
+
files = list(api.list_repo_tree(row['task_repo'], path_in_repo=row['task_path'], recursive=True, repo_type='dataset', revision=row['task_revision']))
|
| 33 |
+
names = [f.path for f in files if hasattr(f, 'size')]
|
| 34 |
+
if not names:
|
| 35 |
+
raise ValueError('Pinned task directory contains no files')
|
| 36 |
+
for name in names:
|
| 37 |
+
hf_hub_download(row['task_repo'], name, repo_type='dataset', revision=row['task_revision'], local_dir=args.output)
|
| 38 |
+
print(args.output / row['task_path'])
|
| 39 |
+
|
| 40 |
+
if __name__ == '__main__':
|
| 41 |
+
main()
|
provenance/automation-LICENSES.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Licences and attribution
|
| 2 |
+
|
| 3 |
+
Most tasks adapt an upstream dataset or public records. The adaptations rewrite upstream records as file-based agent tasks, add instructions, reference outputs and verifiers, and correct some upstream answers. Tasks derived from CC BY-SA material stay under CC BY-SA 4.0. Company filings and other documents inside a task remain the property of their publishers. The `source_license` column gives the licence of each row.
|
| 4 |
+
|
| 5 |
+
| Source | Revision | Licence | Tasks |
|
| 6 |
+
|---|---|---|---:|
|
| 7 |
+
| [theatticusproject/maud](https://huggingface.co/datasets/theatticusproject/maud) | `37d5c3b95d18dcd8404cc5ce3fd5069be062392f` | CC-BY-4.0 | 243 |
|
| 8 |
+
| Original automation workflows (this repository) | template revisions 1 and 2 | CC-BY-4.0 | 318 |
|
| 9 |
+
| [czyssrs/FinQA](https://github.com/czyssrs/FinQA) | `0f16e2867befa6840783e58be38c9efb9229d742` | MIT | 195 |
|
| 10 |
+
| [theatticusproject/cuad](https://huggingface.co/datasets/theatticusproject/cuad) | `a3c393f5d103fd0c516374e4fdff676c8176dcb1` | CC-BY-4.0 | 164 |
|
| 11 |
+
| [Spreadsheet-RL/Spreadsheet-RL](https://huggingface.co/datasets/Spreadsheet-RL/Spreadsheet-RL) | `6f274cd4cbc27e656d7ddae7c3b591669866dc84` | CC-BY-SA-4.0 | 105 |
|
| 12 |
+
| [NExTplusplus/TAT-QA](https://github.com/NExTplusplus/TAT-QA) | `870accc41953dcde885aabeb963d94aabdc0fbc3` | MIT | 77 |
|
| 13 |
+
| U.S. Bureau of Labor Statistics and Census Bureau tables (consulting cases) | per task, in `source_revision` | U.S. Government works, public domain | 57 |
|
| 14 |
+
| [yilunzhao/MultiHiertt](https://huggingface.co/datasets/yilunzhao/MultiHiertt) | `f18473da528dede3d9ce2274366d9ee8102ea0fd` | MIT | 41 |
|
| 15 |
+
| [next-tat/TAT-DQA](https://huggingface.co/datasets/next-tat/TAT-DQA) | `bc46208b22f0bfe47152c98fd0938d238ce868c2` | CC-BY-4.0 | 32 |
|
| 16 |
+
| SEC Financial Statement Data Sets via [CyberMax-tools/figurewell-sec-xbrl-financials](https://huggingface.co/datasets/CyberMax-tools/figurewell-sec-xbrl-financials) | `d74dfdb8fdf4a326b64d8d0813163850f5d5a32a` | CC0-1.0 compilation of public filings | 29 |
|
| 17 |
+
| [zlwang-cs/OfficeBench](https://github.com/zlwang-cs/OfficeBench) | `b978b808667c32b52ce19a67ce1def1de9ae02b7` | Apache-2.0 | 28 |
|
| 18 |
+
| [czyssrs/ConvFinQA](https://github.com/czyssrs/ConvFinQA) | `cf3eed2d5984960bf06bb8145bcea5e80b0222a6` | MIT | 28 |
|
| 19 |
+
| [playgent-hf/investment-banking](https://huggingface.co/datasets/playgent-hf/investment-banking) | `22df839106e29a90b770f33d278412f36c9d199e` | MIT | 24 |
|
| 20 |
+
| [bpHigh/finance-desk](https://huggingface.co/datasets/bpHigh/finance-desk) | `a9a39f59ba7c62e0c91716517af806ecadae8847` | Apache-2.0 | 24 |
|
| 21 |
+
| SEC filing text via [alea-institute/kl3m-data-edgar](https://huggingface.co/datasets/alea-institute/kl3m-data-edgar), two with FDIC Summary of Deposits tables | per task, in `source_revision` | CC-BY-4.0 (KL3M Data Project); filings and FDIC data are public records | 15 |
|
| 22 |
+
| U.S. Bureau of Labor Statistics, QCEW | per task, in `source_revision` | U.S. Government work, public domain | 9 |
|
| 23 |
+
| U.S. Census Bureau, BEA and BLS county tables | per task, in `source_revision` | U.S. Government works, public domain | 4 |
|
| 24 |
+
| FTA National Transit Database via data.transportation.gov | per task, in `source_revision` | U.S. Government work, public domain | 3 |
|
| 25 |
+
| [kensho/DocFinQA](https://huggingface.co/datasets/kensho/DocFinQA) | `64ebaff62f692495bcc182f45cf9a9606251b19b` | MIT | 1 |
|
| 26 |
+
|
| 27 |
+
The public-records cases package the official rows or filing text they use and list each file's source and SHA-256 inside the task. Where a case invents a client, an email or a workbook layout around real figures, the task says so. The automation workflows are simulated business apps and records written for this dataset, and contain no third-party documents.
|
| 28 |
+
|
| 29 |
+
Cite the upstream datasets when you use their tasks: MAUD and CUAD (The Atticus Project), FinQA (Chen et al., 2021), ConvFinQA (Chen et al., 2022), TAT-QA (Zhu et al., 2021), TAT-DQA (Zhu et al., 2022), MultiHiertt (Zhao et al., 2022), DocFinQA (Reddy et al., 2024), OfficeBench (Wang et al., 2024), Spreadsheet-RL, Playgent-IB-Bench, finance-desk and the KL3M Data Project.
|
| 30 |
+
|
| 31 |
+
To report a problem with a source document, open a discussion on this dataset.
|
provenance/automation-dataset-card.md
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: mixed-per-task
|
| 4 |
+
license_link: https://huggingface.co/datasets/harness-hub/automation-adapter-envs/blob/main/LICENSES.md
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
pretty_name: Automation adapter environments
|
| 8 |
+
size_categories:
|
| 9 |
+
- 1K<n<10K
|
| 10 |
+
tags:
|
| 11 |
+
- harbor
|
| 12 |
+
- rl-environment
|
| 13 |
+
- openenv
|
| 14 |
+
- agents
|
| 15 |
+
- knowledge-work
|
| 16 |
+
- finance
|
| 17 |
+
- legal
|
| 18 |
+
- automation
|
| 19 |
+
configs:
|
| 20 |
+
- config_name: default
|
| 21 |
+
data_files:
|
| 22 |
+
- split: train
|
| 23 |
+
path: splits/train.jsonl
|
| 24 |
+
- split: train_automation
|
| 25 |
+
path: splits/train_automation.jsonl
|
| 26 |
+
- split: test
|
| 27 |
+
path: splits/test.jsonl
|
| 28 |
+
- split: test_automation_unvalidated
|
| 29 |
+
path: splits/test_automation_unvalidated.jsonl
|
| 30 |
+
- config_name: transfer75
|
| 31 |
+
data_files:
|
| 32 |
+
- split: train_qualified
|
| 33 |
+
path: splits/train_qualified.jsonl
|
| 34 |
+
- split: train_control
|
| 35 |
+
path: splits/train_control.jsonl
|
| 36 |
+
- split: train_fit
|
| 37 |
+
path: splits/train_fit.jsonl
|
| 38 |
+
- split: eval_frozen
|
| 39 |
+
path: splits/eval_frozen.jsonl
|
| 40 |
+
- split: eval_frozen_clean
|
| 41 |
+
path: splits/eval_frozen_clean.jsonl
|
| 42 |
+
- split: eval_expanded
|
| 43 |
+
path: splits/eval_expanded.jsonl
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
# Automation adapter environments
|
| 47 |
+
|
| 48 |
+
This dataset holds 1,397 Harbor tasks for agents doing knowledge work and business automation. The work covers:
|
| 49 |
+
- investment banking (553 tasks);
|
| 50 |
+
- corporate law (407);
|
| 51 |
+
- management consulting (103);
|
| 52 |
+
- finance operations (16);
|
| 53 |
+
- business-app workflows in sales, operations, HR, marketing, finance and support (318).
|
| 54 |
+
|
| 55 |
+
An agent reads documents, spreadsheets, PDFs, mail, calendars or app records under `/workspace/inputs` and writes files to `/workspace/outputs`. A separate verifier grades those files. Harbor is the task format and runner.
|
| 56 |
+
|
| 57 |
+
The tasks come from a reinforcement-learning pipeline for Qwen3.8-27B. The pipeline searches sources, generates tasks, validates them in HF Sandbox, scores eight base-model attempts per task and runs training canaries. The [pipeline dashboard](https://huggingface.co/spaces/harness-hub/pipectl-dashboard) shows each campaign's state across those five phases.
|
| 58 |
+
|
| 59 |
+
## Configs and splits
|
| 60 |
+
|
| 61 |
+
Each row of `splits/<split>.jsonl` describes one task and points to its directory through `task_path`. A task shared by several splits has one directory.
|
| 62 |
+
|
| 63 |
+
The `default` config holds tasks that meet a quality bar. The `quality_bar` column names the bar each row meets.
|
| 64 |
+
|
| 65 |
+
| Split | Tasks | Bar | Contents |
|
| 66 |
+
|---|---:|---|---|
|
| 67 |
+
| `train` | 502 | nine-point | Knowledge-work training tasks that meet every point of the bar below |
|
| 68 |
+
| `train_automation` | 210 | three-test | Business-app workflow tasks in 10 workflow families |
|
| 69 |
+
| `test` | 289 | three-test | Held-out knowledge-work tasks, without the 10 whose answer key a blind review found wrong. `heldout_panel` is `frozen147` (110), `holdout142` (136) or `holdout_new` (43) |
|
| 70 |
+
| `test_automation_unvalidated` | 108 | pending | Automation holdout in 11 workflow families, not yet validated (see below). `heldout_panel` is `automation_new90` (90) or `automation_frozen18` (18). Never train on it |
|
| 71 |
+
|
| 72 |
+
The `transfer75` config keeps the six splits of the 75-step experiment exactly as registered before training. 52 of their tasks fail the three-test bar, and their rows have `quality_good: false`.
|
| 73 |
+
|
| 74 |
+
| Split | Tasks | Role |
|
| 75 |
+
|---|---:|---|
|
| 76 |
+
| `train_qualified` | 241 | Training arm whose tasks the base model solved in some attempts and failed in others |
|
| 77 |
+
| `train_control` | 241 | Training arm matched on source, origin and task format, drawn without regard to solve counts. 134 tasks are also in `train_qualified` |
|
| 78 |
+
| `train_fit` | 16 | Training tasks in both arms, scored to measure fit |
|
| 79 |
+
| `eval_frozen` | 147 | Registered primary held-out set |
|
| 80 |
+
| `eval_frozen_clean` | 94 | Subset of `eval_frozen` without the 53 tasks that had a lenient canary or a gold-audit flag before training |
|
| 81 |
+
| `eval_expanded` | 142 | Second held-out set, disjoint from `eval_frozen` |
|
| 82 |
+
|
| 83 |
+
No task and no source group (a contract, filing, workbook, company, deal world or workflow family) appears on both the training and the held-out side. The 11 workflow families of `test_automation_unvalidated` share no task, family, template, world, target or app name with `train_automation`. No automation task was derived from a task of the public AutomationBench 600.
|
| 84 |
+
|
| 85 |
+
## Quality bars
|
| 86 |
+
|
| 87 |
+

|
| 88 |
+
|
| 89 |
+
**Nine-point bar (`train`).** A blind review checked every task in the knowledge-work training pool against nine points:
|
| 90 |
+
|
| 91 |
+
1. **Provenance.** The licence allows use, the revision is pinned, and the task shares no group or file with a held-out set.
|
| 92 |
+
2. **Well posed.** A reviewer who hadn't seen the key listed every possible second reading, and each one is ruled out by the task text.
|
| 93 |
+
3. **Key verified blind.** Two derivations that saw neither the key nor each other agree with it: a programmatic one where the answer is computable, and one by a non-Qwen model working from the inputs. Two adjudicators, and a third on a split, settled every disagreement by citing the documents.
|
| 94 |
+
4. **Solvable.** A blind solve by a non-Qwen model, in the real environment and graded by the real grader, scored 1 at least once.
|
| 95 |
+
5. **Needs the inputs.** A model given the instruction without the input files does not pass.
|
| 96 |
+
6. **Grader right in both directions.**
|
| 97 |
+
- The oracle scores 1. A no-op scores 0, and so does copying the inputs to the outputs.
|
| 98 |
+
- Wrong-answer canaries score 0, and valid alternative forms score 1.
|
| 99 |
+
- Every deliverable the instruction names is graded, and nothing else is.
|
| 100 |
+
7. **Realistic.** The task resembles a real deliverable in banking, consulting, law or finance, not a lookup or a puzzle.
|
| 101 |
+
8. **Stable.** The task passes the HF Sandbox gate, gives the same oracle reward twice and runs without network access.
|
| 102 |
+
9. **Unique instruction.** No other training task has the same instruction text.
|
| 103 |
+
|
| 104 |
+
The review covered 405 training tasks:
|
| 105 |
+
- it kept 162 and corrected the key of 4;
|
| 106 |
+
- it rewrote 175, rewording or removing questions in new versions that were gated, re-solved blind and re-scored;
|
| 107 |
+
- it dropped 64. 56 were MultiHiertt tasks whose questions a realism review found unnatural, often over tables spliced together from unrelated companies.
|
| 108 |
+
|
| 109 |
+
56 more left because a model answered them without the inputs. A random audit of 120 checks that needed no adjudication found no wrong key. The `train` split also adds 161 verified non-mixed tasks, 53 ConvFinQA, DocFinQA and finance-desk tasks, and 22 tasks built from raw SEC filings and public statistics, all held to the same bar. Two verified CUAD tasks are left out of `train` because a repair kept their task IDs, and the registered `transfer75` splits already use those IDs for the earlier versions.
|
| 110 |
+
|
| 111 |
+
**Three-test bar (`train_automation`, `test` and the `transfer75` rows).** A task meets it when it passes three checks:
|
| 112 |
+
- its answer key has been checked;
|
| 113 |
+
- it passes the HF Sandbox gate;
|
| 114 |
+
- its wrong-answer canaries score 0 while valid alternatives score 1.
|
| 115 |
+
|
| 116 |
+
A key counts as checked in any of these cases:
|
| 117 |
+
- a gold audit found no disagreement with the base model's consensus answers;
|
| 118 |
+
- every audit flag was adjudicated against the source documents;
|
| 119 |
+
- a scripted recomputation matched every graded value;
|
| 120 |
+
- the base model's eight answers all matched the key;
|
| 121 |
+
- the blind review above verified it.
|
| 122 |
+
|
| 123 |
+
A task fails when that review corrected its key. Mixed base-model outcomes are not required by either bar. Each row records `gate_passed`, `canary_clean`, `key_check` (the method) and `key_check_passed`.
|
| 124 |
+
|
| 125 |
+
**Held-out doubts.** The blind review also covered all 332 held-out tasks, report-only, so the registered panels did not change. `heldout_doubt` gives each held-out row's worst tier:
|
| 126 |
+
- `key_wrong`: both adjudicators corrected or dropped the key, or a hand check found an input defect. These are 4 tasks of `eval_frozen` and 6 of `eval_expanded`, and none is in `test`;
|
| 127 |
+
- `key_wrong_or_ambiguous`: both found a second reading that the task does not rule out;
|
| 128 |
+
- `any_doubt`: the two adjudicators disagreed.
|
| 129 |
+
|
| 130 |
+
Use these to report a held-out panel with and without the doubtful tasks.
|
| 131 |
+
|
| 132 |
+
**Validation of the automation holdout.** A held-out task counts as validated when it passes the nine-point review that `train` passed. Results are recorded report-only, and nothing is rewritten in place. A task that passes moves into `test`, and a task that fails stays out. `test_automation_unvalidated` has not had that review yet, so its rows have `quality_bar: pending` and `quality_good: false`. The evidence so far is in the rows:
|
| 133 |
+
- **The 90 new tasks** pass the three-test checks.
|
| 134 |
+
- **The 18 frozen cases:**
|
| 135 |
+
- their canaries are clean;
|
| 136 |
+
- the oracle scores 1 and the no-op 0 in HF Sandbox;
|
| 137 |
+
- they have no six-check gate record and no key audit.
|
| 138 |
+
|
| 139 |
+
Every row has `exclude_from_training: true`. These tasks are the registered holdout for the automation training runs, so do not train on them, validated or not.
|
| 140 |
+
|
| 141 |
+
Qwen3.8-27B base solves 81.3% of the automation holdout attempts, with eight attempts per task. `base_solved` and `base_valid` come from that registered evaluation.
|
| 142 |
+
|
| 143 |
+
`base_difficulty` is `mixed`, `all_pass` or `all_fail` over eight Qwen3.8-27B attempts with the Terminus-2 agent and thinking off. `base_solved` and `base_valid` give the counts.
|
| 144 |
+
|
| 145 |
+
## Experiments
|
| 146 |
+
|
| 147 |
+
All results are task-weighted pass@1 changes from the base model, with 95% intervals that resample source clusters. Training used rank-32 LoRA on Qwen3.8-27B with GRPO and eight rollouts per group.
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
|
| 151 |
+
1. **First run** (learning rate 1e-5, 40 steps, 79 tasks). The adapter barely moved. On `eval_frozen` it scored +0.8 points [−1.0, +2.5], and its training reward on revisited tasks did not rise.
|
| 152 |
+
2. **Fit test** (24 tasks, learning rates 5e-5 and 2e-4). Both rates learned the training tasks. At 5e-5, fresh attempts on them rose from 61.5% to 89.6% by step 30. At 2e-4 they peaked near step 20 and then collapsed. On `eval_frozen`:
|
| 153 |
+
- 5e-5, final step: +2.4 points [0.0, +4.6];
|
| 154 |
+
- 2e-4, step 20: −3.3 points [−6.1, −0.7].
|
| 155 |
+
3. **Task selection** (`transfer75`, learning rate 5e-5, 75 steps, 241 tasks per arm). On `eval_frozen`:
|
| 156 |
+
- the qualified arm gained +5.9 points [+2.2, +9.7];
|
| 157 |
+
- the control arm gained +4.0 points [+1.0, +7.2];
|
| 158 |
+
- qualified minus control was +1.9 points [−0.6, +4.5].
|
| 159 |
+
|
| 160 |
+
The arms did not separate on any held-out panel. Qualified attempts took 1.65 times the base's seconds, against 1.15 times for control.
|
| 161 |
+
4. **Learning rate 1e-4** (the qualified tasks). It was +2.3 points at step 20 and −2.3 points at step 40. By step 50 it lost 20.3 points on `eval_expanded`, mostly on MAUD and CUAD. At about the same learning rate × steps, it fell below base while the 5e-5 arms rose above it.
|
| 162 |
+
5. **Public AutomationBench** (500 tasks, no automation training). Strict pass, against a base of 20.6%:
|
| 163 |
+
- qualified: +3.2 points [−0.6, +7.0];
|
| 164 |
+
- control: +4.2 points [+0.4, +8.0];
|
| 165 |
+
- learning rate 1e-4: +1.0 point [−2.8, +4.8].
|
| 166 |
+
|
| 167 |
+

|
| 168 |
+
|
| 169 |
+

|
| 170 |
+
|
| 171 |
+

|
| 172 |
+
|
| 173 |
+
The training curves are in-sample. Only the held-out panels measure transfer. The held-out panels draw on the same public datasets as training, separated by source group. The official APEX-Agents benchmark is not part of these results. These experiments trained on the `transfer75` splits; no run has trained on the current `train` split yet.
|
| 174 |
+
|
| 175 |
+
## Task layout
|
| 176 |
+
|
| 177 |
+
Each `tasks/<task_id>/` directory contains `instruction.md`, `task.toml`, `environment/inputs/`, `tests/`, `solution/` and `validation/`. Every task runs in a public image under `registry.hf.space/harness-hub-…`, pinned by digest in `task.toml`. Only the instruction and the files under `environment/` belong in the agent's workspace. `tree_sha256` is the registered digest of the task directory, and `SHA256SUMS` lists a digest per file.
|
| 178 |
+
|
| 179 |
+
`tests/` and `solution/` contain the expected answers for every split, including the held-out ones. Keep them out of training data and out of the agent's reach. A model trained on this repository, or on a crawl that includes it, can no longer be evaluated on the held-out splits.
|
| 180 |
+
|
| 181 |
+
## Known limitations
|
| 182 |
+
|
| 183 |
+
- **Shared instructions.** 82 tasks in five automation families of `train_automation` share one instruction text per family:
|
| 184 |
+
- `service-hr-certifications`;
|
| 185 |
+
- `service-hr-mileage`;
|
| 186 |
+
- `service-marketing-spend`;
|
| 187 |
+
- `service-marketing-rights`;
|
| 188 |
+
- `service-support-incidents`.
|
| 189 |
+
|
| 190 |
+
So do some investment-banking and QCEW cases in the held-out splits, and the 18 frozen automation cases (three per family). Within each family, every task has its own input files and its own expected answers. Key tasks by `task_id`. A trainer that maps a prompt back to a task by its text alone will mix them up.
|
| 191 |
+
- **Automation tasks.** `train_automation` meets the three-test bar but has not been through the nine-point review, and `test_automation_unvalidated` is not yet validated. The automation tasks run with network access enabled.
|
| 192 |
+
- **Bar failures kept for the record.** The `transfer75` splits keep 52 tasks that fail the three-test bar:
|
| 193 |
+
- 34 have a lenient or over-strict canary;
|
| 194 |
+
- 10 are held-out tasks with a wrong key;
|
| 195 |
+
- 6 had a key corrected by the review;
|
| 196 |
+
- 2 have unadjudicated audit flags.
|
| 197 |
+
|
| 198 |
+
They stay because those splits were registered before training.
|
| 199 |
+
- **OfficeBench.** These tasks appear only on the held-out side, because OfficeBench has no upstream train split.
|
| 200 |
+
- **SpreadsheetBench overlap.** Some training workbooks come from the ExcelForum material that SpreadsheetBench also uses. Task `srl-formulas-24d17de1caed7c60` shares a workbook with SpreadsheetBench Verified task 44296.
|
| 201 |
+
- **Upstream documents.** Source documents are reproduced as published upstream. They can contain names, business contact details and file metadata.
|
| 202 |
+
|
| 203 |
+
## Sources and licences
|
| 204 |
+
|
| 205 |
+
The licence follows each task's source, and the `source_license` column records it per row. [LICENSES.md](LICENSES.md) lists the source, pinned revision, licence and task count.
|
provenance/build-summary.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tasks": 1597,
|
| 3 |
+
"counts": {
|
| 4 |
+
"coding_baseline": 871,
|
| 5 |
+
"coding_additions": 14,
|
| 6 |
+
"knowledge_work": 502,
|
| 7 |
+
"business_automation": 210
|
| 8 |
+
},
|
| 9 |
+
"source_revisions": {
|
| 10 |
+
"coding": "5d320e93b7832c6c66e6a5acd8403fb1a3c50bc6",
|
| 11 |
+
"automation": "7e3c1fefe791bc43901d93fbd4a11d6d39d851b5"
|
| 12 |
+
},
|
| 13 |
+
"source_manifest_sha256": {
|
| 14 |
+
"coding_baseline": "13aafbf59d7ae530916cde1e37f1cc6ddc691c6b1e909cf0eb9cb3d8e150c292",
|
| 15 |
+
"coding_additions": "ce3f649107f02b5a13478936d5d26cc6b74629040ca879c50ba9ced203b2b155",
|
| 16 |
+
"knowledge_work": "a663d7fb687edcc450be0eacfea3b14aa07ad53eae3aa7a604fd0e71de946e50",
|
| 17 |
+
"business_automation": "b934ecdab7a4e7fc160a33bcbfd18841febdd69c6d95a10c97bfa0318bc796ff"
|
| 18 |
+
}
|
| 19 |
+
}
|
provenance/business_automation.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
provenance/coding-baseline-summary.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"repo": "harness-hub/harness-adapters",
|
| 3 |
+
"revision": "5d320e93b7832c6c66e6a5acd8403fb1a3c50bc6",
|
| 4 |
+
"sha256": {
|
| 5 |
+
"views/final_v1/train.jsonl": "13aafbf59d7ae530916cde1e37f1cc6ddc691c6b1e909cf0eb9cb3d8e150c292",
|
| 6 |
+
"views/final_best_v1/train.jsonl": "ea0fd9799e2265295466b91b77dbc2a76731fd4c281fd9aa35aac51834f5f172"
|
| 7 |
+
},
|
| 8 |
+
"tasks": 871,
|
| 9 |
+
"origins": {
|
| 10 |
+
"swe-smith-go": 227,
|
| 11 |
+
"swe-smith-py": 490,
|
| 12 |
+
"swegym-tasktrove": 130,
|
| 13 |
+
"tasksmith": 24
|
| 14 |
+
},
|
| 15 |
+
"scored": 463,
|
| 16 |
+
"mixed": 177,
|
| 17 |
+
"scored_by_protocol": {
|
| 18 |
+
"qwen38-auto48-64k-2m-nothink-r3-a4-v1": 311,
|
| 19 |
+
"qwen38-auto48-64k-2m-nothink-r3-v1": 131,
|
| 20 |
+
"qwen38-terminus2-hfsandbox-64k-2m-nothink-tasksmith-v1": 21
|
| 21 |
+
},
|
| 22 |
+
"training_admissible": 0
|
| 23 |
+
}
|
provenance/coding-validation.json
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"spent_usd": 5.854,
|
| 3 |
+
"tasks": [
|
| 4 |
+
{
|
| 5 |
+
"adapted": true,
|
| 6 |
+
"attempts": 8,
|
| 7 |
+
"best": false,
|
| 8 |
+
"collected": true,
|
| 9 |
+
"control_rewards": {
|
| 10 |
+
"nop": 0.0,
|
| 11 |
+
"oracle": 1.0,
|
| 12 |
+
"oracle-replay": 1.0
|
| 13 |
+
},
|
| 14 |
+
"cost_usd": 0.5256,
|
| 15 |
+
"failing": [],
|
| 16 |
+
"image": "registry.hf.space/harness-hub-tasksmith-935610dc9283-env@sha256:adaf91a17bcf9d05581a4a03f422aa50f689dd64f95e0c93b15906cd85a19dd1",
|
| 17 |
+
"solved": 0,
|
| 18 |
+
"source_pr_url": "https://github.com/pmorissette/ffn/pull/373",
|
| 19 |
+
"space": "harness-hub/tasksmith-935610dc9283-env",
|
| 20 |
+
"task_id": "tasksmith-935610dc9283",
|
| 21 |
+
"valid": 8,
|
| 22 |
+
"validation": "pass"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"adapted": true,
|
| 26 |
+
"attempts": 8,
|
| 27 |
+
"best": true,
|
| 28 |
+
"collected": true,
|
| 29 |
+
"control_rewards": {
|
| 30 |
+
"nop": 0.0,
|
| 31 |
+
"oracle": 1.0,
|
| 32 |
+
"oracle-replay": 1.0
|
| 33 |
+
},
|
| 34 |
+
"cost_usd": 0.5229,
|
| 35 |
+
"failing": [],
|
| 36 |
+
"image": "registry.hf.space/harness-hub-tasksmith-ae872f5c3953-env@sha256:668382d21565ec0fa5072c13bd0350bc9cc1d3a1f4c291ebb69bb37fba798f0a",
|
| 37 |
+
"solved": 7,
|
| 38 |
+
"source_pr_url": "https://github.com/SpamScope/mail-parser/pull/147",
|
| 39 |
+
"space": "harness-hub/tasksmith-ae872f5c3953-env",
|
| 40 |
+
"task_id": "tasksmith-ae872f5c3953",
|
| 41 |
+
"valid": 8,
|
| 42 |
+
"validation": "pass"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"adapted": true,
|
| 46 |
+
"attempts": 8,
|
| 47 |
+
"best": false,
|
| 48 |
+
"collected": true,
|
| 49 |
+
"control_rewards": {
|
| 50 |
+
"nop": 0.0,
|
| 51 |
+
"oracle": 1.0,
|
| 52 |
+
"oracle-replay": 1.0
|
| 53 |
+
},
|
| 54 |
+
"cost_usd": 0.7213,
|
| 55 |
+
"failing": [],
|
| 56 |
+
"image": "registry.hf.space/harness-hub-tasksmith-87ce453762d0-env@sha256:6cf894f90b192700282b714526cb98f3376e960736c5a2a3635be7894cfbba73",
|
| 57 |
+
"solved": 0,
|
| 58 |
+
"source_pr_url": "https://github.com/aidhound/hotxlfp/pull/13",
|
| 59 |
+
"space": "harness-hub/tasksmith-87ce453762d0-env",
|
| 60 |
+
"task_id": "tasksmith-87ce453762d0",
|
| 61 |
+
"valid": 8,
|
| 62 |
+
"validation": "pass"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"adapted": true,
|
| 66 |
+
"attempts": 8,
|
| 67 |
+
"best": true,
|
| 68 |
+
"collected": true,
|
| 69 |
+
"control_rewards": {
|
| 70 |
+
"nop": 0.0,
|
| 71 |
+
"oracle": 1.0,
|
| 72 |
+
"oracle-replay": 1.0
|
| 73 |
+
},
|
| 74 |
+
"cost_usd": 0.8326,
|
| 75 |
+
"failing": [],
|
| 76 |
+
"image": "registry.hf.space/harness-hub-tasksmith-a9cb6b87c28d-env@sha256:9746dd1a35521853d98e9d0adccffa0363450d82571f363ac059aa2c0bacdc6c",
|
| 77 |
+
"solved": 6,
|
| 78 |
+
"source_pr_url": "https://github.com/aidhound/hotxlfp/pull/14",
|
| 79 |
+
"space": "harness-hub/tasksmith-a9cb6b87c28d-env",
|
| 80 |
+
"task_id": "tasksmith-a9cb6b87c28d",
|
| 81 |
+
"valid": 8,
|
| 82 |
+
"validation": "pass"
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"adapted": true,
|
| 86 |
+
"attempts": 8,
|
| 87 |
+
"best": false,
|
| 88 |
+
"collected": true,
|
| 89 |
+
"control_rewards": {
|
| 90 |
+
"nop": 0.0,
|
| 91 |
+
"oracle": 1.0,
|
| 92 |
+
"oracle-replay": 1.0
|
| 93 |
+
},
|
| 94 |
+
"cost_usd": 0.2227,
|
| 95 |
+
"failing": [],
|
| 96 |
+
"image": "registry.hf.space/harness-hub-tasksmith-7dc334aa969d-env@sha256:a008e382202c94ab3faad237e25f22ad3044fa45189903d5df495dc948b5b13e",
|
| 97 |
+
"solved": 8,
|
| 98 |
+
"source_pr_url": "https://github.com/aidhound/hotxlfp/pull/17",
|
| 99 |
+
"space": "harness-hub/tasksmith-7dc334aa969d-env",
|
| 100 |
+
"task_id": "tasksmith-7dc334aa969d",
|
| 101 |
+
"valid": 8,
|
| 102 |
+
"validation": "pass"
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"adapted": true,
|
| 106 |
+
"attempts": 8,
|
| 107 |
+
"best": false,
|
| 108 |
+
"collected": true,
|
| 109 |
+
"control_rewards": {
|
| 110 |
+
"nop": 0.0,
|
| 111 |
+
"oracle": 1.0,
|
| 112 |
+
"oracle-replay": 1.0
|
| 113 |
+
},
|
| 114 |
+
"cost_usd": 0.1105,
|
| 115 |
+
"failing": [],
|
| 116 |
+
"image": "registry.hf.space/harness-hub-tasksmith-0ba04a338dbb-env@sha256:8819257d80d33ab9784015dde59d423fb697d4e2c756ca7b51105cbbeee45ab2",
|
| 117 |
+
"solved": 8,
|
| 118 |
+
"source_pr_url": "https://github.com/docling-project/docling-core/pull/834",
|
| 119 |
+
"space": "harness-hub/tasksmith-0ba04a338dbb-env",
|
| 120 |
+
"task_id": "tasksmith-0ba04a338dbb",
|
| 121 |
+
"valid": 8,
|
| 122 |
+
"validation": "pass"
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"adapted": true,
|
| 126 |
+
"attempts": 8,
|
| 127 |
+
"best": false,
|
| 128 |
+
"collected": true,
|
| 129 |
+
"control_rewards": {
|
| 130 |
+
"nop": 0.0,
|
| 131 |
+
"oracle": 1.0,
|
| 132 |
+
"oracle-replay": 1.0
|
| 133 |
+
},
|
| 134 |
+
"cost_usd": 0.6172,
|
| 135 |
+
"failing": [],
|
| 136 |
+
"image": "registry.hf.space/harness-hub-tasksmith-ca08ab4caec6-env@sha256:94f208ec5830a69f2a873c4de65e2018c9e48a37c16f1a60c9657596bea1ae4b",
|
| 137 |
+
"solved": 0,
|
| 138 |
+
"source_pr_url": "https://github.com/gerrymanoim/exchange_calendars/pull/376",
|
| 139 |
+
"space": "harness-hub/tasksmith-ca08ab4caec6-env",
|
| 140 |
+
"task_id": "tasksmith-ca08ab4caec6",
|
| 141 |
+
"valid": 8,
|
| 142 |
+
"validation": "pass"
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"adapted": true,
|
| 146 |
+
"attempts": 8,
|
| 147 |
+
"best": false,
|
| 148 |
+
"collected": true,
|
| 149 |
+
"control_rewards": {
|
| 150 |
+
"nop": 0.0,
|
| 151 |
+
"oracle": 1.0,
|
| 152 |
+
"oracle-replay": 1.0
|
| 153 |
+
},
|
| 154 |
+
"cost_usd": 0.2411,
|
| 155 |
+
"failing": [],
|
| 156 |
+
"image": "registry.hf.space/harness-hub-tasksmith-b6d969373e1e-env@sha256:90dc52cd8402fb44473a97323e746f65be14d1fe99f951c7e82e535eeac18af3",
|
| 157 |
+
"solved": 8,
|
| 158 |
+
"source_pr_url": "https://github.com/jazzband/tablib/pull/665",
|
| 159 |
+
"space": "harness-hub/tasksmith-b6d969373e1e-env",
|
| 160 |
+
"task_id": "tasksmith-b6d969373e1e",
|
| 161 |
+
"valid": 8,
|
| 162 |
+
"validation": "pass"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"adapted": true,
|
| 166 |
+
"attempts": 8,
|
| 167 |
+
"best": false,
|
| 168 |
+
"collected": true,
|
| 169 |
+
"control_rewards": {
|
| 170 |
+
"nop": 0.0,
|
| 171 |
+
"oracle": 1.0,
|
| 172 |
+
"oracle-replay": 1.0
|
| 173 |
+
},
|
| 174 |
+
"cost_usd": 0.2852,
|
| 175 |
+
"failing": [],
|
| 176 |
+
"image": "registry.hf.space/harness-hub-tasksmith-87860368c397-env@sha256:5c4faafbef6af0e3a3eb7fe6648eb5b803c186eca32155f732b748d2702bab5e",
|
| 177 |
+
"solved": 8,
|
| 178 |
+
"source_pr_url": "https://github.com/jsvine/pdfplumber/pull/1195",
|
| 179 |
+
"space": "harness-hub/tasksmith-87860368c397-env",
|
| 180 |
+
"task_id": "tasksmith-87860368c397",
|
| 181 |
+
"valid": 8,
|
| 182 |
+
"validation": "pass"
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"adapted": true,
|
| 186 |
+
"attempts": 8,
|
| 187 |
+
"best": false,
|
| 188 |
+
"collected": true,
|
| 189 |
+
"control_rewards": {
|
| 190 |
+
"nop": 0.0,
|
| 191 |
+
"oracle": 1.0,
|
| 192 |
+
"oracle-replay": 1.0
|
| 193 |
+
},
|
| 194 |
+
"cost_usd": 0.346,
|
| 195 |
+
"failing": [],
|
| 196 |
+
"image": "registry.hf.space/harness-hub-tasksmith-a7e859277e7a-env@sha256:bad5ec3313b89854e8a74ce4a2b3ad44bff7357327e905f52ab1adc1e04af04a",
|
| 197 |
+
"solved": 8,
|
| 198 |
+
"source_pr_url": "https://github.com/numpy/numpy-financial/pull/108",
|
| 199 |
+
"space": "harness-hub/tasksmith-a7e859277e7a-env",
|
| 200 |
+
"task_id": "tasksmith-a7e859277e7a",
|
| 201 |
+
"valid": 8,
|
| 202 |
+
"validation": "pass"
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"adapted": true,
|
| 206 |
+
"attempts": 8,
|
| 207 |
+
"best": true,
|
| 208 |
+
"collected": true,
|
| 209 |
+
"control_rewards": {
|
| 210 |
+
"nop": 0.0,
|
| 211 |
+
"oracle": 1.0,
|
| 212 |
+
"oracle-replay": 1.0
|
| 213 |
+
},
|
| 214 |
+
"cost_usd": 0.3143,
|
| 215 |
+
"failing": [],
|
| 216 |
+
"image": "registry.hf.space/harness-hub-tasksmith-eb64d1312ca8-env@sha256:31568be047d3c1fc137c36d19256f877c36dd7b5246ab1cf813cf3f9baa5aa81",
|
| 217 |
+
"solved": 1,
|
| 218 |
+
"source_pr_url": "https://github.com/numpy/numpy-financial/pull/99",
|
| 219 |
+
"space": "harness-hub/tasksmith-eb64d1312ca8-env",
|
| 220 |
+
"task_id": "tasksmith-eb64d1312ca8",
|
| 221 |
+
"valid": 8,
|
| 222 |
+
"validation": "pass"
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"adapted": true,
|
| 226 |
+
"attempts": 8,
|
| 227 |
+
"best": true,
|
| 228 |
+
"collected": true,
|
| 229 |
+
"control_rewards": {
|
| 230 |
+
"nop": 0.0,
|
| 231 |
+
"oracle": 1.0,
|
| 232 |
+
"oracle-replay": 1.0
|
| 233 |
+
},
|
| 234 |
+
"cost_usd": 0.6327,
|
| 235 |
+
"failing": [],
|
| 236 |
+
"image": "registry.hf.space/harness-hub-tasksmith-584e4c2811de-env@sha256:ab72681495c8a397dcee0c7dd41b13c0551bc6d83072523d0d5a6693359add3c",
|
| 237 |
+
"solved": 1,
|
| 238 |
+
"source_pr_url": "https://github.com/pmorissette/ffn/pull/371",
|
| 239 |
+
"space": "harness-hub/tasksmith-584e4c2811de-env",
|
| 240 |
+
"task_id": "tasksmith-584e4c2811de",
|
| 241 |
+
"valid": 8,
|
| 242 |
+
"validation": "pass"
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"adapted": true,
|
| 246 |
+
"attempts": 8,
|
| 247 |
+
"best": true,
|
| 248 |
+
"collected": true,
|
| 249 |
+
"control_rewards": {
|
| 250 |
+
"nop": 0.0,
|
| 251 |
+
"oracle": 1.0,
|
| 252 |
+
"oracle-replay": 1.0
|
| 253 |
+
},
|
| 254 |
+
"cost_usd": 0.1653,
|
| 255 |
+
"failing": [],
|
| 256 |
+
"image": "registry.hf.space/harness-hub-tasksmith-74f059424102-env@sha256:357f53b08b04a2e41b574bcdb9c72dc602d60f3d70261b178b24e8f7ef387324",
|
| 257 |
+
"solved": 5,
|
| 258 |
+
"source_pr_url": "https://github.com/scanny/python-pptx/pull/994",
|
| 259 |
+
"space": "harness-hub/tasksmith-74f059424102-env",
|
| 260 |
+
"task_id": "tasksmith-74f059424102",
|
| 261 |
+
"valid": 8,
|
| 262 |
+
"validation": "pass"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"adapted": true,
|
| 266 |
+
"attempts": 8,
|
| 267 |
+
"best": false,
|
| 268 |
+
"collected": true,
|
| 269 |
+
"control_rewards": {
|
| 270 |
+
"nop": 0.0,
|
| 271 |
+
"oracle": 1.0,
|
| 272 |
+
"oracle-replay": 1.0
|
| 273 |
+
},
|
| 274 |
+
"cost_usd": 0.3165,
|
| 275 |
+
"failing": [],
|
| 276 |
+
"image": "registry.hf.space/harness-hub-tasksmith-2e594e91712a-env@sha256:8e5ad6583524aca8155c4a7a6679e801f0bdac5daebd8dfa0c4c9d11cfc04971",
|
| 277 |
+
"solved": 0,
|
| 278 |
+
"source_pr_url": "https://github.com/freelawproject/eyecite/pull/227",
|
| 279 |
+
"space": "harness-hub/tasksmith-2e594e91712a-env",
|
| 280 |
+
"task_id": "tasksmith-2e594e91712a",
|
| 281 |
+
"valid": 8,
|
| 282 |
+
"validation": "pass"
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"adapted": false,
|
| 286 |
+
"collected": true,
|
| 287 |
+
"image": "pending:BUILDING",
|
| 288 |
+
"source_pr_url": "https://github.com/houfu/redlines/pull/111",
|
| 289 |
+
"task_id": "tasksmith-92b91a3d9104"
|
| 290 |
+
}
|
| 291 |
+
]
|
| 292 |
+
}
|
provenance/coding_additions.jsonl
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"provenance_path": "provenance/935610dc9283", "semantic_nonoverlap_established": false, "source_head_commit": "c7029cb4ca0f338d29fc567212dd357e07271b4f", "source_license_spdx": "MIT", "source_pr_url": "https://github.com/pmorissette/ffn/pull/373", "source_repo": "https://github.com/pmorissette/ffn", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-935610dc9283", "task_path": "tasks/tasksmith-935610dc9283", "tasksmith_bundle_hash": "sha256:584efd1110493c065bad981af5626012e1a74d39b939748ea72f82bee2077a4c", "tasksmith_verified": true}
|
| 2 |
+
{"provenance_path": "provenance/ae872f5c3953", "semantic_nonoverlap_established": false, "source_head_commit": "ae027716b4cd0a3b6fa694f033a81dff3f5e33a7", "source_license_spdx": "Apache-2.0", "source_pr_url": "https://github.com/SpamScope/mail-parser/pull/147", "source_repo": "https://github.com/SpamScope/mail-parser", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-ae872f5c3953", "task_path": "tasks/tasksmith-ae872f5c3953", "tasksmith_bundle_hash": "sha256:03fb395cb48d8e55c829dd1324a9445d464f80ace77c9fa539fed97609615270", "tasksmith_verified": true}
|
| 3 |
+
{"provenance_path": "provenance/87ce453762d0", "semantic_nonoverlap_established": false, "source_head_commit": "b03cb77e2f5fba9f005f820a9588ff78991a5950", "source_license_spdx": "MIT", "source_pr_url": "https://github.com/aidhound/hotxlfp/pull/13", "source_repo": "https://github.com/aidhound/hotxlfp", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-87ce453762d0", "task_path": "tasks/tasksmith-87ce453762d0", "tasksmith_bundle_hash": "sha256:7a8eb24ad11a03a8f422d9a37c7fba1ad8e4b644bcfe19f2682a612159cf6745", "tasksmith_verified": true}
|
| 4 |
+
{"provenance_path": "provenance/a9cb6b87c28d", "semantic_nonoverlap_established": false, "source_head_commit": "3376ec579fbbc6a7280dec3a88ba0454fdc343ee", "source_license_spdx": "MIT", "source_pr_url": "https://github.com/aidhound/hotxlfp/pull/14", "source_repo": "https://github.com/aidhound/hotxlfp", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-a9cb6b87c28d", "task_path": "tasks/tasksmith-a9cb6b87c28d", "tasksmith_bundle_hash": "sha256:6655f19b6385b41a90f8b7037f7e9d0335a58bbb4361398540c9dbdf191c70e7", "tasksmith_verified": true}
|
| 5 |
+
{"provenance_path": "provenance/7dc334aa969d", "semantic_nonoverlap_established": false, "source_head_commit": "63130c2440913ee67b829d620291af0d0bb0e055", "source_license_spdx": "MIT", "source_pr_url": "https://github.com/aidhound/hotxlfp/pull/17", "source_repo": "https://github.com/aidhound/hotxlfp", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-7dc334aa969d", "task_path": "tasks/tasksmith-7dc334aa969d", "tasksmith_bundle_hash": "sha256:95d8c5046ad06476d536430533d5a200d83bc676d74cfdd4954d63cc48f57b54", "tasksmith_verified": true}
|
| 6 |
+
{"provenance_path": "provenance/0ba04a338dbb", "semantic_nonoverlap_established": false, "source_head_commit": "7438e5b9942be9a1bbfef0d00276c93172cc93ec", "source_license_spdx": "MIT", "source_pr_url": "https://github.com/docling-project/docling-core/pull/834", "source_repo": "https://github.com/docling-project/docling-core", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-0ba04a338dbb", "task_path": "tasks/tasksmith-0ba04a338dbb", "tasksmith_bundle_hash": "sha256:902db296de1d5941f94215d093588ebcfcfd28a4c433c73db12f5237376dd766", "tasksmith_verified": true}
|
| 7 |
+
{"provenance_path": "provenance/ca08ab4caec6", "semantic_nonoverlap_established": false, "source_head_commit": "87552747277ecf7405df8ed44da703f3009c4bca", "source_license_spdx": "Apache-2.0", "source_pr_url": "https://github.com/gerrymanoim/exchange_calendars/pull/376", "source_repo": "https://github.com/gerrymanoim/exchange_calendars", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-ca08ab4caec6", "task_path": "tasks/tasksmith-ca08ab4caec6", "tasksmith_bundle_hash": "sha256:fdc138c19a73529e9c581213968a1dfd36cd083149c6808c27c95634e60838d7", "tasksmith_verified": true}
|
| 8 |
+
{"provenance_path": "provenance/b6d969373e1e", "semantic_nonoverlap_established": false, "source_head_commit": "4189fab2a7e7d4a15b2e681ab69188a4329e252e", "source_license_spdx": "MIT", "source_pr_url": "https://github.com/jazzband/tablib/pull/665", "source_repo": "https://github.com/jazzband/tablib", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-b6d969373e1e", "task_path": "tasks/tasksmith-b6d969373e1e", "tasksmith_bundle_hash": "sha256:bc1a47b24dc4e4aeb47fe0cc4327d3cb15f12d9bd0756dce79592d6cc69f2a91", "tasksmith_verified": true}
|
| 9 |
+
{"provenance_path": "provenance/87860368c397", "semantic_nonoverlap_established": false, "source_head_commit": "20731649dc58f20cc663adf7a633eb3ac9c0708f", "source_license_spdx": "MIT", "source_pr_url": "https://github.com/jsvine/pdfplumber/pull/1195", "source_repo": "https://github.com/jsvine/pdfplumber", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-87860368c397", "task_path": "tasks/tasksmith-87860368c397", "tasksmith_bundle_hash": "sha256:944ae3246687c55e83c743c33fd45c3d55a75818795a7828d250498d2fcab4d5", "tasksmith_verified": true}
|
| 10 |
+
{"provenance_path": "provenance/a7e859277e7a", "semantic_nonoverlap_established": false, "source_head_commit": "6b54195dadf216a7cb0e90238bdc4be042b06b1c", "source_license_spdx": "BSD-3-Clause", "source_pr_url": "https://github.com/numpy/numpy-financial/pull/108", "source_repo": "https://github.com/numpy/numpy-financial", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-a7e859277e7a", "task_path": "tasks/tasksmith-a7e859277e7a", "tasksmith_bundle_hash": "sha256:5555bab1d34b5856c8d7248c1f7705f8b87d03c21f5ddd9aaa522e4b3cc98fe7", "tasksmith_verified": true}
|
| 11 |
+
{"provenance_path": "provenance/eb64d1312ca8", "semantic_nonoverlap_established": false, "source_head_commit": "605bab24b347025fe7186e9302a9063f662ccb27", "source_license_spdx": "BSD-3-Clause", "source_pr_url": "https://github.com/numpy/numpy-financial/pull/99", "source_repo": "https://github.com/numpy/numpy-financial", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-eb64d1312ca8", "task_path": "tasks/tasksmith-eb64d1312ca8", "tasksmith_bundle_hash": "sha256:31c4ecd13c8491493333c9ac60d6ba0e8a91969fd5da26367131e2afd689429c", "tasksmith_verified": true}
|
| 12 |
+
{"provenance_path": "provenance/584e4c2811de", "semantic_nonoverlap_established": false, "source_head_commit": "b092d2f988cf481ba1926748bec2dd9c858a27c5", "source_license_spdx": "MIT", "source_pr_url": "https://github.com/pmorissette/ffn/pull/371", "source_repo": "https://github.com/pmorissette/ffn", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-584e4c2811de", "task_path": "tasks/tasksmith-584e4c2811de", "tasksmith_bundle_hash": "sha256:4c854697b05b7c14877b46e74c0fe880e8133ac11852e45218c97acef9bd723c", "tasksmith_verified": true}
|
| 13 |
+
{"provenance_path": "provenance/74f059424102", "semantic_nonoverlap_established": false, "source_head_commit": "64fb8b83494b3dee9c4c0049c32ca5d98fc05983", "source_license_spdx": "MIT", "source_pr_url": "https://github.com/scanny/python-pptx/pull/994", "source_repo": "https://github.com/scanny/python-pptx", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-74f059424102", "task_path": "tasks/tasksmith-74f059424102", "tasksmith_bundle_hash": "sha256:745d74181f2aaf6681b26aaf84fa6ac062ab3e52632d9b0e1b57601820922e2c", "tasksmith_verified": true}
|
| 14 |
+
{"provenance_path": "provenance/2e594e91712a", "semantic_nonoverlap_established": false, "source_head_commit": "9f77d26fa133ab47a420c08d957fc6daf1180798", "source_license_spdx": "BSD-2-Clause", "source_pr_url": "https://github.com/freelawproject/eyecite/pull/227", "source_repo": "https://github.com/freelawproject/eyecite", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-2e594e91712a", "task_path": "tasks/tasksmith-2e594e91712a", "tasksmith_bundle_hash": "sha256:9968aabb93262687f8d964e78c103e7853af4822f11d5dffa58bfde455f002d6", "tasksmith_verified": true}
|
| 15 |
+
{"provenance_path": "provenance/92b91a3d9104", "semantic_nonoverlap_established": false, "source_head_commit": "c4f8449ae9ed6b29d2a3180705643a99ab7e2a1a", "source_license_spdx": "MIT", "source_pr_url": "https://github.com/houfu/redlines/pull/111", "source_repo": "https://github.com/houfu/redlines", "split": "candidates", "target_model_calibrated": false, "task_id": "tasksmith-92b91a3d9104", "task_path": "tasks/tasksmith-92b91a3d9104", "tasksmith_bundle_hash": "sha256:21d4fac1bce9c20771860281e034c8f317bc11411478fb40a5ce374b74618085", "tasksmith_verified": true}
|
provenance/coding_baseline.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
provenance/knowledge_work.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
provenance/tasksmith-0ba04a338dbb/candidate-intake.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"capability_tags": [
|
| 3 |
+
"table-extraction"
|
| 4 |
+
],
|
| 5 |
+
"expected": {
|
| 6 |
+
"base": "a2bf024b43916cd0a43b330fb0510abb262214fe",
|
| 7 |
+
"full_diff_sha256": "7112dbc9ad2353bca26fc880531005f7bf9163e35796e74185abbf351a164e08",
|
| 8 |
+
"head": "7438e5b9942be9a1bbfef0d00276c93172cc93ec",
|
| 9 |
+
"id": "0ba04a338dbb"
|
| 10 |
+
},
|
| 11 |
+
"license": {
|
| 12 |
+
"path": "LICENSE",
|
| 13 |
+
"sha256": "d8cf7ee84a10d6cc45ced4ce917180b7050326f9d66801dd07d058595c06908c",
|
| 14 |
+
"spdx": "MIT"
|
| 15 |
+
},
|
| 16 |
+
"url": "https://github.com/docling-project/docling-core/pull/834"
|
| 17 |
+
}
|
provenance/tasksmith-0ba04a338dbb/files.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
provenance/tasksmith-0ba04a338dbb/native-proof.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bundle_hash": "sha256:902db296de1d5941f94215d093588ebcfcfd28a4c433c73db12f5237376dd766",
|
| 3 |
+
"quality_result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/11e7671eb1a2/candidates/0ba04a338dbb/quality/result.json",
|
| 4 |
+
"quality_sha256": "7368aedd46cb5c697f45a42e586e6446dc07056bae766d0362596ad304749788",
|
| 5 |
+
"task": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/11e7671eb1a2/candidates/0ba04a338dbb/quality/revisions/r0/tasksmith-0ba04a338dbb",
|
| 6 |
+
"url": "https://github.com/docling-project/docling-core/pull/834"
|
| 7 |
+
}
|
provenance/tasksmith-0ba04a338dbb/quality-label.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bundle_hash": "sha256:902db296de1d5941f94215d093588ebcfcfd28a4c433c73db12f5237376dd766",
|
| 3 |
+
"original_task_path": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/11e7671eb1a2/candidates/0ba04a338dbb/quality/revisions/r0/tasksmith-0ba04a338dbb",
|
| 4 |
+
"quality_result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/11e7671eb1a2/candidates/0ba04a338dbb/quality/result.json",
|
| 5 |
+
"quality_result_sha256": "7368aedd46cb5c697f45a42e586e6446dc07056bae766d0362596ad304749788",
|
| 6 |
+
"state": "completed",
|
| 7 |
+
"status": "verified",
|
| 8 |
+
"task_path": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/11e7671eb1a2/candidates/0ba04a338dbb/quality/labeled/7368aedd46cb5c697f45a42e586e6446dc07056bae766d0362596ad304749788/tasksmith-0ba04a338dbb"
|
| 9 |
+
}
|
provenance/tasksmith-0ba04a338dbb/quality-result.json
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"accounted_usd": "1.413228",
|
| 3 |
+
"bundle_hash": "sha256:902db296de1d5941f94215d093588ebcfcfd28a4c433c73db12f5237376dd766",
|
| 4 |
+
"profile": "evidence-review-v2",
|
| 5 |
+
"reasons": [],
|
| 6 |
+
"repairs": 0,
|
| 7 |
+
"reserved_usd": "0",
|
| 8 |
+
"review": {
|
| 9 |
+
"issues": [],
|
| 10 |
+
"leakage": {
|
| 11 |
+
"evidence": [
|
| 12 |
+
{
|
| 13 |
+
"path": "instruction.md",
|
| 14 |
+
"quote": "Submit your fix in Python source files under `docling_core`. Preserve the other public behavior."
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"path": "environment/Dockerfile",
|
| 18 |
+
"quote": "COPY source /workspace"
|
| 19 |
+
}
|
| 20 |
+
],
|
| 21 |
+
"explanation": "leakage: instruction.md describes behavior with I/O examples and compatibility constraints but does not prescribe the set()/dedup implementation. solution/ and tests/ are private; the environment Dockerfile COPYs only environment/source into the learner image.",
|
| 22 |
+
"score": 4,
|
| 23 |
+
"status": "pass"
|
| 24 |
+
},
|
| 25 |
+
"probes": [],
|
| 26 |
+
"read_requests": [],
|
| 27 |
+
"rollout": "legitimate_success",
|
| 28 |
+
"summary": "Task asks to fix TableData.remove_rows so duplicate indices are a no-op, matching merged PR #834. The verifier entrypoint tests/test.sh execs grade.py, which runs test_driver.py over the contract test_paths (tasksmith_behavior.py and test_docling_doc.py::test_table_remove_rows_ignores_duplicate_indices) and writes reward 1 only when parsed.passed==expected_passes and returncode==0. The seven graded tests cover empty-list no-op, out-of-bounds/negative IndexError, distinct removal, duplicate dedup (exactly one row removed, num_rows==3) and many-duplicates. The fixed reference (sorted(set(indices), reverse=True)) passes 7/7 (oracle). Probes confirm coverage: the no-dedup wrong solution is rejected 3/7 failed, and the dict.fromkeys valid alternative passes 7/7. The rollout (terminus-2) made the same minimal set() change, verified it, and earned reward 1. All controls behaved as expected; this is a legitimate success. probe_limit is 0 so no new probes proposed.",
|
| 29 |
+
"task": {
|
| 30 |
+
"evidence": [
|
| 31 |
+
{
|
| 32 |
+
"path": "instruction.md",
|
| 33 |
+
"quote": "when the caller passes a list that contains the same row index more than once, the method should treat duplicates as a no-op"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"path": "tests/source/tests/tasksmith_behavior.py",
|
| 37 |
+
"quote": "def test_remove_rows_duplicate_indices_removes_once():"
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"path": "evidence/1-oracle/verifier/stdout.txt",
|
| 41 |
+
"quote": "7 passed in 0.33s"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"path": "instruction.md",
|
| 45 |
+
"quote": "The environment is offline; dependencies are preinstalled."
|
| 46 |
+
}
|
| 47 |
+
],
|
| 48 |
+
"explanation": "alignment: All seven graded tests exercise the public remove_rows contract from instruction.md: dedup no-op, empty no-op, bounds errors, distinct removal and num_rows decrement. No graded assertion inspects private internals.; feasibility: Request is coherent; reference file and test assets exist; environment is offline with deps preinstalled; oracle ran 7/7 successfully.",
|
| 49 |
+
"score": 4,
|
| 50 |
+
"status": "pass"
|
| 51 |
+
},
|
| 52 |
+
"verifier": {
|
| 53 |
+
"evidence": [
|
| 54 |
+
{
|
| 55 |
+
"path": "evidence/task-context.json",
|
| 56 |
+
"quote": "+ indices = sorted(set(indices), reverse=True)"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"path": "evidence/1-oracle/verifier/result.json",
|
| 60 |
+
"quote": "\"passed\": true, \"returncode\": 0"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"path": "tests/source/tests/tasksmith_behavior.py",
|
| 64 |
+
"quote": "assert [[c.text for c in row] for row in removed] == [[\"r1c0\", \"r1c1\"]]"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"path": "evidence/2-probe/verifier/stdout.txt",
|
| 68 |
+
"quote": "3 failed, 4 passed in 0.41s"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"path": "evidence/3-probe/verifier/stdout.txt",
|
| 72 |
+
"quote": "7 passed in 0.30s"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"path": "evidence/3-probe/result.json",
|
| 76 |
+
"quote": "A distinct but equivalent deduplication (dict.fromkeys preserving distinct indices then descending sort) satisfies the public contract and should pass all tests."
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"path": "tests/test.sh",
|
| 80 |
+
"quote": "exec /usr/local/bin/python -B -I -S /tests/grade.py"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"path": "tests/grade.py",
|
| 84 |
+
"quote": "passed = code == 0 and bool(expected) and parsed.passed == expected"
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"explanation": "reference: Reference matches the merged PR intent (sorted(set(indices), reverse=True)) and passes all 7 graded tests.; coverage: Central duplicate-dedup behavior, bounds errors, empty no-op, distinct removal and num_rows decrement are all tested. The duplicate test asserts exactly one row removed and num_rows==3; the no-dedup wrong-solution probe is rejected (3 failed), confirming non-dedup implementations are caught.; alternatives: Tests assert observable outputs (returned rows, grid contents, num_rows, IndexError) rather than implementation. The dict.fromkeys valid-alternative probe installs a distinct dedup implementation and passes 7/7.; gaming: tests/test.sh execs grade.py, which runs test_driver.py over contract test_paths and writes reward 1 only when parsed.passed==expected_passes and returncode==0. validate_submission restricts additions to Python under docling_core and enforces immutable py.typed; test_driver guards against assertion tampering. No trivial shortcut credits the reward.",
|
| 88 |
+
"score": 3,
|
| 89 |
+
"status": "pass"
|
| 90 |
+
}
|
| 91 |
+
},
|
| 92 |
+
"schema_version": "2",
|
| 93 |
+
"source_hash": "sha256:902db296de1d5941f94215d093588ebcfcfd28a4c433c73db12f5237376dd766",
|
| 94 |
+
"status": "usable",
|
| 95 |
+
"task_path": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/11e7671eb1a2/candidates/0ba04a338dbb/quality/revisions/r0/tasksmith-0ba04a338dbb",
|
| 96 |
+
"trials": [
|
| 97 |
+
{
|
| 98 |
+
"agent": "nop",
|
| 99 |
+
"agent_exit_code": null,
|
| 100 |
+
"binding": "receipt",
|
| 101 |
+
"bundle_hash": "sha256:902db296de1d5941f94215d093588ebcfcfd28a4c433c73db12f5237376dd766",
|
| 102 |
+
"exception_type": null,
|
| 103 |
+
"model": null,
|
| 104 |
+
"probe": null,
|
| 105 |
+
"probe_installed": null,
|
| 106 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/11e7671eb1a2/candidates/0ba04a338dbb/quality/trials/r0-baseline/tsbatch-195cc094e760-11e7671eb1a2-q-0ba04a33-r0-baseline/tasksmith-0ba04a338dbb__Weie7pH/result.json",
|
| 107 |
+
"result_sha256": "5cf65510b27cf56478ae53760f67ae3b8be651f5212bd6b196b44f79bced6133",
|
| 108 |
+
"reward": 0.0,
|
| 109 |
+
"role": "baseline"
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"agent": "oracle",
|
| 113 |
+
"agent_exit_code": null,
|
| 114 |
+
"binding": "receipt",
|
| 115 |
+
"bundle_hash": "sha256:902db296de1d5941f94215d093588ebcfcfd28a4c433c73db12f5237376dd766",
|
| 116 |
+
"exception_type": null,
|
| 117 |
+
"model": null,
|
| 118 |
+
"probe": null,
|
| 119 |
+
"probe_installed": null,
|
| 120 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/11e7671eb1a2/candidates/0ba04a338dbb/quality/trials/r0-oracle/tsbatch-195cc094e760-11e7671eb1a2-q-0ba04a33-r0-oracle/tasksmith-0ba04a338dbb__piHYpLE/result.json",
|
| 121 |
+
"result_sha256": "7ce9f0484e163c884b5423234481937b15f6dc35cef90cb32c3e568aa8ae997e",
|
| 122 |
+
"reward": 1.0,
|
| 123 |
+
"role": "oracle"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"agent": "oracle",
|
| 127 |
+
"agent_exit_code": null,
|
| 128 |
+
"binding": "receipt",
|
| 129 |
+
"bundle_hash": "sha256:2bb75639e131b3694fc8ad401b9eebbaefbf6297177c1b0fc4ba96a5643c0cf7",
|
| 130 |
+
"exception_type": null,
|
| 131 |
+
"model": null,
|
| 132 |
+
"probe": {
|
| 133 |
+
"evidence": [
|
| 134 |
+
{
|
| 135 |
+
"path": "instruction.md",
|
| 136 |
+
"quote": "`remove_rows([1, 1])` on that same 4-row table must remove exactly one row (row 1) and leave `num_rows == 3`"
|
| 137 |
+
}
|
| 138 |
+
],
|
| 139 |
+
"focus": "general",
|
| 140 |
+
"kind": "wrong_solution",
|
| 141 |
+
"name": "no-dedup-wrong",
|
| 142 |
+
"rationale": "The original buggy behavior removes a second row for duplicate indices; the public contract requires duplicates be a no-op, so this must be rejected by the duplicate test.",
|
| 143 |
+
"script": "#!/bin/sh\nset -eu\nF=/workspace/docling_core/types/doc/items/table/table_data.py\npython - \"$F\" <<'EOF'\nimport sys\np=sys.argv[1]\ns=open(p).read()\nassert 'sorted(set(indices), reverse=True)' in s, 'expected reference dedup line present'\ns=s.replace('sorted(set(indices), reverse=True)','sorted(indices, reverse=True)')\nopen(p,'w').write(s)\nEOF\necho mutated-no-dedup\n"
|
| 144 |
+
},
|
| 145 |
+
"probe_installed": true,
|
| 146 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/11e7671eb1a2/candidates/0ba04a338dbb/quality/trials/r0-probe0/tsbatch-195cc094e760-11e7671eb1a2-q-0ba04a33-r0-probe0/tasksmith-0ba04a338dbb__krxrCd3/result.json",
|
| 147 |
+
"result_sha256": "ad597bc492e0d70beb2ed6638e99aa59a2fd4f697327d1a88799fe8cd9f1974d",
|
| 148 |
+
"reward": 0.0,
|
| 149 |
+
"role": "probe"
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"agent": "oracle",
|
| 153 |
+
"agent_exit_code": null,
|
| 154 |
+
"binding": "receipt",
|
| 155 |
+
"bundle_hash": "sha256:0dc5f78972e3b487a9cc3c08061cb4ab603f6ba18ebdb40b61af107a3aed3f2f",
|
| 156 |
+
"exception_type": null,
|
| 157 |
+
"model": null,
|
| 158 |
+
"probe": {
|
| 159 |
+
"evidence": [
|
| 160 |
+
{
|
| 161 |
+
"path": "tests/source/tests/tasksmith_behavior.py",
|
| 162 |
+
"quote": "removed = data.remove_rows([2, 2, 2])\n assert len(removed) == 1"
|
| 163 |
+
}
|
| 164 |
+
],
|
| 165 |
+
"focus": "general",
|
| 166 |
+
"kind": "valid_alternative",
|
| 167 |
+
"name": "dedup-dict-alt",
|
| 168 |
+
"rationale": "A distinct but equivalent deduplication (dict.fromkeys preserving distinct indices then descending sort) satisfies the public contract and should pass all tests.",
|
| 169 |
+
"script": "#!/bin/sh\nset -eu\nF=/workspace/docling_core/types/doc/items/table/table_data.py\npython - \"$F\" <<'EOF'\nimport sys\np=sys.argv[1]\ns=open(p).read()\nassert 'sorted(set(indices), reverse=True)' in s, 'expected reference dedup line present'\ns=s.replace('sorted(set(indices), reverse=True)','sorted(dict.fromkeys(indices), reverse=True)')\nopen(p,'w').write(s)\nEOF\necho installed-dict-dedup\n"
|
| 170 |
+
},
|
| 171 |
+
"probe_installed": true,
|
| 172 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/11e7671eb1a2/candidates/0ba04a338dbb/quality/trials/r0-probe1/tsbatch-195cc094e760-11e7671eb1a2-q-0ba04a33-r0-probe1/tasksmith-0ba04a338dbb__Nq9E4uT/result.json",
|
| 173 |
+
"result_sha256": "ecdfc6ceb4bd962b94bbdae66da78398ff85c0ead4a9e5ad63cf91c482d6bcb9",
|
| 174 |
+
"reward": 1.0,
|
| 175 |
+
"role": "probe"
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"agent": "terminus-2",
|
| 179 |
+
"agent_exit_code": null,
|
| 180 |
+
"binding": "receipt",
|
| 181 |
+
"bundle_hash": "sha256:902db296de1d5941f94215d093588ebcfcfd28a4c433c73db12f5237376dd766",
|
| 182 |
+
"exception_type": null,
|
| 183 |
+
"model": "anthropic/claude-sonnet-4-6",
|
| 184 |
+
"probe": null,
|
| 185 |
+
"probe_installed": null,
|
| 186 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/11e7671eb1a2/candidates/0ba04a338dbb/quality/trials/r0-rollout/tsbatch-195cc094e760-11e7671eb1a2-q-0ba04a33-r0-rollout/tasksmith-0ba04a338dbb__qR9JbGn/result.json",
|
| 187 |
+
"result_sha256": "efa456e5e9e7ff727196ff6aca1509111cfcc1998aba487365ed936c9eefacc2",
|
| 188 |
+
"reward": 1.0,
|
| 189 |
+
"role": "rollout"
|
| 190 |
+
}
|
| 191 |
+
]
|
| 192 |
+
}
|
provenance/tasksmith-0ba04a338dbb/source.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base": "a2bf024b43916cd0a43b330fb0510abb262214fe",
|
| 3 |
+
"body": "## Summary\n\n`TableData.remove_rows` validates bounds for each requested index but never **deduplicates** them, and each iteration slices positions out of the already-shrinking `table_cells` list. A repeated index therefore removes a second, unintended row:\n\n```python\nfrom docling_core.types.doc import DoclingDocument, TableCell, TableData\n\ncells = [\n TableCell(text=f\"r{i}c{j}\", start_row_offset_idx=i, end_row_offset_idx=i + 1,\n start_col_offset_idx=j, end_col_offset_idx=j + 1)\n for i in range(4) for j in range(2)\n]\ndata = TableData(num_rows=4, num_cols=2, table_cells=cells)\n\ndoc = DoclingDocument(name=\"t\")\ntable = doc.add_table(data=data)\ntable.data.remove_rows(indices=[1, 1]) # asking twice for row 1\n\nprint(table.data.num_rows) # -> 2 (expected 3)\nprint([c.text for row in table.data.grid for c in row])\n# ['r0c0', 'r0c1', 'r3c0', 'r3c1'] -- row 2 silently deleted too!\n```\n\nThe descending sort already handles index shifting for *distinct* indices; duplicates are the remaining hole, and they are an easy mistake for callers that build the list from two sources (e.g. header detection + user selection).\n\n## Fix\n\n```python\n# Deduplicate: repeated indices would remove the row that shifted\n# into the previously removed position instead of being a no-op.\nindices = sorted(set(indices), reverse=True)\n```\n\n## AI Disclosure\n\nThis PR was prepared with the assistance of `ZCode (GLM-based coding agent)`: the duplicate-index behavior was found by an empirical probe of `TableData.remove_rows`, and the fix, regression test, and description were drafted by the tool. The change was reviewed and tested by the author, who is responsible for it.\n",
|
| 4 |
+
"changed_files": [
|
| 5 |
+
{
|
| 6 |
+
"additions": 11,
|
| 7 |
+
"deletions": 3,
|
| 8 |
+
"filename": "docling_core/types/doc/items/table/table_data.py",
|
| 9 |
+
"status": "modified"
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"additions": 21,
|
| 13 |
+
"deletions": 0,
|
| 14 |
+
"filename": "tests/test_docling_doc.py",
|
| 15 |
+
"status": "modified"
|
| 16 |
+
}
|
| 17 |
+
],
|
| 18 |
+
"created_at": "2026-10-04T15:12:48Z",
|
| 19 |
+
"full_diff": "diff --git a/docling_core/types/doc/items/table/table_data.py b/docling_core/types/doc/items/table/table_data.py\nindex 25c62095a..d0c3ecb0b 100644\n--- a/docling_core/types/doc/items/table/table_data.py\n+++ b/docling_core/types/doc/items/table/table_data.py\n@@ -190,14 +190,22 @@ def _count_column_header_rows(self, grid: list[list[TableCell]] | None = None) -\n def remove_rows(self, indices: list[int], doc: Optional[\"DoclingDocument\"] = None) -> list[list[TableCell]]:\n \"\"\"Remove rows from the table by their indices.\n \n- :param indices: list[int]: A list of indices of the rows to remove. (Starting from 0)\n+ Args:\n+ indices: Zero-based indices of the rows to remove. Duplicate indices are ignored.\n+ doc: The document that owns the table. Required to also delete the content of\n+ rich cells in the removed rows; otherwise that content is left dangling\n+ and a warning is logged.\n+\n+ Returns:\n+ The removed rows, each as a list of cells, ordered by descending row index.\n \n- :return: list[list[TableCell]]: A list representation of the removed rows as lists of TableCell objects.\n+ Raises:\n+ IndexError: If any index is negative or not smaller than the number of rows.\n \"\"\"\n if not indices:\n return []\n \n- indices = sorted(indices, reverse=True)\n+ indices = sorted(set(indices), reverse=True)\n \n refs_to_remove = []\n all_removed_cells = []\ndiff --git a/tests/test_docling_doc.py b/tests/test_docling_doc.py\nindex dfb12687d..2a649aca8 100644\n--- a/tests/test_docling_doc.py\n+++ b/tests/test_docling_doc.py\n@@ -1755,6 +1755,27 @@ def _verify(\n _verify(filename=filename, document=sample_doc, generate=GEN_TEST_DATA)\n \n \n+def test_table_remove_rows_ignores_duplicate_indices() -> None:\n+ table_cells = [\n+ TableCell(\n+ text=f\"r{i}c{j}\",\n+ start_row_offset_idx=i,\n+ end_row_offset_idx=i + 1,\n+ start_col_offset_idx=j,\n+ end_col_offset_idx=j + 1,\n+ )\n+ for i in range(4)\n+ for j in range(2)\n+ ]\n+ data = TableData(num_rows=4, num_cols=2, table_cells=table_cells)\n+\n+ removed = data.remove_rows([1, 1])\n+\n+ assert [[c.text for c in row] for row in removed] == [[\"r1c0\", \"r1c1\"]]\n+ assert data.num_rows == 3\n+ assert [c.text for row in data.grid for c in row] == [\"r0c0\", \"r0c1\", \"r2c0\", \"r2c1\", \"r3c0\", \"r3c1\"]\n+\n+\n def test_misplaced_list_items():\n filename = Path(\"tests/data/doc/misplaced_list_items.yaml\")\n doc = DoclingDocument.load_from_yaml(filename)\n",
|
| 20 |
+
"head": "7438e5b9942be9a1bbfef0d00276c93172cc93ec",
|
| 21 |
+
"id": "0ba04a338dbb",
|
| 22 |
+
"merged_at": "2026-10-19T07:38:53Z",
|
| 23 |
+
"repo": "https://github.com/docling-project/docling-core",
|
| 24 |
+
"source_diff": "diff --git a/docling_core/types/doc/items/table/table_data.py b/docling_core/types/doc/items/table/table_data.py\nindex 25c62095a..d0c3ecb0b 100644\n--- a/docling_core/types/doc/items/table/table_data.py\n+++ b/docling_core/types/doc/items/table/table_data.py\n@@ -190,14 +190,22 @@ def _count_column_header_rows(self, grid: list[list[TableCell]] | None = None) -\n def remove_rows(self, indices: list[int], doc: Optional[\"DoclingDocument\"] = None) -> list[list[TableCell]]:\n \"\"\"Remove rows from the table by their indices.\n \n- :param indices: list[int]: A list of indices of the rows to remove. (Starting from 0)\n+ Args:\n+ indices: Zero-based indices of the rows to remove. Duplicate indices are ignored.\n+ doc: The document that owns the table. Required to also delete the content of\n+ rich cells in the removed rows; otherwise that content is left dangling\n+ and a warning is logged.\n+\n+ Returns:\n+ The removed rows, each as a list of cells, ordered by descending row index.\n \n- :return: list[list[TableCell]]: A list representation of the removed rows as lists of TableCell objects.\n+ Raises:\n+ IndexError: If any index is negative or not smaller than the number of rows.\n \"\"\"\n if not indices:\n return []\n \n- indices = sorted(indices, reverse=True)\n+ indices = sorted(set(indices), reverse=True)\n \n refs_to_remove = []\n all_removed_cells = []\n",
|
| 25 |
+
"source_files": [
|
| 26 |
+
"docling_core/types/doc/items/table/table_data.py"
|
| 27 |
+
],
|
| 28 |
+
"source_operations": [
|
| 29 |
+
{
|
| 30 |
+
"operation": "modified",
|
| 31 |
+
"path": "docling_core/types/doc/items/table/table_data.py"
|
| 32 |
+
}
|
| 33 |
+
],
|
| 34 |
+
"title": "fix(types_doc): deduplicate row indices in TableData.remove_rows",
|
| 35 |
+
"url": "https://github.com/docling-project/docling-core/pull/834",
|
| 36 |
+
"workspace_strategy": "head_minus_source_patch"
|
| 37 |
+
}
|
provenance/tasksmith-2e594e91712a/candidate-intake.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"capability_tags": [
|
| 3 |
+
"legal-documents"
|
| 4 |
+
],
|
| 5 |
+
"expected": {
|
| 6 |
+
"base": "4c58d7d19e9fa776bc9a071a02f35f224ae7d1a4",
|
| 7 |
+
"full_diff_sha256": "3f84f8e277dda0538dabc23f9e95f5c1b0951559ef2b2b2497a17109b8d9b8e3",
|
| 8 |
+
"head": "9f77d26fa133ab47a420c08d957fc6daf1180798",
|
| 9 |
+
"id": "2e594e91712a"
|
| 10 |
+
},
|
| 11 |
+
"license": {
|
| 12 |
+
"path": "LICENSE",
|
| 13 |
+
"sha256": "db2c3c974a69bd9141257a10daee138116cd04ec354cd5239d0af52bc5025772",
|
| 14 |
+
"spdx": "BSD-2-Clause"
|
| 15 |
+
},
|
| 16 |
+
"url": "https://github.com/freelawproject/eyecite/pull/227"
|
| 17 |
+
}
|
provenance/tasksmith-2e594e91712a/files.json
ADDED
|
@@ -0,0 +1,420 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
".": {
|
| 3 |
+
"mode": 493
|
| 4 |
+
},
|
| 5 |
+
"environment": {
|
| 6 |
+
"mode": 493
|
| 7 |
+
},
|
| 8 |
+
"environment/Dockerfile": {
|
| 9 |
+
"mode": 420,
|
| 10 |
+
"sha256": "ff9ee4041440536b905abb300f80fe8afc1d0db0a39d7187765fe880779dd5bc"
|
| 11 |
+
},
|
| 12 |
+
"environment/source": {
|
| 13 |
+
"mode": 493
|
| 14 |
+
},
|
| 15 |
+
"environment/source/.editorconfig": {
|
| 16 |
+
"mode": 420,
|
| 17 |
+
"sha256": "6b249f2d1c443adabdc90e24e031779706806369f9ab21ea0cf63611026d9863"
|
| 18 |
+
},
|
| 19 |
+
"environment/source/.git-blame-ignore-revs": {
|
| 20 |
+
"mode": 420,
|
| 21 |
+
"sha256": "962ebcdc79b0e6a07c19784651747375fa98f628780cf1e466c32b8db785c2c0"
|
| 22 |
+
},
|
| 23 |
+
"environment/source/.gitattributes": {
|
| 24 |
+
"mode": 420,
|
| 25 |
+
"sha256": "dd181853c0905cb8b9ed12b635c31c27835e1355317fd8ac458662cf7d363420"
|
| 26 |
+
},
|
| 27 |
+
"environment/source/.github": {
|
| 28 |
+
"mode": 493
|
| 29 |
+
},
|
| 30 |
+
"environment/source/.github/FUNDING.yml": {
|
| 31 |
+
"mode": 420,
|
| 32 |
+
"sha256": "6918998378ff1b7df4af0bb40057760927146ecd288c0a5cfc2e237dedfd1e4e"
|
| 33 |
+
},
|
| 34 |
+
"environment/source/.github/dependabot.yml": {
|
| 35 |
+
"mode": 420,
|
| 36 |
+
"sha256": "f785039bd07217ef2dbf47a23e97c9ad21af9407b371bde02cccc9f50793c1ea"
|
| 37 |
+
},
|
| 38 |
+
"environment/source/.github/workflows": {
|
| 39 |
+
"mode": 493
|
| 40 |
+
},
|
| 41 |
+
"environment/source/.github/workflows/benchmark.yml": {
|
| 42 |
+
"mode": 420,
|
| 43 |
+
"sha256": "9bb3160815f11c4dde8968a2247db5908d0f0f37f6a95f4d74a69bd951a64fc3"
|
| 44 |
+
},
|
| 45 |
+
"environment/source/.github/workflows/check_changelog.yml": {
|
| 46 |
+
"mode": 420,
|
| 47 |
+
"sha256": "8dc7ea7141351748563aa78486a117ab577bb36c195bce60eb8d697935a63b66"
|
| 48 |
+
},
|
| 49 |
+
"environment/source/.github/workflows/lint.yml": {
|
| 50 |
+
"mode": 420,
|
| 51 |
+
"sha256": "5cb801de41925ceef7d5d7a5c7c8a519c12458508c475dda97ca4f77b21d931e"
|
| 52 |
+
},
|
| 53 |
+
"environment/source/.github/workflows/pdoc.yml": {
|
| 54 |
+
"mode": 420,
|
| 55 |
+
"sha256": "716499117c57069290eb87c820121bff8801e5113a9531e3854f495e08f9f16e"
|
| 56 |
+
},
|
| 57 |
+
"environment/source/.github/workflows/pypi.yml": {
|
| 58 |
+
"mode": 420,
|
| 59 |
+
"sha256": "cfa95e0846337b145135a9895498132ef7ac8132cc9c367d975797ebaa0cbac5"
|
| 60 |
+
},
|
| 61 |
+
"environment/source/.github/workflows/tests.yml": {
|
| 62 |
+
"mode": 420,
|
| 63 |
+
"sha256": "d0c938eb354c13b0bb2525e4f20222156eb0637cbc56ea536081195601eb4156"
|
| 64 |
+
},
|
| 65 |
+
"environment/source/.gitignore": {
|
| 66 |
+
"mode": 420,
|
| 67 |
+
"sha256": "5e7a9b8566ed55150998f93f277f61fb2902a3defe77cddf9f21114b921b52b6"
|
| 68 |
+
},
|
| 69 |
+
"environment/source/CHANGES.md": {
|
| 70 |
+
"mode": 420,
|
| 71 |
+
"sha256": "34cc7687baa86bfec126d00d9a795443f1147724017c8430ee38d159176c2b47"
|
| 72 |
+
},
|
| 73 |
+
"environment/source/Dockerfile": {
|
| 74 |
+
"mode": 420,
|
| 75 |
+
"sha256": "4384e0d86fb0a2cfebd3c6a28afcec537330d5d7358d32e4c4edea9199546c70"
|
| 76 |
+
},
|
| 77 |
+
"environment/source/LICENSE": {
|
| 78 |
+
"mode": 420,
|
| 79 |
+
"sha256": "db2c3c974a69bd9141257a10daee138116cd04ec354cd5239d0af52bc5025772"
|
| 80 |
+
},
|
| 81 |
+
"environment/source/README.rst": {
|
| 82 |
+
"mode": 420,
|
| 83 |
+
"sha256": "dd09f09727f9122857c808c8e27bd1ad486ed2779810447997237708383f1d59"
|
| 84 |
+
},
|
| 85 |
+
"environment/source/SECURITY.md": {
|
| 86 |
+
"mode": 420,
|
| 87 |
+
"sha256": "f9e66debdb4b80ac2a8c2bef1fe9431fd37d360230d121ee295d9166d5c59675"
|
| 88 |
+
},
|
| 89 |
+
"environment/source/contributor_license_agreement.txt": {
|
| 90 |
+
"mode": 420,
|
| 91 |
+
"sha256": "2f2e25cbb33be72deae6e94546d3104e9f22d34b352f4cbdc3d1c71ef0995dd2"
|
| 92 |
+
},
|
| 93 |
+
"environment/source/eyecite": {
|
| 94 |
+
"mode": 493
|
| 95 |
+
},
|
| 96 |
+
"environment/source/eyecite/__init__.py": {
|
| 97 |
+
"mode": 420,
|
| 98 |
+
"sha256": "50bf21df1e9b863df3f5d88273d09225c5dd4ed16e2779bdf7bc226a80ace400"
|
| 99 |
+
},
|
| 100 |
+
"environment/source/eyecite/annotate.py": {
|
| 101 |
+
"mode": 420,
|
| 102 |
+
"sha256": "ff7b95e6cf4c42ea7b924dd59338f93b72ccaed008aa9b0193dcc417d900f869"
|
| 103 |
+
},
|
| 104 |
+
"environment/source/eyecite/clean.py": {
|
| 105 |
+
"mode": 420,
|
| 106 |
+
"sha256": "978104c7101610d088017935d347f1f07cc8348e068f4ab85eb8055397fe01ac"
|
| 107 |
+
},
|
| 108 |
+
"environment/source/eyecite/find.py": {
|
| 109 |
+
"mode": 420,
|
| 110 |
+
"sha256": "ba0498798d73cc5d069eeaa46a5609d8249580607546cd3187b1554de1ac0d35"
|
| 111 |
+
},
|
| 112 |
+
"environment/source/eyecite/helpers.py": {
|
| 113 |
+
"mode": 420,
|
| 114 |
+
"sha256": "738a4d683bebe03838d605601b6c85da93a8bb3937e0db5a3fc2d45aa1073998"
|
| 115 |
+
},
|
| 116 |
+
"environment/source/eyecite/models.py": {
|
| 117 |
+
"mode": 420,
|
| 118 |
+
"sha256": "450ac8155ade53df93b96d2789068773113a843ee2e36ae94f7ee2281098d4e0"
|
| 119 |
+
},
|
| 120 |
+
"environment/source/eyecite/py.typed": {
|
| 121 |
+
"mode": 420,
|
| 122 |
+
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
| 123 |
+
},
|
| 124 |
+
"environment/source/eyecite/regexes.py": {
|
| 125 |
+
"mode": 420,
|
| 126 |
+
"sha256": "a2192cb0a45cd85fc5419ae0341a36ccaaad04cf88a287d9afa62bee128e96aa"
|
| 127 |
+
},
|
| 128 |
+
"environment/source/eyecite/resolve.py": {
|
| 129 |
+
"mode": 420,
|
| 130 |
+
"sha256": "33cfc866d07f8b826af93ed5f870be6b372d789163f2fe4dbc92fb2661dc40a7"
|
| 131 |
+
},
|
| 132 |
+
"environment/source/eyecite/test_factories.py": {
|
| 133 |
+
"mode": 420,
|
| 134 |
+
"sha256": "6ce47cbbc600416c1f67233f76381aff8bbf46f3a246af96e45d2c4322415744"
|
| 135 |
+
},
|
| 136 |
+
"environment/source/eyecite/tokenizers.py": {
|
| 137 |
+
"mode": 420,
|
| 138 |
+
"sha256": "ca9699ca43c79cda870533260ac685fce052ffe2d836136f020bb7363760fa63"
|
| 139 |
+
},
|
| 140 |
+
"environment/source/eyecite/utils.py": {
|
| 141 |
+
"mode": 420,
|
| 142 |
+
"sha256": "2c83c3993ba271bd9259c66677becca43ae7dac0459141f75f9bacbe3a2666c7"
|
| 143 |
+
},
|
| 144 |
+
"environment/source/poetry.lock": {
|
| 145 |
+
"mode": 420,
|
| 146 |
+
"sha256": "e9d12a7e4563c53bd7c31c1d9e3cb7474f869c3bec4ad5d1cb4adcff2278c8cd"
|
| 147 |
+
},
|
| 148 |
+
"environment/source/pyproject.toml": {
|
| 149 |
+
"mode": 420,
|
| 150 |
+
"sha256": "c01a3fb5d0549a09f4758c1fdf411b2d0c1a866425663a6a90afc3f5d193c9a8"
|
| 151 |
+
},
|
| 152 |
+
"environment/source/setup.cfg": {
|
| 153 |
+
"mode": 420,
|
| 154 |
+
"sha256": "6ff6cb4ffadba7ac6038d0cb1204075f597d618cfdde637f2c64bdc1fd97ac64"
|
| 155 |
+
},
|
| 156 |
+
"instruction.md": {
|
| 157 |
+
"mode": 420,
|
| 158 |
+
"sha256": "26ababdf55e5b67d1f1882d04c574f32ae76f5c2bd9dab466cc6923a97d96717"
|
| 159 |
+
},
|
| 160 |
+
"solution": {
|
| 161 |
+
"mode": 493
|
| 162 |
+
},
|
| 163 |
+
"solution/reference": {
|
| 164 |
+
"mode": 493
|
| 165 |
+
},
|
| 166 |
+
"solution/reference/eyecite": {
|
| 167 |
+
"mode": 493
|
| 168 |
+
},
|
| 169 |
+
"solution/reference/eyecite/models.py": {
|
| 170 |
+
"mode": 420,
|
| 171 |
+
"sha256": "a515a6e780b3787d4400ba2b70935817a0d2ffd4ef93fc7b890f51f7dedd1e26"
|
| 172 |
+
},
|
| 173 |
+
"solution/reference/eyecite/utils.py": {
|
| 174 |
+
"mode": 420,
|
| 175 |
+
"sha256": "75009b1de717f3ce96658939ed047eb37d002962313f3951b7a5d567b42b7082"
|
| 176 |
+
},
|
| 177 |
+
"solution/solve.sh": {
|
| 178 |
+
"mode": 493,
|
| 179 |
+
"sha256": "eeface6fba1aa4fe757574e16cb50aebd4c39c673a1b6b0591886d1cd356725b"
|
| 180 |
+
},
|
| 181 |
+
"task.toml": {
|
| 182 |
+
"mode": 420,
|
| 183 |
+
"sha256": "3f4b48b28ee6367a1b8c6c7d5600c2e3636633f1201977a37fa2cb1d8c48b2f6"
|
| 184 |
+
},
|
| 185 |
+
"tests": {
|
| 186 |
+
"mode": 493
|
| 187 |
+
},
|
| 188 |
+
"tests/Dockerfile": {
|
| 189 |
+
"mode": 420,
|
| 190 |
+
"sha256": "e4297709cc2aabcc3a4321d541ca80514b44f27386b73585cf7b89b9916ac11d"
|
| 191 |
+
},
|
| 192 |
+
"tests/contract.json": {
|
| 193 |
+
"mode": 420,
|
| 194 |
+
"sha256": "af44dbee3225e2310fc7528679fc0d3b0e3afa331272453c212930ab29a15e7e"
|
| 195 |
+
},
|
| 196 |
+
"tests/grade.py": {
|
| 197 |
+
"mode": 420,
|
| 198 |
+
"sha256": "e525b964f4bd013bb452e259e87ab098dcee13f509dbcd0a09c2469cf94b395f"
|
| 199 |
+
},
|
| 200 |
+
"tests/source": {
|
| 201 |
+
"mode": 493
|
| 202 |
+
},
|
| 203 |
+
"tests/source/.editorconfig": {
|
| 204 |
+
"mode": 420,
|
| 205 |
+
"sha256": "6b249f2d1c443adabdc90e24e031779706806369f9ab21ea0cf63611026d9863"
|
| 206 |
+
},
|
| 207 |
+
"tests/source/.git-blame-ignore-revs": {
|
| 208 |
+
"mode": 420,
|
| 209 |
+
"sha256": "962ebcdc79b0e6a07c19784651747375fa98f628780cf1e466c32b8db785c2c0"
|
| 210 |
+
},
|
| 211 |
+
"tests/source/.gitattributes": {
|
| 212 |
+
"mode": 420,
|
| 213 |
+
"sha256": "dd181853c0905cb8b9ed12b635c31c27835e1355317fd8ac458662cf7d363420"
|
| 214 |
+
},
|
| 215 |
+
"tests/source/.github": {
|
| 216 |
+
"mode": 493
|
| 217 |
+
},
|
| 218 |
+
"tests/source/.github/FUNDING.yml": {
|
| 219 |
+
"mode": 420,
|
| 220 |
+
"sha256": "6918998378ff1b7df4af0bb40057760927146ecd288c0a5cfc2e237dedfd1e4e"
|
| 221 |
+
},
|
| 222 |
+
"tests/source/.github/dependabot.yml": {
|
| 223 |
+
"mode": 420,
|
| 224 |
+
"sha256": "f785039bd07217ef2dbf47a23e97c9ad21af9407b371bde02cccc9f50793c1ea"
|
| 225 |
+
},
|
| 226 |
+
"tests/source/.github/workflows": {
|
| 227 |
+
"mode": 493
|
| 228 |
+
},
|
| 229 |
+
"tests/source/.github/workflows/benchmark.yml": {
|
| 230 |
+
"mode": 420,
|
| 231 |
+
"sha256": "9bb3160815f11c4dde8968a2247db5908d0f0f37f6a95f4d74a69bd951a64fc3"
|
| 232 |
+
},
|
| 233 |
+
"tests/source/.github/workflows/check_changelog.yml": {
|
| 234 |
+
"mode": 420,
|
| 235 |
+
"sha256": "8dc7ea7141351748563aa78486a117ab577bb36c195bce60eb8d697935a63b66"
|
| 236 |
+
},
|
| 237 |
+
"tests/source/.github/workflows/lint.yml": {
|
| 238 |
+
"mode": 420,
|
| 239 |
+
"sha256": "5cb801de41925ceef7d5d7a5c7c8a519c12458508c475dda97ca4f77b21d931e"
|
| 240 |
+
},
|
| 241 |
+
"tests/source/.github/workflows/pdoc.yml": {
|
| 242 |
+
"mode": 420,
|
| 243 |
+
"sha256": "716499117c57069290eb87c820121bff8801e5113a9531e3854f495e08f9f16e"
|
| 244 |
+
},
|
| 245 |
+
"tests/source/.github/workflows/pypi.yml": {
|
| 246 |
+
"mode": 420,
|
| 247 |
+
"sha256": "cfa95e0846337b145135a9895498132ef7ac8132cc9c367d975797ebaa0cbac5"
|
| 248 |
+
},
|
| 249 |
+
"tests/source/.github/workflows/tests.yml": {
|
| 250 |
+
"mode": 420,
|
| 251 |
+
"sha256": "d0c938eb354c13b0bb2525e4f20222156eb0637cbc56ea536081195601eb4156"
|
| 252 |
+
},
|
| 253 |
+
"tests/source/.gitignore": {
|
| 254 |
+
"mode": 420,
|
| 255 |
+
"sha256": "5e7a9b8566ed55150998f93f277f61fb2902a3defe77cddf9f21114b921b52b6"
|
| 256 |
+
},
|
| 257 |
+
"tests/source/CHANGES.md": {
|
| 258 |
+
"mode": 420,
|
| 259 |
+
"sha256": "34cc7687baa86bfec126d00d9a795443f1147724017c8430ee38d159176c2b47"
|
| 260 |
+
},
|
| 261 |
+
"tests/source/Dockerfile": {
|
| 262 |
+
"mode": 420,
|
| 263 |
+
"sha256": "4384e0d86fb0a2cfebd3c6a28afcec537330d5d7358d32e4c4edea9199546c70"
|
| 264 |
+
},
|
| 265 |
+
"tests/source/LICENSE": {
|
| 266 |
+
"mode": 420,
|
| 267 |
+
"sha256": "db2c3c974a69bd9141257a10daee138116cd04ec354cd5239d0af52bc5025772"
|
| 268 |
+
},
|
| 269 |
+
"tests/source/README.rst": {
|
| 270 |
+
"mode": 420,
|
| 271 |
+
"sha256": "dd09f09727f9122857c808c8e27bd1ad486ed2779810447997237708383f1d59"
|
| 272 |
+
},
|
| 273 |
+
"tests/source/SECURITY.md": {
|
| 274 |
+
"mode": 420,
|
| 275 |
+
"sha256": "f9e66debdb4b80ac2a8c2bef1fe9431fd37d360230d121ee295d9166d5c59675"
|
| 276 |
+
},
|
| 277 |
+
"tests/source/TUTORIAL.ipynb": {
|
| 278 |
+
"mode": 420,
|
| 279 |
+
"sha256": "98cc1214aa1377bc715d7e06228d98eb6b8ef4cd2fd80eadfeedd6dac3f617ca"
|
| 280 |
+
},
|
| 281 |
+
"tests/source/api_documentation": {
|
| 282 |
+
"mode": 493
|
| 283 |
+
},
|
| 284 |
+
"tests/source/api_documentation/generate_documentation.sh": {
|
| 285 |
+
"mode": 420,
|
| 286 |
+
"sha256": "81e5f73efe258ea69f27e00855272527c8b215fa3764e154db34ed90a5ca3207"
|
| 287 |
+
},
|
| 288 |
+
"tests/source/benchmark": {
|
| 289 |
+
"mode": 493
|
| 290 |
+
},
|
| 291 |
+
"tests/source/benchmark/benchmark.py": {
|
| 292 |
+
"mode": 420,
|
| 293 |
+
"sha256": "e3010d710602acb7b2d5e12a2ab65e989d48e986f4c11a14210b707fc5df1afc"
|
| 294 |
+
},
|
| 295 |
+
"tests/source/contributor_license_agreement.txt": {
|
| 296 |
+
"mode": 420,
|
| 297 |
+
"sha256": "2f2e25cbb33be72deae6e94546d3104e9f22d34b352f4cbdc3d1c71ef0995dd2"
|
| 298 |
+
},
|
| 299 |
+
"tests/source/eyecite": {
|
| 300 |
+
"mode": 493
|
| 301 |
+
},
|
| 302 |
+
"tests/source/eyecite/__init__.py": {
|
| 303 |
+
"mode": 420,
|
| 304 |
+
"sha256": "50bf21df1e9b863df3f5d88273d09225c5dd4ed16e2779bdf7bc226a80ace400"
|
| 305 |
+
},
|
| 306 |
+
"tests/source/eyecite/annotate.py": {
|
| 307 |
+
"mode": 420,
|
| 308 |
+
"sha256": "ff7b95e6cf4c42ea7b924dd59338f93b72ccaed008aa9b0193dcc417d900f869"
|
| 309 |
+
},
|
| 310 |
+
"tests/source/eyecite/clean.py": {
|
| 311 |
+
"mode": 420,
|
| 312 |
+
"sha256": "978104c7101610d088017935d347f1f07cc8348e068f4ab85eb8055397fe01ac"
|
| 313 |
+
},
|
| 314 |
+
"tests/source/eyecite/find.py": {
|
| 315 |
+
"mode": 420,
|
| 316 |
+
"sha256": "ba0498798d73cc5d069eeaa46a5609d8249580607546cd3187b1554de1ac0d35"
|
| 317 |
+
},
|
| 318 |
+
"tests/source/eyecite/helpers.py": {
|
| 319 |
+
"mode": 420,
|
| 320 |
+
"sha256": "738a4d683bebe03838d605601b6c85da93a8bb3937e0db5a3fc2d45aa1073998"
|
| 321 |
+
},
|
| 322 |
+
"tests/source/eyecite/models.py": {
|
| 323 |
+
"mode": 420,
|
| 324 |
+
"sha256": "450ac8155ade53df93b96d2789068773113a843ee2e36ae94f7ee2281098d4e0"
|
| 325 |
+
},
|
| 326 |
+
"tests/source/eyecite/py.typed": {
|
| 327 |
+
"mode": 420,
|
| 328 |
+
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
| 329 |
+
},
|
| 330 |
+
"tests/source/eyecite/regexes.py": {
|
| 331 |
+
"mode": 420,
|
| 332 |
+
"sha256": "a2192cb0a45cd85fc5419ae0341a36ccaaad04cf88a287d9afa62bee128e96aa"
|
| 333 |
+
},
|
| 334 |
+
"tests/source/eyecite/resolve.py": {
|
| 335 |
+
"mode": 420,
|
| 336 |
+
"sha256": "33cfc866d07f8b826af93ed5f870be6b372d789163f2fe4dbc92fb2661dc40a7"
|
| 337 |
+
},
|
| 338 |
+
"tests/source/eyecite/test_factories.py": {
|
| 339 |
+
"mode": 420,
|
| 340 |
+
"sha256": "6ce47cbbc600416c1f67233f76381aff8bbf46f3a246af96e45d2c4322415744"
|
| 341 |
+
},
|
| 342 |
+
"tests/source/eyecite/tokenizers.py": {
|
| 343 |
+
"mode": 420,
|
| 344 |
+
"sha256": "ca9699ca43c79cda870533260ac685fce052ffe2d836136f020bb7363760fa63"
|
| 345 |
+
},
|
| 346 |
+
"tests/source/eyecite/utils.py": {
|
| 347 |
+
"mode": 420,
|
| 348 |
+
"sha256": "2c83c3993ba271bd9259c66677becca43ae7dac0459141f75f9bacbe3a2666c7"
|
| 349 |
+
},
|
| 350 |
+
"tests/source/poetry.lock": {
|
| 351 |
+
"mode": 420,
|
| 352 |
+
"sha256": "e9d12a7e4563c53bd7c31c1d9e3cb7474f869c3bec4ad5d1cb4adcff2278c8cd"
|
| 353 |
+
},
|
| 354 |
+
"tests/source/pyproject.toml": {
|
| 355 |
+
"mode": 420,
|
| 356 |
+
"sha256": "c01a3fb5d0549a09f4758c1fdf411b2d0c1a866425663a6a90afc3f5d193c9a8"
|
| 357 |
+
},
|
| 358 |
+
"tests/source/setup.cfg": {
|
| 359 |
+
"mode": 420,
|
| 360 |
+
"sha256": "6ff6cb4ffadba7ac6038d0cb1204075f597d618cfdde637f2c64bdc1fd97ac64"
|
| 361 |
+
},
|
| 362 |
+
"tests/source/tests": {
|
| 363 |
+
"mode": 493
|
| 364 |
+
},
|
| 365 |
+
"tests/source/tests/__init__.py": {
|
| 366 |
+
"mode": 420,
|
| 367 |
+
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
| 368 |
+
},
|
| 369 |
+
"tests/source/tests/assets": {
|
| 370 |
+
"mode": 493
|
| 371 |
+
},
|
| 372 |
+
"tests/source/tests/assets/opinion.txt": {
|
| 373 |
+
"mode": 420,
|
| 374 |
+
"sha256": "d55625fb38ff12966496e9cecb1b8e98b9279b932436ca56c3c5d1309dd828dc"
|
| 375 |
+
},
|
| 376 |
+
"tests/source/tests/test_AnnotateTest.py": {
|
| 377 |
+
"mode": 420,
|
| 378 |
+
"sha256": "42782562b906ada3512665e19df4fdbda69cc0249710319230af47c774f966ad"
|
| 379 |
+
},
|
| 380 |
+
"tests/source/tests/test_CourtsTest.py": {
|
| 381 |
+
"mode": 420,
|
| 382 |
+
"sha256": "369fc32e4394674d17d832cf4c362ae713319f998f9eaa479c821ed0d2654e96"
|
| 383 |
+
},
|
| 384 |
+
"tests/source/tests/test_FindTest.py": {
|
| 385 |
+
"mode": 420,
|
| 386 |
+
"sha256": "18551efdbda188a52b7b5da326e02d0abe907549c6abbd9789a8b394be76ceaf"
|
| 387 |
+
},
|
| 388 |
+
"tests/source/tests/test_ModelsTest.py": {
|
| 389 |
+
"mode": 420,
|
| 390 |
+
"sha256": "fe26d8c4bc70e0cbe3d93dc1190f4b5846b17b6cfd07be8f0f0e9ae046fda34e"
|
| 391 |
+
},
|
| 392 |
+
"tests/source/tests/test_RegexTest.py": {
|
| 393 |
+
"mode": 420,
|
| 394 |
+
"sha256": "ddb993e5a4467ae3e7a1acec7f3de85dd829e1c332f8c4d701a0682770bc7e45"
|
| 395 |
+
},
|
| 396 |
+
"tests/source/tests/test_ResolveTest.py": {
|
| 397 |
+
"mode": 420,
|
| 398 |
+
"sha256": "6a6241387e2f7c9a99ecd283728a2ecae88f28e199b7aa31f67e6e93c127fb2b"
|
| 399 |
+
},
|
| 400 |
+
"tests/source/tests/test_TokenizeTest.py": {
|
| 401 |
+
"mode": 420,
|
| 402 |
+
"sha256": "b94fa49f7cefd02db46eff631ab6feb45f4d7ec54b8047f0f91024e65ecbd0aa"
|
| 403 |
+
},
|
| 404 |
+
"tests/source/tests/test_UtilsTest.py": {
|
| 405 |
+
"mode": 420,
|
| 406 |
+
"sha256": "1f536da1ae6e72f72c9a2a00ed57030217ec2d1e49fcdea9f79d5994ff672928"
|
| 407 |
+
},
|
| 408 |
+
"tests/test.sh": {
|
| 409 |
+
"mode": 493,
|
| 410 |
+
"sha256": "1644cd9006ec3aee48440d528b5355a83fcc3afdce02758340e89dac0b62b951"
|
| 411 |
+
},
|
| 412 |
+
"tests/test_driver.py": {
|
| 413 |
+
"mode": 420,
|
| 414 |
+
"sha256": "c7275ff0b65dc379fc2d4b98cf5ef7fe0568470caf881c713c93f7c9ea6a1864"
|
| 415 |
+
},
|
| 416 |
+
"tests/test_results.py": {
|
| 417 |
+
"mode": 420,
|
| 418 |
+
"sha256": "325700f6f8e9e78003ea2483ed900f4921c34dc34aa83d24d2fc878f00fd5771"
|
| 419 |
+
}
|
| 420 |
+
}
|
provenance/tasksmith-2e594e91712a/native-proof.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bundle_hash": "sha256:9968aabb93262687f8d964e78c103e7853af4822f11d5dffa58bfde455f002d6",
|
| 3 |
+
"quality_result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/60d9d0287143/candidates/2e594e91712a/quality/result.json",
|
| 4 |
+
"quality_sha256": "20a2bf2593550d83d32f4d62ef7e462f0a8962d63c73f5c8ad157ec28aa4618d",
|
| 5 |
+
"task": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/60d9d0287143/candidates/2e594e91712a/quality/revisions/r0/tasksmith-2e594e91712a",
|
| 6 |
+
"url": "https://github.com/freelawproject/eyecite/pull/227"
|
| 7 |
+
}
|
provenance/tasksmith-2e594e91712a/quality-label.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bundle_hash": "sha256:9968aabb93262687f8d964e78c103e7853af4822f11d5dffa58bfde455f002d6",
|
| 3 |
+
"original_task_path": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/60d9d0287143/candidates/2e594e91712a/quality/revisions/r0/tasksmith-2e594e91712a",
|
| 4 |
+
"quality_result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/60d9d0287143/candidates/2e594e91712a/quality/result.json",
|
| 5 |
+
"quality_result_sha256": "20a2bf2593550d83d32f4d62ef7e462f0a8962d63c73f5c8ad157ec28aa4618d",
|
| 6 |
+
"state": "completed",
|
| 7 |
+
"status": "verified",
|
| 8 |
+
"task_path": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/60d9d0287143/candidates/2e594e91712a/quality/labeled/20a2bf2593550d83d32f4d62ef7e462f0a8962d63c73f5c8ad157ec28aa4618d/tasksmith-2e594e91712a"
|
| 9 |
+
}
|
provenance/tasksmith-2e594e91712a/quality-result.json
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"accounted_usd": "1.647748",
|
| 3 |
+
"bundle_hash": "sha256:9968aabb93262687f8d964e78c103e7853af4822f11d5dffa58bfde455f002d6",
|
| 4 |
+
"profile": "evidence-review-v2",
|
| 5 |
+
"reasons": [],
|
| 6 |
+
"repairs": 0,
|
| 7 |
+
"reserved_usd": "0",
|
| 8 |
+
"review": {
|
| 9 |
+
"issues": [],
|
| 10 |
+
"leakage": {
|
| 11 |
+
"evidence": [
|
| 12 |
+
{
|
| 13 |
+
"path": "environment/Dockerfile",
|
| 14 |
+
"quote": "COPY source /workspace"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"path": "instruction.md",
|
| 18 |
+
"quote": "Also export a constant `REPORTERS_THAT_NEED_PAGE_CORRECTION = {\"NY Slip Op\", \"Misc. 3d\"}` from `eyecite/utils.py` so the set is accessible and extensible."
|
| 19 |
+
}
|
| 20 |
+
],
|
| 21 |
+
"explanation": "leakage: The learner view (environment Dockerfile copies environment/source, not solution/) does not include the reference. instruction.md describes behavior and examples without prescribing exact code edits or algorithm. The constant value is an explicitly-requested public API export, not a leak.",
|
| 22 |
+
"score": 3,
|
| 23 |
+
"status": "pass"
|
| 24 |
+
},
|
| 25 |
+
"probes": [],
|
| 26 |
+
"read_requests": [],
|
| 27 |
+
"rollout": "legitimate_failure",
|
| 28 |
+
"summary": "Task asks the learner to add corrected_page() to FullCaseCitation and update corrected_citation() to apply page standardization for NY Slip Op and Misc. 3d, plus export REPORTERS_THAT_NEED_PAGE_CORRECTION from utils.py, mirroring merged PR #227. Entrypoint tests/test.sh execs grade.py which runs test_driver.py over tests/test_ModelsTest.py; reward=1 only when the exact expected_passes set matches. test_page_correction exercises all required behaviors with independent hardcoded expected values. Baseline fails (AttributeError on corrected_page), oracle passes 16/16, the wrong-solution probe correctly fails test_page_correction, and the valid-alternative re.sub probe passes. The solver rollout failed with reward 0: it placed corrected_page()/corrected_citation() only on FullCaseCitation, but the test's last case ('Tex. Civ. Prac...') parses as FullLawCitation, producing AttributeError. The reference modifies the shared base ResourceCitation so both classes inherit the method; this is a legitimate solver placement error, not a task defect. probe_limit is 0 so no probes are proposed.",
|
| 29 |
+
"task": {
|
| 30 |
+
"evidence": [
|
| 31 |
+
{
|
| 32 |
+
"path": "instruction.md",
|
| 33 |
+
"quote": "Add a `corrected_page()` method to `FullCaseCitation` and update `corrected_citation()` to apply page standardization for the reporters `\"NY Slip Op\"` and `\"Misc. 3d\"`."
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"path": "tests/source/tests/test_ModelsTest.py",
|
| 37 |
+
"quote": " def test_page_correction(self):\n \"\"\"Can we correct pages on citation.corrected_citation()?\"\"\""
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"path": "environment/Dockerfile",
|
| 41 |
+
"quote": "RUN python -m pip install --no-cache-dir poetry-core==1.9.1 setuptools==75.8.2 pytest==8.3.5 reporters-db==3.2.53 lxml==5.4.0 pyahocorasick==2.3.1 fast-diff-match-patch==2.1.0 regex==2024.11.6 courts-db==0.10.27"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"path": "evidence/1-oracle/verifier/stdout.txt",
|
| 45 |
+
"quote": "16 passed in 0.31s"
|
| 46 |
+
}
|
| 47 |
+
],
|
| 48 |
+
"explanation": "alignment: Every graded requirement (corrected_page returning None on missing page, pass-through for non-target reporters, bracket replacement, corrected_citation applying both corrections, constant export) is stated in instruction.md and matches the test assertions. This mirrors the merged PR intent.; feasibility: The request is coherent and self-contained; offline dependencies are preinstalled and the oracle passes all tests, confirming required resources exist.",
|
| 49 |
+
"score": 4,
|
| 50 |
+
"status": "pass"
|
| 51 |
+
},
|
| 52 |
+
"verifier": {
|
| 53 |
+
"evidence": [
|
| 54 |
+
{
|
| 55 |
+
"path": "evidence/task-context.json",
|
| 56 |
+
"quote": "+ return page.replace(\\\"[U]\\\", \\\"(U)\\\").replace(\\\"[A]\\\", \\\"(A)\\\")"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"path": "evidence/1-oracle/verifier/result.json",
|
| 60 |
+
"quote": "\"tests.test_ModelsTest.ModelsTest::test_page_correction\": \"passed\""
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"path": "evidence/2-probe/verifier/stdout.txt",
|
| 64 |
+
"quote": "E AssertionError: '2024 NY Slip Op 51192[U]' != '2024 NY Slip Op 51192(U)'"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"path": "evidence/2-probe/verifier/result.json",
|
| 68 |
+
"quote": "\"tests.test_ModelsTest.ModelsTest::test_page_correction\": \"failed\""
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"path": "evidence/3-probe/verifier/stdout.txt",
|
| 72 |
+
"quote": "16 passed in 0.31s"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"path": "evidence/3-probe/result.json",
|
| 76 |
+
"quote": "\"name\": \"regex-alt-impl\",\n \"kind\": \"valid_alternative\""
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"path": "tests/test.sh",
|
| 80 |
+
"quote": "exec /usr/local/bin/python -B -I -S /tests/grade.py"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"path": "tests/grade.py",
|
| 84 |
+
"quote": " passed = code == 0 and bool(expected) and parsed.passed == expected"
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"explanation": "reference: The reference implements the actual PR behavior: it modifies the shared base (where corrected_citation already lives) to add corrected_page/corrected_citation and exports the constant, passing all 16 tests.; coverage: test_page_correction tests corrected_citation and corrected_page across all required cases with independent hardcoded expected values. The wrong-solution probe (removing bracket replacement) is correctly rejected; all pass-to-pass remain green, confirming discrimination.; alternatives: Grading checks observable string outputs, not implementation structure. The valid-alternative probe installing a distinct re.sub implementation passed all 16 tests, confirming alternatives are permitted.; gaming: The entrypoint test.sh execs grade.py, which validates submitted files, runs the real repository tests via test_driver.py, and the root-owned parent writes reward=1 only when the exact expected_passes set matches. test_driver.py guards assertion tampering. No shortcut accepts wrong output.",
|
| 88 |
+
"score": 3,
|
| 89 |
+
"status": "pass"
|
| 90 |
+
}
|
| 91 |
+
},
|
| 92 |
+
"schema_version": "2",
|
| 93 |
+
"source_hash": "sha256:9968aabb93262687f8d964e78c103e7853af4822f11d5dffa58bfde455f002d6",
|
| 94 |
+
"status": "usable",
|
| 95 |
+
"task_path": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/60d9d0287143/candidates/2e594e91712a/quality/revisions/r0/tasksmith-2e594e91712a",
|
| 96 |
+
"trials": [
|
| 97 |
+
{
|
| 98 |
+
"agent": "nop",
|
| 99 |
+
"agent_exit_code": null,
|
| 100 |
+
"binding": "receipt",
|
| 101 |
+
"bundle_hash": "sha256:9968aabb93262687f8d964e78c103e7853af4822f11d5dffa58bfde455f002d6",
|
| 102 |
+
"exception_type": null,
|
| 103 |
+
"model": null,
|
| 104 |
+
"probe": null,
|
| 105 |
+
"probe_installed": null,
|
| 106 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/60d9d0287143/candidates/2e594e91712a/quality/trials/r0-baseline/tsbatch-195cc094e760-60d9d0287143-q-2e594e91-r0-baseline/tasksmith-2e594e91712a__GuHeLBb/result.json",
|
| 107 |
+
"result_sha256": "9b594f2d823674c1b3bf44c8e846711a25d5c5ce34f4e818ea482449f8ba4119",
|
| 108 |
+
"reward": 0.0,
|
| 109 |
+
"role": "baseline"
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"agent": "oracle",
|
| 113 |
+
"agent_exit_code": null,
|
| 114 |
+
"binding": "receipt",
|
| 115 |
+
"bundle_hash": "sha256:9968aabb93262687f8d964e78c103e7853af4822f11d5dffa58bfde455f002d6",
|
| 116 |
+
"exception_type": null,
|
| 117 |
+
"model": null,
|
| 118 |
+
"probe": null,
|
| 119 |
+
"probe_installed": null,
|
| 120 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/60d9d0287143/candidates/2e594e91712a/quality/trials/r0-oracle/tsbatch-195cc094e760-60d9d0287143-q-2e594e91-r0-oracle/tasksmith-2e594e91712a__sKxoNv4/result.json",
|
| 121 |
+
"result_sha256": "bf2fdd519b1ecc1c2d4e2b315c6ed8f686db0580e98d2194c7ea8189c8cc44ed",
|
| 122 |
+
"reward": 1.0,
|
| 123 |
+
"role": "oracle"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"agent": "oracle",
|
| 127 |
+
"agent_exit_code": null,
|
| 128 |
+
"binding": "receipt",
|
| 129 |
+
"bundle_hash": "sha256:499555ea46f88a89db8a224c04445781a474fcca01b69105266f5bee385d7d4e",
|
| 130 |
+
"exception_type": null,
|
| 131 |
+
"model": null,
|
| 132 |
+
"probe": {
|
| 133 |
+
"evidence": [
|
| 134 |
+
{
|
| 135 |
+
"path": "instruction.md",
|
| 136 |
+
"quote": "replace `[U]` with `(U)` and `[A]` with `(A)` in the page value"
|
| 137 |
+
}
|
| 138 |
+
],
|
| 139 |
+
"focus": "general",
|
| 140 |
+
"kind": "wrong_solution",
|
| 141 |
+
"name": "eager-no-bracket-fix",
|
| 142 |
+
"rationale": "The public contract requires replacing [U] with (U) and [A] with (A) in the page for NY Slip Op / Misc. 3d. A corrected_page that returns the page unchanged (omitting the bracket replacement) must be rejected by test_page_correction.",
|
| 143 |
+
"script": "#!/bin/sh\nset -eu\nF=/workspace/eyecite/utils.py\ngrep -q 'REPORTERS_THAT_NEED_PAGE_CORRECTION = {\"NY Slip Op\", \"Misc. 3d\"}' \"$F\"\nM=/workspace/eyecite/models.py\npython - <<'PY'\np='/workspace/eyecite/models.py'\ns=open(p).read()\ns2=s.replace('page.replace(\"[U]\", \"(U)\").replace(\"[A]\", \"(A)\")','page')\nassert s2!=s, 'mutation did not apply'\nopen(p,'w').write(s2)\nPY\ngrep -q 'return page' \"$M\"\n"
|
| 144 |
+
},
|
| 145 |
+
"probe_installed": true,
|
| 146 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/60d9d0287143/candidates/2e594e91712a/quality/trials/r0-probe0/tsbatch-195cc094e760-60d9d0287143-q-2e594e91-r0-probe0/tasksmith-2e594e91712a__hCzvwMy/result.json",
|
| 147 |
+
"result_sha256": "5cab028c54baa6b4ae45637426c793631c3b975d1cd7edba10cf3f886a3b8f25",
|
| 148 |
+
"reward": 0.0,
|
| 149 |
+
"role": "probe"
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"agent": "oracle",
|
| 153 |
+
"agent_exit_code": null,
|
| 154 |
+
"binding": "receipt",
|
| 155 |
+
"bundle_hash": "sha256:e132c32909d3f77d38a760c941be1804aa16c67536e8ba65a57a6cbcb8ca8d21",
|
| 156 |
+
"exception_type": null,
|
| 157 |
+
"model": null,
|
| 158 |
+
"probe": {
|
| 159 |
+
"evidence": [
|
| 160 |
+
{
|
| 161 |
+
"path": "tests/source/tests/test_ModelsTest.py",
|
| 162 |
+
"quote": " self.assertEqual(\n cite.corrected_page(),\n corrected_page,\n \"Standalone page correction not working\",\n )"
|
| 163 |
+
}
|
| 164 |
+
],
|
| 165 |
+
"focus": "general",
|
| 166 |
+
"kind": "valid_alternative",
|
| 167 |
+
"name": "regex-alt-impl",
|
| 168 |
+
"rationale": "A distinct implementation using re.sub to perform the same bracket substitutions preserves observable behavior and must still pass. This exercises that grading permits alternative implementations rather than requiring the reference's exact .replace chain.",
|
| 169 |
+
"script": "#!/bin/sh\nset -eu\nM=/workspace/eyecite/models.py\npython - <<'PY'\np='/workspace/eyecite/models.py'\ns=open(p).read()\nold='page.replace(\"[U]\", \"(U)\").replace(\"[A]\", \"(A)\")'\nnew='__import__(\"re\").sub(r\"\\\\[([UA])\\\\]\", r\"(\\\\1)\", page)'\nassert old in s, 'anchor not found'\ns=s.replace(old,new)\nopen(p,'w').write(s)\nPY\ngrep -q 're\").sub' \"$M\"\n"
|
| 170 |
+
},
|
| 171 |
+
"probe_installed": true,
|
| 172 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/60d9d0287143/candidates/2e594e91712a/quality/trials/r0-probe1/tsbatch-195cc094e760-60d9d0287143-q-2e594e91-r0-probe1/tasksmith-2e594e91712a__mkkN58W/result.json",
|
| 173 |
+
"result_sha256": "a20ab4ebc37bdf637f580b7b07843cb042b537ab85c48e088915c3bddbc5f03d",
|
| 174 |
+
"reward": 1.0,
|
| 175 |
+
"role": "probe"
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"agent": "terminus-2",
|
| 179 |
+
"agent_exit_code": null,
|
| 180 |
+
"binding": "receipt",
|
| 181 |
+
"bundle_hash": "sha256:9968aabb93262687f8d964e78c103e7853af4822f11d5dffa58bfde455f002d6",
|
| 182 |
+
"exception_type": null,
|
| 183 |
+
"model": "anthropic/claude-sonnet-4-6",
|
| 184 |
+
"probe": null,
|
| 185 |
+
"probe_installed": null,
|
| 186 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/60d9d0287143/candidates/2e594e91712a/quality/trials/r0-rollout/tsbatch-195cc094e760-60d9d0287143-q-2e594e91-r0-rollout/tasksmith-2e594e91712a__CwGgRb5/result.json",
|
| 187 |
+
"result_sha256": "eff7d3c02a4d2bbe95f9f96b6b1baec3fc66f9e7fd435364d6ccad44d0ddb983",
|
| 188 |
+
"reward": 0.0,
|
| 189 |
+
"role": "rollout"
|
| 190 |
+
}
|
| 191 |
+
]
|
| 192 |
+
}
|
provenance/tasksmith-2e594e91712a/source.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base": "4c58d7d19e9fa776bc9a071a02f35f224ae7d1a4",
|
| 3 |
+
"body": "\u2026. 3d\r\n\r\nSolves: https://github.com/freelawproject/eyecite/issues/226\r\n\r\nAdd page correction / standardization only for reporters NY Slip OP and Misc. 3d; but extensible in the future",
|
| 4 |
+
"changed_files": [
|
| 5 |
+
{
|
| 6 |
+
"additions": 1,
|
| 7 |
+
"deletions": 1,
|
| 8 |
+
"filename": "CHANGES.md",
|
| 9 |
+
"status": "modified"
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"additions": 29,
|
| 13 |
+
"deletions": 5,
|
| 14 |
+
"filename": "eyecite/models.py",
|
| 15 |
+
"status": "modified"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"additions": 2,
|
| 19 |
+
"deletions": 0,
|
| 20 |
+
"filename": "eyecite/utils.py",
|
| 21 |
+
"status": "modified"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"additions": 5,
|
| 25 |
+
"deletions": 5,
|
| 26 |
+
"filename": "poetry.lock",
|
| 27 |
+
"status": "modified"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"additions": 1,
|
| 31 |
+
"deletions": 1,
|
| 32 |
+
"filename": "pyproject.toml",
|
| 33 |
+
"status": "modified"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"additions": 32,
|
| 37 |
+
"deletions": 0,
|
| 38 |
+
"filename": "tests/test_ModelsTest.py",
|
| 39 |
+
"status": "modified"
|
| 40 |
+
}
|
| 41 |
+
],
|
| 42 |
+
"created_at": "2025-02-20T20:34:01Z",
|
| 43 |
+
"full_diff": "diff --git a/CHANGES.md b/CHANGES.md\nindex 1ae8b806..70f2ccc2 100644\n--- a/CHANGES.md\n+++ b/CHANGES.md\n@@ -8,7 +8,7 @@ Features:\n - Adds helper function span_with_pincite() to get full citation with pin cite\n \n Changes:\n-- None\n+- Add page correction to `corrected_citation`, for 'NY Slip Op' and 'Misc 3d'\n \n Fixes:\n - Strengthens error handling during the loading of the cached Hyperscan database. This ensures that an invalid cache triggers a rebuild.\ndiff --git a/eyecite/models.py b/eyecite/models.py\nindex 3eb56df4..0090d584 100644\n--- a/eyecite/models.py\n+++ b/eyecite/models.py\n@@ -15,7 +15,7 @@\n cast,\n )\n \n-from eyecite.utils import hash_sha256\n+from eyecite.utils import REPORTERS_THAT_NEED_PAGE_CORRECTION, hash_sha256\n \n ResourceType = Hashable\n \n@@ -308,12 +308,36 @@ def corrected_reporter(self):\n )\n \n def corrected_citation(self):\n- \"\"\"Return citation with corrected reporter.\"\"\"\n+ \"\"\"Return citation with corrected reporter and standardized page\"\"\"\n+ corrected = self.matched_text()\n if self.edition_guess:\n- return self.matched_text().replace(\n- self.groups[\"reporter\"], self.edition_guess.short_name\n+ corrected = corrected.replace(\n+ self.groups.get(\"reporter\"), self.edition_guess.short_name\n )\n- return self.matched_text()\n+\n+ corrected_page = self.corrected_page()\n+ if corrected_page and corrected_page != self.groups[\"page\"]:\n+ corrected = corrected.replace(self.groups[\"page\"], corrected_page)\n+\n+ return corrected\n+\n+ def corrected_page(self):\n+ \"\"\"Can we standardize a page value?\"\"\"\n+ page = self.groups.get(\"page\")\n+ if page is None:\n+ return\n+\n+ standard_reporter = \"\"\n+ if reporter := self.groups.get(\"reporter\"):\n+ if self.edition_guess:\n+ standard_reporter = self.edition_guess.short_name\n+ if {\n+ reporter,\n+ standard_reporter,\n+ } & REPORTERS_THAT_NEED_PAGE_CORRECTION:\n+ return page.replace(\"[U]\", \"(U)\").replace(\"[A]\", \"(A)\")\n+\n+ return page\n \n def guess_edition(self):\n \"\"\"Set edition_guess.\"\"\"\ndiff --git a/eyecite/utils.py b/eyecite/utils.py\nindex c8d1dc5d..5c21d4be 100644\n--- a/eyecite/utils.py\n+++ b/eyecite/utils.py\n@@ -4,6 +4,8 @@\n \n from lxml import etree\n \n+REPORTERS_THAT_NEED_PAGE_CORRECTION = {\"NY Slip Op\", \"Misc. 3d\"}\n+\n # Names not allowed to be reference citations\n # this is partially taken from juriscraper\n DISALLOWED_NAMES = [\ndiff --git a/poetry.lock b/poetry.lock\nindex e13a3e60..d8d0218e 100644\n--- a/poetry.lock\n+++ b/poetry.lock\n@@ -1,4 +1,4 @@\n-# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand.\n+# This file is automatically @generated by Poetry 1.8.1 and should not be changed by hand.\n \n [[package]]\n name = \"astroid\"\n@@ -1281,13 +1281,13 @@ files = [\n \n [[package]]\n name = \"reporters-db\"\n-version = \"3.2.52\"\n+version = \"3.2.53\"\n description = \"Database of Court Reporters\"\n optional = false\n python-versions = \"*\"\n files = [\n- {file = \"reporters_db-3.2.52-py2.py3-none-any.whl\", hash = \"sha256:69b6c0c40c6432d33240dc45b5c33e43f032833b8c1400ec8f3fc72b66de28f5\"},\n- {file = \"reporters_db-3.2.52.tar.gz\", hash = \"sha256:f51d4a91d8b028bfcbd79239c297ca48cc2183d9b61976c230e1c2c93c89071e\"},\n+ {file = \"reporters_db-3.2.53-py2.py3-none-any.whl\", hash = \"sha256:71ad91ada8a25b92622ac45a27706bc30fbfd2681ef26b65830b07bb9e303a18\"},\n+ {file = \"reporters_db-3.2.53.tar.gz\", hash = \"sha256:81082e1f0e6e454dc737f34029553357133a4928cda4c20b86f39f1f3b82904f\"},\n ]\n \n [package.dependencies]\n@@ -1365,4 +1365,4 @@ test = [\"pytest (>=6.0.0)\", \"setuptools (>=65)\"]\n [metadata]\n lock-version = \"2.0\"\n python-versions = \">=3.10,<4.0\"\n-content-hash = \"56ca6f495628273c44073c8c88f3f5887073a7cdd18a59daf104f341e246ef58\"\n+content-hash = \"26e101fbd482b9f2219280ac6f1b63983c2f635d58eefdd1946b07d8ccae58ba\"\ndiff --git a/pyproject.toml b/pyproject.toml\nindex d1f87917..7b613e90 100644\n--- a/pyproject.toml\n+++ b/pyproject.toml\n@@ -29,7 +29,7 @@ include = [\"eyecite/py.typed\"]\n \n [tool.poetry.dependencies]\n python = \">=3.10,<4.0\"\n-reporters-db = \">=3.2.52\"\n+reporters-db = \">=3.2.53\"\n lxml = \">=4.6.3\"\n pyahocorasick = \">= 1.2\"\n fast-diff-match-patch = \">=2.0.0\"\ndiff --git a/tests/test_ModelsTest.py b/tests/test_ModelsTest.py\nindex cb59efb1..6e8b2618 100644\n--- a/tests/test_ModelsTest.py\n+++ b/tests/test_ModelsTest.py\n@@ -221,3 +221,35 @@ def test_corrected_full_citation_includes_closing_parenthesis(self):\n full_case_citation.corrected_citation_full(),\n \"Bank v. Vinson, 477 U.S. 57, 60 (scotus 1986)\",\n )\n+\n+ def test_page_correction(self):\n+ \"\"\"Can we correct pages on citation.corrected_citation()?\"\"\"\n+ tests = [\n+ (\n+ \"2024 N.Y. Slip Op. 51192(U)\",\n+ \"2024 NY Slip Op 51192(U)\",\n+ \"51192(U)\",\n+ ),\n+ (\"2024 NYSlipOp 51192[U]\", \"2024 NY Slip Op 51192(U)\", \"51192(U)\"),\n+ (\"11 Misc 3d 134[A]\", \"11 Misc. 3d 134(A)\", \"134(A)\"),\n+ (\"83 Misc.3d 126(A)\", \"83 Misc. 3d 126(A)\", \"126(A)\"),\n+ # cases where no page correction should happen\n+ (\"11 U.S. 11[2]\", \"11 U.S. 11\", \"11\"),\n+ (\n+ \"Tex. Civ. Prac. & Rem. Code Ann. \u00a7 171.023\",\n+ \"Tex. Code Ann. \u00a7 171.023\",\n+ None,\n+ ),\n+ ]\n+ for citation, corrected_citation, corrected_page in tests:\n+ cite = get_citations(citation)[0]\n+ self.assertEqual(\n+ cite.corrected_citation(),\n+ corrected_citation,\n+ \"Page correction not working\",\n+ )\n+ self.assertEqual(\n+ cite.corrected_page(),\n+ corrected_page,\n+ \"Standalone page correction not working\",\n+ )\n",
|
| 44 |
+
"head": "9f77d26fa133ab47a420c08d957fc6daf1180798",
|
| 45 |
+
"id": "2e594e91712a",
|
| 46 |
+
"merged_at": "2025-02-20T20:56:52Z",
|
| 47 |
+
"repo": "https://github.com/freelawproject/eyecite",
|
| 48 |
+
"source_diff": "diff --git a/eyecite/models.py b/eyecite/models.py\nindex 3eb56df4..0090d584 100644\n--- a/eyecite/models.py\n+++ b/eyecite/models.py\n@@ -15,7 +15,7 @@\n cast,\n )\n \n-from eyecite.utils import hash_sha256\n+from eyecite.utils import REPORTERS_THAT_NEED_PAGE_CORRECTION, hash_sha256\n \n ResourceType = Hashable\n \n@@ -308,12 +308,36 @@ def corrected_reporter(self):\n )\n \n def corrected_citation(self):\n- \"\"\"Return citation with corrected reporter.\"\"\"\n+ \"\"\"Return citation with corrected reporter and standardized page\"\"\"\n+ corrected = self.matched_text()\n if self.edition_guess:\n- return self.matched_text().replace(\n- self.groups[\"reporter\"], self.edition_guess.short_name\n+ corrected = corrected.replace(\n+ self.groups.get(\"reporter\"), self.edition_guess.short_name\n )\n- return self.matched_text()\n+\n+ corrected_page = self.corrected_page()\n+ if corrected_page and corrected_page != self.groups[\"page\"]:\n+ corrected = corrected.replace(self.groups[\"page\"], corrected_page)\n+\n+ return corrected\n+\n+ def corrected_page(self):\n+ \"\"\"Can we standardize a page value?\"\"\"\n+ page = self.groups.get(\"page\")\n+ if page is None:\n+ return\n+\n+ standard_reporter = \"\"\n+ if reporter := self.groups.get(\"reporter\"):\n+ if self.edition_guess:\n+ standard_reporter = self.edition_guess.short_name\n+ if {\n+ reporter,\n+ standard_reporter,\n+ } & REPORTERS_THAT_NEED_PAGE_CORRECTION:\n+ return page.replace(\"[U]\", \"(U)\").replace(\"[A]\", \"(A)\")\n+\n+ return page\n \n def guess_edition(self):\n \"\"\"Set edition_guess.\"\"\"\ndiff --git a/eyecite/utils.py b/eyecite/utils.py\nindex c8d1dc5d..5c21d4be 100644\n--- a/eyecite/utils.py\n+++ b/eyecite/utils.py\n@@ -4,6 +4,8 @@\n \n from lxml import etree\n \n+REPORTERS_THAT_NEED_PAGE_CORRECTION = {\"NY Slip Op\", \"Misc. 3d\"}\n+\n # Names not allowed to be reference citations\n # this is partially taken from juriscraper\n DISALLOWED_NAMES = [\n",
|
| 49 |
+
"source_files": [
|
| 50 |
+
"eyecite/models.py",
|
| 51 |
+
"eyecite/utils.py"
|
| 52 |
+
],
|
| 53 |
+
"source_operations": [
|
| 54 |
+
{
|
| 55 |
+
"operation": "modified",
|
| 56 |
+
"path": "eyecite/models.py"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"operation": "modified",
|
| 60 |
+
"path": "eyecite/utils.py"
|
| 61 |
+
}
|
| 62 |
+
],
|
| 63 |
+
"title": "feat(models.corrected_citation): correct page for NY Slip OP and Misc\u2026",
|
| 64 |
+
"url": "https://github.com/freelawproject/eyecite/pull/227",
|
| 65 |
+
"workspace_strategy": "head_minus_source_patch"
|
| 66 |
+
}
|
provenance/tasksmith-584e4c2811de/candidate-intake.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"capability_tags": [
|
| 3 |
+
"financial-math"
|
| 4 |
+
],
|
| 5 |
+
"expected": {
|
| 6 |
+
"base": "abd3adb5b2b20dadb9608f665bb299065cbb4d75",
|
| 7 |
+
"full_diff_sha256": "46300635bda8d4947010af0f5862c9ffc31c522fb7fff745391450589dec5f5c",
|
| 8 |
+
"head": "b092d2f988cf481ba1926748bec2dd9c858a27c5",
|
| 9 |
+
"id": "584e4c2811de"
|
| 10 |
+
},
|
| 11 |
+
"license": {
|
| 12 |
+
"path": "LICENSE",
|
| 13 |
+
"sha256": "8711471566d722d55eca3f09196f342b2ee2960616e68127ec2a17b39ff99949",
|
| 14 |
+
"spdx": "MIT"
|
| 15 |
+
},
|
| 16 |
+
"url": "https://github.com/pmorissette/ffn/pull/371"
|
| 17 |
+
}
|
provenance/tasksmith-584e4c2811de/files.json
ADDED
|
@@ -0,0 +1,343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
".": {
|
| 3 |
+
"mode": 493
|
| 4 |
+
},
|
| 5 |
+
"environment": {
|
| 6 |
+
"mode": 493
|
| 7 |
+
},
|
| 8 |
+
"environment/Dockerfile": {
|
| 9 |
+
"mode": 420,
|
| 10 |
+
"sha256": "b0d715f91609fce847ab8a4f3c9cce9ed89969f33788a6054db64df7901a93f7"
|
| 11 |
+
},
|
| 12 |
+
"environment/source": {
|
| 13 |
+
"mode": 493
|
| 14 |
+
},
|
| 15 |
+
"environment/source/Dockerfile": {
|
| 16 |
+
"mode": 420,
|
| 17 |
+
"sha256": "06b57c14c0007648594a63bf5b3f86964e5f399749c608e28c326f23b5afe297"
|
| 18 |
+
},
|
| 19 |
+
"environment/source/LICENSE": {
|
| 20 |
+
"mode": 420,
|
| 21 |
+
"sha256": "8711471566d722d55eca3f09196f342b2ee2960616e68127ec2a17b39ff99949"
|
| 22 |
+
},
|
| 23 |
+
"environment/source/README.md": {
|
| 24 |
+
"mode": 420,
|
| 25 |
+
"sha256": "06c453ab7bd8951cd03096b489c3155bc069a1d7711761d7728f28cbb786e84a"
|
| 26 |
+
},
|
| 27 |
+
"environment/source/ffn": {
|
| 28 |
+
"mode": 493
|
| 29 |
+
},
|
| 30 |
+
"environment/source/ffn/__init__.py": {
|
| 31 |
+
"mode": 420,
|
| 32 |
+
"sha256": "1057844dd3e514eef97f1d95c9668dca03a40a7ef779b3ed91c54dcfe553229a"
|
| 33 |
+
},
|
| 34 |
+
"environment/source/ffn/core.py": {
|
| 35 |
+
"mode": 420,
|
| 36 |
+
"sha256": "f3487737d5f6420f5d6dc102af03256fb081fd926edd9898df47a821f5db469a"
|
| 37 |
+
},
|
| 38 |
+
"environment/source/ffn/data.py": {
|
| 39 |
+
"mode": 420,
|
| 40 |
+
"sha256": "745f4534c321086a77bafb09e12592b9d4ca19ef6351d51a43e060b5e7ed4444"
|
| 41 |
+
},
|
| 42 |
+
"environment/source/ffn/utils.py": {
|
| 43 |
+
"mode": 420,
|
| 44 |
+
"sha256": "a2c132dbe3dd8d8505589ce6b2e26df0645db8a6ec9e485f599197b4f7ba3ec7"
|
| 45 |
+
},
|
| 46 |
+
"environment/source/pyproject.toml": {
|
| 47 |
+
"mode": 420,
|
| 48 |
+
"sha256": "2e3f30198bb423530bb3786cb7fadd9471519404582de8cf63e3800056acd67a"
|
| 49 |
+
},
|
| 50 |
+
"instruction.md": {
|
| 51 |
+
"mode": 420,
|
| 52 |
+
"sha256": "ca48fe84874d49e8a516df717d5325b49bb26a2752db9a1b5309578b78c312dc"
|
| 53 |
+
},
|
| 54 |
+
"solution": {
|
| 55 |
+
"mode": 493
|
| 56 |
+
},
|
| 57 |
+
"solution/reference": {
|
| 58 |
+
"mode": 493
|
| 59 |
+
},
|
| 60 |
+
"solution/reference/ffn": {
|
| 61 |
+
"mode": 493
|
| 62 |
+
},
|
| 63 |
+
"solution/reference/ffn/core.py": {
|
| 64 |
+
"mode": 420,
|
| 65 |
+
"sha256": "719aef4a759ce88cd9f192b1d40d0ab208e38269dbfff8849f6b124b59e61c23"
|
| 66 |
+
},
|
| 67 |
+
"solution/solve.sh": {
|
| 68 |
+
"mode": 493,
|
| 69 |
+
"sha256": "6092af22acf583d05bf3077e0fc2190cfa36202b6224b10f174324ab7fe4a0f0"
|
| 70 |
+
},
|
| 71 |
+
"task.toml": {
|
| 72 |
+
"mode": 420,
|
| 73 |
+
"sha256": "c6a9b554f39a62039cee5fd5576b70963db29a37cfd0a7091c916592dc2b1072"
|
| 74 |
+
},
|
| 75 |
+
"tests": {
|
| 76 |
+
"mode": 493
|
| 77 |
+
},
|
| 78 |
+
"tests/Dockerfile": {
|
| 79 |
+
"mode": 420,
|
| 80 |
+
"sha256": "b5c0233845947545f463c198e3fe447e012a951b48d5ad07007984026c799bfe"
|
| 81 |
+
},
|
| 82 |
+
"tests/contract.json": {
|
| 83 |
+
"mode": 420,
|
| 84 |
+
"sha256": "3b630bcd617e6ed135c15a831f9c9518e13ac2a83b78ca69293eaf2a5087aaf2"
|
| 85 |
+
},
|
| 86 |
+
"tests/grade.py": {
|
| 87 |
+
"mode": 420,
|
| 88 |
+
"sha256": "e525b964f4bd013bb452e259e87ab098dcee13f509dbcd0a09c2469cf94b395f"
|
| 89 |
+
},
|
| 90 |
+
"tests/source": {
|
| 91 |
+
"mode": 493
|
| 92 |
+
},
|
| 93 |
+
"tests/source/.copier-answers.yaml": {
|
| 94 |
+
"mode": 420,
|
| 95 |
+
"sha256": "0c7b85e45e6e7181650052c54ec162ff05c5d707f02649549126c38368ec9223"
|
| 96 |
+
},
|
| 97 |
+
"tests/source/.gitattributes": {
|
| 98 |
+
"mode": 420,
|
| 99 |
+
"sha256": "c9225726b642e52d305677a7138544d1d417336793c6e5de6807000c66874fb4"
|
| 100 |
+
},
|
| 101 |
+
"tests/source/.github": {
|
| 102 |
+
"mode": 493
|
| 103 |
+
},
|
| 104 |
+
"tests/source/.github/ISSUE_TEMPLATE": {
|
| 105 |
+
"mode": 493
|
| 106 |
+
},
|
| 107 |
+
"tests/source/.github/ISSUE_TEMPLATE/bug_report.md": {
|
| 108 |
+
"mode": 420,
|
| 109 |
+
"sha256": "7c45ffc06523703900c2719048262cb74fbeac7682ea393c580c5620aff2da48"
|
| 110 |
+
},
|
| 111 |
+
"tests/source/.github/ISSUE_TEMPLATE/feature_request.md": {
|
| 112 |
+
"mode": 420,
|
| 113 |
+
"sha256": "1f48c52f209a971b8e7eae4120144d28fcf8ee38a7778a7b4d8cf1ab356617d2"
|
| 114 |
+
},
|
| 115 |
+
"tests/source/.github/dependabot.yaml": {
|
| 116 |
+
"mode": 420,
|
| 117 |
+
"sha256": "ed00c72a028af97fd4498eff50f2f132d1549a65a0f299fa0b944085ab4d7a57"
|
| 118 |
+
},
|
| 119 |
+
"tests/source/.github/workflows": {
|
| 120 |
+
"mode": 493
|
| 121 |
+
},
|
| 122 |
+
"tests/source/.github/workflows/build.yaml": {
|
| 123 |
+
"mode": 420,
|
| 124 |
+
"sha256": "fc8f219b4e86b71e19ec26deca5b04313064287f4d8076dfa98d98470cd4ce4a"
|
| 125 |
+
},
|
| 126 |
+
"tests/source/.github/workflows/docs.yaml": {
|
| 127 |
+
"mode": 420,
|
| 128 |
+
"sha256": "aabfa13e3371ed23c1b4eaa80357ccd984dbf811e952c01b6f27f204ec3d9a58"
|
| 129 |
+
},
|
| 130 |
+
"tests/source/.github/workflows/regression.yaml": {
|
| 131 |
+
"mode": 420,
|
| 132 |
+
"sha256": "ef52b62da4c77ff4da5886ff9426aca05e3ed03bfb0fb7a1fc6a643839418fdc"
|
| 133 |
+
},
|
| 134 |
+
"tests/source/.gitignore": {
|
| 135 |
+
"mode": 420,
|
| 136 |
+
"sha256": "d49fe93e1f016838b5adec6351a3a3cca9665b7f0154e329f4d2b4d680d84592"
|
| 137 |
+
},
|
| 138 |
+
"tests/source/Dockerfile": {
|
| 139 |
+
"mode": 420,
|
| 140 |
+
"sha256": "06b57c14c0007648594a63bf5b3f86964e5f399749c608e28c326f23b5afe297"
|
| 141 |
+
},
|
| 142 |
+
"tests/source/LICENSE": {
|
| 143 |
+
"mode": 420,
|
| 144 |
+
"sha256": "8711471566d722d55eca3f09196f342b2ee2960616e68127ec2a17b39ff99949"
|
| 145 |
+
},
|
| 146 |
+
"tests/source/Makefile": {
|
| 147 |
+
"mode": 420,
|
| 148 |
+
"sha256": "8f01277b80658fc69f96b8e1aa25dce52d575f05fbfafe70cd8d93867c5ff928"
|
| 149 |
+
},
|
| 150 |
+
"tests/source/README.md": {
|
| 151 |
+
"mode": 420,
|
| 152 |
+
"sha256": "06c453ab7bd8951cd03096b489c3155bc069a1d7711761d7728f28cbb786e84a"
|
| 153 |
+
},
|
| 154 |
+
"tests/source/benchmarks": {
|
| 155 |
+
"mode": 493
|
| 156 |
+
},
|
| 157 |
+
"tests/source/benchmarks/test_core.py": {
|
| 158 |
+
"mode": 420,
|
| 159 |
+
"sha256": "5ad5d291b73f7076dcd36e4bd2197f8cf315950fde69972d9e1fa4b6b4ac5153"
|
| 160 |
+
},
|
| 161 |
+
"tests/source/docs": {
|
| 162 |
+
"mode": 493
|
| 163 |
+
},
|
| 164 |
+
"tests/source/docs/development.md": {
|
| 165 |
+
"mode": 420,
|
| 166 |
+
"sha256": "ba496ed6e17b2c5477eb83bf1fc2fb8530c0844a6c79246f82bb342c90ab5f1a"
|
| 167 |
+
},
|
| 168 |
+
"tests/source/docs/source": {
|
| 169 |
+
"mode": 493
|
| 170 |
+
},
|
| 171 |
+
"tests/source/docs/source/_static": {
|
| 172 |
+
"mode": 493
|
| 173 |
+
},
|
| 174 |
+
"tests/source/docs/source/_static/favicon.ico": {
|
| 175 |
+
"mode": 420,
|
| 176 |
+
"sha256": "f3b203ff781301f3c5c84aeeb09f99a684c446a8ba6d763ebbfc437989552a87"
|
| 177 |
+
},
|
| 178 |
+
"tests/source/docs/source/_static/intro_3_0.png": {
|
| 179 |
+
"mode": 420,
|
| 180 |
+
"sha256": "0119da6ab849a50f2a0fd96dca6c074f65602b781f81179f2e7d47f52e33190c"
|
| 181 |
+
},
|
| 182 |
+
"tests/source/docs/source/_static/intro_4_0.png": {
|
| 183 |
+
"mode": 420,
|
| 184 |
+
"sha256": "80891dce927d76795941f0ffc9acb63a0ae2033a0ba4e47368c4aa88fcde5e81"
|
| 185 |
+
},
|
| 186 |
+
"tests/source/docs/source/_static/intro_6_0.png": {
|
| 187 |
+
"mode": 420,
|
| 188 |
+
"sha256": "caf555355baf1f596e5d0f12105c5dcc6c46b72ebf9290b2f666c61af5c513c1"
|
| 189 |
+
},
|
| 190 |
+
"tests/source/docs/source/_static/logo.png": {
|
| 191 |
+
"mode": 420,
|
| 192 |
+
"sha256": "f5c51b65d256cb41ba9f89030102d4c74e8d82900e638db8751455629887305c"
|
| 193 |
+
},
|
| 194 |
+
"tests/source/docs/source/_static/quickstart_11_0.png": {
|
| 195 |
+
"mode": 420,
|
| 196 |
+
"sha256": "8141f9e10423f5180614898c0b86dd33329d09d627313a4b890211986469d4f8"
|
| 197 |
+
},
|
| 198 |
+
"tests/source/docs/source/_static/quickstart_15_0.png": {
|
| 199 |
+
"mode": 420,
|
| 200 |
+
"sha256": "9b64dc763dbedadc606b50ac7132096d515d074f351e94e00e41813d5bb497db"
|
| 201 |
+
},
|
| 202 |
+
"tests/source/docs/source/_static/quickstart_17_0.png": {
|
| 203 |
+
"mode": 420,
|
| 204 |
+
"sha256": "e828b7ec1ce6df265593f6966ea18d4d8158e088f9837f16e7d4d922f20a8c7d"
|
| 205 |
+
},
|
| 206 |
+
"tests/source/docs/source/_static/quickstart_21_0.png": {
|
| 207 |
+
"mode": 420,
|
| 208 |
+
"sha256": "9b77443e699297bad945dd573e85dd47eedd5f673199ca9b5b82f6edc56cfe40"
|
| 209 |
+
},
|
| 210 |
+
"tests/source/docs/source/_static/quickstart_26_0.png": {
|
| 211 |
+
"mode": 420,
|
| 212 |
+
"sha256": "6a70f78f61a8378c5312cffbed77ea2206cb01910821bd8976edd1c6f9522751"
|
| 213 |
+
},
|
| 214 |
+
"tests/source/docs/source/ffn.md": {
|
| 215 |
+
"mode": 420,
|
| 216 |
+
"sha256": "24d61bbe8ff61575a09dfc3629b7f813d013e2c3d8e1b3a44dda71ca941ae88d"
|
| 217 |
+
},
|
| 218 |
+
"tests/source/docs/source/install.md": {
|
| 219 |
+
"mode": 420,
|
| 220 |
+
"sha256": "a69c5cf57af3a7a923d81a90d2452ec02583d5c3ce96caf06dbd2df72bc1e9bc"
|
| 221 |
+
},
|
| 222 |
+
"tests/source/docs/source/intro.ipynb": {
|
| 223 |
+
"mode": 420,
|
| 224 |
+
"sha256": "8a9dfa780c5578835f47855dcfbd7353cf8106b81b02a05c96d3a7211591d88b"
|
| 225 |
+
},
|
| 226 |
+
"tests/source/docs/source/intro.md": {
|
| 227 |
+
"mode": 420,
|
| 228 |
+
"sha256": "3a18667cfa0a3e9250b2da0858b4a57fb33949dc101261fd5b00b6eff1bd8305"
|
| 229 |
+
},
|
| 230 |
+
"tests/source/docs/source/introduction.md": {
|
| 231 |
+
"mode": 420,
|
| 232 |
+
"sha256": "79826f43f973a17a73ad870221ee9c9a120a690e921a96f5fccb052bff482d4c"
|
| 233 |
+
},
|
| 234 |
+
"tests/source/docs/source/modules.md": {
|
| 235 |
+
"mode": 420,
|
| 236 |
+
"sha256": "d185922d2a190aaa5ce3ebb35034621ba13d022fd61338a28f480a1640ffd1c5"
|
| 237 |
+
},
|
| 238 |
+
"tests/source/docs/source/quick.md": {
|
| 239 |
+
"mode": 420,
|
| 240 |
+
"sha256": "c79ab4f3dad9fcba3540d8db2b4c5a3818a42e1c2a50a68ee4f378aeed32979b"
|
| 241 |
+
},
|
| 242 |
+
"tests/source/docs/source/quickstart.ipynb": {
|
| 243 |
+
"mode": 420,
|
| 244 |
+
"sha256": "287e4bd58195f2efc6c3447b9ba21f19eeff82d7ee3ae1bd65630431031cb9e6"
|
| 245 |
+
},
|
| 246 |
+
"tests/source/docs/source/quickstart.md": {
|
| 247 |
+
"mode": 420,
|
| 248 |
+
"sha256": "d944227fd8330d0125304bcc0c0adfe800eaa6c0a27147f8c96027b0fa6b1c08"
|
| 249 |
+
},
|
| 250 |
+
"tests/source/docs/source/test_data.csv": {
|
| 251 |
+
"mode": 420,
|
| 252 |
+
"sha256": "4d00b6d24d2d6247a945a8030cce8896666b212b9808d1c39d0bc52f8745d4d5"
|
| 253 |
+
},
|
| 254 |
+
"tests/source/ffn": {
|
| 255 |
+
"mode": 493
|
| 256 |
+
},
|
| 257 |
+
"tests/source/ffn/__init__.py": {
|
| 258 |
+
"mode": 420,
|
| 259 |
+
"sha256": "1057844dd3e514eef97f1d95c9668dca03a40a7ef779b3ed91c54dcfe553229a"
|
| 260 |
+
},
|
| 261 |
+
"tests/source/ffn/core.py": {
|
| 262 |
+
"mode": 420,
|
| 263 |
+
"sha256": "f3487737d5f6420f5d6dc102af03256fb081fd926edd9898df47a821f5db469a"
|
| 264 |
+
},
|
| 265 |
+
"tests/source/ffn/data.py": {
|
| 266 |
+
"mode": 420,
|
| 267 |
+
"sha256": "745f4534c321086a77bafb09e12592b9d4ca19ef6351d51a43e060b5e7ed4444"
|
| 268 |
+
},
|
| 269 |
+
"tests/source/ffn/utils.py": {
|
| 270 |
+
"mode": 420,
|
| 271 |
+
"sha256": "a2c132dbe3dd8d8505589ce6b2e26df0645db8a6ec9e485f599197b4f7ba3ec7"
|
| 272 |
+
},
|
| 273 |
+
"tests/source/pyproject.toml": {
|
| 274 |
+
"mode": 420,
|
| 275 |
+
"sha256": "2e3f30198bb423530bb3786cb7fadd9471519404582de8cf63e3800056acd67a"
|
| 276 |
+
},
|
| 277 |
+
"tests/source/tests": {
|
| 278 |
+
"mode": 493
|
| 279 |
+
},
|
| 280 |
+
"tests/source/tests/__init__.py": {
|
| 281 |
+
"mode": 420,
|
| 282 |
+
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
| 283 |
+
},
|
| 284 |
+
"tests/source/tests/data": {
|
| 285 |
+
"mode": 493
|
| 286 |
+
},
|
| 287 |
+
"tests/source/tests/data/test_data.csv": {
|
| 288 |
+
"mode": 420,
|
| 289 |
+
"sha256": "960ae8f515435de7bc7ea62a1fbc26613aa8f60c26c1d06a51f7835bdd1c33aa"
|
| 290 |
+
},
|
| 291 |
+
"tests/source/tests/test_asfreq_actual.py": {
|
| 292 |
+
"mode": 420,
|
| 293 |
+
"sha256": "6e69447b6bf443abdcef90536a1e07f8ce7bf39a5972d93ad2b62fa5e8f72fa6"
|
| 294 |
+
},
|
| 295 |
+
"tests/source/tests/test_core.py": {
|
| 296 |
+
"mode": 420,
|
| 297 |
+
"sha256": "60d39f112d2649b8dfeda1305471937d8794a91b6942bd06228f6e7ff1b8a93c"
|
| 298 |
+
},
|
| 299 |
+
"tests/source/tests/test_data.py": {
|
| 300 |
+
"mode": 420,
|
| 301 |
+
"sha256": "1081405878ad93b817f023047aab195d837bc52d61dba60d3eece0c6d0a85695"
|
| 302 |
+
},
|
| 303 |
+
"tests/source/tests/test_drawdown_details.py": {
|
| 304 |
+
"mode": 420,
|
| 305 |
+
"sha256": "88732bb99aca5fe32855fa6234d361d6ade753cce7e5c7fa5c6170861f54452f"
|
| 306 |
+
},
|
| 307 |
+
"tests/source/tests/test_information_ratio.py": {
|
| 308 |
+
"mode": 420,
|
| 309 |
+
"sha256": "ae425e412730386c5f6945b128f130f0a444584f5ce559690eddfcd8204e1247"
|
| 310 |
+
},
|
| 311 |
+
"tests/source/tests/test_max_drawdown.py": {
|
| 312 |
+
"mode": 420,
|
| 313 |
+
"sha256": "02eb82217c84035df9125dd65d0c260b359b4e79f1a0f85e8a3c661191e6af41"
|
| 314 |
+
},
|
| 315 |
+
"tests/source/tests/test_performance_ratios.py": {
|
| 316 |
+
"mode": 420,
|
| 317 |
+
"sha256": "99efcba42f4b26f6cd1cca23d49843a0cf8f6ef84c9929f9d26ae1f3b737b8f0"
|
| 318 |
+
},
|
| 319 |
+
"tests/source/tests/test_return_table.py": {
|
| 320 |
+
"mode": 420,
|
| 321 |
+
"sha256": "83bdbd24f6db023ce92f99c4f83e7463f5f09c1293003491b7e627cc76a43185"
|
| 322 |
+
},
|
| 323 |
+
"tests/source/tests/test_ulcer_performance_index.py": {
|
| 324 |
+
"mode": 420,
|
| 325 |
+
"sha256": "c2748a20892a8137357ddcf338486fe7bc837a50b7f42c7de58f32f39d41d02d"
|
| 326 |
+
},
|
| 327 |
+
"tests/source/tests/test_utils.py": {
|
| 328 |
+
"mode": 420,
|
| 329 |
+
"sha256": "c7d4ebf61c809ce0a48f7e8a86de2fd9359038d3a5787ee571f6b593a8dfd24b"
|
| 330 |
+
},
|
| 331 |
+
"tests/test.sh": {
|
| 332 |
+
"mode": 493,
|
| 333 |
+
"sha256": "1644cd9006ec3aee48440d528b5355a83fcc3afdce02758340e89dac0b62b951"
|
| 334 |
+
},
|
| 335 |
+
"tests/test_driver.py": {
|
| 336 |
+
"mode": 420,
|
| 337 |
+
"sha256": "c7275ff0b65dc379fc2d4b98cf5ef7fe0568470caf881c713c93f7c9ea6a1864"
|
| 338 |
+
},
|
| 339 |
+
"tests/test_results.py": {
|
| 340 |
+
"mode": 420,
|
| 341 |
+
"sha256": "325700f6f8e9e78003ea2483ed900f4921c34dc34aa83d24d2fc878f00fd5771"
|
| 342 |
+
}
|
| 343 |
+
}
|
provenance/tasksmith-584e4c2811de/native-proof.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bundle_hash": "sha256:4c854697b05b7c14877b46e74c0fe880e8133ac11852e45218c97acef9bd723c",
|
| 3 |
+
"quality_result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/9861adb998a9/candidates/584e4c2811de/quality/result.json",
|
| 4 |
+
"quality_sha256": "edb58fb9c196a22d0cfeb7a4413061b6fc08c3c672c4f5cfe978c3a715b82289",
|
| 5 |
+
"task": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/9861adb998a9/candidates/584e4c2811de/quality/revisions/r0/tasksmith-584e4c2811de",
|
| 6 |
+
"url": "https://github.com/pmorissette/ffn/pull/371"
|
| 7 |
+
}
|
provenance/tasksmith-584e4c2811de/quality-label.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bundle_hash": "sha256:4c854697b05b7c14877b46e74c0fe880e8133ac11852e45218c97acef9bd723c",
|
| 3 |
+
"original_task_path": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/9861adb998a9/candidates/584e4c2811de/quality/revisions/r0/tasksmith-584e4c2811de",
|
| 4 |
+
"quality_result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/9861adb998a9/candidates/584e4c2811de/quality/result.json",
|
| 5 |
+
"quality_result_sha256": "edb58fb9c196a22d0cfeb7a4413061b6fc08c3c672c4f5cfe978c3a715b82289",
|
| 6 |
+
"state": "completed",
|
| 7 |
+
"status": "verified",
|
| 8 |
+
"task_path": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/9861adb998a9/candidates/584e4c2811de/quality/labeled/edb58fb9c196a22d0cfeb7a4413061b6fc08c3c672c4f5cfe978c3a715b82289/tasksmith-584e4c2811de"
|
| 9 |
+
}
|
provenance/tasksmith-584e4c2811de/quality-result.json
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"accounted_usd": "1.109825",
|
| 3 |
+
"bundle_hash": "sha256:4c854697b05b7c14877b46e74c0fe880e8133ac11852e45218c97acef9bd723c",
|
| 4 |
+
"profile": "evidence-review-v2",
|
| 5 |
+
"reasons": [],
|
| 6 |
+
"repairs": 0,
|
| 7 |
+
"reserved_usd": "0",
|
| 8 |
+
"review": {
|
| 9 |
+
"issues": [],
|
| 10 |
+
"leakage": {
|
| 11 |
+
"evidence": [
|
| 12 |
+
{
|
| 13 |
+
"path": "environment/Dockerfile",
|
| 14 |
+
"quote": "COPY source /workspace\nRUN python -m pip install --no-cache-dir -e ."
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"path": "instruction.md",
|
| 18 |
+
"quote": "Submit your fix in Python source files under `ffn`. Preserve the other public behavior."
|
| 19 |
+
}
|
| 20 |
+
],
|
| 21 |
+
"explanation": "leakage: The learner environment (environment/Dockerfile) copies only environment/source (the unfixed ffn repo) into /workspace; it does not copy solution/ or tests/. instruction.md describes behaviors and an example but does not prescribe the implementation edit or exact internal code changes. solution/ and environment/source are protected.",
|
| 22 |
+
"score": 4,
|
| 23 |
+
"status": "pass"
|
| 24 |
+
},
|
| 25 |
+
"probes": [],
|
| 26 |
+
"read_requests": [],
|
| 27 |
+
"rollout": "legitimate_failure",
|
| 28 |
+
"summary": "The task asks the learner to fix `to_ulcer_performance_index` in ffn to use a CAGR-based annualized excess-return numerator. The instruction describes observable behaviors without prescribing the implementation. The entrypoint tests/test.sh execs grade.py, which runs the repository pytest tests; baseline fails 25 (the fail-to-pass set) and oracle passes all 52. Tests cover annualization, sampling-frequency independence, scalar/Series rf, undated-prices ValueError, insufficient prices, DataFrame per-column, gap forward-fill, and zero-price endpoints. Two discriminating probes are already scheduled/run: the per-period-mean wrong solution fails 25 tests (reward 0), and the simple-cagr-rewrite valid alternative passes all 52 (reward 1). The previous review is well-supported; probe_limit is now 0. The blind rollout (terminus-2) legitimately failed 2 tests due to a genuine solver bug (comparing `p0 == 0` on a Series in the DataFrame path), not a task defect.",
|
| 29 |
+
"task": {
|
| 30 |
+
"evidence": [
|
| 31 |
+
{
|
| 32 |
+
"path": "instruction.md",
|
| 33 |
+
"quote": "1. **Annualized return:** UPI = `(CAGR \u2212 annual_rf) \u00d7 100 / ulcer_index`. For dated prices the number of years is computed from elapsed calendar time; for undated prices it is `(n_prices \u2212 1) / nperiods`."
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"path": "instruction.md",
|
| 37 |
+
"quote": "5. **Undated prices (integer index):** `nperiods` must be a positive integer; omitting it raises `ValueError` mentioning \"nperiods\"."
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"path": "evidence/task-context.json",
|
| 41 |
+
"quote": "\"title\": \"fix: annualize the ulcer performance index numerator\""
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"path": "evidence/1-oracle/verifier/stdout.txt",
|
| 45 |
+
"quote": "52 passed, 48 warnings in 2.07s"
|
| 46 |
+
}
|
| 47 |
+
],
|
| 48 |
+
"explanation": "alignment: Every graded requirement traces to the public instruction: CAGR-minus-annual-rf numerator (behavior 1), sampling-frequency independence (behavior 2), scalar rf (3), Series rf with first-date exclusion (4), undated-prices ValueError mentioning nperiods (5), insufficient prices NaN (6), DataFrame per-column (7), NaN forward-fill (8). All graded assertions correspond to described behaviors.; feasibility: The request is coherent and corresponds to a real merged PR (pmorissette/ffn#371). Dependencies are preinstalled per the Dockerfile; the environment is offline. The reference solution exists and the oracle run passes all 52 tests.",
|
| 49 |
+
"score": 4,
|
| 50 |
+
"status": "pass"
|
| 51 |
+
},
|
| 52 |
+
"verifier": {
|
| 53 |
+
"evidence": [
|
| 54 |
+
{
|
| 55 |
+
"path": "evidence/task-context.json",
|
| 56 |
+
"quote": "annual_return = np.power(np.divide(column.iloc[-1], column.iloc[0]), 1 / years) - 1"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"path": "evidence/1-oracle/result.json",
|
| 60 |
+
"quote": "\"reward\": 1.0"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"path": "tests/source/tests/test_core.py",
|
| 64 |
+
"quote": " assert np.isclose(numerator_daily, numerator_monthly)\n assert np.isclose(numerator_daily, (daily.calc_cagr() - risk_free) * 100)"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"path": "evidence/2-probe/verifier/stdout.txt",
|
| 68 |
+
"quote": "25 failed, 27 passed, 21 warnings in 2.45s"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"path": "evidence/3-probe/result.json",
|
| 72 |
+
"quote": "\"name\": \"simple-cagr-rewrite\",\n \"kind\": \"valid_alternative\""
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"path": "evidence/3-probe/verifier/stdout.txt",
|
| 76 |
+
"quote": "52 passed, 48 warnings in 2.01s"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"path": "tests/test.sh",
|
| 80 |
+
"quote": "exec /usr/local/bin/python -B -I -S /tests/grade.py"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"path": "evidence/0-baseline/result.json",
|
| 84 |
+
"quote": "\"reward\": 0.0"
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"explanation": "reference: The reference core.py (copied by solve.sh) matches the PR's source diff: CAGR-based annual_excess_return, per-column DataFrame handling, Series rf reindexed with first-date exclusion, ValueError for undated prices, forward-fill. The oracle run passes all 52 tests including all 25 fail-to-pass.; coverage: Central behaviors are directly tested with discriminating assertions. Sampling-frequency independence asserts daily numerator == monthly numerator == CAGR-based excess; scalar/Series rf, zero-price endpoint, undated-prices ValueError(match='nperiods'), per-column DataFrame, and NaN handling are each covered. The wrong-solution probe (per-period mean) fails exactly 25 tests, and the blind rollout's DataFrame bug is caught, confirming the tests discriminate wrong behavior.; alternatives: Grading uses numerical assertions (np.isclose, pytest.approx, assert_almost_equal) on observable UPI values rather than internal representation. The simple-cagr-rewrite valid alternative installs a distinct implementation (apply-based per-column, different structure) and passes all 52 tests, demonstrating the verifier does not over-pin the reference's internal helper organization.; gaming: The entrypoint tests/test.sh execs grade.py which runs the repository pytest tests and parses structured results; reward follows test outcomes. Baseline earns reward 0 (25 failures) and oracle reward 1. A shortcut that does not compute the CAGR numerator fails the sampling-frequency and dimensional-consistency assertions. No reward-overwrite shortcut is evident.",
|
| 88 |
+
"score": 3,
|
| 89 |
+
"status": "pass"
|
| 90 |
+
}
|
| 91 |
+
},
|
| 92 |
+
"schema_version": "2",
|
| 93 |
+
"source_hash": "sha256:4c854697b05b7c14877b46e74c0fe880e8133ac11852e45218c97acef9bd723c",
|
| 94 |
+
"status": "usable",
|
| 95 |
+
"task_path": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/9861adb998a9/candidates/584e4c2811de/quality/revisions/r0/tasksmith-584e4c2811de",
|
| 96 |
+
"trials": [
|
| 97 |
+
{
|
| 98 |
+
"agent": "nop",
|
| 99 |
+
"agent_exit_code": null,
|
| 100 |
+
"binding": "receipt",
|
| 101 |
+
"bundle_hash": "sha256:4c854697b05b7c14877b46e74c0fe880e8133ac11852e45218c97acef9bd723c",
|
| 102 |
+
"exception_type": null,
|
| 103 |
+
"model": null,
|
| 104 |
+
"probe": null,
|
| 105 |
+
"probe_installed": null,
|
| 106 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/9861adb998a9/candidates/584e4c2811de/quality/trials/r0-baseline/tsbatch-195cc094e760-9861adb998a9-q-584e4c28-r0-baseline/tasksmith-584e4c2811de__Huvb29A/result.json",
|
| 107 |
+
"result_sha256": "65d280e444ef99dcd8c41611cb1c2483df0cb44e8674289d7a0222b881f0c6ef",
|
| 108 |
+
"reward": 0.0,
|
| 109 |
+
"role": "baseline"
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"agent": "oracle",
|
| 113 |
+
"agent_exit_code": null,
|
| 114 |
+
"binding": "receipt",
|
| 115 |
+
"bundle_hash": "sha256:4c854697b05b7c14877b46e74c0fe880e8133ac11852e45218c97acef9bd723c",
|
| 116 |
+
"exception_type": null,
|
| 117 |
+
"model": null,
|
| 118 |
+
"probe": null,
|
| 119 |
+
"probe_installed": null,
|
| 120 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/9861adb998a9/candidates/584e4c2811de/quality/trials/r0-oracle/tsbatch-195cc094e760-9861adb998a9-q-584e4c28-r0-oracle/tasksmith-584e4c2811de__ssBr2eo/result.json",
|
| 121 |
+
"result_sha256": "1ebd1dd590ecf1410563b8e9473a0105ff23af3545d271d327acb74e6ec772c9",
|
| 122 |
+
"reward": 1.0,
|
| 123 |
+
"role": "oracle"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"agent": "oracle",
|
| 127 |
+
"agent_exit_code": null,
|
| 128 |
+
"binding": "receipt",
|
| 129 |
+
"bundle_hash": "sha256:bdb26b372dbe567e1f5a0aae295b59cebf2a8638cfd1655c8653478bfa219258",
|
| 130 |
+
"exception_type": null,
|
| 131 |
+
"model": null,
|
| 132 |
+
"probe": {
|
| 133 |
+
"evidence": [
|
| 134 |
+
{
|
| 135 |
+
"path": "instruction.md",
|
| 136 |
+
"quote": "2. **Sampling-frequency independence:** Daily and monthly samples of the same price path produce the same UPI numerator (annualized excess return), so the two UPI values differ only by the Ulcer Index of each sample."
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"path": "evidence/task-context.json",
|
| 140 |
+
"quote": "- return np.divide(er.mean() * 100.0, prices.to_ulcer_index())"
|
| 141 |
+
}
|
| 142 |
+
],
|
| 143 |
+
"focus": "general",
|
| 144 |
+
"kind": "wrong_solution",
|
| 145 |
+
"name": "per-period-mean",
|
| 146 |
+
"rationale": "The core bug the PR fixes: using per-period mean excess return (which scales with sampling frequency) instead of the annualized CAGR-based numerator. Instruction behavior 2 requires sampling-frequency independence. This mutation reinstates the old per-period-mean numerator, which the sampling-frequency and dimensional-consistency tests must reject.",
|
| 147 |
+
"script": "#!/bin/sh\nset -eu\ncd /workspace\npython - <<'PY'\nimport re\np='ffn/core.py'\ns=open(p).read()\nassert 'def to_ulcer_performance_index' in s\n# Replace the whole function body with the old per-period-mean implementation.\nimport re\npat=re.compile(r'def to_ulcer_performance_index\\(prices, rf=0.0, nperiods=None\\):.*?\\n(?=\\ndef )', re.S)\nnew='''def to_ulcer_performance_index(prices, rf=0.0, nperiods=None):\n if nperiods is None:\n nperiods = infer_nperiods(prices)\n if isinstance(rf, _FLOATING_SCALAR_TYPES) and rf != 0 and nperiods is None:\n raise ValueError(\"nperiods must be set if rf != 0 and rf is not a price series\")\n prices = prices.ffill()\n er = prices.to_returns().to_excess_returns(rf, nperiods=nperiods)\n return np.divide(er.mean() * 100.0, prices.to_ulcer_index())\n\n\n'''\ns2,n=pat.subn(new,s)\nassert n==1, ('substitution count', n)\nopen(p,'w').write(s2)\nprint('mutated per-period-mean')\nPY\n"
|
| 148 |
+
},
|
| 149 |
+
"probe_installed": true,
|
| 150 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/9861adb998a9/candidates/584e4c2811de/quality/trials/r0-probe0/tsbatch-195cc094e760-9861adb998a9-q-584e4c28-r0-probe0/tasksmith-584e4c2811de__79WDt82/result.json",
|
| 151 |
+
"result_sha256": "023a25b55fd785471c4ad398d2846622005c54a2ef34f013ab6bf67faa6d850d",
|
| 152 |
+
"reward": 0.0,
|
| 153 |
+
"role": "probe"
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"agent": "oracle",
|
| 157 |
+
"agent_exit_code": null,
|
| 158 |
+
"binding": "receipt",
|
| 159 |
+
"bundle_hash": "sha256:723227765e7fddacf190b3563c3688b095721c7f5ae6d28f07be43f98f1148b4",
|
| 160 |
+
"exception_type": null,
|
| 161 |
+
"model": null,
|
| 162 |
+
"probe": {
|
| 163 |
+
"evidence": [
|
| 164 |
+
{
|
| 165 |
+
"path": "instruction.md",
|
| 166 |
+
"quote": "1. **Annualized return:** UPI = `(CAGR \u2212 annual_rf) \u00d7 100 / ulcer_index`. For dated prices the number of years is computed from elapsed calendar time; for undated prices it is `(n_prices \u2212 1) / nperiods`."
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"path": "tests/source/tests/test_ulcer_performance_index.py",
|
| 170 |
+
"quote": " expected = (1.1 ** (365.25 / 365) - 1 - float(risk_free)) * 100 / np.sqrt(100 / 3)"
|
| 171 |
+
}
|
| 172 |
+
],
|
| 173 |
+
"focus": "general",
|
| 174 |
+
"kind": "valid_alternative",
|
| 175 |
+
"name": "simple-cagr-rewrite",
|
| 176 |
+
"rationale": "A distinct implementation that preserves the public contract: compute the annualized excess return from CAGR using a different structure (explicit year_frac, divide endpoints, handle DataFrame via apply) rather than the reference's list-comprehension per-column helper. If grading only checks observable numerical behavior, this must pass. It exercises whether the verifier over-pins the reference's internal helper organization.",
|
| 177 |
+
"script": "#!/bin/sh\nset -eu\ncd /workspace\npython - <<'PY'\nimport re\np='ffn/core.py'\ns=open(p).read()\nassert 'def to_ulcer_performance_index' in s\npat=re.compile(r'def to_ulcer_performance_index\\(prices, rf=0.0, nperiods=None\\):.*?\\n(?=\\ndef )', re.S)\nnew='''def to_ulcer_performance_index(prices, rf=0.0, nperiods=None):\n prices = prices.ffill()\n\n def _one(col):\n col = col.dropna()\n if len(col) < 2:\n return np.nan\n if isinstance(col.index, (pd.DatetimeIndex, pd.TimedeltaIndex)):\n years = year_frac(col.index[0], col.index[-1])\n else:\n if nperiods is None or nperiods <= 0:\n raise ValueError(\"nperiods must be positive for prices without a datetime or timedelta index\")\n years = (len(col) - 1) / nperiods\n if years == 0:\n return np.nan\n ann_ret = (float(col.iloc[-1]) / float(col.iloc[0])) ** (1.0 / years) - 1.0\n if isinstance(rf, _FLOATING_SCALAR_TYPES):\n ann_rf = float(rf)\n else:\n rates = rf.reindex(prices.index).iloc[len(prices) - len(col) + 1:]\n if rates.isna().any():\n return np.nan\n growth = float(np.prod(1.0 + rates.to_numpy(dtype=float)))\n ann_rf = growth ** (1.0 / years) - 1.0\n return ann_ret - ann_rf\n\n if isinstance(prices, pd.DataFrame):\n excess = prices.apply(_one).astype(float)\n else:\n excess = _one(prices)\n return np.divide(excess * 100.0, prices.to_ulcer_index())\n\n\n'''\ns2,n=pat.subn(new,s)\nassert n==1, ('substitution count', n)\nopen(p,'w').write(s2)\nprint('installed simple-cagr-rewrite')\nPY\n"
|
| 178 |
+
},
|
| 179 |
+
"probe_installed": true,
|
| 180 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/9861adb998a9/candidates/584e4c2811de/quality/trials/r0-probe1/tsbatch-195cc094e760-9861adb998a9-q-584e4c28-r0-probe1/tasksmith-584e4c2811de__R3oFww6/result.json",
|
| 181 |
+
"result_sha256": "95f6d016a43867d320a575441564d0dd5e99ad989545d28f0eb50ce4e8a6035a",
|
| 182 |
+
"reward": 1.0,
|
| 183 |
+
"role": "probe"
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"agent": "terminus-2",
|
| 187 |
+
"agent_exit_code": null,
|
| 188 |
+
"binding": "receipt",
|
| 189 |
+
"bundle_hash": "sha256:4c854697b05b7c14877b46e74c0fe880e8133ac11852e45218c97acef9bd723c",
|
| 190 |
+
"exception_type": null,
|
| 191 |
+
"model": "anthropic/claude-sonnet-4-6",
|
| 192 |
+
"probe": null,
|
| 193 |
+
"probe_installed": null,
|
| 194 |
+
"result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/9861adb998a9/candidates/584e4c2811de/quality/trials/r0-rollout/tsbatch-195cc094e760-9861adb998a9-q-584e4c28-r0-rollout/tasksmith-584e4c2811de__V6ij7aP/result.json",
|
| 195 |
+
"result_sha256": "5fae4b1d8bad331bf73f66c7066fea7123936c5749b0c35e1595292453276ec6",
|
| 196 |
+
"reward": 0.0,
|
| 197 |
+
"role": "rollout"
|
| 198 |
+
}
|
| 199 |
+
]
|
| 200 |
+
}
|
provenance/tasksmith-584e4c2811de/source.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base": "abd3adb5b2b20dadb9608f665bb299065cbb4d75",
|
| 3 |
+
"body": "`to_ulcer_performance_index` divides the mean excess return per period by the Ulcer Index. The Ulcer Index doesn't scale with how often the prices are sampled, but the per-period mean does, so the same prices give very different UPIs at different frequencies.\n\nFor one year of prices sampled daily and monthly, with the same first and last dates:\n\n| | ulcer index | UPI on master | UPI with this change |\n|---|---|---|---|\n| daily | 4.212 | 0.0052 | 1.9789 |\n| monthly | 4.059 | 0.1943 | 2.0536 |\n\n```python\nimport numpy as np\nimport pandas as pd\nimport ffn\n\nidx = pd.date_range(\"2024-01-01\", \"2024-12-31\", freq=\"D\")\nt = np.arange(len(idx))\ndaily = pd.Series(100 * np.exp(0.08 * t / 365) * (1 - 0.15 * np.exp(-(((t - 150) / 30) ** 2))), index=idx)\nmonthly = daily[daily.index.is_month_start | (daily.index == daily.index[-1])]\n\nprint(daily.to_ulcer_performance_index(), monthly.to_ulcer_performance_index())\n```\n\nThe UPI uses an annualized return: that is Martin's definition, and the Wikipedia page linked in the docstring says annualized rates of return are used. This compounds the excess returns into an index that starts at 1 and takes its CAGR, the same way `calc_calmar_ratio` uses `calc_cagr`. What's left of the difference in the table comes from the ulcer index itself being sampled at different points.\n\nTwo tests from #308 pinned the per-period mean (`test_to_ulcer_performance_index_matches_ulcer_index_scale` and `test_to_ulcer_performance_index_is_dimensionally_consistent`), so they now check the annualized return instead, and the expected UPI in `test_numpy_floating_risk_free_rates_match_python_float` is recomputed the same way. The new `test_to_ulcer_performance_index_does_not_depend_on_sampling_frequency` fails on master. All 560 tests pass and `ruff check ffn` is clean.\n\nIf you'd rather annualize the arithmetic mean (mean \u00d7 nperiods, like `calc_sharpe`) I can switch it, but that still moves a little with the sampling frequency while the CAGR doesn't.\n",
|
| 4 |
+
"changed_files": [
|
| 5 |
+
{
|
| 6 |
+
"additions": 39,
|
| 7 |
+
"deletions": 13,
|
| 8 |
+
"filename": "ffn/core.py",
|
| 9 |
+
"status": "modified"
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"additions": 28,
|
| 13 |
+
"deletions": 10,
|
| 14 |
+
"filename": "tests/test_core.py",
|
| 15 |
+
"status": "modified"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"additions": 92,
|
| 19 |
+
"deletions": 0,
|
| 20 |
+
"filename": "tests/test_ulcer_performance_index.py",
|
| 21 |
+
"status": "added"
|
| 22 |
+
}
|
| 23 |
+
],
|
| 24 |
+
"created_at": "2026-09-26T12:01:31Z",
|
| 25 |
+
"full_diff": "diff --git a/ffn/core.py b/ffn/core.py\nindex 8f4a16e7..8120979b 100644\n--- a/ffn/core.py\n+++ b/ffn/core.py\n@@ -2762,33 +2762,59 @@ def to_ulcer_performance_index(prices, rf=0.0, nperiods=None):\n \"\"\"\n Converts from prices -> `ulcer performance index <https://www.investopedia.com/terms/u/ulcerindex.asp>`_.\n \n- See https://en.wikipedia.org/wiki/Ulcer_index\n+ See https://www.tangotools.com/ui/ui.htm\n \n- Method ignores all gaps of NaN's in the price series.\n+ The numerator is the investment's compound annual return minus the annual\n+ risk-free return. The Ulcer Index can still vary with sampling frequency.\n+ Price gaps are forward-filled. Fewer than two prices, zero elapsed time,\n+ or missing risk-free returns within the holding period produce NaN.\n \n Args:\n * prices (Series, DataFrame): Prices\n- * rf (float, np.floating, Series): `Risk-free rate of return <https://www.investopedia.com/terms/r/risk-freerate.asp>`_. Assumed to be expressed in\n- yearly (annualized) terms or return series\n- * nperiods (int): Used to deannualize rf if rf is provided (non-zero)\n+ * rf (float, np.floating, Series): Annual `risk-free rate <https://www.investopedia.com/terms/r/risk-freerate.asp>`_ when scalar,\n+ or per-period return Series aligned to the price index.\n+ * nperiods (int): Positive periods per year, required for prices without\n+ a datetime or timedelta index. Dated prices use elapsed calendar time.\n \n \"\"\"\n- if nperiods is None:\n- nperiods = infer_nperiods(prices)\n-\n- if isinstance(rf, _FLOATING_SCALAR_TYPES) and rf != 0 and nperiods is None:\n- raise ValueError(\"nperiods must be set if rf != 0 and rf is not a price series\")\n-\n # to_ulcer_index carries the last known price across a gap, so fill here\n # too. Otherwise the numerator is a return over the raw series while the\n # denominator is an Ulcer Index over the filled one.\n prices = prices.ffill()\n \n- er = prices.to_returns().to_excess_returns(rf, nperiods=nperiods)\n+ def annual_excess_return(column):\n+ column = column.dropna()\n+ if len(column) < 2:\n+ return np.nan\n+ if isinstance(column.index, (pd.DatetimeIndex, pd.TimedeltaIndex)):\n+ years = year_frac(column.index[0], column.index[-1])\n+ else:\n+ if nperiods is None or nperiods <= 0:\n+ raise ValueError(\"nperiods must be positive for prices without a datetime or timedelta index\")\n+ years = (len(column) - 1) / nperiods\n+ if years == 0:\n+ return np.nan\n+\n+ annual_return = np.power(np.divide(column.iloc[-1], column.iloc[0]), 1 / years) - 1\n+ if isinstance(rf, _FLOATING_SCALAR_TYPES):\n+ annual_rf = float(rf)\n+ else:\n+ # The first price anchors the period; its preceding return is excluded.\n+ rates = rf.reindex(prices.index).iloc[len(prices) - len(column) + 1 :]\n+ if rates.isna().any():\n+ return np.nan\n+ growth = np.prod(1.0 + rates.to_numpy(dtype=float))\n+ annual_rf = np.power(growth, 1 / years) - 1\n+ return annual_return - annual_rf\n+\n+ if isinstance(prices, pd.DataFrame):\n+ annual_excess = pd.Series([annual_excess_return(prices.iloc[:, i]) for i in range(prices.shape[1])], index=prices.columns, dtype=float)\n+ else:\n+ annual_excess = annual_excess_return(prices)\n \n # to_ulcer_index is expressed in percentage points, so put the excess\n # return on the same scale before dividing\n- return np.divide(er.mean() * 100.0, prices.to_ulcer_index())\n+ return np.divide(annual_excess * 100.0, prices.to_ulcer_index())\n \n \n def calc_expected_max_sharpe(n_trials, sr_std):\ndiff --git a/tests/test_core.py b/tests/test_core.py\nindex b45724f5..5213f1d1 100644\n--- a/tests/test_core.py\n+++ b/tests/test_core.py\n@@ -1492,12 +1492,12 @@ def test_to_ulcer_index_unchanged_without_gaps():\n \n def test_to_ulcer_performance_index_matches_ulcer_index_scale():\n # The ulcer index is expressed in percentage points, so the excess return\n- # must be too. Mean excess return here is (-0.1 + 1/9) / 2 = 0.005555...,\n- # i.e. 0.5555...% against an ulcer index of sqrt(100 / 3).\n- idx = pd.date_range(\"2026-01-01\", periods=3, freq=\"D\")\n- prices = pd.Series([100.0, 90.0, 100.0], index=idx)\n+ # must be too. Prices rise 10% over 365 days, an annualized return of\n+ # 1.1 ** (365.25 / 365) - 1, against an ulcer index of sqrt(100 / 3).\n+ idx = pd.DatetimeIndex([\"2025-01-01\", \"2025-07-02\", \"2026-01-01\"])\n+ prices = pd.Series([100.0, 90.0, 110.0], index=idx)\n \n- expected = (0.5555555555555556) / np.sqrt(100 / 3)\n+ expected = (1.1 ** (365.25 / 365) - 1) * 100 / np.sqrt(100 / 3)\n \n assert np.isclose(prices.to_ulcer_performance_index(), expected)\n \n@@ -1521,9 +1521,27 @@ def test_to_ulcer_performance_index_is_dimensionally_consistent():\n prices = pd.Series([100.0, 110, 105, 120, 90, 95, 130, 125], index=idx)\n \n upi = prices.to_ulcer_performance_index()\n- mean_excess_pct = prices.to_returns().mean() * 100\n+ annualized_return_pct = prices.calc_cagr() * 100\n+\n+ assert np.isclose(upi * prices.to_ulcer_index(), annualized_return_pct)\n+\n+\n+@mark.parametrize(\"risk_free\", [0.0, 0.05])\n+def test_to_ulcer_performance_index_does_not_depend_on_sampling_frequency(risk_free):\n+ # The same year of prices sampled daily and monthly, with the same first\n+ # and last dates. The Ulcer Index barely moves, and the annualized excess\n+ # return is identical. A per-period mean return in the numerator made the\n+ # daily UPI about 20x smaller than the monthly one.\n+ idx = pd.date_range(\"2024-01-01\", \"2024-12-31\", freq=\"D\")\n+ t = np.arange(len(idx))\n+ daily = pd.Series(100 * np.exp(0.08 * t / 365) * (1 - 0.15 * np.exp(-(((t - 150) / 30) ** 2))), index=idx)\n+ monthly = daily[daily.index.is_month_start | (daily.index == daily.index[-1])]\n+\n+ numerator_daily = daily.to_ulcer_performance_index(rf=risk_free, nperiods=365) * daily.to_ulcer_index()\n+ numerator_monthly = monthly.to_ulcer_performance_index(rf=risk_free, nperiods=12) * monthly.to_ulcer_index()\n \n- assert np.isclose(upi * prices.to_ulcer_index(), mean_excess_pct)\n+ assert np.isclose(numerator_daily, numerator_monthly)\n+ assert np.isclose(numerator_daily, (daily.calc_cagr() - risk_free) * 100)\n \n \n def _diff_series(n, mean=0.001, std=0.01):\n@@ -2148,11 +2166,11 @@ def test_numpy_floating_risk_free_rates_match_python_float():\n else:\n assert actual == expected_sortino\n \n- price_returns = prices.pct_change(fill_method=None)\n- expected_excess = price_returns - period_rate\n drawdowns = prices / prices.cummax() - 1.0\n ulcer_index = ((drawdowns * 100.0) ** 2).mean() ** 0.5\n- expected_upi = expected_excess.mean() * 100.0 / ulcer_index\n+ years = (prices.index[-1] - prices.index[0]).total_seconds() / 31557600\n+ growth = prices.iloc[-1] / prices.iloc[0]\n+ expected_upi = (growth ** (1.0 / years) - 1.0 - float(risk_free)) * 100.0 / ulcer_index\n aae(\n ffn.to_ulcer_performance_index(prices, rf=risk_free, nperiods=nperiods),\n expected_upi,\ndiff --git a/tests/test_ulcer_performance_index.py b/tests/test_ulcer_performance_index.py\nnew file mode 100644\nindex 00000000..6dfa727c\n--- /dev/null\n+++ b/tests/test_ulcer_performance_index.py\n@@ -0,0 +1,92 @@\n+import numpy as np\n+import pandas as pd\n+import pytest\n+\n+import ffn\n+\n+\n+@pytest.fixture(params=[False, True], ids=[\"package\", \"pandas\"])\n+def calculate(request):\n+ if request.param:\n+ return lambda prices, **kwargs: prices.to_ulcer_performance_index(**kwargs)\n+ return ffn.to_ulcer_performance_index\n+\n+\n+@pytest.mark.parametrize(\"risk_free\", [0.05, 0.1, np.float32(0.1)])\n+def test_subtracts_annual_risk_free_return(calculate, risk_free):\n+ dates = pd.to_datetime([\"2025-01-01\", \"2025-07-02\", \"2026-01-01\"])\n+ prices = pd.Series([100.0, 90.0, 110.0], index=dates)\n+ expected = (1.1 ** (365.25 / 365) - 1 - float(risk_free)) * 100 / np.sqrt(100 / 3)\n+\n+ assert calculate(prices, rf=risk_free, nperiods=2) == pytest.approx(expected)\n+ assert calculate(prices, rf=risk_free) == pytest.approx(expected)\n+\n+\n+def test_annualizes_risk_free_series_separately(calculate):\n+ dates = pd.to_datetime([\"2025-01-01\", \"2025-07-02\", \"2026-01-01\"])\n+ prices = pd.Series([100.0, 90.0, 110.0], index=dates)\n+ # The return at the first price precedes the measured holding period.\n+ risk_free = pd.Series([0.5, 0.02, 0.03], index=dates, dtype=\"Float64\")\n+ original = risk_free.copy()\n+ expected = (1.1 ** (365.25 / 365) - (1.02 * 1.03) ** (365.25 / 365)) * 100 / np.sqrt(100 / 3)\n+\n+ assert calculate(prices, rf=risk_free) == pytest.approx(expected)\n+ pd.testing.assert_series_equal(risk_free, original)\n+\n+\n+@pytest.mark.parametrize(\"missing\", [\"all\", \"partial\"])\n+def test_missing_risk_free_returns_remain_unavailable(calculate, missing):\n+ dates = pd.to_datetime([\"2025-01-01\", \"2025-07-02\", \"2026-01-01\"])\n+ prices = pd.Series([100.0, 90.0, 110.0], index=dates)\n+ risk_free = pd.Series([np.nan, 0.02, np.nan], index=dates)\n+ if missing == \"all\":\n+ risk_free.index = risk_free.index - pd.DateOffset(years=1)\n+\n+ assert pd.isna(calculate(prices, rf=risk_free))\n+\n+\n+@pytest.mark.parametrize(\"values\", [[], [100.0], [np.nan], [np.nan, np.nan]])\n+@pytest.mark.parametrize(\"as_frame\", [False, True])\n+def test_insufficient_prices_remain_unavailable(calculate, values, as_frame):\n+ prices = pd.Series(values, index=pd.date_range(\"2025\", periods=len(values)), dtype=float, name=\"asset\")\n+ if as_frame:\n+ prices = prices.to_frame()\n+\n+ result = calculate(prices)\n+\n+ if as_frame:\n+ pd.testing.assert_series_equal(result, pd.Series([np.nan], index=prices.columns))\n+ else:\n+ assert pd.isna(result)\n+\n+\n+@pytest.mark.parametrize(\"periods\", [2, 12])\n+def test_explicit_periods_support_undated_prices(calculate, periods):\n+ prices = pd.Series([100.0, 90.0, 110.0])\n+ expected = (1.1 ** (periods / 2) - 1 - 0.05) * 100 / np.sqrt(100 / 3)\n+\n+ assert calculate(prices, rf=0.05, nperiods=periods) == pytest.approx(expected)\n+\n+\n+def test_undated_prices_require_periods(calculate):\n+ with pytest.raises(ValueError, match=\"nperiods\"):\n+ calculate(pd.Series([100.0, 90.0, 110.0]))\n+\n+\n+def test_zero_price_does_not_corrupt_endpoint_growth(calculate):\n+ prices = pd.Series([100.0, 0.0, 110.0], index=pd.to_datetime([\"2025-01-01\", \"2025-07-02\", \"2026-01-01\"]))\n+ expected = (1.1 ** (365.25 / 365) - 1) * 100 / np.sqrt(10000 / 3)\n+\n+ assert calculate(prices) == pytest.approx(expected)\n+\n+\n+def test_ragged_columns_use_their_own_risk_free_window(calculate):\n+ dates = pd.to_datetime([\"2023-01-01\", \"2024-01-01\", \"2025-01-01\", \"2026-01-01\"])\n+ prices = pd.DataFrame([[100.0, np.nan], [90.0, 100.0], [105.0, 90.0], [110.0, 120.0]], index=dates, columns=[\"asset\", \"asset\"])\n+ risk_free = pd.Series([np.nan, np.nan, 0.02, 0.03], index=dates)\n+ original = prices.copy()\n+ years = (dates[-1] - dates[1]).total_seconds() / 31557600\n+ expected = pd.Series([np.nan, (1.2 ** (1 / years) - (1.02 * 1.03) ** (1 / years)) * 100 / np.sqrt(100 / 3)], index=prices.columns)\n+\n+ pd.testing.assert_series_equal(calculate(prices, rf=risk_free), expected)\n+ pd.testing.assert_frame_equal(prices, original)\n",
|
| 26 |
+
"head": "b092d2f988cf481ba1926748bec2dd9c858a27c5",
|
| 27 |
+
"id": "584e4c2811de",
|
| 28 |
+
"merged_at": "2026-09-26T17:08:14Z",
|
| 29 |
+
"repo": "https://github.com/pmorissette/ffn",
|
| 30 |
+
"source_diff": "diff --git a/ffn/core.py b/ffn/core.py\nindex 8f4a16e7..8120979b 100644\n--- a/ffn/core.py\n+++ b/ffn/core.py\n@@ -2762,33 +2762,59 @@ def to_ulcer_performance_index(prices, rf=0.0, nperiods=None):\n \"\"\"\n Converts from prices -> `ulcer performance index <https://www.investopedia.com/terms/u/ulcerindex.asp>`_.\n \n- See https://en.wikipedia.org/wiki/Ulcer_index\n+ See https://www.tangotools.com/ui/ui.htm\n \n- Method ignores all gaps of NaN's in the price series.\n+ The numerator is the investment's compound annual return minus the annual\n+ risk-free return. The Ulcer Index can still vary with sampling frequency.\n+ Price gaps are forward-filled. Fewer than two prices, zero elapsed time,\n+ or missing risk-free returns within the holding period produce NaN.\n \n Args:\n * prices (Series, DataFrame): Prices\n- * rf (float, np.floating, Series): `Risk-free rate of return <https://www.investopedia.com/terms/r/risk-freerate.asp>`_. Assumed to be expressed in\n- yearly (annualized) terms or return series\n- * nperiods (int): Used to deannualize rf if rf is provided (non-zero)\n+ * rf (float, np.floating, Series): Annual `risk-free rate <https://www.investopedia.com/terms/r/risk-freerate.asp>`_ when scalar,\n+ or per-period return Series aligned to the price index.\n+ * nperiods (int): Positive periods per year, required for prices without\n+ a datetime or timedelta index. Dated prices use elapsed calendar time.\n \n \"\"\"\n- if nperiods is None:\n- nperiods = infer_nperiods(prices)\n-\n- if isinstance(rf, _FLOATING_SCALAR_TYPES) and rf != 0 and nperiods is None:\n- raise ValueError(\"nperiods must be set if rf != 0 and rf is not a price series\")\n-\n # to_ulcer_index carries the last known price across a gap, so fill here\n # too. Otherwise the numerator is a return over the raw series while the\n # denominator is an Ulcer Index over the filled one.\n prices = prices.ffill()\n \n- er = prices.to_returns().to_excess_returns(rf, nperiods=nperiods)\n+ def annual_excess_return(column):\n+ column = column.dropna()\n+ if len(column) < 2:\n+ return np.nan\n+ if isinstance(column.index, (pd.DatetimeIndex, pd.TimedeltaIndex)):\n+ years = year_frac(column.index[0], column.index[-1])\n+ else:\n+ if nperiods is None or nperiods <= 0:\n+ raise ValueError(\"nperiods must be positive for prices without a datetime or timedelta index\")\n+ years = (len(column) - 1) / nperiods\n+ if years == 0:\n+ return np.nan\n+\n+ annual_return = np.power(np.divide(column.iloc[-1], column.iloc[0]), 1 / years) - 1\n+ if isinstance(rf, _FLOATING_SCALAR_TYPES):\n+ annual_rf = float(rf)\n+ else:\n+ # The first price anchors the period; its preceding return is excluded.\n+ rates = rf.reindex(prices.index).iloc[len(prices) - len(column) + 1 :]\n+ if rates.isna().any():\n+ return np.nan\n+ growth = np.prod(1.0 + rates.to_numpy(dtype=float))\n+ annual_rf = np.power(growth, 1 / years) - 1\n+ return annual_return - annual_rf\n+\n+ if isinstance(prices, pd.DataFrame):\n+ annual_excess = pd.Series([annual_excess_return(prices.iloc[:, i]) for i in range(prices.shape[1])], index=prices.columns, dtype=float)\n+ else:\n+ annual_excess = annual_excess_return(prices)\n \n # to_ulcer_index is expressed in percentage points, so put the excess\n # return on the same scale before dividing\n- return np.divide(er.mean() * 100.0, prices.to_ulcer_index())\n+ return np.divide(annual_excess * 100.0, prices.to_ulcer_index())\n \n \n def calc_expected_max_sharpe(n_trials, sr_std):\n",
|
| 31 |
+
"source_files": [
|
| 32 |
+
"ffn/core.py"
|
| 33 |
+
],
|
| 34 |
+
"source_operations": [
|
| 35 |
+
{
|
| 36 |
+
"operation": "modified",
|
| 37 |
+
"path": "ffn/core.py"
|
| 38 |
+
}
|
| 39 |
+
],
|
| 40 |
+
"title": "fix: annualize the ulcer performance index numerator",
|
| 41 |
+
"url": "https://github.com/pmorissette/ffn/pull/371",
|
| 42 |
+
"workspace_strategy": "head_minus_source_patch"
|
| 43 |
+
}
|
provenance/tasksmith-74f059424102/candidate-intake.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"capability_tags": [
|
| 3 |
+
"pptx-io"
|
| 4 |
+
],
|
| 5 |
+
"expected": {
|
| 6 |
+
"base": "d5c95be6d51dbf1db6d99951bdb28efb86054de7",
|
| 7 |
+
"full_diff_sha256": "7a08bf476c1689d9d03dd102e2132145ef2dd24f2531132bb466207be5376c4e",
|
| 8 |
+
"head": "64fb8b83494b3dee9c4c0049c32ca5d98fc05983",
|
| 9 |
+
"id": "74f059424102"
|
| 10 |
+
},
|
| 11 |
+
"license": {
|
| 12 |
+
"path": "LICENSE",
|
| 13 |
+
"sha256": "7652f271e46d0d533e9dc463f3b5fcbdcacf4d6a9c8d6b554d15efd0f37f6132",
|
| 14 |
+
"spdx": "MIT"
|
| 15 |
+
},
|
| 16 |
+
"url": "https://github.com/scanny/python-pptx/pull/994"
|
| 17 |
+
}
|
provenance/tasksmith-74f059424102/files.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
provenance/tasksmith-74f059424102/native-proof.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bundle_hash": "sha256:745d74181f2aaf6681b26aaf84fa6ac062ab3e52632d9b0e1b57601820922e2c",
|
| 3 |
+
"quality_result": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/f6c0c34e92f7/candidates/74f059424102/quality/result.json",
|
| 4 |
+
"quality_sha256": "4e2f1eb090a7cdf732e311c6175662c4e0ea1fa3563ea324286e066bc98230a0",
|
| 5 |
+
"task": "/Users/ben/.t3/projects/harness-adapters-data/runs/apex-agents-gap/phase2/batch/candidates/f6c0c34e92f7/candidates/74f059424102/quality/revisions/r0/tasksmith-74f059424102",
|
| 6 |
+
"url": "https://github.com/scanny/python-pptx/pull/994"
|
| 7 |
+
}
|