Skip to content

Imports: two documents can land in one trial folder, when their trial names collide #401

Description

@harenome

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). Traces abcdef01… and abcdef02… 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.json and a__b.json get one name.
  • Both then write each document into that one folder in turn, and the job's result.json counts every summary (n_total_trials: len(summaries)).
  • The OpenTelemetry trial's result.json does 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

  1. Write one OTLP/JSON export holding two traces whose ids start abcdef01 and abcdef02, each with one root span named agent, and convert it with nullius.importers.otel.convert(src, out).
  2. Write an ATIF tree holding a/b.json and a__b.json and convert it with nullius.importers.atif.convert(src, out).
  3. 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

  1. added
    bug
    P2
    on Nov 24, 2026
  2. added theissue type on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions