From f23633714187e73a341dd43ca092546c24cb3ed0 Mon Sep 17 00:00:00 2001 From: Edgar Arakelyan Date: Mon, 23 Nov 2026 22:05:07 -0800 Subject: [PATCH 1/2] feat(agents): Claude Code's image installs a protocol whose live atif/1 reads take the header digest and sub-agent cursors Its floor rises to 0.1.649, the first protocol whose task cursor reads name the header the reader holds and how far it holds each sub-agent, so the shipped image serves them and a live follow gets the header only when it changed and a running sub-agent's steps as they close. Co-Authored-By: Claude Opus 5.5 --- src/agent_env/agents/agents/claude-code/requirements.txt | 6 +++--- tst/unit/agents/claude_code/test_image_contract.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/agent_env/agents/agents/claude-code/requirements.txt b/src/agent_env/agents/agents/claude-code/requirements.txt index f749fae80..1a9b71dac 100644 --- a/src/agent_env/agents/agents/claude-code/requirements.txt +++ b/src/agent_env/agents/agents/claude-code/requirements.txt @@ -1,4 +1,4 @@ # The image installs the newest agentenv-framework-protocol at or above this floor; a release doesn't pin it, so the -# image is built again only when this folder changes. The floor is the first whose Usage gives a turn's counts by -# model (Usage.models); raise it when the agent needs a newer protocol. -agentenv-framework-protocol[agent]>=0.1.640 +# image is built again only when this folder changes. The floor is the first whose live atif/1 reads take the header's +# digest and a cursor per sub-agent; raise it when the agent needs a newer protocol. +agentenv-framework-protocol[agent]>=0.1.649 diff --git a/tst/unit/agents/claude_code/test_image_contract.py b/tst/unit/agents/claude_code/test_image_contract.py index f52d0a991..989818f10 100644 --- a/tst/unit/agents/claude_code/test_image_contract.py +++ b/tst/unit/agents/claude_code/test_image_contract.py @@ -38,7 +38,7 @@ def test_the_image_installs_the_protocol_alone_from_its_requirements(): requirements = [line for line in (AGENT_DIR / "requirements.txt").read_text().splitlines() if line and not line.startswith("#")] - assert requirements == ["agentenv-framework-protocol[agent]>=0.1.640"] + assert requirements == ["agentenv-framework-protocol[agent]>=0.1.649"] def test_the_image_gives_the_model_node_alone_from_a_pinned_image(): From c7e0bac7b176a6ebc19105080bbd6befc160b937 Mon Sep 17 00:00:00 2001 From: Edgar Arakelyan Date: Mon, 23 Nov 2026 23:10:39 -0800 Subject: [PATCH 2/2] test(agents): Claude Code's and Codex's image contracts check the protocol requirement's shape, not its floor A floor raise edited the test in lockstep with requirements.txt, where the number is reviewed; the tests now check that the protocol, with its agent extra and a floor, is the requirement it should be. Co-Authored-By: Claude Opus 5.5 --- tst/unit/agents/claude_code/test_image_contract.py | 3 ++- tst/unit/agents/codex/test_image_contract.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tst/unit/agents/claude_code/test_image_contract.py b/tst/unit/agents/claude_code/test_image_contract.py index 989818f10..88273104f 100644 --- a/tst/unit/agents/claude_code/test_image_contract.py +++ b/tst/unit/agents/claude_code/test_image_contract.py @@ -38,7 +38,8 @@ def test_the_image_installs_the_protocol_alone_from_its_requirements(): requirements = [line for line in (AGENT_DIR / "requirements.txt").read_text().splitlines() if line and not line.startswith("#")] - assert requirements == ["agentenv-framework-protocol[agent]>=0.1.649"] + assert len(requirements) == 1, requirements + assert re.fullmatch(r"agentenv-framework-protocol\[agent\]>=\d+\.\d+\.\d+", requirements[0]), requirements def test_the_image_gives_the_model_node_alone_from_a_pinned_image(): diff --git a/tst/unit/agents/codex/test_image_contract.py b/tst/unit/agents/codex/test_image_contract.py index 0ba67d776..9c325d3c6 100644 --- a/tst/unit/agents/codex/test_image_contract.py +++ b/tst/unit/agents/codex/test_image_contract.py @@ -54,7 +54,9 @@ def test_the_requirements_are_the_protocol_floor_the_config_writer_and_the_ca_bu requirements = [line for line in (AGENT_DIR / "requirements.txt").read_text().splitlines() if line and not line.startswith("#")] - assert requirements == ["agentenv-framework-protocol[agent]>=0.1.640", "tomli-w==1.2.0", "certifi"] + protocol, *others = requirements + assert re.fullmatch(r"agentenv-framework-protocol\[agent\]>=\d+\.\d+\.\d+", protocol), requirements + assert others == ["tomli-w==1.2.0", "certifi"], requirements def test_the_image_gives_the_models_python_the_document_libraries():