Parent: https://github.com/aien-dev/omega-mv/issues/607
Existing code, do not duplicate
Completed #398 implemented crates/aien-trace, a NullSink default, bounded JSONL, typed correlation events, replay tree reconstruction and an event-loss marker. It deliberately excludes prompts, tool arguments, output and memory, and treats trace IDs as correlation, not authorization/evidence. docs/plans/tracing/DESIGN-398.md documents limitations (ID collisions across restarts, daemon-root vs task-root, no GPU per-kernel events).
Deliverable
- Provide a small versioned, strictly observational adapter to Omega Trace's local schema/import interface. Reuse existing
TraceEventand stable keys: swarm/world/branch/sequence, generation, decision, grant, effect receipt, Interplane IDs. Do not alter canonicalTraceEventwithout a proven schema necessity. - Normalize a process/session identifier plus machine identity to avoid ambiguous joins across daemon restart or different host. Distinguish observed wall-clock from sequence/parent ordering. Missing parents and non-unique IDs must be reported, never silently joined.
- Export only into an explicitly configured local file or process-local sink (or an offline converter if direct link is undesirable). Default
NullSink, with zero network listeners/clients and no additional per-token/per-GPU kernels. No new Cortex writer. - Keep existing
TraceEventsecurity/privacy restrictions. Trace output is not an authoritative source for grants, ledgers or receipts, and never flows into execution decisions.
Acceptance
- With sink off no export, no network activity, and existing #398 reconstruction and verifier tests still pass.
- Multi-branch AIEN+Interplane fixture imports into Omega's local trace file, preserving causal refs and explicit unknowns; restart ID collision causes refusal or qualified namespacing.
- Fuzz or negative fixtures: malformed parents, forged receipt refs, high-cardinality notes, rejected/uncertain effects, full queue. Import cannot authorize a tool or alter a ledger.
- Measured import overhead and loss, with actual source commit/hardware; no false GPU timing claim.
Do not reimplement #398 or integrate a third-party OTEL exporter. Coordinate the interface with the Omega local trace storage issue. Follow issue-first delivery, dedicated branch/worktree and existing preflight gates.