veramem-kernel 1.0.1__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 (163) hide show
  1. veramem_kernel-1.0.1/LICENSE +172 -0
  2. veramem_kernel-1.0.1/NOTICE +11 -0
  3. veramem_kernel-1.0.1/PKG-INFO +342 -0
  4. veramem_kernel-1.0.1/README.md +147 -0
  5. veramem_kernel-1.0.1/kernel/__init__.py +1 -0
  6. veramem_kernel-1.0.1/kernel/access/access_context.py +18 -0
  7. veramem_kernel-1.0.1/kernel/access/access_decision.py +12 -0
  8. veramem_kernel-1.0.1/kernel/access/access_policy.py +24 -0
  9. veramem_kernel-1.0.1/kernel/invariants/__init__.py +5 -0
  10. veramem_kernel-1.0.1/kernel/invariants/access/access_invariants.py +14 -0
  11. veramem_kernel-1.0.1/kernel/invariants/audit/audit_invariants.py +41 -0
  12. veramem_kernel-1.0.1/kernel/invariants/knowledge/knowledge_invariants.py +43 -0
  13. veramem_kernel-1.0.1/kernel/invariants/linguistic_constraint/__init__.py +4 -0
  14. veramem_kernel-1.0.1/kernel/invariants/linguistic_constraint/linguistic_constraint_invariants.py +40 -0
  15. veramem_kernel-1.0.1/kernel/invariants/observation/__init__.py +0 -0
  16. veramem_kernel-1.0.1/kernel/invariants/observation/observation_invariants.py +26 -0
  17. veramem_kernel-1.0.1/kernel/invariants/observation_long/__init__.py +9 -0
  18. veramem_kernel-1.0.1/kernel/invariants/observation_long/observation_long_invariants.py +40 -0
  19. veramem_kernel-1.0.1/kernel/invariants/signal/canonical/canonical_signal_invariants.py +25 -0
  20. veramem_kernel-1.0.1/kernel/invariants/signal/signal_invariants.py +40 -0
  21. veramem_kernel-1.0.1/kernel/invariants/signal/signal_lineage_invariants.py +187 -0
  22. veramem_kernel-1.0.1/kernel/invariants/timeline/__init__.py +0 -0
  23. veramem_kernel-1.0.1/kernel/invariants/timeline/timeline_invariants.py +52 -0
  24. veramem_kernel-1.0.1/kernel/journals/__init__.py +3 -0
  25. veramem_kernel-1.0.1/kernel/journals/action/__init__.py +0 -0
  26. veramem_kernel-1.0.1/kernel/journals/action/action_event.py +47 -0
  27. veramem_kernel-1.0.1/kernel/journals/action/action_journal.py +90 -0
  28. veramem_kernel-1.0.1/kernel/journals/action/action_validation_event.py +40 -0
  29. veramem_kernel-1.0.1/kernel/journals/action/action_validation_journal.py +72 -0
  30. veramem_kernel-1.0.1/kernel/journals/audit/__init__.py +12 -0
  31. veramem_kernel-1.0.1/kernel/journals/audit/audit_event.py +46 -0
  32. veramem_kernel-1.0.1/kernel/journals/audit/audit_journal.py +27 -0
  33. veramem_kernel-1.0.1/kernel/journals/knowledge/__init__.py +12 -0
  34. veramem_kernel-1.0.1/kernel/journals/knowledge/knowledge_event.py +46 -0
  35. veramem_kernel-1.0.1/kernel/journals/knowledge/knowledge_journal.py +25 -0
  36. veramem_kernel-1.0.1/kernel/journals/knowledge/knowledge_port_adapter.py +12 -0
  37. veramem_kernel-1.0.1/kernel/journals/linguistic_constraint/linguistic_constraint_event.py +39 -0
  38. veramem_kernel-1.0.1/kernel/journals/linguistic_constraint/linguistic_constraint_journal.py +21 -0
  39. veramem_kernel-1.0.1/kernel/journals/linguistic_constraint/linguistic_constraint_journal_in_memory.py +48 -0
  40. veramem_kernel-1.0.1/kernel/journals/observation/__init__.py +1 -0
  41. veramem_kernel-1.0.1/kernel/journals/observation/observation_builder.py +32 -0
  42. veramem_kernel-1.0.1/kernel/journals/observation/observation_event.py +25 -0
  43. veramem_kernel-1.0.1/kernel/journals/observation/observation_journal.py +37 -0
  44. veramem_kernel-1.0.1/kernel/journals/observation/observation_journal_in_memory.py +45 -0
  45. veramem_kernel-1.0.1/kernel/journals/observation/observation_writer.py +38 -0
  46. veramem_kernel-1.0.1/kernel/journals/observation/patterns/__init__.py +0 -0
  47. veramem_kernel-1.0.1/kernel/journals/observation/patterns/normative_pattern.py +25 -0
  48. veramem_kernel-1.0.1/kernel/journals/observation/patterns/normative_pattern_builder.py +77 -0
  49. veramem_kernel-1.0.1/kernel/journals/observation_long/__init__.py +26 -0
  50. veramem_kernel-1.0.1/kernel/journals/observation_long/observation_long_builder.py +41 -0
  51. veramem_kernel-1.0.1/kernel/journals/observation_long/observation_long_event.py +26 -0
  52. veramem_kernel-1.0.1/kernel/journals/observation_long/observation_long_journal.py +33 -0
  53. veramem_kernel-1.0.1/kernel/journals/observation_long/observation_long_journal_in_memory.py +31 -0
  54. veramem_kernel-1.0.1/kernel/journals/observation_long/observation_long_writer.py +33 -0
  55. veramem_kernel-1.0.1/kernel/journals/timeline/__init__.py +1 -0
  56. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_cursor.py +72 -0
  57. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_entry.py +110 -0
  58. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_journal.py +103 -0
  59. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_projector.py +118 -0
  60. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_query.py +36 -0
  61. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_reader.py +54 -0
  62. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_slice.py +37 -0
  63. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_source.py +7 -0
  64. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_summary.py +98 -0
  65. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_types.py +55 -0
  66. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_view.py +21 -0
  67. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_view_builder.py +76 -0
  68. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_view_types.py +17 -0
  69. veramem_kernel-1.0.1/kernel/journals/timeline/timeline_window.py +62 -0
  70. veramem_kernel-1.0.1/kernel/ports/__init__.py +3 -0
  71. veramem_kernel-1.0.1/kernel/ports/access_port.py +20 -0
  72. veramem_kernel-1.0.1/kernel/ports/audit_port.py +33 -0
  73. veramem_kernel-1.0.1/kernel/ports/knowledge_port.py +33 -0
  74. veramem_kernel-1.0.1/kernel/ports/linguistic_constraint_port.py +24 -0
  75. veramem_kernel-1.0.1/kernel/ports/observation_long_port.py +66 -0
  76. veramem_kernel-1.0.1/kernel/ports/observation_port.py +53 -0
  77. veramem_kernel-1.0.1/kernel/ports/signal_port.py +26 -0
  78. veramem_kernel-1.0.1/kernel/ports/timeline_port.py +26 -0
  79. veramem_kernel-1.0.1/kernel/signals/canonical/__init__.py +15 -0
  80. veramem_kernel-1.0.1/kernel/signals/canonical/canonical_signal.py +16 -0
  81. veramem_kernel-1.0.1/kernel/signals/canonical/canonical_signal_category.py +12 -0
  82. veramem_kernel-1.0.1/kernel/signals/canonical/canonical_signal_key.py +14 -0
  83. veramem_kernel-1.0.1/kernel/signals/canonical/canonical_signal_registry.py +34 -0
  84. veramem_kernel-1.0.1/kernel/signals/canonical/canonical_signal_spec.py +22 -0
  85. veramem_kernel-1.0.1/kernel/signals/lineage/signal_lineage_diff.py +93 -0
  86. veramem_kernel-1.0.1/kernel/signals/lineage/signal_lineage_errors.py +19 -0
  87. veramem_kernel-1.0.1/kernel/signals/lineage/signal_lineage_node.py +36 -0
  88. veramem_kernel-1.0.1/kernel/signals/lineage/signal_lineage_patch.py +43 -0
  89. veramem_kernel-1.0.1/kernel/signals/lineage/signal_lineage_patch_applier.py +132 -0
  90. veramem_kernel-1.0.1/kernel/signals/lineage/signal_lineage_patch_builder.py +70 -0
  91. veramem_kernel-1.0.1/kernel/signals/lineage/signal_lineage_projector.py +52 -0
  92. veramem_kernel-1.0.1/kernel/signals/lineage/signal_lineage_resolver.py +71 -0
  93. veramem_kernel-1.0.1/kernel/signals/lineage/signal_lineage_view.py +220 -0
  94. veramem_kernel-1.0.1/kernel/signals/signal.py +68 -0
  95. veramem_kernel-1.0.1/kernel/signals/signal_event.py +26 -0
  96. veramem_kernel-1.0.1/kernel/signals/signal_journal.py +89 -0
  97. veramem_kernel-1.0.1/pyproject.toml +41 -0
  98. veramem_kernel-1.0.1/setup.cfg +4 -0
  99. veramem_kernel-1.0.1/tests/test_access_context_kernel.py +18 -0
  100. veramem_kernel-1.0.1/tests/test_access_decision_kernel.py +12 -0
  101. veramem_kernel-1.0.1/tests/test_access_invariants_kernel.py +27 -0
  102. veramem_kernel-1.0.1/tests/test_access_policy_kernel.py +25 -0
  103. veramem_kernel-1.0.1/tests/test_access_port_kernel.py +42 -0
  104. veramem_kernel-1.0.1/tests/test_action_event_kernel.py +36 -0
  105. veramem_kernel-1.0.1/tests/test_action_journal_kernel.py +101 -0
  106. veramem_kernel-1.0.1/tests/test_action_validation_kernel.py +112 -0
  107. veramem_kernel-1.0.1/tests/test_audit_event_kernel.py +69 -0
  108. veramem_kernel-1.0.1/tests/test_audit_invariants_kernel.py +65 -0
  109. veramem_kernel-1.0.1/tests/test_audit_journal_kernel.py +66 -0
  110. veramem_kernel-1.0.1/tests/test_audit_port_kernel.py +29 -0
  111. veramem_kernel-1.0.1/tests/test_canonical_signal_closed_world_kernel.py +31 -0
  112. veramem_kernel-1.0.1/tests/test_canonical_signal_closed_world_key_category_kernel.py +22 -0
  113. veramem_kernel-1.0.1/tests/test_canonical_signal_immutability_kernel.py +43 -0
  114. veramem_kernel-1.0.1/tests/test_canonical_signal_registry_kernel.py +50 -0
  115. veramem_kernel-1.0.1/tests/test_canonical_signal_spec_invariants_kernel.py +51 -0
  116. veramem_kernel-1.0.1/tests/test_canonical_signal_validation_kernel.py +85 -0
  117. veramem_kernel-1.0.1/tests/test_knowledge_event_kernel.py +76 -0
  118. veramem_kernel-1.0.1/tests/test_knowledge_invariants_kernel.py +53 -0
  119. veramem_kernel-1.0.1/tests/test_knowledge_journal_kernel.py +62 -0
  120. veramem_kernel-1.0.1/tests/test_knowledge_port_kernel.py +28 -0
  121. veramem_kernel-1.0.1/tests/test_linguistic_constraint_event_kernel.py +36 -0
  122. veramem_kernel-1.0.1/tests/test_linguistic_constraint_invariants_kernel.py +40 -0
  123. veramem_kernel-1.0.1/tests/test_linguistic_constraint_journal_kernel.py +87 -0
  124. veramem_kernel-1.0.1/tests/test_linguistic_constraint_port_kernel.py +16 -0
  125. veramem_kernel-1.0.1/tests/test_normative_pattern_builder_kernel.py +36 -0
  126. veramem_kernel-1.0.1/tests/test_observation_builder_kernel.py +46 -0
  127. veramem_kernel-1.0.1/tests/test_observation_event_kernel.py +16 -0
  128. veramem_kernel-1.0.1/tests/test_observation_invariants_kernel.py +79 -0
  129. veramem_kernel-1.0.1/tests/test_observation_journal_kernel.py +23 -0
  130. veramem_kernel-1.0.1/tests/test_observation_long_builder_kernel.py +18 -0
  131. veramem_kernel-1.0.1/tests/test_observation_long_event_kernel.py +18 -0
  132. veramem_kernel-1.0.1/tests/test_observation_long_invariants_kernel.py +80 -0
  133. veramem_kernel-1.0.1/tests/test_observation_long_journal_kernel.py +35 -0
  134. veramem_kernel-1.0.1/tests/test_observation_long_port_append_kernel.py +23 -0
  135. veramem_kernel-1.0.1/tests/test_observation_long_port_kernel.py +11 -0
  136. veramem_kernel-1.0.1/tests/test_observation_long_writer_kernel.py +24 -0
  137. veramem_kernel-1.0.1/tests/test_observation_port_kernel.py +96 -0
  138. veramem_kernel-1.0.1/tests/test_signal_event_kernel.py +29 -0
  139. veramem_kernel-1.0.1/tests/test_signal_invariants_kernel.py +34 -0
  140. veramem_kernel-1.0.1/tests/test_signal_journal_kernel.py +74 -0
  141. veramem_kernel-1.0.1/tests/test_signal_kernel.py +51 -0
  142. veramem_kernel-1.0.1/tests/test_signal_lineage_diff_kernel.py +150 -0
  143. veramem_kernel-1.0.1/tests/test_signal_lineage_invariants_kernel.py +631 -0
  144. veramem_kernel-1.0.1/tests/test_signal_lineage_patch_applier_kernel.py +198 -0
  145. veramem_kernel-1.0.1/tests/test_signal_lineage_patch_builder_kernel.py +151 -0
  146. veramem_kernel-1.0.1/tests/test_signal_lineage_patch_kernel.py +164 -0
  147. veramem_kernel-1.0.1/tests/test_signal_lineage_projector_kernel.py +124 -0
  148. veramem_kernel-1.0.1/tests/test_signal_lineage_resolver_kernel.py +130 -0
  149. veramem_kernel-1.0.1/tests/test_signal_lineage_view_kernel.py +131 -0
  150. veramem_kernel-1.0.1/tests/test_timeline_cursor_kernel.py +93 -0
  151. veramem_kernel-1.0.1/tests/test_timeline_invariants_kernel.py +54 -0
  152. veramem_kernel-1.0.1/tests/test_timeline_kernel.py +96 -0
  153. veramem_kernel-1.0.1/tests/test_timeline_projector_kernel.py +153 -0
  154. veramem_kernel-1.0.1/tests/test_timeline_query_kernel.py +52 -0
  155. veramem_kernel-1.0.1/tests/test_timeline_reader_kernel.py +117 -0
  156. veramem_kernel-1.0.1/tests/test_timeline_slice_kernel.py +71 -0
  157. veramem_kernel-1.0.1/tests/test_timeline_summary_kernel.py +48 -0
  158. veramem_kernel-1.0.1/tests/test_timeline_view_kernel.py +118 -0
  159. veramem_kernel-1.0.1/tests/test_timeline_window_kernel.py +96 -0
  160. veramem_kernel-1.0.1/veramem_kernel.egg-info/PKG-INFO +342 -0
  161. veramem_kernel-1.0.1/veramem_kernel.egg-info/SOURCES.txt +161 -0
  162. veramem_kernel-1.0.1/veramem_kernel.egg-info/dependency_links.txt +1 -0
  163. veramem_kernel-1.0.1/veramem_kernel.egg-info/top_level.txt +1 -0
