cks-runtime 0.1.2__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.
@@ -0,0 +1,306 @@
1
+ Metadata-Version: 2.4
2
+ Name: cks-runtime
3
+ Version: 0.1.2
4
+ Summary: Canonical Runtime for the Canonical Knowledge Structure ecosystem
5
+ Author: Vladyslav Hruznov
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/Deus-corp/cks-runtime
8
+ Project-URL: Repository, https://github.com/Deus-corp/cks-runtime
9
+ Project-URL: Issues, https://github.com/Deus-corp/cks-runtime/issues
10
+ Keywords: canonical-knowledge-structure,runtime,knowledge-runtime,transactions,sessions,versioning
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Topic :: Software Development :: Libraries
16
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
+ Requires-Python: >=3.11
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Provides-Extra: dev
21
+ Requires-Dist: pytest>=8.0; extra == "dev"
22
+ Requires-Dist: mypy>=1.0; extra == "dev"
23
+ Dynamic: license-file
24
+
25
+ # CKS Runtime
26
+
27
+ > The canonical operational environment for Canonical Knowledge Structures.
28
+
29
+ ![Python](https://img.shields.io/badge/python-3.11%2B-blue)
30
+ ![License](https://img.shields.io/badge/license-MIT-green)
31
+ ![Status](https://img.shields.io/badge/status-alpha-orange)
32
+
33
+ CKS Runtime is the canonical execution environment for
34
+ Canonical Knowledge Structures (CKS).
35
+
36
+ Where **CKS Core** defines the semantics of knowledge,
37
+ **CKS Runtime** defines its operational lifecycle.
38
+
39
+ Runtime provides the infrastructure required to execute,
40
+ manage, version, persist and expose Canonical Knowledge Structures
41
+ without becoming a semantic authority itself.
42
+
43
+ ---
44
+
45
+ # Why Runtime?
46
+
47
+ Canonical knowledge is immutable.
48
+
49
+ Operational state is not.
50
+
51
+ Applications need to:
52
+
53
+ - create sessions
54
+ - execute transactions
55
+ - maintain history
56
+ - persist state
57
+ - expose APIs
58
+ - coordinate diagnostics
59
+
60
+ These responsibilities belong to Runtime rather than CKS Core.
61
+
62
+ ```
63
+ Canonical Knowledge Structure
64
+
65
+
66
+ CKS Runtime
67
+
68
+ ┌──────────┼──────────┐
69
+ ▼ ▼ ▼
70
+ Session Versioning Storage
71
+ ```
72
+
73
+ Runtime manages operational behaviour.
74
+
75
+ CKS Core defines semantic behaviour.
76
+
77
+ ---
78
+
79
+ # Core Principles
80
+
81
+ CKS Runtime is founded on four architectural principles.
82
+
83
+ ### Runtime is not a semantic authority.
84
+
85
+ Semantic meaning permanently belongs to CKS Core.
86
+
87
+ Runtime never redefines knowledge.
88
+
89
+ ---
90
+
91
+ ### Runtime orchestrates semantic services.
92
+
93
+ Validation.
94
+
95
+ Evolution.
96
+
97
+ Serialization.
98
+
99
+ Diagnostics.
100
+
101
+ These services originate from CKS Core.
102
+
103
+ Runtime coordinates their execution.
104
+
105
+ ---
106
+
107
+ ### Operational state belongs to Runtime.
108
+
109
+ Sessions.
110
+
111
+ Transactions.
112
+
113
+ Persistence.
114
+
115
+ Version History.
116
+
117
+ These are Runtime responsibilities.
118
+
119
+ ---
120
+
121
+ ### Observable behaviour is standardized.
122
+
123
+ The Runtime Standard specifies observable operational behaviour rather than implementation techniques.
124
+
125
+ ---
126
+
127
+ # Runtime Architecture
128
+
129
+ The CKS ecosystem is organized into four architectural layers.
130
+
131
+ ```
132
+ Applications
133
+
134
+
135
+ Adapters
136
+
137
+
138
+ CKS Runtime
139
+
140
+
141
+ Public CKS Core API
142
+
143
+
144
+ CKS Core
145
+ ```
146
+
147
+ Responsibilities are strictly separated.
148
+
149
+ | Layer | Responsibility |
150
+ |--------|----------------|
151
+ | CKS Core | Semantic authority |
152
+ | CKS Runtime | Operational orchestration |
153
+ | Adapters | Protocol exposure |
154
+ | Applications | Business logic |
155
+
156
+ ---
157
+
158
+ # Features
159
+
160
+ The current Reference Runtime provides:
161
+
162
+ - Runtime Sessions
163
+ - Transaction Management
164
+ - Version History
165
+ - Storage Abstraction
166
+ - Runtime Diagnostics
167
+ - Explainability Coordination
168
+ - Canonical Runtime API
169
+ - Reference Runtime Architecture
170
+ - Runtime Conformance Model
171
+
172
+ ---
173
+
174
+ # Design Goals
175
+
176
+ CKS Runtime is designed to be:
177
+
178
+ - deterministic
179
+ - implementation-independent
180
+ - transport-independent
181
+ - storage-independent
182
+ - session-oriented
183
+ - transaction-oriented
184
+ - semantically neutral
185
+
186
+ ---
187
+
188
+ # Relationship to CKS Core
189
+
190
+ CKS Runtime depends upon CKS Core.
191
+
192
+ CKS Runtime never replaces CKS Core.
193
+
194
+ ```
195
+ CKS Core
196
+ defines semantics
197
+
198
+
199
+
200
+
201
+
202
+ CKS Runtime
203
+ orchestrates semantics
204
+ manages operational lifecycle
205
+ ```
206
+
207
+ Runtime communicates exclusively through the public CKS Core API.
208
+
209
+ ---
210
+
211
+ # Installation
212
+
213
+ From PyPI:
214
+
215
+ ```bash
216
+ pip install cks-core
217
+ pip install cks-runtime
218
+ ```
219
+
220
+ Or from source:
221
+
222
+ ```bash
223
+ git clone https://github.com/Deus-corp/cks-runtime.git
224
+
225
+ cd cks-runtime
226
+
227
+ pip install -e .
228
+ ```
229
+
230
+ ---
231
+
232
+ # Quick Example
233
+
234
+ ```python
235
+ from cks_runtime import Runtime
236
+
237
+ runtime = Runtime()
238
+
239
+ session = runtime.sessions.create(
240
+ knowledge_structure=my_structure
241
+ )
242
+
243
+ transaction = runtime.transactions.begin(session)
244
+
245
+ # Runtime coordinates execution.
246
+ # CKS Core defines semantics.
247
+ ```
248
+
249
+ ---
250
+
251
+ # Documentation
252
+
253
+ The Runtime Standard consists of the following normative specifications.
254
+
255
+ | Specification | Purpose |
256
+ |--------------|---------|
257
+ | SPEC-001 | Runtime Overview |
258
+ | SPEC-002 | Session Model |
259
+ | SPEC-003 | Runtime API |
260
+ | SPEC-004 | Diagnostics |
261
+ | SPEC-005 | Transactions |
262
+ | SPEC-006 | Storage |
263
+ | SPEC-007 | Version History |
264
+ | SPEC-008 | Runtime Conformance |
265
+
266
+ Supporting documents include:
267
+
268
+ - Runtime Charter
269
+ - Architectural Analyses
270
+ - Architecture Decision Records
271
+ - Reference Architecture
272
+
273
+ ---
274
+
275
+ # Project Status
276
+
277
+ Current implementation status:
278
+
279
+ | Component | Status |
280
+ |----------|--------|
281
+ | Runtime Architecture | ✅ Complete |
282
+ | Session Model | ✅ Complete |
283
+ | Transaction Model | ✅ Complete |
284
+ | Version History | ✅ Complete |
285
+ | Diagnostics | ✅ Complete |
286
+ | Storage Abstraction | ✅ Complete |
287
+ | Runtime API | ✅ Complete |
288
+ | Runtime Documentation | ✅ Complete |
289
+ | Reference Implementation | 🚧 In Progress |
290
+ | Adapter Integration | ⏳ Planned |
291
+
292
+ ---
293
+
294
+ # Long-Term Vision
295
+
296
+ CKS Runtime aims to become the canonical operational foundation shared by every CKS-compatible implementation.
297
+
298
+ Future adapter standards—including MCP, CLI, HTTP and others—will rely on Runtime rather than communicating directly with CKS Core.
299
+
300
+ This preserves a single semantic authority while allowing unlimited operational implementations.
301
+
302
+ ---
303
+
304
+ # License
305
+
306
+ MIT
@@ -0,0 +1,29 @@
1
+ cks_runtime/__init__.py,sha256=3cxooLDux7C0qZlv1QCabubhVu_nt7N40XqnAZpBWCY,135
2
+ cks_runtime/config.py,sha256=Ye5Zo4CjCGIcf7ZscqIaLpOoy7gQ1fAqJGSNNV4232o,350
3
+ cks_runtime/runtime.py,sha256=eQUmtEzMp3r4vC1swddj__W8-AJFPYBZEb9Udsnw62Y,1607
4
+ cks_runtime/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ cks_runtime/core_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ cks_runtime/core_api/interfaces.py,sha256=fKajxfDfnU-RLedMIKBA40EIMB1E0V-fovPqXW5v0Bw,1594
7
+ cks_runtime/diagnostics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ cks_runtime/diagnostics/aggregator.py,sha256=rkYMgOqPPACrCXQwfsitwaL566X3vp7Qpyle0XpUxSs,1839
9
+ cks_runtime/diagnostics/diagnostic.py,sha256=X03gXaltEP3NfrwKfPAZTtt7XKQY3z4UCtF6ADZrTO8,1240
10
+ cks_runtime/explainability/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ cks_runtime/explainability/explainability_manager.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
+ cks_runtime/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
+ cks_runtime/session/session.py,sha256=mMInXx0XCUSDedx17HOV2SBxRREmM4nu95sygP6vn0o,1470
14
+ cks_runtime/session/session_manager.py,sha256=oR28jiEw1EqxKRYnjdTP--VpkJBi6H8apiYo518EtTE,1769
15
+ cks_runtime/storage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
+ cks_runtime/storage/exceptions.py,sha256=SAHbwfGd4wDoCTGuN5r93jNeC9reram_enk6mX1Z9YM,720
17
+ cks_runtime/storage/memory_storage.py,sha256=5XSaW2sYAvJZr9cGhso2_Erz-XL4m_0t--A8iVCIjwE,2639
18
+ cks_runtime/storage/storage.py,sha256=FakKf82T2XmUB9kz4ynwxpUsPy1_5ZUxhB6TLv4RvwY,1675
19
+ cks_runtime/transaction/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
+ cks_runtime/transaction/transaction.py,sha256=c-pBm3e97q4E0JSh2EtkAFCde9QlpsKd34s_V5ivbcE,3122
21
+ cks_runtime/transaction/transaction_manager.py,sha256=8Ide59YSma05jtp2TzW83QsBghbU3r_1m8Vm7SPsrS4,2418
22
+ cks_runtime/versioning/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
+ cks_runtime/versioning/version.py,sha256=2tZbVnIYGd_zs7ryw0siiIFCGQ78JP7hyNmyqpaC4Bc,873
24
+ cks_runtime/versioning/version_manager.py,sha256=lvJCZE4JaAYGxAO9hGDwq5Hg_ErwqDEZek4lgZmh4Rw,1870
25
+ cks_runtime-0.1.2.dist-info/licenses/LICENSE,sha256=P9LKfSvJiBAV4S_uJD5AfMgkCh_Ex_zdo4WTy6sMuBg,1066
26
+ cks_runtime-0.1.2.dist-info/METADATA,sha256=aOwN2f9ALK8meOSPDshdY157PWCwCQOEx0MNdy3mPvk,6112
27
+ cks_runtime-0.1.2.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
28
+ cks_runtime-0.1.2.dist-info/top_level.txt,sha256=wuM4ORaU7pDB5QbEXK6uo-ULqIVePdYVUNDL-_ggY4s,12
29
+ cks_runtime-0.1.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (83.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Deus-corp
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ cks_runtime