coreason-manifest 0.10.0__py3-none-any.whl → 0.13.0__py3-none-any.whl

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 (31) hide show
  1. coreason_manifest/__init__.py +35 -82
  2. coreason_manifest/{definitions/base.py → common.py} +18 -1
  3. coreason_manifest/governance.py +83 -0
  4. coreason_manifest/schemas/coreason-v2.schema.json +462 -0
  5. coreason_manifest/utils/logger.py +0 -45
  6. coreason_manifest/v2/__init__.py +1 -0
  7. coreason_manifest/v2/governance.py +144 -0
  8. coreason_manifest/v2/io.py +132 -0
  9. coreason_manifest/v2/resolver.py +67 -0
  10. coreason_manifest/v2/spec/__init__.py +1 -0
  11. coreason_manifest/v2/spec/contracts.py +34 -0
  12. coreason_manifest/v2/spec/definitions.py +196 -0
  13. coreason_manifest/v2/validator.py +48 -0
  14. {coreason_manifest-0.10.0.dist-info → coreason_manifest-0.13.0.dist-info}/METADATA +48 -72
  15. coreason_manifest-0.13.0.dist-info/RECORD +20 -0
  16. coreason_manifest/definitions/__init__.py +0 -60
  17. coreason_manifest/definitions/agent.py +0 -370
  18. coreason_manifest/definitions/audit.py +0 -181
  19. coreason_manifest/definitions/events.py +0 -423
  20. coreason_manifest/definitions/message.py +0 -188
  21. coreason_manifest/definitions/simulation.py +0 -79
  22. coreason_manifest/definitions/simulation_config.py +0 -46
  23. coreason_manifest/definitions/topology.py +0 -341
  24. coreason_manifest/recipes.py +0 -84
  25. coreason_manifest/schemas/agent.schema.json +0 -1051
  26. coreason_manifest/schemas/recipe.schema.json +0 -813
  27. coreason_manifest/v1/__init__.py +0 -15
  28. coreason_manifest-0.10.0.dist-info/RECORD +0 -22
  29. {coreason_manifest-0.10.0.dist-info → coreason_manifest-0.13.0.dist-info}/WHEEL +0 -0
  30. {coreason_manifest-0.10.0.dist-info → coreason_manifest-0.13.0.dist-info}/licenses/LICENSE +0 -0
  31. {coreason_manifest-0.10.0.dist-info → coreason_manifest-0.13.0.dist-info}/licenses/NOTICE +0 -0
@@ -1,84 +0,0 @@
1
- # Copyright (c) 2025 CoReason, Inc.
2
- #
3
- # This software is proprietary and dual-licensed.
4
- # Licensed under the Prosperity Public License 3.0 (the "License").
5
- # A copy of the license is available at https://prosperitylicense.com/versions/3.0.0
6
- # For details, see the LICENSE file.
7
- # Commercial use beyond a 30-day trial requires a separate license.
8
- #
9
- # Source Code: https://github.com/CoReason-AI/coreason-manifest
10
-
11
- # Copyright (c) 2025 CoReason, Inc.
12
- #
13
- # This software is proprietary and dual-licensed.
14
- # Licensed under the Prosperity Public License 3.0 (the "License").
15
- # A copy of the license is available at https://prosperitylicense.com/versions/3.0.0
16
- # For details, see the LICENSE file.
17
- # Commercial use beyond a 30-day trial requires a separate license.
18
- #
19
- # Source Code: https://github.com/CoReason-AI/coreason_maco
20
-
21
- from typing import Any, Dict, Optional
22
-
23
- from pydantic import ConfigDict, Field
24
-
25
- from .definitions.agent import VersionStr
26
- from .definitions.base import CoReasonBaseModel
27
- from .definitions.topology import GraphTopology, StateDefinition
28
-
29
-
30
- class RecipeInterface(CoReasonBaseModel):
31
- """Defines the input/output contract for a Recipe.
32
-
33
- Attributes:
34
- inputs: JSON Schema defining valid entry arguments.
35
- outputs: JSON Schema defining the guaranteed structure of the final result.
36
- """
37
-
38
- model_config = ConfigDict(extra="forbid")
39
-
40
- inputs: Dict[str, Any] = Field(..., description="JSON Schema defining valid entry arguments.")
41
- outputs: Dict[str, Any] = Field(
42
- ..., description="JSON Schema defining the guaranteed structure of the final result."
43
- )
44
-
45
-
46
- class RecipeManifest(CoReasonBaseModel):
47
- """The executable specification for the MACO engine.
48
-
49
- Attributes:
50
- id: Unique identifier for the recipe.
51
- version: Version of the recipe.
52
- name: Human-readable name of the recipe.
53
- description: Detailed description of the recipe.
54
- interface: Defines the input/output contract for the Recipe.
55
- state: Defines the internal state (memory) of the Recipe.
56
- parameters: Dictionary of build-time constants.
57
- topology: The topology definition of the workflow.
58
- integrity_hash: SHA256 hash of the canonical JSON representation of the topology.
59
- metadata: Container for design-time data.
60
- """
61
-
62
- model_config = ConfigDict(extra="forbid")
63
-
64
- id: str = Field(..., description="Unique identifier for the recipe.")
65
- version: VersionStr = Field(..., description="Version of the recipe.")
66
- name: str = Field(..., description="Human-readable name of the recipe.")
67
- description: Optional[str] = Field(None, description="Detailed description of the recipe.")
68
- interface: RecipeInterface = Field(..., description="Defines the input/output contract for the Recipe.")
69
- state: StateDefinition = Field(..., description="Defines the internal state (memory) of the Recipe.")
70
- parameters: Dict[str, Any] = Field(..., description="Dictionary of build-time constants.")
71
- topology: GraphTopology = Field(..., description="The topology definition of the workflow.")
72
- integrity_hash: Optional[str] = Field(
73
- default=None,
74
- description=(
75
- "SHA256 hash of the canonical JSON representation of the topology. "
76
- "Enforced by Builder, verified by Runtime."
77
- ),
78
- )
79
- metadata: Dict[str, Any] = Field(
80
- default_factory=dict,
81
- description=(
82
- "Container for design-time data (UI coordinates, resolution logs, draft status) to support re-hydration."
83
- ),
84
- )