/** * Shared trace-correlation header and identifier format for local spans, persisted * trajectories, and gateway requests. */ export interface TraceCorrelation { /** Root-turn identifier every joined store shares. Minted once, propagated. */ traceId: string; /** Scenario/run this trace belongs to, when driven by the scenario CLI. */ runId?: string; /** Room the root turn ran in. */ roomId?: string; /** Orchestrator task this trace (or its sub-agent) belongs to. */ taskId?: string; /** ACP session id of the sub-agent that produced a child trajectory. */ sessionId?: string; /** Parent trajectory step id a child trajectory hangs off. */ parentStepId?: string; /** Ingested child trajectory id, stamped when attaching a sub-agent trace. */ childTrajectoryId?: string; } /** * Env keys carrying the correlation header across a process boundary (parent → * spawned sub-agent). The orchestrator stamps these onto `SpawnOptions.env`; * they must be set explicitly rather than left to the broad `ELIZA_` forwarding * so a child never inherits an ambiguous parent value. */ export declare const TRACE_ENV: { readonly TRACE_ID: "ELIZA_TRACE_ID"; readonly TASK_ID: "ELIZA_TASK_ID"; readonly SESSION_ID: "ORCHESTRATOR_SESSION_ID"; readonly PARENT_STEP_ID: "ELIZA_PARENT_TRAJECTORY_STEP_ID"; }; /** * Read whatever correlation the current process inherited from its spawner. * A root turn has none of these set; a spawned sub-agent has an orchestrator * session id and may also inherit a parent trace. Returns only the fields * actually present — `traceId` is optional here (unlike the interface) * precisely because the caller decides whether to mint one when absent. */ export declare function resolveTraceCorrelationFromEnv(env?: NodeJS.ProcessEnv): Partial;