1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//! Trace bundle format, writer, and reducer for Codex rollouts.
//!
//! This crate owns the trace schema. Hot-path Codex code should depend on the
//! small writer API here; semantic replay and viewer projections stay outside
//! `codex-core`.
//!
//! See `README.md` for the system diagram and reducer model.
/// Conventional reduced-state cache name written next to a raw trace bundle.
pub use REDUCED_STATE_FILE_NAME;
/// No-op-capable handle for recording one code-mode runtime cell.
pub use CodeCellTraceContext;
/// Raw checkpoint payload for a remote compaction install event.
pub use CompactionCheckpointTracePayload;
/// No-op-capable handle for recording remote-compaction requests.
pub use CompactionTraceAttempt;
/// Shared recorder context for a compaction checkpoint.
pub use CompactionTraceContext;
/// No-op-capable handle for recording one upstream inference attempt.
pub use InferenceTraceAttempt;
/// Shared recorder context for inference attempts within one Codex turn.
pub use InferenceTraceContext;
/// Trace-owned MCP execution correlation propagated to bridge request metadata.
pub use McpCallTraceContext;
/// Public reduced trace model returned by replay.
pub use *;
/// Stable identifier for one raw payload inside a rollout bundle.
pub use RawPayloadId;
/// Coarse role labels for raw payload files.
pub use RawPayloadKind;
/// Reference to a raw request/response/log payload stored in the bundle.
pub use RawPayloadRef;
/// Monotonic sequence number assigned by the raw trace writer.
pub use RawEventSeq;
/// Runtime requester observed before semantic reduction.
pub use RawToolCallRequester;
/// One append-only raw trace event from `trace.jsonl`.
pub use RawTraceEvent;
/// Event-envelope context supplied by hot-path trace producers.
pub use RawTraceEventContext;
/// Typed payload for one raw trace event.
pub use RawTraceEventPayload;
/// Replay a raw trace bundle and write/read its reduced `RolloutTrace`.
pub use replay_bundle;
/// Raw payload captured when a child agent reports completion to its parent.
pub use AgentResultTracePayload;
/// Environment variable that enables local trace-bundle recording.
pub use CODEX_ROLLOUT_TRACE_ROOT_ENV;
/// Raw metadata captured when a thread starts.
pub use ThreadStartedTraceMetadata;
/// No-op-capable handle for recording one thread in a rollout bundle.
pub use ThreadTraceContext;
/// Request data for the canonical Codex tool boundary.
pub use ToolDispatchInvocation;
/// Tool input observed at the registry boundary.
pub use ToolDispatchPayload;
/// Runtime source that caused a dispatch-level tool call.
pub use ToolDispatchRequester;
/// Result data returned from a dispatch-level tool call.
pub use ToolDispatchResult;
/// No-op-capable handle for recording one resolved tool dispatch.
pub use ToolDispatchTraceContext;
/// Append-only writer used by hot-path Codex instrumentation.
pub use TraceWriter;