cognition-system 0.8.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,17 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ Copyright 2026 Wei Zhide AI Industry Observation
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.4
2
+ Name: cognition-system
3
+ Version: 0.8.0
4
+ Summary: Aggregate metadata package for the Cognition System v0.8.0 baseline.
5
+ Classifier: Programming Language :: Python :: 3
6
+ Classifier: Programming Language :: Python :: 3.14
7
+ Classifier: Programming Language :: Python :: 3 :: Only
8
+ Requires-Python: >=3.14
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: cognition-system-schemas==0.8.0
12
+ Requires-Dist: cognition-system-behavior-contracts==0.8.0
13
+ Requires-Dist: cognition-system-config-assembly==0.8.0
14
+ Requires-Dist: cognition-system-config-contexts==0.8.0
15
+ Requires-Dist: cognition-system-runtime==0.8.0
16
+ Requires-Dist: cognition-system-contract-core==0.8.0
17
+ Requires-Dist: cognition-system-adk-adapter==0.8.0
18
+ Requires-Dist: cognition-system-observability-hub==0.8.0
19
+ Requires-Dist: cognition-system-cognition-agent==0.8.0
20
+ Requires-Dist: cognition-system-cognition-governance==0.8.0
21
+ Requires-Dist: cognition-system-evaluation==0.8.0
22
+ Requires-Dist: cognition-system-composition==0.8.0
23
+ Requires-Dist: cognition-system-external-readonly==0.8.0
24
+ Requires-Dist: cognition-system-runtime-container==0.8.0
25
+ Requires-Dist: cognition-system-operation-flows==0.8.0
26
+ Requires-Dist: cognition-system-product-gateway==0.8.0
27
+ Requires-Dist: cognition-system-product-runtime-assembly==0.8.0
28
+ Requires-Dist: cognition-system-product-application-assembly==0.8.0
29
+ Requires-Dist: cognition-system-cli==0.8.0
30
+ Provides-Extra: release
31
+ Requires-Dist: build>=1.4.4; extra == "release"
32
+ Requires-Dist: twine>=6.2.0; extra == "release"
33
+ Provides-Extra: test
34
+ Requires-Dist: pytest>=9.0.3; extra == "test"
35
+ Requires-Dist: pytest-cov>=7.1.0; extra == "test"
36
+ Requires-Dist: pytest-mock>=3.15.1; extra == "test"
37
+ Requires-Dist: pytest-asyncio>=1.3.0; extra == "test"
38
+ Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
39
+ Requires-Dist: pytest-timeout>=2.4.0; extra == "test"
40
+ Requires-Dist: factory-boy>=3.3.3; extra == "test"
41
+ Requires-Dist: Faker>=40.15.0; extra == "test"
42
+ Requires-Dist: freezegun>=1.5.5; extra == "test"
43
+ Requires-Dist: hypothesis>=6.152.1; extra == "test"
44
+ Requires-Dist: pytest-html>=4.2.0; extra == "test"
45
+ Requires-Dist: pytest-json-report>=1.5.0; extra == "test"
46
+ Dynamic: license-file
47
+
48
+ Cognition System v0.8.0 public aggregate package. See the version-specific public README in the release repository for usage and boundary notes.
@@ -0,0 +1,90 @@
1
+ # Cognition System
2
+
3
+ English | [简体中文](README.zh-CN.md)
4
+
5
+ Current version: `v0.8.0`
6
+
7
+ Cognition System is a cognitive capability system for governed AI collaboration. It combines language models, tool ecosystems, runtime capabilities, and governance rules to help users understand sources, handle tasks, and deliver traceable results within explicit approval and reviewable boundaries.
8
+
9
+ The currently verifiable product capability is external-readonly question answering: with your approval, the system reads a URL or evidence path and answers based on that material.
10
+
11
+ ## What It Can Do Today
12
+
13
+ Ask a question about a URL or governed evidence input:
14
+
15
+ ```bash
16
+ cognition external-readonly ask --guided
17
+ ```
18
+
19
+ Guided mode asks for:
20
+
21
+ 1. The material to read.
22
+ 2. Your question.
23
+ 3. A local or online model path.
24
+ 4. Approval to read the external source for this run.
25
+ 5. Approval to call a model for this run.
26
+
27
+ The answer shows its evidence context where possible. If the material is too short or insufficient, the system says so instead of inventing unsupported content.
28
+
29
+ ## Install
30
+
31
+ ```bash
32
+ python -m pip install --upgrade pip
33
+ python -m pip install "cognition-system==0.8.0"
34
+ ```
35
+
36
+ Or with uv:
37
+
38
+ ```bash
39
+ uv pip install "cognition-system==0.8.0"
40
+ ```
41
+
42
+ Python `3.14` is required.
43
+
44
+ ## Quick Trial
45
+
46
+ ```bash
47
+ cognition external-readonly ask --guided
48
+ ```
49
+
50
+ Example:
51
+
52
+ ```text
53
+ 请输入 URL 或 evidence path: https://example.com
54
+ 请输入问题: 这份资料主要说明了什么?
55
+ 请选择模型:1) deepseek 2) gemma4
56
+ 请输入 1、2、deepseek 或 gemma4: 2
57
+ 允许本次外部只读抓取该 URL? 输入 yes/no: y
58
+ 允许本次受控大模型回答? 输入 yes/no: y
59
+ ```
60
+
61
+ Model choices:
62
+
63
+ 1. `gemma4`: local Ollama / Gemma4.
64
+ 2. `deepseek`: online DeepSeek V4 Flash.
65
+
66
+ ## Safety Boundaries
67
+
68
+ By default, the system does not:
69
+
70
+ 1. Access the network silently.
71
+ 2. Call a model silently.
72
+ 3. Read or save provider keys silently.
73
+ 4. Expose raw web pages, raw model responses, tracebacks, or provider keys in answers.
74
+ 5. Present current follow-up context as long-term memory.
75
+
76
+ ## Useful Commands
77
+
78
+ ```bash
79
+ cognition --help
80
+ cognition external-readonly ask --help
81
+ cognition external-readonly ask --guided
82
+ cognition config init --config-root ./config
83
+ ```
84
+
85
+ ## Documentation
86
+
87
+ - Quick start: [QUICKSTART.md](QUICKSTART.md)
88
+ - Chinese quick start: [QUICKSTART.zh-CN.md](QUICKSTART.zh-CN.md)
89
+ - Version history: [CHANGELOG.md](CHANGELOG.md)
90
+ - Source repository: https://github.com/peacock-lab/cognition-engine
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.4
2
+ Name: cognition-system
3
+ Version: 0.8.0
4
+ Summary: Aggregate metadata package for the Cognition System v0.8.0 baseline.
5
+ Classifier: Programming Language :: Python :: 3
6
+ Classifier: Programming Language :: Python :: 3.14
7
+ Classifier: Programming Language :: Python :: 3 :: Only
8
+ Requires-Python: >=3.14
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: cognition-system-schemas==0.8.0
12
+ Requires-Dist: cognition-system-behavior-contracts==0.8.0
13
+ Requires-Dist: cognition-system-config-assembly==0.8.0
14
+ Requires-Dist: cognition-system-config-contexts==0.8.0
15
+ Requires-Dist: cognition-system-runtime==0.8.0
16
+ Requires-Dist: cognition-system-contract-core==0.8.0
17
+ Requires-Dist: cognition-system-adk-adapter==0.8.0
18
+ Requires-Dist: cognition-system-observability-hub==0.8.0
19
+ Requires-Dist: cognition-system-cognition-agent==0.8.0
20
+ Requires-Dist: cognition-system-cognition-governance==0.8.0
21
+ Requires-Dist: cognition-system-evaluation==0.8.0
22
+ Requires-Dist: cognition-system-composition==0.8.0
23
+ Requires-Dist: cognition-system-external-readonly==0.8.0
24
+ Requires-Dist: cognition-system-runtime-container==0.8.0
25
+ Requires-Dist: cognition-system-operation-flows==0.8.0
26
+ Requires-Dist: cognition-system-product-gateway==0.8.0
27
+ Requires-Dist: cognition-system-product-runtime-assembly==0.8.0
28
+ Requires-Dist: cognition-system-product-application-assembly==0.8.0
29
+ Requires-Dist: cognition-system-cli==0.8.0
30
+ Provides-Extra: release
31
+ Requires-Dist: build>=1.4.4; extra == "release"
32
+ Requires-Dist: twine>=6.2.0; extra == "release"
33
+ Provides-Extra: test
34
+ Requires-Dist: pytest>=9.0.3; extra == "test"
35
+ Requires-Dist: pytest-cov>=7.1.0; extra == "test"
36
+ Requires-Dist: pytest-mock>=3.15.1; extra == "test"
37
+ Requires-Dist: pytest-asyncio>=1.3.0; extra == "test"
38
+ Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
39
+ Requires-Dist: pytest-timeout>=2.4.0; extra == "test"
40
+ Requires-Dist: factory-boy>=3.3.3; extra == "test"
41
+ Requires-Dist: Faker>=40.15.0; extra == "test"
42
+ Requires-Dist: freezegun>=1.5.5; extra == "test"
43
+ Requires-Dist: hypothesis>=6.152.1; extra == "test"
44
+ Requires-Dist: pytest-html>=4.2.0; extra == "test"
45
+ Requires-Dist: pytest-json-report>=1.5.0; extra == "test"
46
+ Dynamic: license-file
47
+
48
+ Cognition System v0.8.0 public aggregate package. See the version-specific public README in the release repository for usage and boundary notes.
@@ -0,0 +1,8 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ cognition_system.egg-info/PKG-INFO
5
+ cognition_system.egg-info/SOURCES.txt
6
+ cognition_system.egg-info/dependency_links.txt
7
+ cognition_system.egg-info/requires.txt
8
+ cognition_system.egg-info/top_level.txt
@@ -0,0 +1,37 @@
1
+ cognition-system-schemas==0.8.0
2
+ cognition-system-behavior-contracts==0.8.0
3
+ cognition-system-config-assembly==0.8.0
4
+ cognition-system-config-contexts==0.8.0
5
+ cognition-system-runtime==0.8.0
6
+ cognition-system-contract-core==0.8.0
7
+ cognition-system-adk-adapter==0.8.0
8
+ cognition-system-observability-hub==0.8.0
9
+ cognition-system-cognition-agent==0.8.0
10
+ cognition-system-cognition-governance==0.8.0
11
+ cognition-system-evaluation==0.8.0
12
+ cognition-system-composition==0.8.0
13
+ cognition-system-external-readonly==0.8.0
14
+ cognition-system-runtime-container==0.8.0
15
+ cognition-system-operation-flows==0.8.0
16
+ cognition-system-product-gateway==0.8.0
17
+ cognition-system-product-runtime-assembly==0.8.0
18
+ cognition-system-product-application-assembly==0.8.0
19
+ cognition-system-cli==0.8.0
20
+
21
+ [release]
22
+ build>=1.4.4
23
+ twine>=6.2.0
24
+
25
+ [test]
26
+ pytest>=9.0.3
27
+ pytest-cov>=7.1.0
28
+ pytest-mock>=3.15.1
29
+ pytest-asyncio>=1.3.0
30
+ pytest-xdist>=3.8.0
31
+ pytest-timeout>=2.4.0
32
+ factory-boy>=3.3.3
33
+ Faker>=40.15.0
34
+ freezegun>=1.5.5
35
+ hypothesis>=6.152.1
36
+ pytest-html>=4.2.0
37
+ pytest-json-report>=1.5.0
@@ -0,0 +1,119 @@
1
+ [build-system]
2
+ requires = ["setuptools>=69", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ # Root package v0.8.0 release note:
6
+ # - This pyproject represents the Cognition System aggregate distribution.
7
+ # - The aggregate package depends on the v0.8.0 multi-package baseline under
8
+ # packages/*.
9
+ # - The 0.8.0 line is a new PyPI baseline under cognition-system distribution
10
+ # names.
11
+ [project]
12
+ name = "cognition-system"
13
+ version = "0.8.0"
14
+ description = "Aggregate metadata package for the Cognition System v0.8.0 baseline."
15
+ readme = { text = "Cognition System v0.8.0 public aggregate package. See the version-specific public README in the release repository for usage and boundary notes.", content-type = "text/markdown" }
16
+ requires-python = ">=3.14"
17
+ dependencies = [
18
+ "cognition-system-schemas==0.8.0",
19
+ "cognition-system-behavior-contracts==0.8.0",
20
+ "cognition-system-config-assembly==0.8.0",
21
+ "cognition-system-config-contexts==0.8.0",
22
+ "cognition-system-runtime==0.8.0",
23
+ "cognition-system-contract-core==0.8.0",
24
+ "cognition-system-adk-adapter==0.8.0",
25
+ "cognition-system-observability-hub==0.8.0",
26
+ "cognition-system-cognition-agent==0.8.0",
27
+ "cognition-system-cognition-governance==0.8.0",
28
+ "cognition-system-evaluation==0.8.0",
29
+ "cognition-system-composition==0.8.0",
30
+ "cognition-system-external-readonly==0.8.0",
31
+ "cognition-system-runtime-container==0.8.0",
32
+ "cognition-system-operation-flows==0.8.0",
33
+ "cognition-system-product-gateway==0.8.0",
34
+ "cognition-system-product-runtime-assembly==0.8.0",
35
+ "cognition-system-product-application-assembly==0.8.0",
36
+ "cognition-system-cli==0.8.0",
37
+ ]
38
+
39
+ classifiers = [
40
+ "Programming Language :: Python :: 3",
41
+ "Programming Language :: Python :: 3.14",
42
+ "Programming Language :: Python :: 3 :: Only",
43
+ ]
44
+
45
+ [project.optional-dependencies]
46
+ release = [
47
+ "build>=1.4.4",
48
+ "twine>=6.2.0",
49
+ ]
50
+
51
+ test = [
52
+ "pytest>=9.0.3",
53
+ "pytest-cov>=7.1.0",
54
+ "pytest-mock>=3.15.1",
55
+ "pytest-asyncio>=1.3.0",
56
+ "pytest-xdist>=3.8.0",
57
+ "pytest-timeout>=2.4.0",
58
+ "factory-boy>=3.3.3",
59
+ "Faker>=40.15.0",
60
+ "freezegun>=1.5.5",
61
+ "hypothesis>=6.152.1",
62
+ "pytest-html>=4.2.0",
63
+ "pytest-json-report>=1.5.0",
64
+ ]
65
+
66
+
67
+ # The root distribution is an aggregate metadata package. It intentionally has
68
+ # no importable root modules; product code is published from packages/*.
69
+ [tool.setuptools]
70
+ packages = []
71
+ py-modules = []
72
+
73
+ [tool.pytest.ini_options]
74
+ testpaths = ["tests"]
75
+ pythonpath = ["."]
76
+ python_files = ["test_*.py"]
77
+ python_classes = ["Test*"]
78
+ python_functions = ["test_*"]
79
+ norecursedirs = [".git", ".venv", "venv", "env", "build", "dist", "*.egg-info"]
80
+ markers = [
81
+ "unit: 单元测试",
82
+ "integration: 集成测试",
83
+ "slow: 慢速测试(运行时间 > 5秒)",
84
+ "network: 需要网络连接的测试",
85
+ "mock: 使用模拟的测试",
86
+ ]
87
+ addopts = ["-v", "--tb=short", "--strict-markers"]
88
+
89
+ # Workspace members under packages/* are the v0.8.0 multi-package baseline.
90
+ [tool.uv.workspace]
91
+ members = [
92
+ "packages/*",
93
+ ]
94
+
95
+ [tool.uv.sources]
96
+ cognition-system-schemas = { workspace = true }
97
+ cognition-system-behavior-contracts = { workspace = true }
98
+ cognition-system-config-contexts = { workspace = true }
99
+ cognition-system-cognition-agent = { workspace = true }
100
+ cognition-system-cognition-governance = { workspace = true }
101
+ cognition-system-evaluation = { workspace = true }
102
+ cognition-system-config-assembly = { workspace = true }
103
+ cognition-system-runtime = { workspace = true }
104
+ cognition-system-composition = { workspace = true }
105
+ cognition-system-external-readonly = { workspace = true }
106
+ cognition-system-contract-core = { workspace = true }
107
+ cognition-system-adk-adapter = { workspace = true }
108
+ cognition-system-observability-hub = { workspace = true }
109
+ cognition-system-runtime-container = { workspace = true }
110
+ cognition-system-operation-flows = { workspace = true }
111
+ cognition-system-cli = { workspace = true }
112
+ cognition-system-product-gateway = { workspace = true }
113
+ cognition-system-product-runtime-assembly = { workspace = true }
114
+ cognition-system-product-application-assembly = { workspace = true }
115
+
116
+ [dependency-groups]
117
+ dev = [
118
+ "hatchling>=1.29.0",
119
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+