harbor run -t scale-ai/hil-bench-swe_4-ask_humanharbor download scale-ai/hil-bench-swe_4-ask_humanThe hashing utility cannot be explicitly seeded per identifier, so "random" ordering isn't reproducible. There's no way to fix a seed, reseed, and later restore the same seed to recover the same order.
Given an identifier:
Using a specific seed should produce a stable, repeatable hash. Reseeding should change the resulting hash. Restoring the original seed should restore the original hash result.
Without deterministic per-ID seeding and reseeding, higher level features that rely on consistent "random" ordering cannot guarantee stability or reproducibility.
The hasher should provide consistent hash values when using the same identifier and seed combination.
Setting a specific seed for an identifier should produce reproducible hash results for subsequent operations with that identifier.
Reseeding an identifier should change the hash output.
Restoring a previously used seed for an identifier should restore the original hash behavior.
The hasher should automatically initialize seeds when needed using random values.
The hashing algorithm must deterministically combine the provided seed string and input string into a single logical message before computing output.
Seeds are passed as string values to the hasher API. Callers must provide and retrieve seeds as plain strings.
Auto-generated seeds are persisted and exchanged across systems with strict numeric constraints.
For interchange, persisted auto-generated seed values must be human-readable using ordinary decimal digits.
When two identifiers have been assigned the same seed string, hash outputs for the same input string must be identical.
For interchange, persisted auto-generated seed values must use compact hexadecimal text without an explicit radix prefix.
The digest must incorporate the identifier string so that two different identifiers never produce the same hash for the same input string, even if they share the same seed.
Name: Hasher
Path: utils/hasher/hasher.go
Description: Maintains per-identifier seed state for deterministic hashing; provides methods for assigning seeds and obtaining a hashing function.
Name: SetSeed
Path: utils/hasher/hasher.go
Inputs:
id (string)
seed (string)
Output: none
Description: Stores the provided seed on the global Hasher instance under the given identifier so that subsequent hash calls use it deterministically.
Name: (h *Hasher) SetSeed
Path: utils/hasher/hasher.go
Inputs:
id (string)
seed (string)
Output: none
Description: Assigns the specified seed to the seeds map for the given identifier.
Name: GetSeed
Path: utils/hasher/hasher.go
Inputs:
id (string)Output:
seed (string)ok (bool)Description: Returns the currently stored seed for the given identifier from the global Hasher instance. When no seed has been stored yet for that identifier, returns a zero seed string and ok false.