plan-manager-client-dev 0.2.187__tar.gz → 0.2.188__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/PKG-INFO +2 -2
  2. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/facade_context_gate_mixin.py +3 -27
  3. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/server_api.py +1 -6
  4. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/server_api_mutating.py +0 -3
  5. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client_dev.egg-info/PKG-INFO +2 -2
  6. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client_dev.egg-info/SOURCES.txt +2 -2
  7. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client_dev.egg-info/requires.txt +1 -1
  8. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/pyproject.toml +1 -1
  9. plan_manager_client_dev-0.2.188/tests/test_matrix_check_facade_passthrough.py +46 -0
  10. plan_manager_client_dev-0.2.187/tests/test_contract_facade_passthrough.py +0 -62
  11. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/__init__.py +0 -0
  12. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/_version.py +0 -0
  13. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/authoring_diagnostics.py +0 -0
  14. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/client.py +0 -0
  15. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/config.py +0 -0
  16. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/delivery/__init__.py +0 -0
  17. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/delivery/archive.py +0 -0
  18. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/delivery/atomicity.py +0 -0
  19. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/delivery/commit.py +0 -0
  20. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/delivery/destination.py +0 -0
  21. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/delivery/provenance.py +0 -0
  22. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/delivery/upload.py +0 -0
  23. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/dispatch.py +0 -0
  24. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/export_fetch_chunks.py +0 -0
  25. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/export_fetch_request.py +0 -0
  26. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/export_fetch_unpack.py +0 -0
  27. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/export_fetch_verify.py +0 -0
  28. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/facade_agent_config_mixin.py +0 -0
  29. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/facade_bug_project_mixin.py +0 -0
  30. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/facade_entity_common_mixin.py +0 -0
  31. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/facade_hrs_file_mixin.py +0 -0
  32. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/facade_plan_hrs_mixin.py +0 -0
  33. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/facade_runtime_mixin/__init__.py +0 -0
  34. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/facade_runtime_mixin/authoring_part.py +0 -0
  35. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/facade_runtime_mixin/facade.py +0 -0
  36. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/facade_runtime_mixin/overlay_part.py +0 -0
  37. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/facade_step_graph_mixin.py +0 -0
  38. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/id_rule.py +0 -0
  39. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/info_walker.py +0 -0
  40. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client/scenario_runtime.py +0 -0
  41. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client_dev.egg-info/dependency_links.txt +0 -0
  42. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/plan_manager_client_dev.egg-info/top_level.txt +0 -0
  43. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/setup.cfg +0 -0
  44. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/tests/test_client_server_api_sync.py +0 -0
  45. {plan_manager_client_dev-0.2.187 → plan_manager_client_dev-0.2.188}/tests/test_dispatch_validation_error_classification.py +0 -0
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plan-manager-client-dev
3
- Version: 0.2.187
3
+ Version: 0.2.188
4
4
  Summary: First-class client library for the plan_manager JSON-RPC API: full command-surface facade plus export delivery module boundary.
5
5
  Requires-Python: >=3.12
6
6
  Requires-Dist: mcp-proxy-adapter==8.11.15
7
7
  Provides-Extra: ca
8
- Requires-Dist: code-analysis-client-dev>=1.6.353; extra == "ca"
8
+ Requires-Dist: code-analysis-client-dev>=1.6.359; extra == "ca"
9
9
  Provides-Extra: dev
10
10
  Requires-Dist: pytest>=9; extra == "dev"
@@ -86,30 +86,6 @@ class ContextGateCommandsMixin:
86
86
  """Delete a Report: soft (mark) by default, hard=true removes an already marked one (passed through: report_id, changed_by, hard, recursive, dry_run)."""
87
87
  return await self._call("report_delete", params)
88
88
 
89
- async def plan_contract_create(self, **params: Any) -> Any:
90
- """Declare the external-API contract of a plan: exactly three documents (matrix, relations, results).
91
-
92
- Parameters are passed through unchanged (plan, documents, changed_by, idempotency_key) so that a missing or
93
- invalid argument is refused by the server with the adapter's -32602 violation, not by a Python TypeError.
94
- """
95
- return await self._call("plan_contract_create", params)
96
-
97
- async def plan_contract_get(self, **params: Any) -> Any:
98
- """Read a contract declaration: exactly one of contract_id and plan (passed through; a marked one carries deleted_at)."""
99
- return await self._call("plan_contract_get", params)
100
-
101
- async def plan_contract_list(self, **params: Any) -> Any:
102
- """List contract declarations (plan, project, include_deleted, limit, offset; passed through)."""
103
- return await self._call("plan_contract_list", params)
104
-
105
- async def plan_contract_update(self, **params: Any) -> Any:
106
- """Replace the three documents of a declaration under expected_contract_revision (parameters passed through)."""
107
- return await self._call("plan_contract_update", params)
108
-
109
- async def plan_contract_delete(self, **params: Any) -> Any:
110
- """Delete a declaration: soft (mark) by default, hard=true removes an already marked one (parameters passed through)."""
111
- return await self._call("plan_contract_delete", params)
112
-
113
89
  async def matrix_case_get(self, **params: Any) -> Any:
