mirror of
https://github.com/openai/codex.git
synced 2026-11-20 22:40:37 +00:00
Align rollout trace replay with the same-binary contract (#61199)
## Why Raw trace events and payloads are implementation details of the recording executable. Matching release or schema versions do not establish compatibility with another binary. ## What changed - Document that bundles must be reduced by the exact executable that recorded them, with `state.json` as the consumer API and `manifest.json` for discovery and identity. - Require explicit thread IDs on code-cell runtime events and use structured agent-message metadata instead of parsing legacy assistant-message JSON. - Include expected schema versions and guidance to use the recording executable in schema mismatch errors. - Update agent-delivery test fixtures to use structured `agent_message` inputs and check manifest schema rejection directly. GitOrigin-RevId: 67206fa554f1ba9c1bf9bfdad54840b5d86c5a77
This commit is contained in:
committed by
copyberry
parent
fae87361f4
commit
94fc729602
@@ -8,9 +8,10 @@ use crate::model::AgentThreadId;
|
||||
pub(crate) const MANIFEST_FILE_NAME: &str = "manifest.json";
|
||||
pub(crate) const RAW_EVENT_LOG_FILE_NAME: &str = "trace.jsonl";
|
||||
pub(crate) const PAYLOADS_DIR_NAME: &str = "payloads";
|
||||
/// Conventional file name for a reducer-written `RolloutTrace` cache.
|
||||
/// Conventional file name for the reducer's serialized `RolloutTrace`.
|
||||
pub const REDUCED_STATE_FILE_NAME: &str = "state.json";
|
||||
pub(crate) const TRACE_MANIFEST_SCHEMA_VERSION: u32 = 2;
|
||||
/// Bump for every change to the consumer-facing `state.json` schema.
|
||||
pub(crate) const REDUCED_TRACE_SCHEMA_VERSION: u32 = 2;
|
||||
|
||||
/// Manifest stored at the root of a trace bundle.
|
||||
|
||||
Reference in New Issue
Block a user