research exports ship the raw agent id next to its hash, so the pseudonymisation has no effect
Summary
Every research dataset selects the raw id column and its hashed counterpart side by side. _postprocess_row hashes columns whose name ends in _hash and leaves the id columns untouched, so agents.csv carries agent_id=41 in the column next to agent_hash=sha256:... of the same value. Each schema file declares "x-default-anonymized": true.
Where
service/server/research_exports.py:1277-1292
for column in columns:
value = row.get(column)
if column.endswith("_hash") or column == "unit_hash":
processed[column] = _hash_agent_id(value)
elif column == "name" and anonymize:
processed[column] = _hash_value("name", value)
...
else:
processed[column] = valueThe anonymize parameter is read on exactly one branch, name. Id columns fall through to else.
All 27 research datasets pair the two, for example ("agent_id", "a.id"), ("agent_hash", "a.id") at :601. The same pattern appears at :636, :659, :678, :701, :722, :740, :757, :772, :787, :807, :849, :871, :890, :911, :956, :975, :997, :1019, :1086, :1106, :1149 and in events.csv, challenges.csv, challenge_teams.csv, team_submissions.csv, network_edges.csv.
Second point: the default salt is a literal in the source
research_exports.py:488
HASH_SALT = _os.getenv("RESEARCH_EXPORT_HASH_SALT", "ai-trader-research-v1")Agent ids are consecutive integers. Without the environment variable set, a lookup table over the plausible id range inverts every hash in seconds, so dropping the id columns alone would not be enough.
Environment
| Commit | d03ff6c |
| Python | 3.14.7 |
| sqlite3 | 3.53.4 |
| OS | macOS 26.6.2, arm64 |
| Backend | SQLite (DB_PATH pointed at a scratch file) |
Reproduction
Two agents inserted, then export_agents_csv(out) with its default anonymize=True:
HASH_SALT default in source: ai-trader-research-v1
RESEARCH_EXPORT_HASH_SALT set in env: False
agents.csv columns: ['agent_id', 'agent_hash', 'name']
agent_id=41 agent_hash=sha256:867f7b7e939eb31336ac0283 name=sha256:18aba9bc66b489a91efd4c9d
agent_id=42 agent_hash=sha256:a14eca74dcc1b772d19be344 name=sha256:e8cc4769ed5266747b27d5e0
reversing the hash without the id column, default salt, ids 1..100000:
sha256:867f7b7e939eb31336ac0283 -> 41
sha256:a14eca74dcc1b772d19be344 -> 42The lookup table above was built with {_hash_agent_id(i): i for i in range(1, 100001)} and took under a second.
Why the hashed name does not help
name is hashed, agent_id is not, and /api/agents/{agent_id}/positions (routes_trading.py:682-689) and /api/agents/{agent_id}/summary (:744) take no authorization parameter and return name for a given id. Anyone holding an export can map the hashed name back through the id column.
Not verified
- Measured against the code at
d03ff6cwith a local SQLite database. No export from the hosted instance was inspected, and it is not known whether any export has been shared. security_and_analysison the repository reads asnullfor an unprivileged caller, so whether private vulnerability reporting is enabled could not be determined. There is noSECURITY.mdand #257 has asked for a private channel since 2026-06-17 without an answer, so this is filed publicly.
Source: HKUDS/AI-Trader