114
90
  """Read one matrix case of a plan by namespace and case_id; a case marked deleted is read with its mark (parameters passed through)."""
115
91
  return await self._call("matrix_case_get", params)
@@ -159,9 +135,9 @@ class ContextGateCommandsMixin:
159
135
  """Read the matrix of a plan: summary, parts, or a page of calls or cases (parameters passed through)."""
160
136
  return await self._call("matrix_get", params)
161
137
 
162
- async def plan_contract_check(self, **params: Any) -> Any:
163
- """Queue a read-only check of the plan's step texts against its declared contract (passed through)."""
164
- return await self._call("plan_contract_check", params)
138
+ async def plan_matrix_check(self, **params: Any) -> Any:
139
+ """Queue a read-only check of the plan's step texts against the plan matrix and its attachments (passed through)."""
140
+ return await self._call("plan_matrix_check", params)
165
141
 
166
142
  async def context_compile(self, **params: Any) -> Any:
167
143
  """Compile a typed context block directly from concept ids."""
@@ -34,11 +34,6 @@ COMMAND_NAMES: frozenset[str] = frozenset(
34
34
  "report_list",
35
35
  "report_update",
36
36
  "report_delete",
37
- "plan_contract_create",
38
- "plan_contract_get",
39
- "plan_contract_list",
40
- "plan_contract_update",
41
- "plan_contract_delete",
42
37
  "matrix_case_get",
43
38
  "matrix_get",
44
39
  "matrix_lint",
@@ -49,7 +44,7 @@ COMMAND_NAMES: frozenset[str] = frozenset(
49
44
  "matrix_export",
50
45
  "plan_ref_check",
51
46
  "plan_authoring_guide",
52
- "plan_contract_check",
47
+ "plan_matrix_check",
53
48
  "plan_text_check",
54
49
  "plan_model_mapping_set",
55
50
  "plan_model_mapping_get",
@@ -93,9 +93,6 @@ MUTATING_COMMAND_NAMES: frozenset[str] = frozenset(
93
93
  "authoring_job_stop",
94
94
  "authoring_job_delete",
95
95
  "authoring_job_update",
96
- "plan_contract_create",
97
- "plan_contract_update",
98
- "plan_contract_delete",
99
96
  "authoring_step_submit",
100
97
  "authoring_step_create",
101
98
  "authoring_step_update",
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plan-manager-client-dev
3
- Version: 0.2.187
3
+ Version: 0.2.188
4
4
  Summary: First-class client library for the plan_manager JSON-RPC API: full command-surface facade plus export delivery module boundary.
5
5
  Requires-Python: >=3.12
6
6
  Requires-Dist: mcp-proxy-adapter==8.11.15
7
7
  Provides-Extra: ca
8
- Requires-Dist: code-analysis-client-dev>=1.6.353; extra == "ca"
8
+ Requires-Dist: code-analysis-client-dev>=1.6.359; extra == "ca"
9
9
  Provides-Extra: dev
10
10
  Requires-Dist: pytest>=9; extra == "dev"
@@ -38,5 +38,5 @@ plan_manager_client_dev.egg-info/dependency_links.txt
38
38
  plan_manager_client_dev.egg-info/requires.txt
39
39
  plan_manager_client_dev.egg-info/top_level.txt
40
40
  tests/test_client_server_api_sync.py
41
- tests/test_contract_facade_passthrough.py
42
- tests/test_dispatch_validation_error_classification.py
41
+ tests/test_dispatch_validation_error_classification.py
42
+ tests/test_matrix_check_facade_passthrough.py
@@ -1,7 +1,7 @@
1
1
  mcp-proxy-adapter==8.11.15
2
2
 
3
3
  [ca]
4
- code-analysis-client-dev>=1.6.353
4
+ code-analysis-client-dev>=1.6.359
5
5
 
6
6
  [dev]
7
7
  pytest>=9
@@ -13,7 +13,7 @@ dependencies = [
13
13
 
14
14
  [project.optional-dependencies]
15
15
  ca = [
16
- "code-analysis-client-dev>=1.6.353",
16
+ "code-analysis-client-dev>=1.6.359",
17
17
  ]
18
18
  dev = [
19
19
  "pytest>=9",
@@ -0,0 +1,46 @@
1
+ """Matrix-check facade method passes its arguments through, so a missing plan reaches the server (CK-P3); the six plan_contract
2
+ methods are gone (matrix change 15.11, RM-1).
3
+
4
+ Author: Vasiliy Zdanovskiy
5
+ email: vasilyvz@gmail.com
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ import asyncio
11
+ from typing import Any
12
+
13
+ import pytest
14
+
15
+ from plan_manager_client.facade_context_gate_mixin import ContextGateCommandsMixin
16
+
17
+
18
+ class _Recorder(ContextGateCommandsMixin):
19
+ def __init__(self) -> None:
20
+ self.calls: list[tuple[str, dict[str, Any]]] = []
21
+
22
+ async def _call(self, command: str, params: dict[str, Any] | None = None) -> Any:
23
+ self.calls.append((command, dict(params or {})))
24
+ return {"refused_by": "server"}
25
+
26
+
27
+ def test_matrix_check_without_plan_is_forwarded() -> None:
28
+ client = _Recorder()
29
+ result = asyncio.run(client.plan_matrix_check(scope="plan"))
30
+ assert result == {"refused_by": "server"}
31
+ assert client.calls == [("plan_matrix_check", {"scope": "plan"})]
32
+
33
+
34
+ def test_matrix_check_forwards_every_argument_verbatim() -> None:
35
+ client = _Recorder()
36
+ args = {"plan": "p", "scope": "branch", "step": "s", "fail_fast": True, "format": "text", "limit": 5, "offset": 1}
37
+ asyncio.run(client.plan_matrix_check(**args))
38
+ assert client.calls == [("plan_matrix_check", args)]
39
+
40
+
41
+ @pytest.mark.parametrize("name", [
42
+ "plan_contract_check", "plan_contract_create", "plan_contract_get", "plan_contract_list", "plan_contract_update",
43
+ "plan_contract_delete", "plan_contract_set",
44
+ ])
45
+ def test_plan_contract_methods_are_removed_from_the_facade(name: str) -> None:
46
+ assert not hasattr(ContextGateCommandsMixin, name)
@@ -1,62 +0,0 @@
1
- """Contract-check facade methods pass their arguments through, so a missing plan reaches the server (CK-P3).
2
-
3
- Author: Vasiliy Zdanovskiy
4
- email: vasilyvz@gmail.com
5
- """
6
-
7
- from __future__ import annotations
8
-
9
- import asyncio
10
- from typing import Any
11
-
12
- from plan_manager_client.facade_context_gate_mixin import ContextGateCommandsMixin
13
-
14
-
15
- class _Recorder(ContextGateCommandsMixin):
16
- def __init__(self) -> None:
17
- self.calls: list[tuple[str, dict[str, Any]]] = []
18
-
19
- async def _call(self, command: str, params: dict[str, Any] | None = None) -> Any:
20
- self.calls.append((command, dict(params or {})))
21
- return {"refused_by": "server"}
22
-
23
-
24
- def test_contract_get_without_plan_is_forwarded_not_a_type_error() -> None:
25
- client = _Recorder()
26
- result = asyncio.run(client.plan_contract_get())
27
- assert result == {"refused_by": "server"}
28
- assert client.calls == [("plan_contract_get", {})]
29
-
30
-
31
- def test_contract_check_without_plan_is_forwarded() -> None:
32
- client = _Recorder()
33
- asyncio.run(client.plan_contract_check(scope="plan"))
34
- assert client.calls == [("plan_contract_check", {"scope": "plan"})]
35
-
36
-
37
- def test_contract_create_forwards_every_argument_verbatim() -> None:
38
- client = _Recorder()
39
- args = {
40
- "documents": [],
41
- "changed_by": "tester",
42
- "idempotency_key": "k",
43
- }
44
- asyncio.run(client.plan_contract_create(plan="p", **args))
45
- assert client.calls == [("plan_contract_create", {"plan": "p", **args})]
46
-
47
-
48
- def test_contract_update_list_delete_forward_every_argument_verbatim() -> None:
49
- client = _Recorder()
50
- update = {"contract_id": "c", "documents": [], "expected_contract_revision": "1", "changed_by": "t", "idempotency_key": "k"}
51
- asyncio.run(client.plan_contract_update(**update))
52
- asyncio.run(client.plan_contract_list(plan="p", limit=5))
53
- asyncio.run(client.plan_contract_delete(contract_id="c", changed_by="t", hard=True))
54
- assert client.calls == [
55
- ("plan_contract_update", update),
56
- ("plan_contract_list", {"plan": "p", "limit": 5}),
57
- ("plan_contract_delete", {"contract_id": "c", "changed_by": "t", "hard": True}),
58
- ]
59
-
60
-
61
- def test_contract_set_is_removed_from_the_facade() -> None:
62
- assert not hasattr(ContextGateCommandsMixin, "plan_contract_set")