Repository navigation
Description
Priority
high by depth: the importers (app/nullius/importers/atif.py, otel.py). P2 is set: it needs two documents whose names collide, and the result is a trial silently replaced.
Components
- app/nullius (backend)
- app/web (routes)
- templates and static files
- docs and the site
- catalogue (benchmarks, agents, capabilities)
- the standard (ports, kits, relay, runs)
- CI, workflows and skills
Evidence
On main 35686e0:
- OpenTelemetry names a trial
<root span name>__<7 hex of the trace id>:return f"{stem[:80]}__{tid[:7] or 'unknown'}"(app/nullius/importers/otel.py,trial_name_of, lines 150-155). Tracesabcdef01…andabcdef02…with one root span name get one name. - ATIF flattens a document's path with
__:return "__".join(parts) or "trajectory"(app/nullius/importers/atif.py,_trial_name, lines 201-217).a/b.jsonanda__b.jsonget one name. - Both then write each document into that one folder in turn, and the job's
result.jsoncounts every summary (n_total_trials: len(summaries)). - The OpenTelemetry trial's
result.jsondoes not record the trace id at all.
Reproduced in a python:3.12 container from a clean copy of main:
otel: traces abcdef01..., abcdef02..., root span 'agent'
trial folder: agent__abcdef0
result.json n_total_trials: 2
atif: a/b.json (session one), a__b.json (session two)
trial folder: a__b
result.json n_total_trials: 2
a__b/result.json session_id: one
Reproduction
- Write one OTLP/JSON export holding two traces whose ids start
abcdef01andabcdef02, each with one root span namedagent, and convert it withnullius.importers.otel.convert(src, out). - Write an ATIF tree holding
a/b.jsonanda__b.jsonand convert it withnullius.importers.atif.convert(src, out). - List each job's trial folders and read its
result.json: one folder,n_total_trials: 2.
Expected
One trial per document, never two documents in one folder.
Acceptance
- A collision of trial names is detected before anything is written, and disambiguated or refused.
- The full trace id (OpenTelemetry) or session id (ATIF) is recorded in the trial's
result.json. - A test per importer: two colliding documents give two trials, or a refusal that writes nothing.
Dependencies and related
Not about output folders per source (#400).
Activity