From 835e1e37571bb260d5bc572ddb17792c534ed8f9 Mon Sep 17 00:00:00 2001 From: ProtocolWarden <32967198+ProtocolWarden@users.noreply.github.com> Date: Wed, 27 May 2026 09:58:22 -0400 Subject: [PATCH] fix: bump stale cxrp test fixtures to schema_version 0.3 test_cxrp_capture.py hardcoded schema_version '0.2' but cxrp is at 0.3 (the envelope schema requires const '0.3'). The code already emits 0.3 via the installed cxrp models; only the test fixtures were stale. Co-Authored-By: Claude Opus 4.7 --- .console/log.md | 4 ++++ tests/test_cxrp_capture.py | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.console/log.md b/.console/log.md index edd897e..7f846d2 100644 --- a/.console/log.md +++ b/.console/log.md @@ -372,3 +372,7 @@ Created profile yamls for each with lazygit git pane and standard helpers. - launcher._multi_pane_block: cross-repo group tab cwd → PlatformManifest (was bare ~/Documents/GitHub). git-watcher still spans all group repos. - bootstrap.get_claude_command: wrapper now exports CL_ANCHOR= so OC-launched sessions satisfy the CL guard hooks (which now hard-require CL_ANCHOR, no CWD fallback). Single-repo tabs anchor at their repo; group tab at PlatformManifest. - Added tests/test_anchor_launch.py (2 tests). NOTE: pre-existing test_watcher_pane.py failures are unrelated (confirmed on clean main). + +## 2026-05-24 — Fix stale cxrp test fixtures (0.2 → 0.3) + +- tests/test_cxrp_capture.py hardcoded schema_version "0.2" but cxrp is at 0.3 (envelope schema const "0.3"). Bumped the 4 envelope schema_version fixtures/assertions to "0.3"; left the separate nested $payload_schema coding_agent_target/v0.2 ref (consistent with code). Full OC suite green. diff --git a/tests/test_cxrp_capture.py b/tests/test_cxrp_capture.py index 00a29be..04aa3f4 100644 --- a/tests/test_cxrp_capture.py +++ b/tests/test_cxrp_capture.py @@ -39,7 +39,7 @@ def test_build_task_proposal_returns_ecp_envelope(): ) assert isinstance(tp, CxrpTaskProposal) assert tp.contract_kind == "task_proposal" - assert tp.schema_version == "0.2" + assert tp.schema_version == "0.3" def test_build_task_proposal_validates_against_schema(): @@ -77,7 +77,7 @@ def test_build_task_proposal_does_not_infer_task_type_or_risk(): def test_parse_execution_result_returns_typed_object(): valid = { - "schema_version": "0.2", + "schema_version": "0.3", "contract_kind": "execution_result", "result_id": "ers-1", "metadata": {}, @@ -100,7 +100,7 @@ def test_parse_execution_result_returns_typed_object(): def test_parse_execution_result_rejects_invalid_status(): invalid = { - "schema_version": "0.2", + "schema_version": "0.3", "contract_kind": "execution_result", "result_id": "ers-1", "metadata": {}, @@ -114,7 +114,7 @@ def test_parse_execution_result_rejects_invalid_status(): def test_summarize_execution_result_renders_one_liner(): payload = { - "schema_version": "0.2", + "schema_version": "0.3", "contract_kind": "execution_result", "result_id": "ers-1", "metadata": {},