@@ -0,0 +1,172 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License.
67
+ Subject to the terms and conditions of this License, each Contributor
68
+ hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
69
+ royalty-free, irrevocable copyright license to reproduce, prepare
70
+ Derivative Works of, publicly display, publicly perform, sublicense,
71
+ and distribute the Work and such Derivative Works in Source or Object
72
+ form.
73
+
74
+ 3. Grant of Patent License.
75
+ Subject to the terms and conditions of this License, each Contributor
76
+ hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
77
+ royalty-free, irrevocable (except as stated in this section) patent
78
+ license to make, have made, use, offer to sell, sell, import, and
79
+ otherwise transfer the Work, where such license applies only to those
80
+ patent claims licensable by such Contributor that are necessarily
81
+ infringed by their Contribution(s) alone or by combination of their
82
+ Contribution(s) with the Work to which such Contribution(s) was
83
+ submitted. If You institute patent litigation against any entity
84
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
85
+ the Work or a Contribution incorporated within the Work constitutes
86
+ direct or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate as of
88
+ the date such litigation is filed.
89
+
90
+ 4. Redistribution.
91
+ You may reproduce and distribute copies of the Work or Derivative
92
+ Works thereof in any medium, with or without modifications, and in
93
+ Source or Object form, provided that You meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ 5. Submission of Contributions.
125
+ Unless You explicitly state otherwise, any Contribution intentionally
126
+ submitted for inclusion in the Work by You to the Licensor shall be
127
+ under the terms and conditions of this License, without any additional
128
+ terms or conditions. Notwithstanding the above, nothing herein shall
129
+ supersede or modify the terms of any separate license agreement you
130
+ may have executed with Licensor regarding such Contributions.
131
+
132
+ 6. Trademarks.
133
+ This License does not grant permission to use the trade names,
134
+ trademarks, service marks, or product names of the Licensor,
135
+ except as required for reasonable and customary use in describing the
136
+ origin of the Work and reproducing the content of the NOTICE file.
137
+
138
+ 7. Disclaimer of Warranty.
139
+ Unless required by applicable law or agreed to in writing, Licensor
140
+ provides the Work (and each Contributor provides its Contributions)
141
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
142
+ either express or implied, including, without limitation, any
143
+ warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY,
144
+ or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for
145
+ determining the appropriateness of using or redistributing the Work
146
+ and assume any risks associated with Your exercise of permissions
147
+ under this License.
148
+
149
+ 8. Limitation of Liability.
150
+ In no event and under no legal theory, whether in tort (including
151
+ negligence), contract, or otherwise, unless required by applicable
152
+ law (such as deliberate and grossly negligent acts) or agreed to in
153
+ writing, shall any Contributor be liable to You for damages, including
154
+ any direct, indirect, special, incidental, or consequential damages
155
+ of any character arising as a result of this License or out of the
156
+ use or inability to use the Work (including but not limited to damages
157
+ for loss of goodwill, work stoppage, computer failure or malfunction,
158
+ or any and all other commercial damages or losses), even if such
159
+ Contributor has been advised of the possibility of such damages.
160
+
161
+ 9. Accepting Warranty or Additional Liability.
162
+ While redistributing the Work or Derivative Works thereof, You may
163
+ choose to offer, and charge a fee for, acceptance of support, warranty,
164
+ indemnity, or other liability obligations and/or rights consistent
165
+ with this License. However, in accepting such obligations, You may act
166
+ only on Your own behalf and on Your sole responsibility, not on behalf
167
+ of any other Contributor, and only if You agree to indemnify, defend,
168
+ and hold each Contributor harmless for any liability incurred by, or
169
+ claims asserted against, such Contributor by reason of your accepting
170
+ any such warranty or additional liability.
171
+
172
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,11 @@
1
+ Veramem Kernel
2
+
3
+ Copyright 2026 Julien Lefauconnier
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ This project provides a deterministic kernel for factual recording, temporal ordering, and signal lineage enforcement.
@@ -0,0 +1,342 @@
1
+ Metadata-Version: 2.4
2
+ Name: veramem-kernel
3
+ Version: 1.0.1
4
+ Summary: Minimal deterministic cognitive kernel for traceable and auditable reasoning systems.
5
+ Author: Julien Lefauconnier
6
+ License: Apache License
7
+ Version 2.0, January 2004
8
+ http://www.apache.org/licenses/
9
+
10
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
11
+
12
+ 1. Definitions.
13
+
14
+ "License" shall mean the terms and conditions for use, reproduction,
15
+ and distribution as defined by Sections 1 through 9 of this document.
16
+
17
+ "Licensor" shall mean the copyright owner or entity authorized by
18
+ the copyright owner that is granting the License.
19
+
20
+ "Legal Entity" shall mean the union of the acting entity and all
21
+ other entities that control, are controlled by, or are under common
22
+ control with that entity. For the purposes of this definition,
23
+ "control" means (i) the power, direct or indirect, to cause the
24
+ direction or management of such entity, whether by contract or
25
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
26
+ outstanding shares, or (iii) beneficial ownership of such entity.
27
+
28
+ "You" (or "Your") shall mean an individual or Legal Entity
29
+ exercising permissions granted by this License.
30
+
31
+ "Source" form shall mean the preferred form for making modifications,
32
+ including but not limited to software source code, documentation
33
+ source, and configuration files.
34
+
35
+ "Object" form shall mean any form resulting from mechanical
36
+ transformation or translation of a Source form, including but
37
+ not limited to compiled object code, generated documentation,
38
+ and conversions to other media types.
39
+
40
+ "Work" shall mean the work of authorship, whether in Source or
41
+ Object form, made available under the License, as indicated by a
42
+ copyright notice that is included in or attached to the work
43
+ (an example is provided in the Appendix below).
44
+
45
+ "Derivative Works" shall mean any work, whether in Source or Object
46
+ form, that is based on (or derived from) the Work and for which the
47
+ editorial revisions, annotations, elaborations, or other modifications
48
+ represent, as a whole, an original work of authorship. For the purposes
49
+ of this License, Derivative Works shall not include works that remain
50
+ separable from, or merely link (or bind by name) to the interfaces of,
51
+ the Work and Derivative Works thereof.
52
+
53
+ "Contribution" shall mean any work of authorship, including
54
+ the original version of the Work and any modifications or additions
55
+ to that Work or Derivative Works thereof, that is intentionally
56
+ submitted to Licensor for inclusion in the Work by the copyright owner
57
+ or by an individual or Legal Entity authorized to submit on behalf of
58
+ the copyright owner. For the purposes of this definition, "submitted"
59
+ means any form of electronic, verbal, or written communication sent
60
+ to the Licensor or its representatives, including but not limited to
61
+ communication on electronic mailing lists, source code control systems,
62
+ and issue tracking systems that are managed by, or on behalf of, the
63
+ Licensor for the purpose of discussing and improving the Work, but
64
+ excluding communication that is conspicuously marked or otherwise
65
+ designated in writing by the copyright owner as "Not a Contribution."
66
+
67
+ "Contributor" shall mean Licensor and any individual or Legal Entity
68
+ on behalf of whom a Contribution has been received by Licensor and
69
+ subsequently incorporated within the Work.
70
+
71
+ 2. Grant of Copyright License.
72
+ Subject to the terms and conditions of this License, each Contributor
73
+ hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
74
+ royalty-free, irrevocable copyright license to reproduce, prepare
75
+ Derivative Works of, publicly display, publicly perform, sublicense,
76
+ and distribute the Work and such Derivative Works in Source or Object
77
+ form.
78
+
79
+ 3. Grant of Patent License.
80
+ Subject to the terms and conditions of this License, each Contributor
81
+ hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
82
+ royalty-free, irrevocable (except as stated in this section) patent
83
+ license to make, have made, use, offer to sell, sell, import, and
84
+ otherwise transfer the Work, where such license applies only to those
85
+ patent claims licensable by such Contributor that are necessarily
86
+ infringed by their Contribution(s) alone or by combination of their
87
+ Contribution(s) with the Work to which such Contribution(s) was
88
+ submitted. If You institute patent litigation against any entity
89
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
90
+ the Work or a Contribution incorporated within the Work constitutes
91
+ direct or contributory patent infringement, then any patent licenses
92
+ granted to You under this License for that Work shall terminate as of
93
+ the date such litigation is filed.
94
+
95
+ 4. Redistribution.
96
+ You may reproduce and distribute copies of the Work or Derivative
97
+ Works thereof in any medium, with or without modifications, and in
98
+ Source or Object form, provided that You meet the following conditions:
99
+
100
+ (a) You must give any other recipients of the Work or
101
+ Derivative Works a copy of this License; and
102
+
103
+ (b) You must cause any modified files to carry prominent notices
104
+ stating that You changed the files; and
105
+
106
+ (c) You must retain, in the Source form of any Derivative Works
107
+ that You distribute, all copyright, patent, trademark, and
108
+ attribution notices from the Source form of the Work,
109
+ excluding those notices that do not pertain to any part of
110
+ the Derivative Works; and
111
+
112
+ (d) If the Work includes a "NOTICE" text file as part of its
113
+ distribution, then any Derivative Works that You distribute must
114
+ include a readable copy of the attribution notices contained
115
+ within such NOTICE file, excluding those notices that do not
116
+ pertain to any part of the Derivative Works, in at least one
117
+ of the following places: within a NOTICE text file distributed
118
+ as part of the Derivative Works; within the Source form or
119
+ documentation, if provided along with the Derivative Works; or,
120
+ within a display generated by the Derivative Works, if and
121
+ wherever such third-party notices normally appear. The contents
122
+ of the NOTICE file are for informational purposes only and
123
+ do not modify the License. You may add Your own attribution
124
+ notices within Derivative Works that You distribute, alongside
125
+ or as an addendum to the NOTICE text from the Work, provided
126
+ that such additional attribution notices cannot be construed
127
+ as modifying the License.
128
+
129
+ 5. Submission of Contributions.
130
+ Unless You explicitly state otherwise, any Contribution intentionally
131
+ submitted for inclusion in the Work by You to the Licensor shall be
132
+ under the terms and conditions of this License, without any additional
133
+ terms or conditions. Notwithstanding the above, nothing herein shall
134
+ supersede or modify the terms of any separate license agreement you
135
+ may have executed with Licensor regarding such Contributions.
136
+
137
+ 6. Trademarks.
138
+ This License does not grant permission to use the trade names,
139
+ trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty.
144
+ Unless required by applicable law or agreed to in writing, Licensor
145
+ provides the Work (and each Contributor provides its Contributions)
146
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
147
+ either express or implied, including, without limitation, any
148
+ warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY,
149
+ or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for
150
+ determining the appropriateness of using or redistributing the Work
151
+ and assume any risks associated with Your exercise of permissions
152
+ under this License.
153
+
154
+ 8. Limitation of Liability.
155
+ In no event and under no legal theory, whether in tort (including
156
+ negligence), contract, or otherwise, unless required by applicable
157
+ law (such as deliberate and grossly negligent acts) or agreed to in
158
+ writing, shall any Contributor be liable to You for damages, including
159
+ any direct, indirect, special, incidental, or consequential damages
160
+ of any character arising as a result of this License or out of the
161
+ use or inability to use the Work (including but not limited to damages
162
+ for loss of goodwill, work stoppage, computer failure or malfunction,
163
+ or any and all other commercial damages or losses), even if such
164
+ Contributor has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability.
167
+ While redistributing the Work or Derivative Works thereof, You may
168
+ choose to offer, and charge a fee for, acceptance of support, warranty,
169
+ indemnity, or other liability obligations and/or rights consistent
170
+ with this License. However, in accepting such obligations, You may act
171
+ only on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify, defend,
173
+ and hold each Contributor harmless for any liability incurred by, or
174
+ claims asserted against, such Contributor by reason of your accepting
175
+ any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Project-URL: Repository, https://github.com/Julien-Lefauconnier/kernel
180
+ Project-URL: Issues, https://github.com/Julien-Lefauconnier/kernel/issues
181
+ Classifier: Development Status :: 5 - Production/Stable
182
+ Classifier: Intended Audience :: Developers
183
+ Classifier: License :: OSI Approved :: Apache Software License
184
+ Classifier: Programming Language :: Python :: 3
185
+ Classifier: Programming Language :: Python :: 3.10
186
+ Classifier: Programming Language :: Python :: 3.11
187
+ Classifier: Operating System :: OS Independent
188
+ Classifier: Topic :: Software Development :: Libraries
189
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
190
+ Requires-Python: >=3.10
191
+ Description-Content-Type: text/markdown
192
+ License-File: LICENSE
193
+ License-File: NOTICE
194
+ Dynamic: license-file
195
+
196
+ # Veramem Kernel
197
+
198
+ The Veramem Kernel is a minimal, deterministic cognitive core designed to record facts, enforce invariants, and preserve temporal truth.
199
+
200
+ It provides:
201
+ - append-only journals for immutable facts
202
+ - a monotonic, irreversible timeline
203
+ - strict invariant enforcement
204
+ - signal lineage and traceability primitives
205
+
206
+ The kernel does not interpret data, apply policies, or produce user-facing views.
207
+ It records what happened, in which order, and under which constraints — nothing more.
208
+
209
+ Veramem Kernel is intentionally incomplete.
210
+ Its purpose is not to be a framework, an application runtime, or an orchestration layer, but a sovereign foundation upon which higher-level systems can safely be built.
211
+
212
+ ## What the Veramem Kernel is NOT
213
+
214
+ The Veramem Kernel is not an application framework, a policy engine, or a cognitive interpreter.
215
+
216
+ It does NOT:
217
+ - interpret signals or infer meaning
218
+ - apply business rules or decision logic
219
+ - resolve conflicts or prioritize outcomes
220
+ - perform user-level filtering or personalization
221
+ - expose APIs, DTOs, or presentation models
222
+ - manage storage backends, databases, or transports
223
+ - trigger side effects or orchestrate workflows
224
+
225
+ Any system that applies interpretation, policy, rendering, or orchestration must live outside the kernel.
226
+
227
+ ## Core Guarantees
228
+
229
+ The Veramem Kernel provides a small set of strict, non-negotiable guarantees.
230
+
231
+ These guarantees are enforced by construction and verified by tests.
232
+ They do not depend on usage patterns, configuration, or runtime environment.
233
+
234
+ ### Append-only facts
235
+ All journals and timelines in the kernel are append-only.
236
+ Once a fact is recorded, it cannot be modified or removed at runtime.
237
+
238
+ ### Temporal truth
239
+ The kernel enforces a single, monotonic timeline.
240
+ Events cannot be reordered, rewritten, or inserted retroactively.
241
+
242
+ ### Determinism
243
+ Given the same sequence of inputs, the kernel will always produce the same state.
244
+ No hidden randomness, implicit side effects, or external dependencies are involved.
245
+
246
+ ### Invariant enforcement
247
+ All kernel writes are validated against explicit invariants.
248
+ Invalid states are rejected at the boundary, not corrected later.
249
+
250
+ ### Separation of concerns
251
+ The kernel produces facts and enforces constraints.
252
+ Interpretation, policy, projection, and orchestration are strictly external.
253
+
254
+ ### Test/runtime separation
255
+ State reset mechanisms exist for isolated testing only.
256
+ They are explicitly marked and unavailable through the public runtime API.
257
+
258
+ ## Architecture Boundaries
259
+
260
+ The Veramem Kernel is designed to operate as a sovereign core within a larger system.
261
+
262
+ It deliberately enforces strict boundaries between:
263
+ - the Kernel (truth and invariants)
264
+ - the Application Stack (projection and orchestration)
265
+ - the Reflexive Layer (governed explanation)
266
+
267
+ ### Kernel
268
+ The kernel is the sole authority on factual truth and temporal ordering.
269
+ It records immutable facts, enforces invariants, and preserves historical integrity.
270
+
271
+ The kernel does not:
272
+ - interpret meaning
273
+ - apply policy
274
+ - render views
275
+ - manage infrastructure
276
+ - orchestrate behavior
277
+
278
+ ### Application Stack
279
+ The application stack consumes kernel facts and builds usable systems on top of them.
280
+ It is responsible for:
281
+ - data projection and filtering
282
+ - policy enforcement
283
+ - storage and transport
284
+ - user-facing APIs and interfaces
285
+ - orchestration and workflow logic
286
+
287
+ ### Reflexive Layer
288
+ The reflexive layer provides governed, post-cognitive explanations about what the system exposes and what it is capable of.
289
+
290
+ It operates strictly on kernel-produced facts and stack-level projections, without accessing raw data, internal reasoning, or execution logic.
291
+
292
+ The reflexive layer:
293
+ - produces deterministic, declarative explanations
294
+ - exposes explicit capabilities and limitations
295
+ - supports auditability and compliance
296
+ - never produces truth
297
+ - never executes actions
298
+
299
+ It exists outside the kernel and does not influence kernel state.
300
+
301
+ Violating these boundaries compromises determinism, auditability, and trust.
302
+
303
+ ## Intended Usage & Non-Goals
304
+
305
+ The Veramem Kernel is intended to be embedded as a foundational component within larger systems that require strong guarantees around factual truth, temporal integrity, and auditability.
306
+
307
+ ### Intended Usage
308
+
309
+ The kernel is designed to be used as:
310
+ - a canonical source of immutable facts
311
+ - a temporal authority for event ordering
312
+ - a foundation for audit, replay, and compliance
313
+ - a stable substrate for projection, interpretation, and explanation layers
314
+
315
+ Typical usage patterns include:
316
+ - feeding append-only journals from external systems
317
+ - enforcing invariants at the boundary of factual recording
318
+ - projecting kernel facts into application-specific views
319
+ - supporting deterministic replay and verification
320
+
321
+ The kernel can be embedded in:
322
+ - backend services
323
+ - cognitive systems
324
+ - governance or compliance frameworks
325
+ - research or experimental environments
326
+
327
+ ### Non-Goals
328
+
329
+ The Veramem Kernel explicitly does NOT aim to:
330
+ - provide a complete application runtime
331
+ - replace databases or storage engines
332
+ - perform business logic or decision-making
333
+ - expose user-facing APIs or interfaces
334
+ - handle authentication, authorization, or access control
335
+ - manage infrastructure, networking, or persistence
336
+ - offer real-time reactivity or event-driven orchestration
337
+
338
+ If a feature requires interpretation, policy, execution, or presentation, it does not belong in the kernel.
339
+
340
+ ## License
341
+
342
+ This project is licensed under the Apache License, Version 2.0.
@@ -0,0 +1,147 @@
1
+ # Veramem Kernel
2
+
3
+ The Veramem Kernel is a minimal, deterministic cognitive core designed to record facts, enforce invariants, and preserve temporal truth.
4
+
5
+ It provides:
6
+ - append-only journals for immutable facts
7
+ - a monotonic, irreversible timeline
8
+ - strict invariant enforcement
9
+ - signal lineage and traceability primitives
10
+
11
+ The kernel does not interpret data, apply policies, or produce user-facing views.
12
+ It records what happened, in which order, and under which constraints — nothing more.
13
+
14
+ Veramem Kernel is intentionally incomplete.
15
+ Its purpose is not to be a framework, an application runtime, or an orchestration layer, but a sovereign foundation upon which higher-level systems can safely be built.
16
+
17
+ ## What the Veramem Kernel is NOT
18
+
19
+ The Veramem Kernel is not an application framework, a policy engine, or a cognitive interpreter.
20
+
21
+ It does NOT:
22
+ - interpret signals or infer meaning
23
+ - apply business rules or decision logic
24
+ - resolve conflicts or prioritize outcomes
25
+ - perform user-level filtering or personalization
26
+ - expose APIs, DTOs, or presentation models
27
+ - manage storage backends, databases, or transports
28
+ - trigger side effects or orchestrate workflows
29
+
30
+ Any system that applies interpretation, policy, rendering, or orchestration must live outside the kernel.
31
+
32
+ ## Core Guarantees
33
+
34
+ The Veramem Kernel provides a small set of strict, non-negotiable guarantees.
35
+
36
+ These guarantees are enforced by construction and verified by tests.
37
+ They do not depend on usage patterns, configuration, or runtime environment.
38
+
39
+ ### Append-only facts
40
+ All journals and timelines in the kernel are append-only.
41
+ Once a fact is recorded, it cannot be modified or removed at runtime.
42
+
43
+ ### Temporal truth
44
+ The kernel enforces a single, monotonic timeline.
45
+ Events cannot be reordered, rewritten, or inserted retroactively.
46
+
47
+ ### Determinism
48
+ Given the same sequence of inputs, the kernel will always produce the same state.
49
+ No hidden randomness, implicit side effects, or external dependencies are involved.
50
+
51
+ ### Invariant enforcement
52
+ All kernel writes are validated against explicit invariants.
53
+ Invalid states are rejected at the boundary, not corrected later.
54
+
55
+ ### Separation of concerns
56
+ The kernel produces facts and enforces constraints.
57
+ Interpretation, policy, projection, and orchestration are strictly external.
58
+
59
+ ### Test/runtime separation
60
+ State reset mechanisms exist for isolated testing only.
61
+ They are explicitly marked and unavailable through the public runtime API.
62
+
63
+ ## Architecture Boundaries
64
+
65
+ The Veramem Kernel is designed to operate as a sovereign core within a larger system.
66
+
67
+ It deliberately enforces strict boundaries between:
68
+ - the Kernel (truth and invariants)
69
+ - the Application Stack (projection and orchestration)
70
+ - the Reflexive Layer (governed explanation)
71
+
72
+ ### Kernel
73
+ The kernel is the sole authority on factual truth and temporal ordering.
74
+ It records immutable facts, enforces invariants, and preserves historical integrity.
75
+
76
+ The kernel does not:
77
+ - interpret meaning
78
+ - apply policy
79
+ - render views
80
+ - manage infrastructure
81
+ - orchestrate behavior
82
+
83
+ ### Application Stack
84
+ The application stack consumes kernel facts and builds usable systems on top of them.
85
+ It is responsible for:
86
+ - data projection and filtering
87
+ - policy enforcement
88
+ - storage and transport
89
+ - user-facing APIs and interfaces
90
+ - orchestration and workflow logic
91
+
92
+ ### Reflexive Layer
93
+ The reflexive layer provides governed, post-cognitive explanations about what the system exposes and what it is capable of.
94
+
95
+ It operates strictly on kernel-produced facts and stack-level projections, without accessing raw data, internal reasoning, or execution logic.
96
+
97
+ The reflexive layer:
98
+ - produces deterministic, declarative explanations
99
+ - exposes explicit capabilities and limitations
100
+ - supports auditability and compliance
101
+ - never produces truth
102
+ - never executes actions
103
+
104
+ It exists outside the kernel and does not influence kernel state.
105
+
106
+ Violating these boundaries compromises determinism, auditability, and trust.
107
+
108
+ ## Intended Usage & Non-Goals
109
+
110
+ The Veramem Kernel is intended to be embedded as a foundational component within larger systems that require strong guarantees around factual truth, temporal integrity, and auditability.
111
+
112
+ ### Intended Usage
113
+
114
+ The kernel is designed to be used as:
115
+ - a canonical source of immutable facts
116
+ - a temporal authority for event ordering
117
+ - a foundation for audit, replay, and compliance
118
+ - a stable substrate for projection, interpretation, and explanation layers
119
+
120
+ Typical usage patterns include:
121
+ - feeding append-only journals from external systems
122
+ - enforcing invariants at the boundary of factual recording
123
+ - projecting kernel facts into application-specific views
124
+ - supporting deterministic replay and verification
125
+
126
+ The kernel can be embedded in:
127
+ - backend services
128
+ - cognitive systems
129
+ - governance or compliance frameworks
130
+ - research or experimental environments
131
+
132
+ ### Non-Goals
133
+
134
+ The Veramem Kernel explicitly does NOT aim to:
135
+ - provide a complete application runtime
136
+ - replace databases or storage engines
137
+ - perform business logic or decision-making
138
+ - expose user-facing APIs or interfaces
139
+ - handle authentication, authorization, or access control
140
+ - manage infrastructure, networking, or persistence
141
+ - offer real-time reactivity or event-driven orchestration
142
+
143
+ If a feature requires interpretation, policy, execution, or presentation, it does not belong in the kernel.
144
+
145
+ ## License
146
+
147
+ This project is licensed under the Apache License, Version 2.0.
@@ -0,0 +1 @@
1
+ # kernel/__init__.py