coreason-manifest 0.9.0__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.
@@ -0,0 +1,57 @@
1
+ # The Prosperity Public License 3.0.0
2
+
3
+ Contributor: CoReason, Inc.
4
+
5
+ Source Code: https://github.com/CoReason-AI/coreason_manifest
6
+
7
+ ## Purpose
8
+
9
+ This license allows you to use and share this software for noncommercial purposes for free and to try this software for commercial purposes for thirty days.
10
+
11
+ ## Agreement
12
+
13
+ In order to receive this license, you have to agree to its rules. Those rules are both obligations under that agreement and conditions to your license. Don't do anything with this software that triggers a rule you can't or won't follow.
14
+
15
+ ## Notices
16
+
17
+ Make sure everyone who gets a copy of any part of this software from you, with or without changes, also gets the text of this license and the contributor and source code lines above.
18
+
19
+ ## Commercial Trial
20
+
21
+ Limit your use of this software for commercial purposes to a thirty-day trial period. If you use this software for work, your company gets one trial period for all personnel, not one trial per person.
22
+
23
+ ## Contributions Back
24
+
25
+ Developing feedback, changes, or additions that you contribute back to the contributor on the terms of a standardized public software license such as [the Blue Oak Model License 1.0.0](https://blueoakcouncil.org/license/1.0.0), [the Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html), [the MIT license](https://spdx.org/licenses/MIT.html), or [the two-clause BSD license](https://spdx.org/licenses/BSD-2-Clause.html) doesn't count as use for a commercial purpose.
26
+
27
+ ## Personal Uses
28
+
29
+ Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, doesn't count as use for a commercial purpose.
30
+
31
+ ## Noncommercial Organizations
32
+
33
+ Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution doesn't count as use for a commercial purpose regardless of the source of funding or obligations resulting from the funding.
34
+
35
+ ## Defense
36
+
37
+ Don't make any legal claim against anyone accusing this software, with or without changes, alone or with other technology, of infringing any patent.
38
+
39
+ ## Copyright
40
+
41
+ The contributor licenses you to do everything with this software that would otherwise infringe their copyright in it.
42
+
43
+ ## Patent
44
+
45
+ The contributor licenses you to do everything with this software that would otherwise infringe any patents they can license or become able to license.
46
+
47
+ ## Reliability
48
+
49
+ The contributor can't revoke this license.
50
+
51
+ ## Excuse
52
+
53
+ You're excused for unknowingly breaking [Notices](#notices) if you take all practical steps to comply within thirty days of learning you broke the rule.
54
+
55
+ ## No Liability
56
+
57
+ ***As far as the law allows, this software comes as is, without any warranty or condition, and the contributor won't be liable to anyone for any damages related to this software or this license, under any kind of legal claim.***
@@ -0,0 +1,8 @@
1
+ Copyright (c) 2025 CoReason, Inc.. All Rights Reserved
2
+
3
+ This software is licensed under the Prosperity Public License 3.0.0.
4
+ The issuer of the Prosperity Public License for this software is CoReason, Inc..
5
+
6
+ For a commercial version of this software, please contact us at gowtham.rao@coreason.ai.
7
+
8
+ GENESIS COMMIT: Initializing repository coreason_manifest per CoReason Clean Room Protocol PIP-001. This repository is established as an independently created De Novo development environment, commencing on 2026-01-01. I, Gowtham A Rao certify that this date is subsequent to my individual Temporal Firewall Date.
@@ -0,0 +1,136 @@
1
+ Metadata-Version: 2.4
2
+ Name: coreason_manifest
3
+ Version: 0.9.0
4
+ Summary: This package is the definitive source of truth. If it isn't in the manifest, it doesn't exist. If it violates the manifest, it doesn't run.
5
+ License: # The Prosperity Public License 3.0.0
6
+
7
+ Contributor: CoReason, Inc.
8
+
9
+ Source Code: https://github.com/CoReason-AI/coreason_manifest
10
+
11
+ ## Purpose
12
+
13
+ This license allows you to use and share this software for noncommercial purposes for free and to try this software for commercial purposes for thirty days.
14
+
15
+ ## Agreement
16
+
17
+ In order to receive this license, you have to agree to its rules. Those rules are both obligations under that agreement and conditions to your license. Don't do anything with this software that triggers a rule you can't or won't follow.
18
+
19
+ ## Notices
20
+
21
+ Make sure everyone who gets a copy of any part of this software from you, with or without changes, also gets the text of this license and the contributor and source code lines above.
22
+
23
+ ## Commercial Trial
24
+
25
+ Limit your use of this software for commercial purposes to a thirty-day trial period. If you use this software for work, your company gets one trial period for all personnel, not one trial per person.
26
+
27
+ ## Contributions Back
28
+
29
+ Developing feedback, changes, or additions that you contribute back to the contributor on the terms of a standardized public software license such as [the Blue Oak Model License 1.0.0](https://blueoakcouncil.org/license/1.0.0), [the Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.html), [the MIT license](https://spdx.org/licenses/MIT.html), or [the two-clause BSD license](https://spdx.org/licenses/BSD-2-Clause.html) doesn't count as use for a commercial purpose.
30
+
31
+ ## Personal Uses
32
+
33
+ Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, doesn't count as use for a commercial purpose.
34
+
35
+ ## Noncommercial Organizations
36
+
37
+ Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution doesn't count as use for a commercial purpose regardless of the source of funding or obligations resulting from the funding.
38
+
39
+ ## Defense
40
+
41
+ Don't make any legal claim against anyone accusing this software, with or without changes, alone or with other technology, of infringing any patent.
42
+
43
+ ## Copyright
44
+
45
+ The contributor licenses you to do everything with this software that would otherwise infringe their copyright in it.
46
+
47
+ ## Patent
48
+
49
+ The contributor licenses you to do everything with this software that would otherwise infringe any patents they can license or become able to license.
50
+
51
+ ## Reliability
52
+
53
+ The contributor can't revoke this license.
54
+
55
+ ## Excuse
56
+
57
+ You're excused for unknowingly breaking [Notices](#notices) if you take all practical steps to comply within thirty days of learning you broke the rule.
58
+
59
+ ## No Liability
60
+
61
+ ***As far as the law allows, this software comes as is, without any warranty or condition, and the contributor won't be liable to anyone for any damages related to this software or this license, under any kind of legal claim.***
62
+ License-File: LICENSE
63
+ License-File: NOTICE
64
+ Author: Gowtham A Rao
65
+ Author-email: gowtham.rao@coreason.ai
66
+ Requires-Python: >=3.12
67
+ Classifier: License :: Other/Proprietary License
68
+ Classifier: Programming Language :: Python :: 3.12
69
+ Classifier: Operating System :: OS Independent
70
+ Requires-Dist: coreason-identity (>=0.4.1,<0.5.0)
71
+ Requires-Dist: loguru (>=0.7.2,<0.8.0)
72
+ Requires-Dist: pydantic (>=2.12.5,<3.0.0)
73
+ Requires-Dist: pyyaml (>=6.0.3,<7.0.0)
74
+ Project-URL: Documentation, https://github.com/CoReason-AI/coreason_manifest
75
+ Project-URL: Homepage, https://github.com/CoReason-AI/coreason_manifest
76
+ Project-URL: Repository, https://github.com/CoReason-AI/coreason_manifest
77
+ Description-Content-Type: text/markdown
78
+
79
+ # Coreason Manifest
80
+
81
+ The definitive source of truth for CoReason-AI Asset definitions. "The Blueprint."
82
+
83
+ [![License: Prosperity 3.0](https://img.shields.io/badge/license-Prosperity%203.0-blue)](https://github.com/CoReason-AI/coreason-manifest)
84
+ [![Build Status](https://github.com/CoReason-AI/coreason-manifest/actions/workflows/ci.yml/badge.svg)](https://github.com/CoReason-AI/coreason-manifest/actions)
85
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
86
+ [![Documentation](https://img.shields.io/badge/docs-product_requirements-informational)](docs/product_requirements.md)
87
+
88
+ ## Overview
89
+
90
+ `coreason-manifest` acts as the validator for the "Agent Development Lifecycle" (ADLC). It ensures that every Agent produced meets strict GxP and security standards. If it isn't in the manifest, it doesn't exist. If it violates the manifest, it doesn't run.
91
+
92
+ ## Features
93
+
94
+ * **Open Agent Specification (OAS) Validation:** Parses and validates agent definitions against a strict schema.
95
+ * **Compliance Enforcement:** Uses Open Policy Agent (OPA) / Rego to enforce complex business rules and allowlists.
96
+ * **Integrity Verification:** Calculates and verifies SHA256 hashes of the agent's source code to prevent tampering.
97
+ * **Automatic Schema Generation:** Inspects Python functions to generate Agent Interfaces, automatically handling `UserContext` injection.
98
+ * **Dependency Pinning:** Enforces strict version pinning for all library dependencies.
99
+ * **Trusted Bill of Materials (TBOM):** Validates libraries against an approved list.
100
+ * **Compliance Microservice:** Can be run as a standalone API server (Service C) for centralized validation.
101
+
102
+ ## Installation
103
+
104
+ ```bash
105
+ pip install coreason-manifest
106
+ ```
107
+
108
+ ## Usage
109
+
110
+ `coreason-manifest` supports two modes: **Library (CLI)** and **Server (Microservice)**.
111
+
112
+ ### 1. Library Usage
113
+
114
+ Use the python library to validate local agent files and verify source integrity.
115
+
116
+ ```python
117
+ from coreason_manifest import ManifestEngine, ManifestConfig
118
+
119
+ # Initialize and Validate
120
+ config = ManifestConfig(policy_path="./policies/compliance.rego")
121
+ engine = ManifestEngine(config)
122
+ agent_def = engine.load_and_validate("agent.yaml", "./src")
123
+ ```
124
+
125
+ ### 2. Server Mode
126
+
127
+ Run the package as a FastAPI server to provide a centralized compliance API.
128
+
129
+ ```bash
130
+ uvicorn coreason_manifest.server:app --host 0.0.0.0 --port 8000
131
+ ```
132
+
133
+ For full details, see the [Usage Documentation](docs/usage.md).
134
+
135
+ For detailed requirements and architecture, please refer to the [Product Requirements](docs/product_requirements.md) or [Requirements](docs/requirements.md).
136
+
@@ -0,0 +1,57 @@
1
+ # Coreason Manifest
2
+
3
+ The definitive source of truth for CoReason-AI Asset definitions. "The Blueprint."
4
+
5
+ [![License: Prosperity 3.0](https://img.shields.io/badge/license-Prosperity%203.0-blue)](https://github.com/CoReason-AI/coreason-manifest)
6
+ [![Build Status](https://github.com/CoReason-AI/coreason-manifest/actions/workflows/ci.yml/badge.svg)](https://github.com/CoReason-AI/coreason-manifest/actions)
7
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
8
+ [![Documentation](https://img.shields.io/badge/docs-product_requirements-informational)](docs/product_requirements.md)
9
+
10
+ ## Overview
11
+
12
+ `coreason-manifest` acts as the validator for the "Agent Development Lifecycle" (ADLC). It ensures that every Agent produced meets strict GxP and security standards. If it isn't in the manifest, it doesn't exist. If it violates the manifest, it doesn't run.
13
+
14
+ ## Features
15
+
16
+ * **Open Agent Specification (OAS) Validation:** Parses and validates agent definitions against a strict schema.
17
+ * **Compliance Enforcement:** Uses Open Policy Agent (OPA) / Rego to enforce complex business rules and allowlists.
18
+ * **Integrity Verification:** Calculates and verifies SHA256 hashes of the agent's source code to prevent tampering.
19
+ * **Automatic Schema Generation:** Inspects Python functions to generate Agent Interfaces, automatically handling `UserContext` injection.
20
+ * **Dependency Pinning:** Enforces strict version pinning for all library dependencies.
21
+ * **Trusted Bill of Materials (TBOM):** Validates libraries against an approved list.
22
+ * **Compliance Microservice:** Can be run as a standalone API server (Service C) for centralized validation.
23
+
24
+ ## Installation
25
+
26
+ ```bash
27
+ pip install coreason-manifest
28
+ ```
29
+
30
+ ## Usage
31
+
32
+ `coreason-manifest` supports two modes: **Library (CLI)** and **Server (Microservice)**.
33
+
34
+ ### 1. Library Usage
35
+
36
+ Use the python library to validate local agent files and verify source integrity.
37
+
38
+ ```python
39
+ from coreason_manifest import ManifestEngine, ManifestConfig
40
+
41
+ # Initialize and Validate
42
+ config = ManifestConfig(policy_path="./policies/compliance.rego")
43
+ engine = ManifestEngine(config)
44
+ agent_def = engine.load_and_validate("agent.yaml", "./src")
45
+ ```
46
+
47
+ ### 2. Server Mode
48
+
49
+ Run the package as a FastAPI server to provide a centralized compliance API.
50
+
51
+ ```bash
52
+ uvicorn coreason_manifest.server:app --host 0.0.0.0 --port 8000
53
+ ```
54
+
55
+ For full details, see the [Usage Documentation](docs/usage.md).
56
+
57
+ For detailed requirements and architecture, please refer to the [Product Requirements](docs/product_requirements.md) or [Requirements](docs/requirements.md).
@@ -0,0 +1,74 @@
1
+ [tool.poetry]
2
+ name = "coreason_manifest"
3
+ version = "0.9.0"
4
+ description = "This package is the definitive source of truth. If it isn't in the manifest, it doesn't exist. If it violates the manifest, it doesn't run."
5
+ authors = ["Gowtham A Rao <gowtham.rao@coreason.ai>"]
6
+ license = "Prosperity-3.0"
7
+ readme = "README.md"
8
+ packages = [{include = "coreason_manifest", from = "src"}]
9
+
10
+ [tool.poetry.dependencies]
11
+ python = ">=3.12, <3.15"
12
+ loguru = "^0.7.2"
13
+ pydantic = "^2.12.5"
14
+ pyyaml = "^6.0.3"
15
+ coreason-identity = "^0.4.1"
16
+
17
+ [tool.poetry.group.dev.dependencies]
18
+ pytest = "^9.0.2"
19
+ ruff = "^0.14.14"
20
+ pre-commit = "^4.5.1"
21
+ pytest-cov = "^7.0.0"
22
+ mkdocs = "^1.6.1"
23
+ mkdocs-material = "^9.7.1"
24
+ pydantic = "^2.12.5"
25
+ mypy = "^1.19.1"
26
+ pytest-asyncio = "^1.3.0"
27
+ types-pyyaml = "^6.0.12.20250915"
28
+
29
+ [build-system]
30
+ requires = ["poetry-core"]
31
+ build-backend = "poetry.core.masonry.api"
32
+
33
+ [project]
34
+ name = "coreason_manifest"
35
+ version = "0.9.0"
36
+ description = "This package is the definitive source of truth. If it isn't in the manifest, it doesn't exist. If it violates the manifest, it doesn't run."
37
+ readme = "README.md"
38
+ requires-python = ">=3.12"
39
+ authors = [
40
+ { name = "Gowtham A Rao", email = "gowtham.rao@coreason.ai" },
41
+ ]
42
+ license = { file = "LICENSE" }
43
+ classifiers = [
44
+ "License :: Other/Proprietary License",
45
+ "Programming Language :: Python :: 3.12",
46
+ "Operating System :: OS Independent",
47
+ ]
48
+
49
+ [project.urls]
50
+ Homepage = "https://github.com/CoReason-AI/coreason_manifest"
51
+ Repository = "https://github.com/CoReason-AI/coreason_manifest"
52
+ Documentation = "https://github.com/CoReason-AI/coreason_manifest"
53
+
54
+ [tool.ruff]
55
+ line-length = 120
56
+ target-version = "py312"
57
+
58
+ [tool.ruff.lint]
59
+ select = ["E", "F", "B", "I"]
60
+ ignore = []
61
+
62
+ [tool.mypy]
63
+ python_version = "3.12"
64
+ strict = true
65
+ ignore_missing_imports = true
66
+ plugins = ["pydantic.mypy"]
67
+
68
+ [tool.pytest.ini_options]
69
+ addopts = "--cov=src --cov-report=term-missing --cov-fail-under=100"
70
+ testpaths = ["tests"]
71
+ asyncio_mode = "auto"
72
+
73
+ [tool.coverage.run]
74
+ omit = ["tests/*", "/tmp/*"]
@@ -0,0 +1,17 @@
1
+ from .definitions.agent import AgentDefinition
2
+ from .definitions.audit import AuditLog
3
+ from .definitions.simulation import SimulationScenario, SimulationStep, SimulationTrace
4
+ from .definitions.topology import Edge, Node, Topology
5
+ from .recipes import RecipeManifest
6
+
7
+ __all__ = [
8
+ "AgentDefinition",
9
+ "Topology",
10
+ "Node",
11
+ "Edge",
12
+ "SimulationScenario",
13
+ "SimulationTrace",
14
+ "SimulationStep",
15
+ "AuditLog",
16
+ "RecipeManifest",
17
+ ]
@@ -0,0 +1,49 @@
1
+ from .agent import AgentDefinition, AgentRuntimeConfig
2
+ from .events import (
3
+ ArtifactGenerated,
4
+ ArtifactGeneratedPayload,
5
+ CouncilVote,
6
+ CouncilVotePayload,
7
+ EdgeTraversed,
8
+ EdgeTraversedPayload,
9
+ GraphEvent,
10
+ NodeCompleted,
11
+ NodeCompletedPayload,
12
+ NodeInit,
13
+ # Export Aliases too
14
+ NodeInitPayload,
15
+ NodeRestored,
16
+ NodeSkipped,
17
+ NodeSkippedPayload,
18
+ NodeStarted,
19
+ NodeStartedPayload,
20
+ NodeStream,
21
+ NodeStreamPayload,
22
+ WorkflowError,
23
+ WorkflowErrorPayload,
24
+ )
25
+
26
+ __all__ = [
27
+ "AgentRuntimeConfig",
28
+ "AgentDefinition",
29
+ "GraphEvent",
30
+ "NodeInit",
31
+ "NodeStarted",
32
+ "NodeCompleted",
33
+ "NodeRestored",
34
+ "NodeSkipped",
35
+ "NodeStream",
36
+ "ArtifactGenerated",
37
+ "EdgeTraversed",
38
+ "CouncilVote",
39
+ "WorkflowError",
40
+ "NodeInitPayload",
41
+ "NodeStartedPayload",
42
+ "NodeCompletedPayload",
43
+ "NodeSkippedPayload",
44
+ "NodeStreamPayload",
45
+ "EdgeTraversedPayload",
46
+ "ArtifactGeneratedPayload",
47
+ "CouncilVotePayload",
48
+ "WorkflowErrorPayload",
49
+ ]