verifiers 0.4.2.dev9__py3-none-any.whl → 0.4.2.dev10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
verifiers/v1/task.py CHANGED
@@ -171,11 +171,14 @@ class Task(Generic[DataT, StateT, ConfigT]):
171
171
  def key(self) -> str:
172
172
  """Stable task identity, recorded on the trace as ``task.key``.
173
173
 
174
- The content hash is the default. Override this when the task data contains
175
- run-local fields such as an autogenerated ``idx`` and the underlying dataset
176
- provides a durable identifier. Keys must be unique within a taskset.
174
+ The default hashes the task data without the taskset-assigned ``idx``, so
175
+ inserting, removing or reordering other rows preserves this task's key.
176
+ Override this for identity independent of other data changes. Keys must be
177
+ unique within a taskset; use ``TaskData.id`` to distinguish identical rows.
177
178
  """
178
- return self.hash
179
+ return task_key(
180
+ self.data.model_dump(mode="json", exclude={"idx"}, exclude_none=True)
181
+ )
179
182
 
180
183
  def with_data(self, **update: Any) -> Self:
181
184
  """A shallow copy whose data has `update` applied."""
verifiers/v1/trace.py CHANGED
@@ -305,7 +305,7 @@ class TraceTask(BaseModel, Generic[DataT]):
305
305
  data: DataT
306
306
  """The (immutable) row being solved."""
307
307
  key: str | None = None
308
- """Stable task identity (``Task.key``); defaults to the content hash unless overridden."""
308
+ """Stable task identity (``Task.key``); defaults to a hash of data excluding ``idx``."""
309
309
  hash: str | None = None
310
310
  """Content hash of ``data`` (``Task.hash``)."""
311
311
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: verifiers
3
- Version: 0.4.2.dev9
3
+ Version: 0.4.2.dev10
4
4
  Summary: Verifiers: Environments for LLM Reinforcement Learning
5
5
  Project-URL: Homepage, https://github.com/primeintellect-ai/verifiers
6
6
  Project-URL: Documentation, https://github.com/primeintellect-ai/verifiers
@@ -12,9 +12,9 @@ verifiers/v1/rollout.py,sha256=5EQO1XVEpw1s6W0o2pnl3h--3sLyUDZPKUFEaue0Q9g,46309
12
12
  verifiers/v1/semantic.py,sha256=nqKPPUoPL5Oh8Es_XjtcbDiQiIMKTYayXEm-EPB-jAE,5129
13
13
  verifiers/v1/session.py,sha256=fuw4eEVxTw_KlkSspxbgejEhmSXJYjX7bUquq2LJ_CU,29640
14
14
  verifiers/v1/state.py,sha256=EckF2bWp-vV4b1jYJ9sLI5xrfGuI5spIgYYwW926toI,595
15
- verifiers/v1/task.py,sha256=gr-Szu0744nn_A0fQUGxm5MwnwqgtOQhuGktRCJhFF8,15681
15
+ verifiers/v1/task.py,sha256=ZcXmoSLXGYtqADtChqOMYE0PDRHEmq2A_WMSI1kBqec,15857
16
16
  verifiers/v1/taskset.py,sha256=LE_3ogL7itU2Amk-N20cHkZ7Ev6MznJ0HpC8B1xb4w0,9482
17
- verifiers/v1/trace.py,sha256=jFYs6CYfBRHJG_ubYurMEgK5rrlMzIVSe3alB9GjyCI,40948
17
+ verifiers/v1/trace.py,sha256=OXnX6KjsLATEb1Ds4L8-UCOyUhzrk1dP618yDXORt-8,40946
18
18
  verifiers/v1/types.py,sha256=mEy4C9Hl3fK9091kxqalqbVZNRnSI5A0npRHchpsFsM,14800
19
19
  verifiers/v1/acp/__init__.py,sha256=jY7nLAbB6uzSl-f6YCz05zBH5tarBLErNTkvV0vlaho,16613
20
20
  verifiers/v1/acp/runner.py,sha256=sFsg0UgWeDjpjihejUidIV2yTapVj1Ap0cDTaEktjkI,15484
@@ -189,8 +189,8 @@ verifiers/v1/utils/scope.py,sha256=ivYGJ8GhzyRKbP4L48VsUDWFxpmFsjeaE_7KYBKJ_c0,8
189
189
  verifiers/v1/utils/score.py,sha256=493yJVMw8teCu9JxapxMFPFzI0hNUqdo0Y2nGW4kckk,6200
190
190
  verifiers/v1/utils/trace_store.py,sha256=Qo9qvsJAl8PoRUavjQAfUB2VNxmUtYQtU2ejLKPzY9c,3382
191
191
  verifiers/v1/utils/version.py,sha256=-obEo_-l9-D8FLef4hYxncOe-uJpxrM1g2Hig_37Sgs,1607
192
- verifiers-0.4.2.dev9.dist-info/METADATA,sha256=jNtXl7B1q9x20CGu0ariilWuqJTEHhB9qD2akHRIEZ4,5136
193
- verifiers-0.4.2.dev9.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
194
- verifiers-0.4.2.dev9.dist-info/entry_points.txt,sha256=3M8Wr0w1cUKiB-fJ6YHB6eK5WuKYg-Y3OC4wCuUje_c,174
195
- verifiers-0.4.2.dev9.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
196
- verifiers-0.4.2.dev9.dist-info/RECORD,,
192
+ verifiers-0.4.2.dev10.dist-info/METADATA,sha256=VgAlNPBH3cwNf-ZB8nGTmxEs4BNiTOwTIfhe0s9G2PQ,5137
193
+ verifiers-0.4.2.dev10.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
194
+ verifiers-0.4.2.dev10.dist-info/entry_points.txt,sha256=3M8Wr0w1cUKiB-fJ6YHB6eK5WuKYg-Y3OC4wCuUje_c,174
195
+ verifiers-0.4.2.dev10.dist-info/licenses/LICENSE,sha256=v0RrUsdV3IDoZhrRce297IXS3xMHNJ-_LdLpFAUWb9k,1072
196
+ verifiers-0.4.2.dev10.dist-info/RECORD,,