Skip to content

Commit 685cbea

Browse files
loopx-agenthuangruiteng
authored andcommitted
Qualify Codex 0.169 native context replay on main
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
1 parent 5a0f6ee commit 685cbea

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

‎docs/reference/required-work-context.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,8 @@ first reader and every observed reader output,
10201020
including complete byte coverage of the pinned capture, with
10211021
matching session, workspace, model and permission mode, and no intervening
10221022
compaction, rollback, replacement or unknown replay record. This bounded IO
1023-
profile is qualified on Codex 0.162.1 and 0.167.0-alpha.3.2 paginated rollouts. It streams only the
1023+
profile is qualified on Codex 0.162.1, 0.167.0-alpha.3.2 and 0.169.0-alpha.11.1
1024+
paginated rollouts. It streams only the
10241025
baseline's reader interval and subsequent records; unrelated earlier history is
10251026
neither hashed nor decoded, and total file size does not decide reuse. The
10261027
session metadata's creator version is not the running host version. Code-mode
@@ -1324,7 +1325,8 @@ context journal。当前工作到达正常安全边界后,沿宿主正常启
13241325
共享 Codex adapter 可核对完整读取时的原生重放检查点:原生实际选择的物理历史文件,
13251326
须保留从当前基线首次 reader 开始的摘要固定区间,以及每份精确 reader 输出,完整覆盖固定捕获的全部字节;
13261327
会话、工作区、模型和权限模式相同,
1327-
中间没有压缩、回滚、替换或未知重放记录。此 IO profile 在 Codex 0.162.1 和 0.167.0-alpha.3.2 的分页
1328+
中间没有压缩、回滚、替换或未知重放记录。此 IO profile 在 Codex 0.162.1、0.167.0-alpha.3.2
1329+
和 0.169.0-alpha.11.1 的分页
13281330
rollout 上验证;流式读取当前基线对应区间及后续记录,不哈希或解码无关旧历史,
13291331
文件总大小不决定是否差分。session metadata 的创建版本不等于当前宿主版本。
13301332
code-mode 父调用的保留输出须包含嵌套 reader hook 观察到的全部精确页字节。

‎loopx/control_plane/turn_driver/codex_context_history.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _snapshot(event: dict[str, Any]) -> Iterator[tuple[dict[str, Any], BinaryIO]
6666
or meta.get("history_mode") != "paginated"
6767
or meta.get("cli_version") not in (
6868
"0.153.4", "0.162.1", "0.163.0-alpha.11.1", "0.163.0-alpha.11.2",
69-
"0.166.0-alpha.5.1", "0.167.0-alpha.3.2")
69+
"0.166.0-alpha.5.1", "0.167.0-alpha.3.2", "0.169.0-alpha.11.1")
7070
or not event.get("model") or not event.get("permission_mode")):
7171
raise ValueError("unqualified native replay metadata")
7272
stream.seek(info.st_size - 1)

‎tests/control_plane/test_codex_context_resume.py‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def observed_read(root, monkeypatch, *, complete=True, shell_wrapper=False, lost
8181
return event, history, payload
8282

8383

84-
@pytest.mark.parametrize("version", ["0.163.0-alpha.11.2", "0.166.0-alpha.5.1", "0.167.0-alpha.3.2"])
84+
@pytest.mark.parametrize("version", ["0.163.0-alpha.11.2", "0.166.0-alpha.5.1", "0.167.0-alpha.3.2",
85+
"0.169.0-alpha.11.1"])
8586
def test_failed_tool_result_cannot_qualify_new_native_writer(tmp_path, monkeypatch, version):
8687
"""A successful page nested in a failed tool result is not replay evidence."""
8788
event = setup(tmp_path, monkeypatch)
@@ -123,7 +124,8 @@ def test_failed_tool_result_cannot_qualify_new_native_writer(tmp_path, monkeypat
123124

124125

125126
@pytest.mark.parametrize("shell_wrapper", [False, True])
126-
@pytest.mark.parametrize("version", ["0.162.1", "0.163.0-alpha.11.1", "0.163.0-alpha.11.2", "0.166.0-alpha.5.1", "0.167.0-alpha.3.2"])
127+
@pytest.mark.parametrize("version", ["0.162.1", "0.163.0-alpha.11.1", "0.163.0-alpha.11.2",
128+
"0.166.0-alpha.5.1", "0.167.0-alpha.3.2", "0.169.0-alpha.11.1"])
127129
def test_completed_native_resume_keeps_delta_without_old_capture_prefetch(tmp_path, monkeypatch, shell_wrapper, version):
128130
event, history, payload = observed_read(tmp_path, monkeypatch, shell_wrapper=shell_wrapper, version=version)
129131
before = context._state(tmp_path)
@@ -264,7 +266,8 @@ def test_compact_recovery_preserves_turn_but_next_turn_starts_new_file_baseline(
264266

265267
@pytest.mark.parametrize("change", ["compact", "rollback", "retained", "unknown", "truncate",
266268
"replace", "rewrite", "missing", "output", "duplicate", "model", "workspace", "session", "permission", "writable", "malformed"])
267-
@pytest.mark.parametrize("version", ["0.162.1", "0.163.0-alpha.11.1", "0.163.0-alpha.11.2", "0.166.0-alpha.5.1", "0.167.0-alpha.3.2"])
269+
@pytest.mark.parametrize("version", ["0.162.1", "0.163.0-alpha.11.1", "0.163.0-alpha.11.2",
270+
"0.166.0-alpha.5.1", "0.167.0-alpha.3.2", "0.169.0-alpha.11.1"])
268271
def test_resume_loss_or_unknown_continuity_falls_back_to_current_full(tmp_path, monkeypatch, change, version):
269272
event, history, payload = observed_read(tmp_path, monkeypatch, version=version)
270273
before = context._state(tmp_path)
@@ -306,7 +309,7 @@ def test_resume_loss_or_unknown_continuity_falls_back_to_current_full(tmp_path,
306309

307310

308311
@pytest.mark.parametrize("version", ["0.163.0", "0.163.0-alpha.11.3", "0.166.0-alpha.5.2",
309-
"0.167.0", "0.167.0-alpha.3.3", "unknown"])
312+
"0.167.0", "0.167.0-alpha.3.3", "0.169.0-alpha.11.2", "unknown"])
310313
def test_unqualified_native_version_cannot_retain_resume_baseline(tmp_path, monkeypatch, version):
311314
event, _, payload = observed_read(tmp_path, monkeypatch, version=version)
312315
before = context._state(tmp_path)

0 commit comments

Comments
 (0)