Skip to content

Commit 17a8f02

Browse files
fix: bump stale cxrp test fixtures to schema_version 0.3 (#57)
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 <noreply@anthropic.com>
1 parent 0aff8df commit 17a8f02

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.console/log.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,3 +372,7 @@ Created profile yamls for each with lazygit git pane and standard helpers.
372372
- launcher._multi_pane_block: cross-repo group tab cwd → PlatformManifest (was bare ~/Documents/GitHub). git-watcher still spans all group repos.
373373
- bootstrap.get_claude_command: wrapper now exports CL_ANCHOR=<cwd> 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.
374374
- Added tests/test_anchor_launch.py (2 tests). NOTE: pre-existing test_watcher_pane.py failures are unrelated (confirmed on clean main).
375+
376+
## 2026-05-24 — Fix stale cxrp test fixtures (0.2 → 0.3)
377+
378+
- 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.

tests/test_cxrp_capture.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_build_task_proposal_returns_ecp_envelope():
3939
)
4040
assert isinstance(tp, CxrpTaskProposal)
4141
assert tp.contract_kind == "task_proposal"
42-
assert tp.schema_version == "0.2"
42+
assert tp.schema_version == "0.3"
4343

4444

4545
def test_build_task_proposal_validates_against_schema():
@@ -77,7 +77,7 @@ def test_build_task_proposal_does_not_infer_task_type_or_risk():
7777

7878
def test_parse_execution_result_returns_typed_object():
7979
valid = {
80-
"schema_version": "0.2",
80+
"schema_version": "0.3",
8181
"contract_kind": "execution_result",
8282
"result_id": "ers-1",
8383
"metadata": {},
@@ -100,7 +100,7 @@ def test_parse_execution_result_returns_typed_object():
100100

101101
def test_parse_execution_result_rejects_invalid_status():
102102
invalid = {
103-
"schema_version": "0.2",
103+
"schema_version": "0.3",
104104
"contract_kind": "execution_result",
105105
"result_id": "ers-1",
106106
"metadata": {},
@@ -114,7 +114,7 @@ def test_parse_execution_result_rejects_invalid_status():
114114

115115
def test_summarize_execution_result_renders_one_liner():
116116
payload = {
117-
"schema_version": "0.2",
117+
"schema_version": "0.3",
118118
"contract_kind": "execution_result",
119119
"result_id": "ers-1",
120120
"metadata": {},

0 commit comments

Comments
 (0)