cortex-persist 0.3.0b2__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 (1294) hide show
  1. cortex_persist-0.3.0b2/LICENSE +190 -0
  2. cortex_persist-0.3.0b2/MANIFEST.in +19 -0
  3. cortex_persist-0.3.0b2/PKG-INFO +323 -0
  4. cortex_persist-0.3.0b2/README.md +245 -0
  5. cortex_persist-0.3.0b2/cortex/__init__.py +57 -0
  6. cortex_persist-0.3.0b2/cortex/__main__.py +4 -0
  7. cortex_persist-0.3.0b2/cortex/adk/__init__.py +5 -0
  8. cortex_persist-0.3.0b2/cortex/adk/__main__.py +6 -0
  9. cortex_persist-0.3.0b2/cortex/adk/agents.py +6 -0
  10. cortex_persist-0.3.0b2/cortex/adk/goog_tools.py +127 -0
  11. cortex_persist-0.3.0b2/cortex/adk/runner.py +6 -0
  12. cortex_persist-0.3.0b2/cortex/adk/tools.py +219 -0
  13. cortex_persist-0.3.0b2/cortex/agents/__init__.py +82 -0
  14. cortex_persist-0.3.0b2/cortex/agents/base.py +473 -0
  15. cortex_persist-0.3.0b2/cortex/agents/builtins/__init__.py +27 -0
  16. cortex_persist-0.3.0b2/cortex/agents/builtins/_explicit_ops.py +340 -0
  17. cortex_persist-0.3.0b2/cortex/agents/builtins/cache_kv_agent.py +257 -0
  18. cortex_persist-0.3.0b2/cortex/agents/builtins/github_agent.py +385 -0
  19. cortex_persist-0.3.0b2/cortex/agents/builtins/handoff_agent.py +126 -0
  20. cortex_persist-0.3.0b2/cortex/agents/builtins/memento_agent.py +106 -0
  21. cortex_persist-0.3.0b2/cortex/agents/builtins/memory_agent.py +43 -0
  22. cortex_persist-0.3.0b2/cortex/agents/builtins/nightshift_agent.py +96 -0
  23. cortex_persist-0.3.0b2/cortex/agents/builtins/omega_prime.py +254 -0
  24. cortex_persist-0.3.0b2/cortex/agents/builtins/pipeline_kernel_agent.py +450 -0
  25. cortex_persist-0.3.0b2/cortex/agents/builtins/ram_agent.py +370 -0
  26. cortex_persist-0.3.0b2/cortex/agents/builtins/security_agent.py +91 -0
  27. cortex_persist-0.3.0b2/cortex/agents/builtins/supervisor_agent.py +41 -0
  28. cortex_persist-0.3.0b2/cortex/agents/builtins/tempus_fugit_agent.py +178 -0
  29. cortex_persist-0.3.0b2/cortex/agents/builtins/verification_agent.py +103 -0
  30. cortex_persist-0.3.0b2/cortex/agents/bus.py +179 -0
  31. cortex_persist-0.3.0b2/cortex/agents/contracts.py +375 -0
  32. cortex_persist-0.3.0b2/cortex/agents/cortex_middleware.py +351 -0
  33. cortex_persist-0.3.0b2/cortex/agents/emergence.py +154 -0
  34. cortex_persist-0.3.0b2/cortex/agents/engine_runtime_sink.py +231 -0
  35. cortex_persist-0.3.0b2/cortex/agents/handoff.py +223 -0
  36. cortex_persist-0.3.0b2/cortex/agents/loader.py +151 -0
  37. cortex_persist-0.3.0b2/cortex/agents/manifest.py +52 -0
  38. cortex_persist-0.3.0b2/cortex/agents/message_schema.py +135 -0
  39. cortex_persist-0.3.0b2/cortex/agents/middleware.py +79 -0
  40. cortex_persist-0.3.0b2/cortex/agents/neural.py +353 -0
  41. cortex_persist-0.3.0b2/cortex/agents/ops/cache_kv.py +228 -0
  42. cortex_persist-0.3.0b2/cortex/agents/ops/github.py +350 -0
  43. cortex_persist-0.3.0b2/cortex/agents/pitches.py +107 -0
  44. cortex_persist-0.3.0b2/cortex/agents/runtime_sink.py +59 -0
  45. cortex_persist-0.3.0b2/cortex/agents/schema.py +175 -0
  46. cortex_persist-0.3.0b2/cortex/agents/state.py +70 -0
  47. cortex_persist-0.3.0b2/cortex/agents/supervisor.py +332 -0
  48. cortex_persist-0.3.0b2/cortex/agents/system_prompt.py +265 -0
  49. cortex_persist-0.3.0b2/cortex/agents/tools.py +79 -0
  50. cortex_persist-0.3.0b2/cortex/api/__init__.py +13 -0
  51. cortex_persist-0.3.0b2/cortex/api/async_client.py +257 -0
  52. cortex_persist-0.3.0b2/cortex/api/audit.py +72 -0
  53. cortex_persist-0.3.0b2/cortex/api/client.py +182 -0
  54. cortex_persist-0.3.0b2/cortex/api/core.py +325 -0
  55. cortex_persist-0.3.0b2/cortex/api/deps.py +40 -0
  56. cortex_persist-0.3.0b2/cortex/api/middleware.py +358 -0
  57. cortex_persist-0.3.0b2/cortex/api/openapi.py +61 -0
  58. cortex_persist-0.3.0b2/cortex/api/state.py +16 -0
  59. cortex_persist-0.3.0b2/cortex/audit/analyst.py +51 -0
  60. cortex_persist-0.3.0b2/cortex/audit/frontier.py +209 -0
  61. cortex_persist-0.3.0b2/cortex/audit/ledger.py +107 -0
  62. cortex_persist-0.3.0b2/cortex/auth/__init__.py +66 -0
  63. cortex_persist-0.3.0b2/cortex/auth/backends.py +366 -0
  64. cortex_persist-0.3.0b2/cortex/auth/cache.py +47 -0
  65. cortex_persist-0.3.0b2/cortex/auth/deps.py +184 -0
  66. cortex_persist-0.3.0b2/cortex/auth/manager.py +337 -0
  67. cortex_persist-0.3.0b2/cortex/auth/models.py +36 -0
  68. cortex_persist-0.3.0b2/cortex/auth/rbac.py +120 -0
  69. cortex_persist-0.3.0b2/cortex/auth/schema.py +46 -0
  70. cortex_persist-0.3.0b2/cortex/cli/__init__.py +24 -0
  71. cortex_persist-0.3.0b2/cortex/cli/__main__.py +35 -0
  72. cortex_persist-0.3.0b2/cortex/cli/agent_cmds.py +309 -0
  73. cortex_persist-0.3.0b2/cortex/cli/aix.py +70 -0
  74. cortex_persist-0.3.0b2/cortex/cli/anomaly_cmds.py +160 -0
  75. cortex_persist-0.3.0b2/cortex/cli/apotheosis_cmds.py +273 -0
  76. cortex_persist-0.3.0b2/cortex/cli/architect_cmds.py +203 -0
  77. cortex_persist-0.3.0b2/cortex/cli/audit_cmds.py +57 -0
  78. cortex_persist-0.3.0b2/cortex/cli/audit_helpers.py +84 -0
  79. cortex_persist-0.3.0b2/cortex/cli/autorouter_cmds.py +271 -0
  80. cortex_persist-0.3.0b2/cortex/cli/bibliotecario_cmds.py +119 -0
  81. cortex_persist-0.3.0b2/cortex/cli/bicameral.py +109 -0
  82. cortex_persist-0.3.0b2/cortex/cli/browser_cmds.py +49 -0
  83. cortex_persist-0.3.0b2/cortex/cli/chronos_cmds.py +186 -0
  84. cortex_persist-0.3.0b2/cortex/cli/commands/josu_start.py +29 -0
  85. cortex_persist-0.3.0b2/cortex/cli/common.py +157 -0
  86. cortex_persist-0.3.0b2/cortex/cli/compact_cmds.py +263 -0
  87. cortex_persist-0.3.0b2/cortex/cli/context_cmds.py +214 -0
  88. cortex_persist-0.3.0b2/cortex/cli/crud.py +284 -0
  89. cortex_persist-0.3.0b2/cortex/cli/darknet_cmds.py +113 -0
  90. cortex_persist-0.3.0b2/cortex/cli/dashboard_cmds.py +376 -0
  91. cortex_persist-0.3.0b2/cortex/cli/demiurge_cmds.py +58 -0
  92. cortex_persist-0.3.0b2/cortex/cli/demo_bicameral.py +48 -0
  93. cortex_persist-0.3.0b2/cortex/cli/demo_swarm.py +66 -0
  94. cortex_persist-0.3.0b2/cortex/cli/doctor_cmds.py +142 -0
  95. cortex_persist-0.3.0b2/cortex/cli/entropy_cmds.py +364 -0
  96. cortex_persist-0.3.0b2/cortex/cli/episodic_cmds.py +373 -0
  97. cortex_persist-0.3.0b2/cortex/cli/episodic_observe.py +96 -0
  98. cortex_persist-0.3.0b2/cortex/cli/errors.py +358 -0
  99. cortex_persist-0.3.0b2/cortex/cli/eval_cmds.py +37 -0
  100. cortex_persist-0.3.0b2/cortex/cli/fingerprint_cmds.py +144 -0
  101. cortex_persist-0.3.0b2/cortex/cli/frontier_cmds.py +49 -0
  102. cortex_persist-0.3.0b2/cortex/cli/gate_interact.py +92 -0
  103. cortex_persist-0.3.0b2/cortex/cli/gateway_cmds.py +47 -0
  104. cortex_persist-0.3.0b2/cortex/cli/genesis_cmds.py +322 -0
  105. cortex_persist-0.3.0b2/cortex/cli/ghost_cmds.py +177 -0
  106. cortex_persist-0.3.0b2/cortex/cli/github_cmds.py +522 -0
  107. cortex_persist-0.3.0b2/cortex/cli/grammy_cmds.py +96 -0
  108. cortex_persist-0.3.0b2/cortex/cli/handoff_cmds.py +160 -0
  109. cortex_persist-0.3.0b2/cortex/cli/heal_cmds.py +131 -0
  110. cortex_persist-0.3.0b2/cortex/cli/health_cmds.py +315 -0
  111. cortex_persist-0.3.0b2/cortex/cli/health_dashboard.py +170 -0
  112. cortex_persist-0.3.0b2/cortex/cli/immune_cmds.py +71 -0
  113. cortex_persist-0.3.0b2/cortex/cli/init_cmds.py +101 -0
  114. cortex_persist-0.3.0b2/cortex/cli/keter_cmds.py +113 -0
  115. cortex_persist-0.3.0b2/cortex/cli/launchpad_cmds.py +123 -0
  116. cortex_persist-0.3.0b2/cortex/cli/ledger.py +67 -0
  117. cortex_persist-0.3.0b2/cortex/cli/lineage_cmds.py +113 -0
  118. cortex_persist-0.3.0b2/cortex/cli/linkedin_cmds.py +493 -0
  119. cortex_persist-0.3.0b2/cortex/cli/loop_cmds.py +376 -0
  120. cortex_persist-0.3.0b2/cortex/cli/loop_engine.py +316 -0
  121. cortex_persist-0.3.0b2/cortex/cli/loop_models.py +58 -0
  122. cortex_persist-0.3.0b2/cortex/cli/maestro_cmds.py +346 -0
  123. cortex_persist-0.3.0b2/cortex/cli/main.py +58 -0
  124. cortex_persist-0.3.0b2/cortex/cli/mcp_cmds.py +58 -0
  125. cortex_persist-0.3.0b2/cortex/cli/mcts_cmds.py +64 -0
  126. cortex_persist-0.3.0b2/cortex/cli/mejoralo_cmds.py +407 -0
  127. cortex_persist-0.3.0b2/cortex/cli/memory_cmds.py +545 -0
  128. cortex_persist-0.3.0b2/cortex/cli/moltbook_cmds.py +199 -0
  129. cortex_persist-0.3.0b2/cortex/cli/nexus_cmds.py +88 -0
  130. cortex_persist-0.3.0b2/cortex/cli/niche_cmds.py +51 -0
  131. cortex_persist-0.3.0b2/cortex/cli/notebooklm_cmds.py +488 -0
  132. cortex_persist-0.3.0b2/cortex/cli/notebooklm_data.py +335 -0
  133. cortex_persist-0.3.0b2/cortex/cli/pathogen_cmds.py +92 -0
  134. cortex_persist-0.3.0b2/cortex/cli/pipeline_cmds.py +237 -0
  135. cortex_persist-0.3.0b2/cortex/cli/policy_cmds.py +99 -0
  136. cortex_persist-0.3.0b2/cortex/cli/prompt_cmds.py +281 -0
  137. cortex_persist-0.3.0b2/cortex/cli/purge.py +190 -0
  138. cortex_persist-0.3.0b2/cortex/cli/quota_cmds.py +97 -0
  139. cortex_persist-0.3.0b2/cortex/cli/radar_cmds.py +112 -0
  140. cortex_persist-0.3.0b2/cortex/cli/ram_cmds.py +201 -0
  141. cortex_persist-0.3.0b2/cortex/cli/reactor.py +128 -0
  142. cortex_persist-0.3.0b2/cortex/cli/reflect_cmds.py +99 -0
  143. cortex_persist-0.3.0b2/cortex/cli/relay_daemon.py +47 -0
  144. cortex_persist-0.3.0b2/cortex/cli/relay_server.py +61 -0
  145. cortex_persist-0.3.0b2/cortex/cli/roi_cmds.py +359 -0
  146. cortex_persist-0.3.0b2/cortex/cli/routing_cmds.py +254 -0
  147. cortex_persist-0.3.0b2/cortex/cli/scraper_cmds.py +256 -0
  148. cortex_persist-0.3.0b2/cortex/cli/security_cmds.py +332 -0
  149. cortex_persist-0.3.0b2/cortex/cli/security_hardening_cmds.py +118 -0
  150. cortex_persist-0.3.0b2/cortex/cli/session_cmds.py +130 -0
  151. cortex_persist-0.3.0b2/cortex/cli/signal_cmds.py +226 -0
  152. cortex_persist-0.3.0b2/cortex/cli/slow_tip.py +295 -0
  153. cortex_persist-0.3.0b2/cortex/cli/sonic_cmds.py +52 -0
  154. cortex_persist-0.3.0b2/cortex/cli/sortu_cmds.py +105 -0
  155. cortex_persist-0.3.0b2/cortex/cli/spawn_cmds.py +35 -0
  156. cortex_persist-0.3.0b2/cortex/cli/status_cmds.py +67 -0
  157. cortex_persist-0.3.0b2/cortex/cli/storage_cmds.py +215 -0
  158. cortex_persist-0.3.0b2/cortex/cli/swarm_10k_cmds.py +117 -0
  159. cortex_persist-0.3.0b2/cortex/cli/swarm_cmds.py +342 -0
  160. cortex_persist-0.3.0b2/cortex/cli/sync_cmds.py +204 -0
  161. cortex_persist-0.3.0b2/cortex/cli/time_cmds.py +86 -0
  162. cortex_persist-0.3.0b2/cortex/cli/timeline_cmds.py +180 -0
  163. cortex_persist-0.3.0b2/cortex/cli/tips.py +372 -0
  164. cortex_persist-0.3.0b2/cortex/cli/tips_cmds.py +227 -0
  165. cortex_persist-0.3.0b2/cortex/cli/triangulation_cmds.py +138 -0
  166. cortex_persist-0.3.0b2/cortex/cli/trust_cmds.py +360 -0
  167. cortex_persist-0.3.0b2/cortex/cli/trust_helpers.py +175 -0
  168. cortex_persist-0.3.0b2/cortex/cli/vote_ledger.py +195 -0
  169. cortex_persist-0.3.0b2/cortex/cli/wealth_cmds.py +272 -0
  170. cortex_persist-0.3.0b2/cortex/cli/worker_cmds.py +42 -0
  171. cortex_persist-0.3.0b2/cortex/compaction/__init__.py +0 -0
  172. cortex_persist-0.3.0b2/cortex/compaction/compaction_drift.py +81 -0
  173. cortex_persist-0.3.0b2/cortex/compaction/compaction_ttl.py +124 -0
  174. cortex_persist-0.3.0b2/cortex/compaction/compactor.py +418 -0
  175. cortex_persist-0.3.0b2/cortex/compaction/consolidator.py +326 -0
  176. cortex_persist-0.3.0b2/cortex/compaction/gc.py +117 -0
  177. cortex_persist-0.3.0b2/cortex/compaction/lang_compress.py +552 -0
  178. cortex_persist-0.3.0b2/cortex/compaction/mem0_pipeline.py +79 -0
  179. cortex_persist-0.3.0b2/cortex/compaction/pruner.py +162 -0
  180. cortex_persist-0.3.0b2/cortex/compaction/strategies/dedup.py +160 -0
  181. cortex_persist-0.3.0b2/cortex/compaction/strategies/fix_sync.py +54 -0
  182. cortex_persist-0.3.0b2/cortex/compaction/strategies/lateral.py +111 -0
  183. cortex_persist-0.3.0b2/cortex/compaction/strategies/merge_errors.py +85 -0
  184. cortex_persist-0.3.0b2/cortex/compaction/strategies/staleness.py +62 -0
  185. cortex_persist-0.3.0b2/cortex/compaction/utils.py +39 -0
  186. cortex_persist-0.3.0b2/cortex/compliance/__init__.py +5 -0
  187. cortex_persist-0.3.0b2/cortex/compliance/tracker.py +357 -0
  188. cortex_persist-0.3.0b2/cortex/composer/__init__.py +40 -0
  189. cortex_persist-0.3.0b2/cortex/composer/app_forge.py +444 -0
  190. cortex_persist-0.3.0b2/cortex/composer/engine.py +138 -0
  191. cortex_persist-0.3.0b2/cortex/composer/manifesto.py +39 -0
  192. cortex_persist-0.3.0b2/cortex/composer/vision_qa.py +119 -0
  193. cortex_persist-0.3.0b2/cortex/config.py +25 -0
  194. cortex_persist-0.3.0b2/cortex/consensus/__init__.py +32 -0
  195. cortex_persist-0.3.0b2/cortex/consensus/byzantine.py +432 -0
  196. cortex_persist-0.3.0b2/cortex/consensus/geacl.py +135 -0
  197. cortex_persist-0.3.0b2/cortex/consensus/ledger.py +7 -0
  198. cortex_persist-0.3.0b2/cortex/consensus/manager.py +482 -0
  199. cortex_persist-0.3.0b2/cortex/consensus/merkle.py +137 -0
  200. cortex_persist-0.3.0b2/cortex/consensus/rwa_bft.py +409 -0
  201. cortex_persist-0.3.0b2/cortex/consensus/vote_ledger.py +261 -0
  202. cortex_persist-0.3.0b2/cortex/core/__init__.py +15 -0
  203. cortex_persist-0.3.0b2/cortex/core/config.py +253 -0
  204. cortex_persist-0.3.0b2/cortex/core/lineage.py +140 -0
  205. cortex_persist-0.3.0b2/cortex/core/paths.py +228 -0
  206. cortex_persist-0.3.0b2/cortex/core/thermodynamics.py +55 -0
  207. cortex_persist-0.3.0b2/cortex/crypto/__init__.py +18 -0
  208. cortex_persist-0.3.0b2/cortex/crypto/aes.py +194 -0
  209. cortex_persist-0.3.0b2/cortex/crypto/keyring.py +70 -0
  210. cortex_persist-0.3.0b2/cortex/crypto/keys.py +88 -0
  211. cortex_persist-0.3.0b2/cortex/crypto/shredder.py +393 -0
  212. cortex_persist-0.3.0b2/cortex/crypto/vault.py +83 -0
  213. cortex_persist-0.3.0b2/cortex/daemon_cli.py +4 -0
  214. cortex_persist-0.3.0b2/cortex/darknet/__init__.py +37 -0
  215. cortex_persist-0.3.0b2/cortex/darknet/agents.py +85 -0
  216. cortex_persist-0.3.0b2/cortex/darknet/ingestor.py +68 -0
  217. cortex_persist-0.3.0b2/cortex/darknet/linkedin_ai.py +156 -0
  218. cortex_persist-0.3.0b2/cortex/darknet/linkedin_ledger.py +135 -0
  219. cortex_persist-0.3.0b2/cortex/darknet/linkedin_publisher.py +511 -0
  220. cortex_persist-0.3.0b2/cortex/darknet/social_ledger.py +167 -0
  221. cortex_persist-0.3.0b2/cortex/database/SCHEMA_DRIFT.py +30 -0
  222. cortex_persist-0.3.0b2/cortex/database/__init__.py +0 -0
  223. cortex_persist-0.3.0b2/cortex/database/cache.py +118 -0
  224. cortex_persist-0.3.0b2/cortex/database/connection_guard.py +191 -0
  225. cortex_persist-0.3.0b2/cortex/database/core.py +286 -0
  226. cortex_persist-0.3.0b2/cortex/database/messages.py +88 -0
  227. cortex_persist-0.3.0b2/cortex/database/pool.py +191 -0
  228. cortex_persist-0.3.0b2/cortex/database/schema.py +383 -0
  229. cortex_persist-0.3.0b2/cortex/database/schema_extensions.py +455 -0
  230. cortex_persist-0.3.0b2/cortex/database/tlru_cache.py +126 -0
  231. cortex_persist-0.3.0b2/cortex/database/writer.py +400 -0
  232. cortex_persist-0.3.0b2/cortex/embeddings/__init__.py +35 -0
  233. cortex_persist-0.3.0b2/cortex/embeddings/_presets.py +60 -0
  234. cortex_persist-0.3.0b2/cortex/embeddings/api_embedder.py +429 -0
  235. cortex_persist-0.3.0b2/cortex/embeddings/byok.py +61 -0
  236. cortex_persist-0.3.0b2/cortex/embeddings/local.py +150 -0
  237. cortex_persist-0.3.0b2/cortex/embeddings/manager.py +214 -0
  238. cortex_persist-0.3.0b2/cortex/embeddings/provider.py +52 -0
  239. cortex_persist-0.3.0b2/cortex/engine/AGENTS.md +64 -0
  240. cortex_persist-0.3.0b2/cortex/engine/__init__.py +776 -0
  241. cortex_persist-0.3.0b2/cortex/engine/agent_mixin.py +109 -0
  242. cortex_persist-0.3.0b2/cortex/engine/aleph_omega.py +68 -0
  243. cortex_persist-0.3.0b2/cortex/engine/anomaly_hunter.py +279 -0
  244. cortex_persist-0.3.0b2/cortex/engine/apotheosis.py +377 -0
  245. cortex_persist-0.3.0b2/cortex/engine/apotheosis_audits_mixin.py +187 -0
  246. cortex_persist-0.3.0b2/cortex/engine/auth.py +102 -0
  247. cortex_persist-0.3.0b2/cortex/engine/autopoiesis.py +130 -0
  248. cortex_persist-0.3.0b2/cortex/engine/bridge_guard.py +212 -0
  249. cortex_persist-0.3.0b2/cortex/engine/capabilities.py +84 -0
  250. cortex_persist-0.3.0b2/cortex/engine/causality.py +607 -0
  251. cortex_persist-0.3.0b2/cortex/engine/chronos_roi.py +245 -0
  252. cortex_persist-0.3.0b2/cortex/engine/circuit_breaker.py +154 -0
  253. cortex_persist-0.3.0b2/cortex/engine/cognitive.py +76 -0
  254. cortex_persist-0.3.0b2/cortex/engine/compound_yield.py +310 -0
  255. cortex_persist-0.3.0b2/cortex/engine/conscious_recurrence.py +176 -0
  256. cortex_persist-0.3.0b2/cortex/engine/consensus.py +197 -0
  257. cortex_persist-0.3.0b2/cortex/engine/context_cache.py +459 -0
  258. cortex_persist-0.3.0b2/cortex/engine/crystallizer.py +73 -0
  259. cortex_persist-0.3.0b2/cortex/engine/decalcifier.py +90 -0
  260. cortex_persist-0.3.0b2/cortex/engine/durability.py +103 -0
  261. cortex_persist-0.3.0b2/cortex/engine/embedding_engine.py +108 -0
  262. cortex_persist-0.3.0b2/cortex/engine/endocrine.py +115 -0
  263. cortex_persist-0.3.0b2/cortex/engine/enrichment_queue.py +26 -0
  264. cortex_persist-0.3.0b2/cortex/engine/enrichment_worker.py +106 -0
  265. cortex_persist-0.3.0b2/cortex/engine/entropy.py +93 -0
  266. cortex_persist-0.3.0b2/cortex/engine/evaporator.py +74 -0
  267. cortex_persist-0.3.0b2/cortex/engine/evolution_engine.py +440 -0
  268. cortex_persist-0.3.0b2/cortex/engine/evolution_metrics.py +153 -0
  269. cortex_persist-0.3.0b2/cortex/engine/evolution_types.py +95 -0
  270. cortex_persist-0.3.0b2/cortex/engine/exergy_optimizer.py +72 -0
  271. cortex_persist-0.3.0b2/cortex/engine/fact_store_core.py +394 -0
  272. cortex_persist-0.3.0b2/cortex/engine/forensic_commander.py +69 -0
  273. cortex_persist-0.3.0b2/cortex/engine/forensic_strike_config.py +45 -0
  274. cortex_persist-0.3.0b2/cortex/engine/forgetting_analysis_mixin.py +243 -0
  275. cortex_persist-0.3.0b2/cortex/engine/forgetting_models.py +67 -0
  276. cortex_persist-0.3.0b2/cortex/engine/forgetting_oracle.py +313 -0
  277. cortex_persist-0.3.0b2/cortex/engine/ghost_mixin.py +150 -0
  278. cortex_persist-0.3.0b2/cortex/engine/growth.py +144 -0
  279. cortex_persist-0.3.0b2/cortex/engine/guard_adapters.py +243 -0
  280. cortex_persist-0.3.0b2/cortex/engine/guard_integration_patch.py +54 -0
  281. cortex_persist-0.3.0b2/cortex/engine/guard_pipeline.py +123 -0
  282. cortex_persist-0.3.0b2/cortex/engine/heartbeat.py +216 -0
  283. cortex_persist-0.3.0b2/cortex/engine/history.py +51 -0
  284. cortex_persist-0.3.0b2/cortex/engine/inference.py +406 -0
  285. cortex_persist-0.3.0b2/cortex/engine/keter.py +407 -0
  286. cortex_persist-0.3.0b2/cortex/engine/legacy_mixin.py +87 -0
  287. cortex_persist-0.3.0b2/cortex/engine/legion.py +356 -0
  288. cortex_persist-0.3.0b2/cortex/engine/legion_vectors.py +277 -0
  289. cortex_persist-0.3.0b2/cortex/engine/legion_vectors_plan.py +0 -0
  290. cortex_persist-0.3.0b2/cortex/engine/lock.py +183 -0
  291. cortex_persist-0.3.0b2/cortex/engine/manifestation.py +151 -0
  292. cortex_persist-0.3.0b2/cortex/engine/membrane/__init__.py +0 -0
  293. cortex_persist-0.3.0b2/cortex/engine/membrane/models.py +48 -0
  294. cortex_persist-0.3.0b2/cortex/engine/membrane/sanitizer.py +93 -0
  295. cortex_persist-0.3.0b2/cortex/engine/membrane/sri_hash.py +102 -0
  296. cortex_persist-0.3.0b2/cortex/engine/memory_mixin.py +144 -0
  297. cortex_persist-0.3.0b2/cortex/engine/metabolism.py +141 -0
  298. cortex_persist-0.3.0b2/cortex/engine/metacognition.py +115 -0
  299. cortex_persist-0.3.0b2/cortex/engine/metadata_engine.py +95 -0
  300. cortex_persist-0.3.0b2/cortex/engine/mixins/base.py +110 -0
  301. cortex_persist-0.3.0b2/cortex/engine/mixins/deterministic_induction_mixin.py +69 -0
  302. cortex_persist-0.3.0b2/cortex/engine/mixins/optimization.py +310 -0
  303. cortex_persist-0.3.0b2/cortex/engine/models.py +335 -0
  304. cortex_persist-0.3.0b2/cortex/engine/mutation_engine.py +507 -0
  305. cortex_persist-0.3.0b2/cortex/engine/nemesis.py +217 -0
  306. cortex_persist-0.3.0b2/cortex/engine/nemesis_agent.py +87 -0
  307. cortex_persist-0.3.0b2/cortex/engine/oracle/__init__.py +0 -0
  308. cortex_persist-0.3.0b2/cortex/engine/oracle/analyzer.py +0 -0
  309. cortex_persist-0.3.0b2/cortex/engine/oracle/analyzer_mixin.py +248 -0
  310. cortex_persist-0.3.0b2/cortex/engine/oracle/core.py +0 -0
  311. cortex_persist-0.3.0b2/cortex/engine/oracle/evidence_mixin.py +53 -0
  312. cortex_persist-0.3.0b2/cortex/engine/oracle/policy.py +0 -0
  313. cortex_persist-0.3.0b2/cortex/engine/oracle/policy_mixin.py +94 -0
  314. cortex_persist-0.3.0b2/cortex/engine/pathogen.py +147 -0
  315. cortex_persist-0.3.0b2/cortex/engine/phoenix_omega.py +401 -0
  316. cortex_persist-0.3.0b2/cortex/engine/physics.py +55 -0
  317. cortex_persist-0.3.0b2/cortex/engine/privacy_mixin.py +55 -0
  318. cortex_persist-0.3.0b2/cortex/engine/psychology.py +131 -0
  319. cortex_persist-0.3.0b2/cortex/engine/query_mixin.py +501 -0
  320. cortex_persist-0.3.0b2/cortex/engine/reaper.py +141 -0
  321. cortex_persist-0.3.0b2/cortex/engine/reflex.py +80 -0
  322. cortex_persist-0.3.0b2/cortex/engine/rem_cycle.py +60 -0
  323. cortex_persist-0.3.0b2/cortex/engine/reporter.py +194 -0
  324. cortex_persist-0.3.0b2/cortex/engine/reporterd.py +138 -0
  325. cortex_persist-0.3.0b2/cortex/engine/search_mixin.py +126 -0
  326. cortex_persist-0.3.0b2/cortex/engine/semantic_hash.py +244 -0
  327. cortex_persist-0.3.0b2/cortex/engine/shared_bus.py +208 -0
  328. cortex_persist-0.3.0b2/cortex/engine/slashing.py +63 -0
  329. cortex_persist-0.3.0b2/cortex/engine/snapshots.py +174 -0
  330. cortex_persist-0.3.0b2/cortex/engine/sovereign_arbiter.py +111 -0
  331. cortex_persist-0.3.0b2/cortex/engine/squadrons.py +281 -0
  332. cortex_persist-0.3.0b2/cortex/engine/storage_guard.py +263 -0
  333. cortex_persist-0.3.0b2/cortex/engine/store_mixin.py +546 -0
  334. cortex_persist-0.3.0b2/cortex/engine/store_mutation.py +190 -0
  335. cortex_persist-0.3.0b2/cortex/engine/store_quarantine_mixin.py +128 -0
  336. cortex_persist-0.3.0b2/cortex/engine/store_validation.py +235 -0
  337. cortex_persist-0.3.0b2/cortex/engine/store_validators.py +68 -0
  338. cortex_persist-0.3.0b2/cortex/engine/swarm_10k.py +488 -0
  339. cortex_persist-0.3.0b2/cortex/engine/sync_mixin.py +85 -0
  340. cortex_persist-0.3.0b2/cortex/engine/transaction_mixin.py +110 -0
  341. cortex_persist-0.3.0b2/cortex/engine/trust_registry.py +220 -0
  342. cortex_persist-0.3.0b2/cortex/engine/ultrathink_physics.py +84 -0
  343. cortex_persist-0.3.0b2/cortex/engine/watcher.py +73 -0
  344. cortex_persist-0.3.0b2/cortex/engine/zero_prompting.py +324 -0
  345. cortex_persist-0.3.0b2/cortex/enrichment/__init__.py +3 -0
  346. cortex_persist-0.3.0b2/cortex/enrichment/providers/__init__.py +9 -0
  347. cortex_persist-0.3.0b2/cortex/enrichment/providers/base.py +10 -0
  348. cortex_persist-0.3.0b2/cortex/enrichment/providers/null.py +11 -0
  349. cortex_persist-0.3.0b2/cortex/enrichment/providers/remote.py +27 -0
  350. cortex_persist-0.3.0b2/cortex/enrichment/providers/torch_local.py +22 -0
  351. cortex_persist-0.3.0b2/cortex/enrichment/worker.py +217 -0
  352. cortex_persist-0.3.0b2/cortex/events/__init__.py +0 -0
  353. cortex_persist-0.3.0b2/cortex/events/bus.py +120 -0
  354. cortex_persist-0.3.0b2/cortex/events/loop.py +133 -0
  355. cortex_persist-0.3.0b2/cortex/extensions/__init__.py +0 -0
  356. cortex_persist-0.3.0b2/cortex/extensions/adk/__init__.py +5 -0
  357. cortex_persist-0.3.0b2/cortex/extensions/adk/__main__.py +6 -0
  358. cortex_persist-0.3.0b2/cortex/extensions/adk/agents.py +491 -0
  359. cortex_persist-0.3.0b2/cortex/extensions/adk/goog_tools.py +127 -0
  360. cortex_persist-0.3.0b2/cortex/extensions/adk/runner.py +272 -0
  361. cortex_persist-0.3.0b2/cortex/extensions/adk/tools.py +29 -0
  362. cortex_persist-0.3.0b2/cortex/extensions/aether/__init__.py +36 -0
  363. cortex_persist-0.3.0b2/cortex/extensions/aether/cdp_agentkit.py +274 -0
  364. cortex_persist-0.3.0b2/cortex/extensions/aether/cli.py +150 -0
  365. cortex_persist-0.3.0b2/cortex/extensions/aether/critic.py +92 -0
  366. cortex_persist-0.3.0b2/cortex/extensions/aether/daemon.py +156 -0
  367. cortex_persist-0.3.0b2/cortex/extensions/aether/executor.py +188 -0
  368. cortex_persist-0.3.0b2/cortex/extensions/aether/github_ingestor.py +144 -0
  369. cortex_persist-0.3.0b2/cortex/extensions/aether/models.py +144 -0
  370. cortex_persist-0.3.0b2/cortex/extensions/aether/planner.py +155 -0
  371. cortex_persist-0.3.0b2/cortex/extensions/aether/queue.py +205 -0
  372. cortex_persist-0.3.0b2/cortex/extensions/aether/redteam.py +118 -0
  373. cortex_persist-0.3.0b2/cortex/extensions/aether/runner.py +267 -0
  374. cortex_persist-0.3.0b2/cortex/extensions/aether/sovereign_apis.py +225 -0
  375. cortex_persist-0.3.0b2/cortex/extensions/aether/tester.py +83 -0
  376. cortex_persist-0.3.0b2/cortex/extensions/aether/tools.py +352 -0
  377. cortex_persist-0.3.0b2/cortex/extensions/agent/__init__.py +35 -0
  378. cortex_persist-0.3.0b2/cortex/extensions/agent/degradation.py +76 -0
  379. cortex_persist-0.3.0b2/cortex/extensions/agent/degradation_executor.py +170 -0
  380. cortex_persist-0.3.0b2/cortex/extensions/agent/degradation_types.py +332 -0
  381. cortex_persist-0.3.0b2/cortex/extensions/agent/loader.py +151 -0
  382. cortex_persist-0.3.0b2/cortex/extensions/agent/schema.py +175 -0
  383. cortex_persist-0.3.0b2/cortex/extensions/agents/__init__.py +37 -0
  384. cortex_persist-0.3.0b2/cortex/extensions/agents/apis_omega.py +212 -0
  385. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/ada.yaml +54 -0
  386. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/aegis.yaml +61 -0
  387. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/antigravity.yaml +70 -0
  388. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/apis_omega.yaml +46 -0
  389. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/apollo.yaml +77 -0
  390. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/arachne.yaml +83 -0
  391. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/ares.yaml +80 -0
  392. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/argos.yaml +86 -0
  393. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/ariadne.yaml +68 -0
  394. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/asklepios.yaml +79 -0
  395. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/athena.yaml +85 -0
  396. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/atlas.yaml +77 -0
  397. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/auditor.yaml +50 -0
  398. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/auditor_omega.yaml +66 -0
  399. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/aura.yaml +53 -0
  400. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/autonomo.yaml +51 -0
  401. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/awwwards_picasso.yaml +54 -0
  402. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/babel.yaml +83 -0
  403. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/bessemer.yaml +54 -0
  404. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/calliope.yaml +86 -0
  405. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/cassandra.yaml +85 -0
  406. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/cerberus.yaml +79 -0
  407. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/ceres.yaml +54 -0
  408. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/chronos.yaml +77 -0
  409. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/curie.yaml +55 -0
  410. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/da_vinci.yaml +54 -0
  411. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/daedalus.yaml +85 -0
  412. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/demeter.yaml +79 -0
  413. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/diablo.yaml +76 -0
  414. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/dinero.yaml +72 -0
  415. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/enigma.yaml +54 -0
  416. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/erdos.yaml +55 -0
  417. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/euclid.yaml +62 -0
  418. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/fourier.yaml +55 -0
  419. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/gaia.yaml +61 -0
  420. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/galileo.yaml +61 -0
  421. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/grammy_electronic.yaml +86 -0
  422. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/hades.yaml +78 -0
  423. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/helix.yaml +61 -0
  424. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/hephaestus.yaml +78 -0
  425. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/hermes.yaml +76 -0
  426. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/holmes.yaml +54 -0
  427. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/homer.yaml +54 -0
  428. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/hydra.yaml +78 -0
  429. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/icarus.yaml +88 -0
  430. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/janus.yaml +86 -0
  431. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/lavoisier.yaml +54 -0
  432. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/loki.yaml +61 -0
  433. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/lorca.yaml +90 -0
  434. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/lumiere.yaml +53 -0
  435. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/lynx.yaml +48 -0
  436. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/mejoralo_omega.yaml +51 -0
  437. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/mentor.yaml +88 -0
  438. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/mercator.yaml +56 -0
  439. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/mercury.yaml +55 -0
  440. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/minerva.yaml +76 -0
  441. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/mnemosyne.yaml +88 -0
  442. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/morpheus.yaml +81 -0
  443. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/nash.yaml +88 -0
  444. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/nemo.yaml +54 -0
  445. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/nobel.yaml +89 -0
  446. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/notebooklm.yaml +88 -0
  447. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/nyx.yaml +76 -0
  448. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/oracle.yaml +80 -0
  449. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/orion.yaml +54 -0
  450. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/pandora.yaml +78 -0
  451. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/pasteur.yaml +54 -0
  452. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/poseidon.yaml +84 -0
  453. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/profiles/aether_heavy.yaml +44 -0
  454. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/profiles/aether_light.yaml +37 -0
  455. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/profiles/antigravity_heavy.yaml +44 -0
  456. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/profiles/antigravity_light.yaml +37 -0
  457. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/profiles/diablo_heavy.yaml +47 -0
  458. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/profiles/diablo_light.yaml +38 -0
  459. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/prometheus.yaml +75 -0
  460. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/proteus.yaml +80 -0
  461. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/psyche.yaml +54 -0
  462. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/qubit.yaml +55 -0
  463. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/satoshi.yaml +54 -0
  464. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/scout.yaml +86 -0
  465. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/simula.yaml +55 -0
  466. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/sisyphus.yaml +82 -0
  467. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/socrates.yaml +55 -0
  468. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/sphinx.yaml +61 -0
  469. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/talos.yaml +55 -0
  470. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/tesla.yaml +54 -0
  471. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/tesseract.yaml +56 -0
  472. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/themis.yaml +77 -0
  473. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/turing.yaml +63 -0
  474. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/tyche.yaml +85 -0
  475. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/valkyrie.yaml +81 -0
  476. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/vitruvius.yaml +54 -0
  477. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/vulcan.yaml +81 -0
  478. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/wright.yaml +54 -0
  479. cortex_persist-0.3.0b2/cortex/extensions/agents/definitions/zeus.yaml +87 -0
  480. cortex_persist-0.3.0b2/cortex/extensions/agents/handoff.py +297 -0
  481. cortex_persist-0.3.0b2/cortex/extensions/agents/llm.py +20 -0
  482. cortex_persist-0.3.0b2/cortex/extensions/agents/mac_maestro.py +100 -0
  483. cortex_persist-0.3.0b2/cortex/extensions/agents/mejoralo_omega.py +306 -0
  484. cortex_persist-0.3.0b2/cortex/extensions/agents/neural.py +408 -0
  485. cortex_persist-0.3.0b2/cortex/extensions/agents/pitches.py +139 -0
  486. cortex_persist-0.3.0b2/cortex/extensions/agents/registry.py +250 -0
  487. cortex_persist-0.3.0b2/cortex/extensions/agents/scavenger_core.py +205 -0
  488. cortex_persist-0.3.0b2/cortex/extensions/agents/scavenger_governance.py +40 -0
  489. cortex_persist-0.3.0b2/cortex/extensions/agents/system_prompt.py +156 -0
  490. cortex_persist-0.3.0b2/cortex/extensions/agents/tools/autodidact_tool.py +62 -0
  491. cortex_persist-0.3.0b2/cortex/extensions/agents/tools/crystallization_tool.py +93 -0
  492. cortex_persist-0.3.0b2/cortex/extensions/agents/tools/hypothesis_tool.py +169 -0
  493. cortex_persist-0.3.0b2/cortex/extensions/alma/__init__.py +26 -0
  494. cortex_persist-0.3.0b2/cortex/extensions/alma/engine.py +171 -0
  495. cortex_persist-0.3.0b2/cortex/extensions/alma/taste.py +590 -0
  496. cortex_persist-0.3.0b2/cortex/extensions/axioms/__init__.py +8 -0
  497. cortex_persist-0.3.0b2/cortex/extensions/axioms/generate_docs.py +113 -0
  498. cortex_persist-0.3.0b2/cortex/extensions/axioms/registry.py +162 -0
  499. cortex_persist-0.3.0b2/cortex/extensions/axioms/topological_id.py +79 -0
  500. cortex_persist-0.3.0b2/cortex/extensions/axioms/ttl.py +77 -0
  501. cortex_persist-0.3.0b2/cortex/extensions/bci/daemon.py +189 -0
  502. cortex_persist-0.3.0b2/cortex/extensions/bci/intent.proto +35 -0
  503. cortex_persist-0.3.0b2/cortex/extensions/browser/__init__.py +3 -0
  504. cortex_persist-0.3.0b2/cortex/extensions/browser/agent.py +137 -0
  505. cortex_persist-0.3.0b2/cortex/extensions/browser/engine.py +213 -0
  506. cortex_persist-0.3.0b2/cortex/extensions/causality/__init__.py +26 -0
  507. cortex_persist-0.3.0b2/cortex/extensions/causality/models.py +78 -0
  508. cortex_persist-0.3.0b2/cortex/extensions/causality/taint.py +161 -0
  509. cortex_persist-0.3.0b2/cortex/extensions/context/__init__.py +37 -0
  510. cortex_persist-0.3.0b2/cortex/extensions/context/collector.py +309 -0
  511. cortex_persist-0.3.0b2/cortex/extensions/context/hiagent.py +55 -0
  512. cortex_persist-0.3.0b2/cortex/extensions/context/inference.py +227 -0
  513. cortex_persist-0.3.0b2/cortex/extensions/context/signals.py +77 -0
  514. cortex_persist-0.3.0b2/cortex/extensions/cuatrida/__init__.py +0 -0
  515. cortex_persist-0.3.0b2/cortex/extensions/cuatrida/models.py +43 -0
  516. cortex_persist-0.3.0b2/cortex/extensions/cuatrida/orchestrator.py +177 -0
  517. cortex_persist-0.3.0b2/cortex/extensions/daemon/__init__.py +132 -0
  518. cortex_persist-0.3.0b2/cortex/extensions/daemon/actuators.py +90 -0
  519. cortex_persist-0.3.0b2/cortex/extensions/daemon/alerts.py +285 -0
  520. cortex_persist-0.3.0b2/cortex/extensions/daemon/autopoiesis.py +438 -0
  521. cortex_persist-0.3.0b2/cortex/extensions/daemon/ccr_proxy.py +275 -0
  522. cortex_persist-0.3.0b2/cortex/extensions/daemon/centaur/__init__.py +4 -0
  523. cortex_persist-0.3.0b2/cortex/extensions/daemon/centaur/heartbeat.py +228 -0
  524. cortex_persist-0.3.0b2/cortex/extensions/daemon/centaur/queue.py +149 -0
  525. cortex_persist-0.3.0b2/cortex/extensions/daemon/cli.py +605 -0
  526. cortex_persist-0.3.0b2/cortex/extensions/daemon/core.py +591 -0
  527. cortex_persist-0.3.0b2/cortex/extensions/daemon/entropic_wake.py +173 -0
  528. cortex_persist-0.3.0b2/cortex/extensions/daemon/epistemic_breaker.py +317 -0
  529. cortex_persist-0.3.0b2/cortex/extensions/daemon/frontier.py +151 -0
  530. cortex_persist-0.3.0b2/cortex/extensions/daemon/healing.py +163 -0
  531. cortex_persist-0.3.0b2/cortex/extensions/daemon/health_loop.py +176 -0
  532. cortex_persist-0.3.0b2/cortex/extensions/daemon/loops/audio.py +45 -0
  533. cortex_persist-0.3.0b2/cortex/extensions/daemon/loops/context.py +137 -0
  534. cortex_persist-0.3.0b2/cortex/extensions/daemon/loops/evolution.py +71 -0
  535. cortex_persist-0.3.0b2/cortex/extensions/daemon/loops/peripherals.py +44 -0
  536. cortex_persist-0.3.0b2/cortex/extensions/daemon/loops/watcher.py +82 -0
  537. cortex_persist-0.3.0b2/cortex/extensions/daemon/loops_mixin.py +225 -0
  538. cortex_persist-0.3.0b2/cortex/extensions/daemon/metabolism.py +87 -0
  539. cortex_persist-0.3.0b2/cortex/extensions/daemon/models.py +330 -0
  540. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/__init__.py +100 -0
  541. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/auto_audit.py +104 -0
  542. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/auto_immune.py +110 -0
  543. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/base.py +67 -0
  544. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/canary.py +113 -0
  545. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/cert.py +58 -0
  546. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/cloud.py +122 -0
  547. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/compaction.py +80 -0
  548. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/dependency_health.py +225 -0
  549. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/disk.py +75 -0
  550. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/drift.py +165 -0
  551. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/engine.py +56 -0
  552. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/epistemic.py +127 -0
  553. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/evaluation.py +86 -0
  554. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/ghosts.py +68 -0
  555. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/heartbeat.py +93 -0
  556. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/mejoralo.py +107 -0
  557. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/memory.py +50 -0
  558. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/network.py +80 -0
  559. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/neural.py +52 -0
  560. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/perception.py +90 -0
  561. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/security.py +165 -0
  562. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/shield_monitor.py +178 -0
  563. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/signals.py +102 -0
  564. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/swarm_heartbeat.py +66 -0
  565. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/thermodynamic.py +80 -0
  566. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/tombstone.py +127 -0
  567. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/trends.py +32 -0
  568. cortex_persist-0.3.0b2/cortex/extensions/daemon/monitors/workflow.py +220 -0
  569. cortex_persist-0.3.0b2/cortex/extensions/daemon/notifier.py +110 -0
  570. cortex_persist-0.3.0b2/cortex/extensions/daemon/platform.py +166 -0
  571. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/compaction_monitor/Dockerfile +30 -0
  572. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/compaction_monitor/__init__.py +22 -0
  573. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/compaction_monitor/circuit_breaker.py +147 -0
  574. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/compaction_monitor/legion_integration.py +67 -0
  575. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/compaction_monitor/memory_wrapper.py +136 -0
  576. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/compaction_monitor/monitor.py +333 -0
  577. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/compaction_monitor/requirements.txt +4 -0
  578. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/compaction_monitor/runner.py +153 -0
  579. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/sentinel_monitor/__init__.py +5 -0
  580. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/sentinel_monitor/monitor.py +206 -0
  581. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/telemetry/__init__.py +12 -0
  582. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/telemetry/ast_oracle.py +255 -0
  583. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/telemetry/fiat_oracle.py +272 -0
  584. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/telemetry/fs_entropy_oracle.py +109 -0
  585. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/telemetry/iot_oracle.py +140 -0
  586. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/telemetry/network_void_oracle.py +114 -0
  587. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/telemetry/thermodynamics_oracle.py +216 -0
  588. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/trends_oracle/__init__.py +4 -0
  589. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/trends_oracle/config.py +34 -0
  590. cortex_persist-0.3.0b2/cortex/extensions/daemon/sidecar/trends_oracle/oracle.py +299 -0
  591. cortex_persist-0.3.0b2/cortex/extensions/daemon/state.py +150 -0
  592. cortex_persist-0.3.0b2/cortex/extensions/daemon/sync_manager.py +117 -0
  593. cortex_persist-0.3.0b2/cortex/extensions/daemon/utils.py +78 -0
  594. cortex_persist-0.3.0b2/cortex/extensions/daemon/zero_prompting.py +193 -0
  595. cortex_persist-0.3.0b2/cortex/extensions/episodic/__init__.py +0 -0
  596. cortex_persist-0.3.0b2/cortex/extensions/episodic/base.py +96 -0
  597. cortex_persist-0.3.0b2/cortex/extensions/episodic/boot.py +332 -0
  598. cortex_persist-0.3.0b2/cortex/extensions/episodic/main.py +387 -0
  599. cortex_persist-0.3.0b2/cortex/extensions/evolution/__init__.py +38 -0
  600. cortex_persist-0.3.0b2/cortex/extensions/evolution/action.py +121 -0
  601. cortex_persist-0.3.0b2/cortex/extensions/evolution/agents.py +217 -0
  602. cortex_persist-0.3.0b2/cortex/extensions/evolution/cortex_metrics.py +408 -0
  603. cortex_persist-0.3.0b2/cortex/extensions/evolution/daemon.py +139 -0
  604. cortex_persist-0.3.0b2/cortex/extensions/evolution/db_persistence.py +164 -0
  605. cortex_persist-0.3.0b2/cortex/extensions/evolution/demiurge.py +170 -0
  606. cortex_persist-0.3.0b2/cortex/extensions/evolution/engine.py +206 -0
  607. cortex_persist-0.3.0b2/cortex/extensions/evolution/free_energy.py +340 -0
  608. cortex_persist-0.3.0b2/cortex/extensions/evolution/landscape.py +179 -0
  609. cortex_persist-0.3.0b2/cortex/extensions/evolution/ledger_db.py +210 -0
  610. cortex_persist-0.3.0b2/cortex/extensions/evolution/lnn.py +80 -0
  611. cortex_persist-0.3.0b2/cortex/extensions/evolution/models.py +96 -0
  612. cortex_persist-0.3.0b2/cortex/extensions/evolution/operations_mixin.py +350 -0
  613. cortex_persist-0.3.0b2/cortex/extensions/evolution/ouroboros_omega.py +376 -0
  614. cortex_persist-0.3.0b2/cortex/extensions/evolution/persistence.py +221 -0
  615. cortex_persist-0.3.0b2/cortex/extensions/evolution/phoenix_omega.py +30 -0
  616. cortex_persist-0.3.0b2/cortex/extensions/evolution/psi_sap.py +105 -0
  617. cortex_persist-0.3.0b2/cortex/extensions/evolution/quantum_memory.py +37 -0
  618. cortex_persist-0.3.0b2/cortex/extensions/evolution/shannon_metrics.py +310 -0
  619. cortex_persist-0.3.0b2/cortex/extensions/evolution/skill_bridge.py +81 -0
  620. cortex_persist-0.3.0b2/cortex/extensions/evolution/strategies.py +458 -0
  621. cortex_persist-0.3.0b2/cortex/extensions/evolution/telemetry.py +106 -0
  622. cortex_persist-0.3.0b2/cortex/extensions/evolution/tournament.py +167 -0
  623. cortex_persist-0.3.0b2/cortex/extensions/federation/__init__.py +0 -0
  624. cortex_persist-0.3.0b2/cortex/extensions/federation/main.py +172 -0
  625. cortex_persist-0.3.0b2/cortex/extensions/fingerprint/__init__.py +19 -0
  626. cortex_persist-0.3.0b2/cortex/extensions/fingerprint/extractor.py +214 -0
  627. cortex_persist-0.3.0b2/cortex/extensions/fingerprint/models.py +205 -0
  628. cortex_persist-0.3.0b2/cortex/extensions/fingerprint/scanner.py +265 -0
  629. cortex_persist-0.3.0b2/cortex/extensions/gate/__init__.py +28 -0
  630. cortex_persist-0.3.0b2/cortex/extensions/gate/core.py +357 -0
  631. cortex_persist-0.3.0b2/cortex/extensions/gate/enums.py +33 -0
  632. cortex_persist-0.3.0b2/cortex/extensions/gate/errors.py +26 -0
  633. cortex_persist-0.3.0b2/cortex/extensions/gate/models.py +53 -0
  634. cortex_persist-0.3.0b2/cortex/extensions/gate/ouroboros.py +124 -0
  635. cortex_persist-0.3.0b2/cortex/extensions/genesis/__init__.py +65 -0
  636. cortex_persist-0.3.0b2/cortex/extensions/genesis/assembler.py +261 -0
  637. cortex_persist-0.3.0b2/cortex/extensions/genesis/engine.py +431 -0
  638. cortex_persist-0.3.0b2/cortex/extensions/genesis/models.py +174 -0
  639. cortex_persist-0.3.0b2/cortex/extensions/genesis/renderers/__init__.py +29 -0
  640. cortex_persist-0.3.0b2/cortex/extensions/genesis/renderers/api.py +45 -0
  641. cortex_persist-0.3.0b2/cortex/extensions/genesis/renderers/cli.py +52 -0
  642. cortex_persist-0.3.0b2/cortex/extensions/genesis/renderers/data.py +52 -0
  643. cortex_persist-0.3.0b2/cortex/extensions/genesis/renderers/docs.py +51 -0
  644. cortex_persist-0.3.0b2/cortex/extensions/genesis/renderers/python.py +182 -0
  645. cortex_persist-0.3.0b2/cortex/extensions/genesis/renderers/utils.py +15 -0
  646. cortex_persist-0.3.0b2/cortex/extensions/genesis/specs/health.yaml +35 -0
  647. cortex_persist-0.3.0b2/cortex/extensions/genesis/specs/mcp_tool.yaml +28 -0
  648. cortex_persist-0.3.0b2/cortex/extensions/genesis/specs/microservice.yaml +34 -0
  649. cortex_persist-0.3.0b2/cortex/extensions/genesis/specs/module.yaml +22 -0
  650. cortex_persist-0.3.0b2/cortex/extensions/genesis/templates.py +182 -0
  651. cortex_persist-0.3.0b2/cortex/extensions/genesis/validator.py +141 -0
  652. cortex_persist-0.3.0b2/cortex/extensions/git/__init__.py +5 -0
  653. cortex_persist-0.3.0b2/cortex/extensions/git/poet.py +582 -0
  654. cortex_persist-0.3.0b2/cortex/extensions/ha/__init__.py +17 -0
  655. cortex_persist-0.3.0b2/cortex/extensions/ha/crdt.py +127 -0
  656. cortex_persist-0.3.0b2/cortex/extensions/ha/gossip.py +187 -0
  657. cortex_persist-0.3.0b2/cortex/extensions/ha/raft.py +487 -0
  658. cortex_persist-0.3.0b2/cortex/extensions/health/__init__.py +58 -0
  659. cortex_persist-0.3.0b2/cortex/extensions/health/collector.py +53 -0
  660. cortex_persist-0.3.0b2/cortex/extensions/health/collectors/__init__.py +24 -0
  661. cortex_persist-0.3.0b2/cortex/extensions/health/collectors/db.py +157 -0
  662. cortex_persist-0.3.0b2/cortex/extensions/health/collectors/ledger.py +73 -0
  663. cortex_persist-0.3.0b2/cortex/extensions/health/collectors/mnemonic.py +183 -0
  664. cortex_persist-0.3.0b2/cortex/extensions/health/collectors/system.py +99 -0
  665. cortex_persist-0.3.0b2/cortex/extensions/health/health_mixin.py +132 -0
  666. cortex_persist-0.3.0b2/cortex/extensions/health/health_protocol.py +53 -0
  667. cortex_persist-0.3.0b2/cortex/extensions/health/invariants.py +123 -0
  668. cortex_persist-0.3.0b2/cortex/extensions/health/models.py +253 -0
  669. cortex_persist-0.3.0b2/cortex/extensions/health/prometheus.py +83 -0
  670. cortex_persist-0.3.0b2/cortex/extensions/health/registry.py +94 -0
  671. cortex_persist-0.3.0b2/cortex/extensions/health/scorer.py +110 -0
  672. cortex_persist-0.3.0b2/cortex/extensions/health/trend.py +204 -0
  673. cortex_persist-0.3.0b2/cortex/extensions/hive/__init__.py +0 -0
  674. cortex_persist-0.3.0b2/cortex/extensions/hive/main.py +125 -0
  675. cortex_persist-0.3.0b2/cortex/extensions/hypervisor/__init__.py +32 -0
  676. cortex_persist-0.3.0b2/cortex/extensions/hypervisor/belief_engine.py +290 -0
  677. cortex_persist-0.3.0b2/cortex/extensions/hypervisor/belief_object.py +303 -0
  678. cortex_persist-0.3.0b2/cortex/extensions/hypervisor/compressor.py +111 -0
  679. cortex_persist-0.3.0b2/cortex/extensions/hypervisor/core.py +209 -0
  680. cortex_persist-0.3.0b2/cortex/extensions/hypervisor/handle.py +108 -0
  681. cortex_persist-0.3.0b2/cortex/extensions/hypervisor/isolator.py +59 -0
  682. cortex_persist-0.3.0b2/cortex/extensions/hypervisor/models.py +54 -0
  683. cortex_persist-0.3.0b2/cortex/extensions/hypervisor/projector.py +116 -0
  684. cortex_persist-0.3.0b2/cortex/extensions/immune/__init__.py +42 -0
  685. cortex_persist-0.3.0b2/cortex/extensions/immune/arbiter.py +315 -0
  686. cortex_persist-0.3.0b2/cortex/extensions/immune/breaker.py +91 -0
  687. cortex_persist-0.3.0b2/cortex/extensions/immune/chaos.py +107 -0
  688. cortex_persist-0.3.0b2/cortex/extensions/immune/error_boundary.py +213 -0
  689. cortex_persist-0.3.0b2/cortex/extensions/immune/falsification.py +182 -0
  690. cortex_persist-0.3.0b2/cortex/extensions/immune/filters/adversarial.py +67 -0
  691. cortex_persist-0.3.0b2/cortex/extensions/immune/filters/base.py +40 -0
  692. cortex_persist-0.3.0b2/cortex/extensions/immune/filters/causal.py +68 -0
  693. cortex_persist-0.3.0b2/cortex/extensions/immune/filters/confidence.py +63 -0
  694. cortex_persist-0.3.0b2/cortex/extensions/immune/filters/entropic_quarantine.py +115 -0
  695. cortex_persist-0.3.0b2/cortex/extensions/immune/filters/entropy.py +58 -0
  696. cortex_persist-0.3.0b2/cortex/extensions/immune/filters/reversibility.py +64 -0
  697. cortex_persist-0.3.0b2/cortex/extensions/immune/membrane.py +144 -0
  698. cortex_persist-0.3.0b2/cortex/extensions/immune/metastability.py +132 -0
  699. cortex_persist-0.3.0b2/cortex/extensions/immune/validate.py +44 -0
  700. cortex_persist-0.3.0b2/cortex/extensions/interfaces/__init__.py +1 -0
  701. cortex_persist-0.3.0b2/cortex/extensions/interfaces/engine.py +164 -0
  702. cortex_persist-0.3.0b2/cortex/extensions/interfaces/store_pipeline.py +91 -0
  703. cortex_persist-0.3.0b2/cortex/extensions/langbase/__init__.py +9 -0
  704. cortex_persist-0.3.0b2/cortex/extensions/langbase/client.py +350 -0
  705. cortex_persist-0.3.0b2/cortex/extensions/langbase/pipe.py +180 -0
  706. cortex_persist-0.3.0b2/cortex/extensions/langbase/sync.py +216 -0
  707. cortex_persist-0.3.0b2/cortex/extensions/launchpad/__init__.py +0 -0
  708. cortex_persist-0.3.0b2/cortex/extensions/launchpad/main.py +166 -0
  709. cortex_persist-0.3.0b2/cortex/extensions/llm/__init__.py +31 -0
  710. cortex_persist-0.3.0b2/cortex/extensions/llm/_audit.py +36 -0
  711. cortex_persist-0.3.0b2/cortex/extensions/llm/_backoff.py +131 -0
  712. cortex_persist-0.3.0b2/cortex/extensions/llm/_cache.py +141 -0
  713. cortex_persist-0.3.0b2/cortex/extensions/llm/_cascade.py +106 -0
  714. cortex_persist-0.3.0b2/cortex/extensions/llm/_constants.py +44 -0
  715. cortex_persist-0.3.0b2/cortex/extensions/llm/_hedging.py +122 -0
  716. cortex_persist-0.3.0b2/cortex/extensions/llm/_models.py +242 -0
  717. cortex_persist-0.3.0b2/cortex/extensions/llm/_pool.py +185 -0
  718. cortex_persist-0.3.0b2/cortex/extensions/llm/_presets.py +263 -0
  719. cortex_persist-0.3.0b2/cortex/extensions/llm/_result_cache.py +162 -0
  720. cortex_persist-0.3.0b2/cortex/extensions/llm/_stealth.py +80 -0
  721. cortex_persist-0.3.0b2/cortex/extensions/llm/_telemetry.py +113 -0
  722. cortex_persist-0.3.0b2/cortex/extensions/llm/_validation.py +208 -0
  723. cortex_persist-0.3.0b2/cortex/extensions/llm/boundary.py +145 -0
  724. cortex_persist-0.3.0b2/cortex/extensions/llm/cognitive_handoff.py +451 -0
  725. cortex_persist-0.3.0b2/cortex/extensions/llm/gemini_cache.py +99 -0
  726. cortex_persist-0.3.0b2/cortex/extensions/llm/manager.py +129 -0
  727. cortex_persist-0.3.0b2/cortex/extensions/llm/metacognitive_boundary.py +382 -0
  728. cortex_persist-0.3.0b2/cortex/extensions/llm/provider.py +552 -0
  729. cortex_persist-0.3.0b2/cortex/extensions/llm/quota.py +271 -0
  730. cortex_persist-0.3.0b2/cortex/extensions/llm/router.py +585 -0
  731. cortex_persist-0.3.0b2/cortex/extensions/llm/sovereign.py +453 -0
  732. cortex_persist-0.3.0b2/cortex/extensions/llm/vllm_edge.py +209 -0
  733. cortex_persist-0.3.0b2/cortex/extensions/manifold/__init__.py +21 -0
  734. cortex_persist-0.3.0b2/cortex/extensions/manifold/convergence.py +38 -0
  735. cortex_persist-0.3.0b2/cortex/extensions/manifold/core.py +225 -0
  736. cortex_persist-0.3.0b2/cortex/extensions/manifold/dimensions.py +142 -0
  737. cortex_persist-0.3.0b2/cortex/extensions/manifold/models.py +62 -0
  738. cortex_persist-0.3.0b2/cortex/extensions/market_maker/__init__.py +99 -0
  739. cortex_persist-0.3.0b2/cortex/extensions/market_maker/detector.py +85 -0
  740. cortex_persist-0.3.0b2/cortex/extensions/market_maker/models.py +83 -0
  741. cortex_persist-0.3.0b2/cortex/extensions/market_maker/mvp_generator.py +62 -0
  742. cortex_persist-0.3.0b2/cortex/extensions/market_maker/orchestrator.py +115 -0
  743. cortex_persist-0.3.0b2/cortex/extensions/market_maker/scorer.py +66 -0
  744. cortex_persist-0.3.0b2/cortex/extensions/market_maker/validator.py +56 -0
  745. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/__init__.py +6 -0
  746. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/_scanner_import_graph.py +142 -0
  747. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/_scanner_visitors.py +141 -0
  748. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/antipatterns.py +397 -0
  749. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/chronos.py +30 -0
  750. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/constants.py +191 -0
  751. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/daemon.py +305 -0
  752. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/deps.py +72 -0
  753. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/effectiveness.py +212 -0
  754. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/engine.py +98 -0
  755. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/heal.py +642 -0
  756. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/heal_prompts.py +111 -0
  757. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/ledger.py +183 -0
  758. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/models.py +114 -0
  759. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/scan.py +554 -0
  760. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/ship.py +177 -0
  761. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/stack_detector.py +96 -0
  762. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/swarm.py +482 -0
  763. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/taint.py +55 -0
  764. cortex_persist-0.3.0b2/cortex/extensions/mejoralo/utils.py +74 -0
  765. cortex_persist-0.3.0b2/cortex/extensions/metering/__init__.py +32 -0
  766. cortex_persist-0.3.0b2/cortex/extensions/metering/middleware.py +143 -0
  767. cortex_persist-0.3.0b2/cortex/extensions/metering/quotas.py +158 -0
  768. cortex_persist-0.3.0b2/cortex/extensions/metering/tracker.py +251 -0
  769. cortex_persist-0.3.0b2/cortex/extensions/moltbook/__init__.py +7 -0
  770. cortex_persist-0.3.0b2/cortex/extensions/moltbook/client.py +325 -0
  771. cortex_persist-0.3.0b2/cortex/extensions/moltbook/eclipse.py +350 -0
  772. cortex_persist-0.3.0b2/cortex/extensions/moltbook/edge_proxy.py +46 -0
  773. cortex_persist-0.3.0b2/cortex/extensions/moltbook/heartbeat.py +217 -0
  774. cortex_persist-0.3.0b2/cortex/extensions/moltbook/logging_config.yaml +19 -0
  775. cortex_persist-0.3.0b2/cortex/extensions/moltbook/models.py +97 -0
  776. cortex_persist-0.3.0b2/cortex/extensions/moltbook/preflight.py +167 -0
  777. cortex_persist-0.3.0b2/cortex/extensions/moltbook/sigint.py +315 -0
  778. cortex_persist-0.3.0b2/cortex/extensions/moltbook/skills/cortex-persist/SKILL.md +217 -0
  779. cortex_persist-0.3.0b2/cortex/extensions/moltbook/skills/cortex-persist/scripts/memory_engine.py +445 -0
  780. cortex_persist-0.3.0b2/cortex/extensions/moltbook/skills/sovereign-code-scorer/SKILL.md +126 -0
  781. cortex_persist-0.3.0b2/cortex/extensions/moltbook/skills/sovereign-code-scorer/scripts/sovereign_scorer.py +431 -0
  782. cortex_persist-0.3.0b2/cortex/extensions/moltbook/skills/sovereign-code-scorer/scripts/sovereign_scorer_dimensions.py +196 -0
  783. cortex_persist-0.3.0b2/cortex/extensions/moltbook/skills/swarm-coordinator/SKILL.md +173 -0
  784. cortex_persist-0.3.0b2/cortex/extensions/moltbook/trending.py +273 -0
  785. cortex_persist-0.3.0b2/cortex/extensions/moltbook/verification.py +295 -0
  786. cortex_persist-0.3.0b2/cortex/extensions/music_engine/__init__.py +15 -0
  787. cortex_persist-0.3.0b2/cortex/extensions/music_engine/_synth.py +77 -0
  788. cortex_persist-0.3.0b2/cortex/extensions/music_engine/adapters.py +250 -0
  789. cortex_persist-0.3.0b2/cortex/extensions/music_engine/dsp_apotheosis.py +179 -0
  790. cortex_persist-0.3.0b2/cortex/extensions/music_engine/midi_engine.py +504 -0
  791. cortex_persist-0.3.0b2/cortex/extensions/music_engine/orchestrator.py +432 -0
  792. cortex_persist-0.3.0b2/cortex/extensions/nexus/__init__.py +30 -0
  793. cortex_persist-0.3.0b2/cortex/extensions/nexus/convenience.py +133 -0
  794. cortex_persist-0.3.0b2/cortex/extensions/nexus/db.py +151 -0
  795. cortex_persist-0.3.0b2/cortex/extensions/nexus/model.py +152 -0
  796. cortex_persist-0.3.0b2/cortex/extensions/nexus/types.py +104 -0
  797. cortex_persist-0.3.0b2/cortex/extensions/notifications/__init__.py +27 -0
  798. cortex_persist-0.3.0b2/cortex/extensions/notifications/adapters/__init__.py +11 -0
  799. cortex_persist-0.3.0b2/cortex/extensions/notifications/adapters/base.py +33 -0
  800. cortex_persist-0.3.0b2/cortex/extensions/notifications/adapters/imessage.py +70 -0
  801. cortex_persist-0.3.0b2/cortex/extensions/notifications/adapters/macos.py +55 -0
  802. cortex_persist-0.3.0b2/cortex/extensions/notifications/adapters/telegram.py +70 -0
  803. cortex_persist-0.3.0b2/cortex/extensions/notifications/bus.py +140 -0
  804. cortex_persist-0.3.0b2/cortex/extensions/notifications/events.py +60 -0
  805. cortex_persist-0.3.0b2/cortex/extensions/notifications/setup.py +63 -0
  806. cortex_persist-0.3.0b2/cortex/extensions/perception/__init__.py +34 -0
  807. cortex_persist-0.3.0b2/cortex/extensions/perception/base.py +205 -0
  808. cortex_persist-0.3.0b2/cortex/extensions/perception/diffing.py +97 -0
  809. cortex_persist-0.3.0b2/cortex/extensions/perception/inference.py +211 -0
  810. cortex_persist-0.3.0b2/cortex/extensions/perception/metabolism.py +74 -0
  811. cortex_persist-0.3.0b2/cortex/extensions/perception/observer.py +155 -0
  812. cortex_persist-0.3.0b2/cortex/extensions/perception/pipeline.py +178 -0
  813. cortex_persist-0.3.0b2/cortex/extensions/platform/__init__.py +0 -0
  814. cortex_persist-0.3.0b2/cortex/extensions/platform/sys.py +105 -0
  815. cortex_persist-0.3.0b2/cortex/extensions/policy/__init__.py +10 -0
  816. cortex_persist-0.3.0b2/cortex/extensions/policy/engine.py +335 -0
  817. cortex_persist-0.3.0b2/cortex/extensions/policy/memory_os.py +71 -0
  818. cortex_persist-0.3.0b2/cortex/extensions/policy/models.py +85 -0
  819. cortex_persist-0.3.0b2/cortex/extensions/protocols/zenon_1.py +241 -0
  820. cortex_persist-0.3.0b2/cortex/extensions/red_team/__init__.py +4 -0
  821. cortex_persist-0.3.0b2/cortex/extensions/red_team/discovery.py +146 -0
  822. cortex_persist-0.3.0b2/cortex/extensions/red_team/hydra_chaos.py +299 -0
  823. cortex_persist-0.3.0b2/cortex/extensions/red_team/swarm_chaos.py +110 -0
  824. cortex_persist-0.3.0b2/cortex/extensions/revenue/__init__.py +43 -0
  825. cortex_persist-0.3.0b2/cortex/extensions/revenue/engine.py +329 -0
  826. cortex_persist-0.3.0b2/cortex/extensions/revenue/models.py +212 -0
  827. cortex_persist-0.3.0b2/cortex/extensions/revenue/vectors/__init__.py +26 -0
  828. cortex_persist-0.3.0b2/cortex/extensions/revenue/vectors/arbitrage.py +329 -0
  829. cortex_persist-0.3.0b2/cortex/extensions/revenue/vectors/microsaas.py +378 -0
  830. cortex_persist-0.3.0b2/cortex/extensions/revenue/vectors/outreach.py +345 -0
  831. cortex_persist-0.3.0b2/cortex/extensions/sap/__init__.py +27 -0
  832. cortex_persist-0.3.0b2/cortex/extensions/sap/agents/__init__.py +6 -0
  833. cortex_persist-0.3.0b2/cortex/extensions/sap/agents/oliver.py +104 -0
  834. cortex_persist-0.3.0b2/cortex/extensions/sap/agents/tom.py +84 -0
  835. cortex_persist-0.3.0b2/cortex/extensions/sap/client.py +451 -0
  836. cortex_persist-0.3.0b2/cortex/extensions/sap/mapper.py +195 -0
  837. cortex_persist-0.3.0b2/cortex/extensions/sap/sync.py +304 -0
  838. cortex_persist-0.3.0b2/cortex/extensions/scraper/__init__.py +19 -0
  839. cortex_persist-0.3.0b2/cortex/extensions/scraper/engine.py +342 -0
  840. cortex_persist-0.3.0b2/cortex/extensions/scraper/extractors.py +414 -0
  841. cortex_persist-0.3.0b2/cortex/extensions/scraper/models.py +150 -0
  842. cortex_persist-0.3.0b2/cortex/extensions/security/__init__.py +77 -0
  843. cortex_persist-0.3.0b2/cortex/extensions/security/abac.py +256 -0
  844. cortex_persist-0.3.0b2/cortex/extensions/security/anomaly_detector.py +303 -0
  845. cortex_persist-0.3.0b2/cortex/extensions/security/guard_runtime.py +193 -0
  846. cortex_persist-0.3.0b2/cortex/extensions/security/honeypot.py +138 -0
  847. cortex_persist-0.3.0b2/cortex/extensions/security/injection_guard.py +395 -0
  848. cortex_persist-0.3.0b2/cortex/extensions/security/integrity_audit.py +328 -0
  849. cortex_persist-0.3.0b2/cortex/extensions/security/security_sync.py +70 -0
  850. cortex_persist-0.3.0b2/cortex/extensions/security/signatures.py +241 -0
  851. cortex_persist-0.3.0b2/cortex/extensions/security/t_cell.py +116 -0
  852. cortex_persist-0.3.0b2/cortex/extensions/security/tenant.py +14 -0
  853. cortex_persist-0.3.0b2/cortex/extensions/security/threat_feed.py +366 -0
  854. cortex_persist-0.3.0b2/cortex/extensions/security/threat_signatures.py +148 -0
  855. cortex_persist-0.3.0b2/cortex/extensions/shannon/__init__.py +73 -0
  856. cortex_persist-0.3.0b2/cortex/extensions/shannon/analyzer.py +391 -0
  857. cortex_persist-0.3.0b2/cortex/extensions/shannon/epistemology.py +334 -0
  858. cortex_persist-0.3.0b2/cortex/extensions/shannon/exergy.py +114 -0
  859. cortex_persist-0.3.0b2/cortex/extensions/shannon/immortality.py +247 -0
  860. cortex_persist-0.3.0b2/cortex/extensions/shannon/report.py +298 -0
  861. cortex_persist-0.3.0b2/cortex/extensions/shannon/scanner.py +324 -0
  862. cortex_persist-0.3.0b2/cortex/extensions/signals/__init__.py +31 -0
  863. cortex_persist-0.3.0b2/cortex/extensions/signals/bus.py +525 -0
  864. cortex_persist-0.3.0b2/cortex/extensions/signals/fact_hook.py +176 -0
  865. cortex_persist-0.3.0b2/cortex/extensions/signals/models.py +57 -0
  866. cortex_persist-0.3.0b2/cortex/extensions/signals/reactor.py +231 -0
  867. cortex_persist-0.3.0b2/cortex/extensions/signals/sharded_bus.py +302 -0
  868. cortex_persist-0.3.0b2/cortex/extensions/signals/trigger_engine.py +446 -0
  869. cortex_persist-0.3.0b2/cortex/extensions/signals/trigger_registry.py +435 -0
  870. cortex_persist-0.3.0b2/cortex/extensions/skills/__init__.py +19 -0
  871. cortex_persist-0.3.0b2/cortex/extensions/skills/autodidact/__init__.py +3 -0
  872. cortex_persist-0.3.0b2/cortex/extensions/skills/autodidact/actuator.py +157 -0
  873. cortex_persist-0.3.0b2/cortex/extensions/skills/autodidact/fetchers.py +189 -0
  874. cortex_persist-0.3.0b2/cortex/extensions/skills/autodidact/synthesis.py +303 -0
  875. cortex_persist-0.3.0b2/cortex/extensions/skills/cadastral/__init__.py +25 -0
  876. cortex_persist-0.3.0b2/cortex/extensions/skills/cadastral/engine.py +318 -0
  877. cortex_persist-0.3.0b2/cortex/extensions/skills/cadastral/models.py +186 -0
  878. cortex_persist-0.3.0b2/cortex/extensions/skills/niche_arbitrage/__init__.py +37 -0
  879. cortex_persist-0.3.0b2/cortex/extensions/skills/niche_arbitrage/models.py +61 -0
  880. cortex_persist-0.3.0b2/cortex/extensions/skills/niche_arbitrage/pipeline.py +86 -0
  881. cortex_persist-0.3.0b2/cortex/extensions/skills/registry.py +375 -0
  882. cortex_persist-0.3.0b2/cortex/extensions/skills/router.py +149 -0
  883. cortex_persist-0.3.0b2/cortex/extensions/songlines/__init__.py +0 -0
  884. cortex_persist-0.3.0b2/cortex/extensions/songlines/decay.py +38 -0
  885. cortex_persist-0.3.0b2/cortex/extensions/songlines/economy.py +55 -0
  886. cortex_persist-0.3.0b2/cortex/extensions/songlines/emitter.py +99 -0
  887. cortex_persist-0.3.0b2/cortex/extensions/songlines/sensor.py +209 -0
  888. cortex_persist-0.3.0b2/cortex/extensions/sovereign/__init__.py +1 -0
  889. cortex_persist-0.3.0b2/cortex/extensions/sovereign/autopoiesis.py +91 -0
  890. cortex_persist-0.3.0b2/cortex/extensions/sovereign/bridge.py +278 -0
  891. cortex_persist-0.3.0b2/cortex/extensions/sovereign/dashboard.py +112 -0
  892. cortex_persist-0.3.0b2/cortex/extensions/sovereign/endocrine.py +119 -0
  893. cortex_persist-0.3.0b2/cortex/extensions/sovereign/engine.py +375 -0
  894. cortex_persist-0.3.0b2/cortex/extensions/sovereign/infrastructure.py +87 -0
  895. cortex_persist-0.3.0b2/cortex/extensions/sovereign/observability.py +245 -0
  896. cortex_persist-0.3.0b2/cortex/extensions/substrate/__init__.py +0 -0
  897. cortex_persist-0.3.0b2/cortex/extensions/substrate/sys.py +105 -0
  898. cortex_persist-0.3.0b2/cortex/extensions/swarm/__init__.py +10 -0
  899. cortex_persist-0.3.0b2/cortex/extensions/swarm/ast_validator.py +360 -0
  900. cortex_persist-0.3.0b2/cortex/extensions/swarm/auto_fix.py +415 -0
  901. cortex_persist-0.3.0b2/cortex/extensions/swarm/budget.py +150 -0
  902. cortex_persist-0.3.0b2/cortex/extensions/swarm/byzantine.py +109 -0
  903. cortex_persist-0.3.0b2/cortex/extensions/swarm/centauro_engine.py +258 -0
  904. cortex_persist-0.3.0b2/cortex/extensions/swarm/code_smith.py +472 -0
  905. cortex_persist-0.3.0b2/cortex/extensions/swarm/conflict_resolution.py +465 -0
  906. cortex_persist-0.3.0b2/cortex/extensions/swarm/crystal_consolidator.py +350 -0
  907. cortex_persist-0.3.0b2/cortex/extensions/swarm/crystal_synthesis.py +127 -0
  908. cortex_persist-0.3.0b2/cortex/extensions/swarm/crystal_thermometer.py +275 -0
  909. cortex_persist-0.3.0b2/cortex/extensions/swarm/error_ghost_pipeline.py +292 -0
  910. cortex_persist-0.3.0b2/cortex/extensions/swarm/escalation.py +32 -0
  911. cortex_persist-0.3.0b2/cortex/extensions/swarm/infinite_minds.py +189 -0
  912. cortex_persist-0.3.0b2/cortex/extensions/swarm/josu_daemon.py +397 -0
  913. cortex_persist-0.3.0b2/cortex/extensions/swarm/knowledge_radar.py +286 -0
  914. cortex_persist-0.3.0b2/cortex/extensions/swarm/kv_prefix_registry.py +214 -0
  915. cortex_persist-0.3.0b2/cortex/extensions/swarm/langgraph_supervisor.py +110 -0
  916. cortex_persist-0.3.0b2/cortex/extensions/swarm/mailbox.py +76 -0
  917. cortex_persist-0.3.0b2/cortex/extensions/swarm/manager.py +482 -0
  918. cortex_persist-0.3.0b2/cortex/extensions/swarm/nightshift_daemon.py +308 -0
  919. cortex_persist-0.3.0b2/cortex/extensions/swarm/nightshift_pipeline.py +393 -0
  920. cortex_persist-0.3.0b2/cortex/extensions/swarm/orchestrator_deep_think.py +205 -0
  921. cortex_persist-0.3.0b2/cortex/extensions/swarm/protocols.py +59 -0
  922. cortex_persist-0.3.0b2/cortex/extensions/swarm/psychohistory.py +207 -0
  923. cortex_persist-0.3.0b2/cortex/extensions/swarm/sonic_swarm.py +75 -0
  924. cortex_persist-0.3.0b2/cortex/extensions/swarm/swarm_heartbeat.py +257 -0
  925. cortex_persist-0.3.0b2/cortex/extensions/swarm/telemetry_gate.py +388 -0
  926. cortex_persist-0.3.0b2/cortex/extensions/swarm/verification_gate.py +69 -0
  927. cortex_persist-0.3.0b2/cortex/extensions/swarm/worktree_isolation.py +67 -0
  928. cortex_persist-0.3.0b2/cortex/extensions/sync/__init__.py +38 -0
  929. cortex_persist-0.3.0b2/cortex/extensions/sync/common.py +260 -0
  930. cortex_persist-0.3.0b2/cortex/extensions/sync/crdt.py +227 -0
  931. cortex_persist-0.3.0b2/cortex/extensions/sync/github_bridge.py +346 -0
  932. cortex_persist-0.3.0b2/cortex/extensions/sync/gitops.py +154 -0
  933. cortex_persist-0.3.0b2/cortex/extensions/sync/hlc.py +174 -0
  934. cortex_persist-0.3.0b2/cortex/extensions/sync/obsidian.py +362 -0
  935. cortex_persist-0.3.0b2/cortex/extensions/sync/read.py +213 -0
  936. cortex_persist-0.3.0b2/cortex/extensions/sync/snapshot.py +184 -0
  937. cortex_persist-0.3.0b2/cortex/extensions/sync/system.py +105 -0
  938. cortex_persist-0.3.0b2/cortex/extensions/sync/write.py +339 -0
  939. cortex_persist-0.3.0b2/cortex/extensions/thinking/__init__.py +29 -0
  940. cortex_persist-0.3.0b2/cortex/extensions/thinking/fusion.py +482 -0
  941. cortex_persist-0.3.0b2/cortex/extensions/thinking/fusion_models.py +255 -0
  942. cortex_persist-0.3.0b2/cortex/extensions/thinking/orchestra.py +500 -0
  943. cortex_persist-0.3.0b2/cortex/extensions/thinking/orchestra_introspection.py +214 -0
  944. cortex_persist-0.3.0b2/cortex/extensions/thinking/pool.py +79 -0
  945. cortex_persist-0.3.0b2/cortex/extensions/thinking/presets.py +210 -0
  946. cortex_persist-0.3.0b2/cortex/extensions/thinking/reflection.py +351 -0
  947. cortex_persist-0.3.0b2/cortex/extensions/thinking/semantic_router.py +358 -0
  948. cortex_persist-0.3.0b2/cortex/extensions/timing/__init__.py +16 -0
  949. cortex_persist-0.3.0b2/cortex/extensions/timing/chronos.py +191 -0
  950. cortex_persist-0.3.0b2/cortex/extensions/timing/models.py +156 -0
  951. cortex_persist-0.3.0b2/cortex/extensions/timing/tracker.py +259 -0
  952. cortex_persist-0.3.0b2/cortex/extensions/training/collector.py +155 -0
  953. cortex_persist-0.3.0b2/cortex/extensions/training/reward_engine.py +54 -0
  954. cortex_persist-0.3.0b2/cortex/extensions/training/test_braintrust_rlhf.py +89 -0
  955. cortex_persist-0.3.0b2/cortex/extensions/training/ttt_engine.py +175 -0
  956. cortex_persist-0.3.0b2/cortex/extensions/trust/__init__.py +7 -0
  957. cortex_persist-0.3.0b2/cortex/extensions/trust/bayesian.py +249 -0
  958. cortex_persist-0.3.0b2/cortex/extensions/ttt/forge.py +83 -0
  959. cortex_persist-0.3.0b2/cortex/extensions/ttt/ghost_harvester.py +147 -0
  960. cortex_persist-0.3.0b2/cortex/extensions/ui/pulmones.py +115 -0
  961. cortex_persist-0.3.0b2/cortex/extensions/ui/swarm_board.py +172 -0
  962. cortex_persist-0.3.0b2/cortex/extensions/ui_control/__init__.py +58 -0
  963. cortex_persist-0.3.0b2/cortex/extensions/ui_control/accessibility.py +263 -0
  964. cortex_persist-0.3.0b2/cortex/extensions/ui_control/applescript.py +128 -0
  965. cortex_persist-0.3.0b2/cortex/extensions/ui_control/keyboard.py +212 -0
  966. cortex_persist-0.3.0b2/cortex/extensions/ui_control/maestro.py +320 -0
  967. cortex_persist-0.3.0b2/cortex/extensions/ui_control/models.py +154 -0
  968. cortex_persist-0.3.0b2/cortex/extensions/ui_control/mouse.py +142 -0
  969. cortex_persist-0.3.0b2/cortex/extensions/ui_control/vision.py +77 -0
  970. cortex_persist-0.3.0b2/cortex/extensions/ui_control/window.py +236 -0
  971. cortex_persist-0.3.0b2/cortex/extensions/vex/__init__.py +23 -0
  972. cortex_persist-0.3.0b2/cortex/extensions/vex/loop.py +395 -0
  973. cortex_persist-0.3.0b2/cortex/extensions/vex/models.py +283 -0
  974. cortex_persist-0.3.0b2/cortex/extensions/vex/planner.py +145 -0
  975. cortex_persist-0.3.0b2/cortex/extensions/vex/receipt.py +142 -0
  976. cortex_persist-0.3.0b2/cortex/extensions/wealth/__init__.py +1 -0
  977. cortex_persist-0.3.0b2/cortex/extensions/wealth/growth.py +128 -0
  978. cortex_persist-0.3.0b2/cortex/extensions/wealth/risk.py +249 -0
  979. cortex_persist-0.3.0b2/cortex/extensions/wealth/scanner.py +167 -0
  980. cortex_persist-0.3.0b2/cortex/extensions/web3/OuroborosLifeline.sol +67 -0
  981. cortex_persist-0.3.0b2/cortex/extensions/web3/akash_resurrection.yaml +61 -0
  982. cortex_persist-0.3.0b2/cortex/extensions/web3/oracle.py +84 -0
  983. cortex_persist-0.3.0b2/cortex/extensions/zkortex/__init__.py +59 -0
  984. cortex_persist-0.3.0b2/cortex/extensions/zkortex/commitment.py +128 -0
  985. cortex_persist-0.3.0b2/cortex/extensions/zkortex/merkle.py +177 -0
  986. cortex_persist-0.3.0b2/cortex/extensions/zkortex/opacity_layer.py +187 -0
  987. cortex_persist-0.3.0b2/cortex/extensions/zkortex/prover.py +187 -0
  988. cortex_persist-0.3.0b2/cortex/extensions/zkortex/range_proof.py +114 -0
  989. cortex_persist-0.3.0b2/cortex/extensions/zkortex/test_integration.py +164 -0
  990. cortex_persist-0.3.0b2/cortex/extensions/zkortex/verifier.py +189 -0
  991. cortex_persist-0.3.0b2/cortex/facts/__init__.py +0 -0
  992. cortex_persist-0.3.0b2/cortex/facts/manager.py +295 -0
  993. cortex_persist-0.3.0b2/cortex/facts/models.py +28 -0
  994. cortex_persist-0.3.0b2/cortex/forensics/forensic_strike.py +138 -0
  995. cortex_persist-0.3.0b2/cortex/gateway/__init__.py +18 -0
  996. cortex_persist-0.3.0b2/cortex/gateway/adapters/__init__.py +6 -0
  997. cortex_persist-0.3.0b2/cortex/gateway/adapters/openai_spoof.py +150 -0
  998. cortex_persist-0.3.0b2/cortex/gateway/adapters/rest.py +171 -0
  999. cortex_persist-0.3.0b2/cortex/gateway/adapters/suno_adapter.py +196 -0
  1000. cortex_persist-0.3.0b2/cortex/gateway/adapters/telegram.py +271 -0
  1001. cortex_persist-0.3.0b2/cortex/gateway/handlers/gidatu.py +152 -0
  1002. cortex_persist-0.3.0b2/cortex/gateway/router.py +326 -0
  1003. cortex_persist-0.3.0b2/cortex/gateway/shield.py +65 -0
  1004. cortex_persist-0.3.0b2/cortex/gateway/spoof.py +148 -0
  1005. cortex_persist-0.3.0b2/cortex/graph/__init__.py +39 -0
  1006. cortex_persist-0.3.0b2/cortex/graph/backends/__init__.py +4 -0
  1007. cortex_persist-0.3.0b2/cortex/graph/backends/base.py +62 -0
  1008. cortex_persist-0.3.0b2/cortex/graph/backends/sqlite/__init__.py +29 -0
  1009. cortex_persist-0.3.0b2/cortex/graph/backends/sqlite/algorithms.py +147 -0
  1010. cortex_persist-0.3.0b2/cortex/graph/backends/sqlite/query.py +251 -0
  1011. cortex_persist-0.3.0b2/cortex/graph/backends/sqlite/store.py +243 -0
  1012. cortex_persist-0.3.0b2/cortex/graph/engine.py +294 -0
  1013. cortex_persist-0.3.0b2/cortex/graph/models.py +82 -0
  1014. cortex_persist-0.3.0b2/cortex/graph/patterns.py +95 -0
  1015. cortex_persist-0.3.0b2/cortex/guards/__init__.py +14 -0
  1016. cortex_persist-0.3.0b2/cortex/guards/_seal_printer.py +65 -0
  1017. cortex_persist-0.3.0b2/cortex/guards/analysis.py +215 -0
  1018. cortex_persist-0.3.0b2/cortex/guards/capabilities.py +51 -0
  1019. cortex_persist-0.3.0b2/cortex/guards/capability_guard.py +78 -0
  1020. cortex_persist-0.3.0b2/cortex/guards/contradiction_guard.py +626 -0
  1021. cortex_persist-0.3.0b2/cortex/guards/dependency_guard.py +146 -0
  1022. cortex_persist-0.3.0b2/cortex/guards/exergy_guard.py +234 -0
  1023. cortex_persist-0.3.0b2/cortex/guards/frontier_guard.py +70 -0
  1024. cortex_persist-0.3.0b2/cortex/guards/gates/__init__.py +0 -0
  1025. cortex_persist-0.3.0b2/cortex/guards/gates/audit.py +60 -0
  1026. cortex_persist-0.3.0b2/cortex/guards/gates/common.py +98 -0
  1027. cortex_persist-0.3.0b2/cortex/guards/gates/database.py +32 -0
  1028. cortex_persist-0.3.0b2/cortex/guards/gates/evolution.py +69 -0
  1029. cortex_persist-0.3.0b2/cortex/guards/gates/lint.py +44 -0
  1030. cortex_persist-0.3.0b2/cortex/guards/gates/system.py +125 -0
  1031. cortex_persist-0.3.0b2/cortex/guards/health_guard.py +77 -0
  1032. cortex_persist-0.3.0b2/cortex/guards/heuristic_seals.py +177 -0
  1033. cortex_persist-0.3.0b2/cortex/guards/models.py +62 -0
  1034. cortex_persist-0.3.0b2/cortex/guards/noqa_audit.py +345 -0
  1035. cortex_persist-0.3.0b2/cortex/guards/omega_auditor.py +119 -0
  1036. cortex_persist-0.3.0b2/cortex/guards/path_guard.py +40 -0
  1037. cortex_persist-0.3.0b2/cortex/guards/scrape_guard.py +87 -0
  1038. cortex_persist-0.3.0b2/cortex/guards/seals.py +662 -0
  1039. cortex_persist-0.3.0b2/cortex/guards/sovereign_seals.py +462 -0
  1040. cortex_persist-0.3.0b2/cortex/guards/taint.py +62 -0
  1041. cortex_persist-0.3.0b2/cortex/guards/thermodynamic.py +57 -0
  1042. cortex_persist-0.3.0b2/cortex/guards/url_guard.py +126 -0
  1043. cortex_persist-0.3.0b2/cortex/guards/zk_guard.py +65 -0
  1044. cortex_persist-0.3.0b2/cortex/http/__init__.py +11 -0
  1045. cortex_persist-0.3.0b2/cortex/http/client.py +208 -0
  1046. cortex_persist-0.3.0b2/cortex/ledger/__init__.py +22 -0
  1047. cortex_persist-0.3.0b2/cortex/ledger/capabilities.py +14 -0
  1048. cortex_persist-0.3.0b2/cortex/ledger/ledger_core.py +473 -0
  1049. cortex_persist-0.3.0b2/cortex/ledger/models.py +135 -0
  1050. cortex_persist-0.3.0b2/cortex/ledger/queue.py +114 -0
  1051. cortex_persist-0.3.0b2/cortex/ledger/store.py +200 -0
  1052. cortex_persist-0.3.0b2/cortex/ledger/verifier.py +178 -0
  1053. cortex_persist-0.3.0b2/cortex/ledger/writer.py +49 -0
  1054. cortex_persist-0.3.0b2/cortex/mac_maestro/__init__.py +31 -0
  1055. cortex_persist-0.3.0b2/cortex/mac_maestro/access.py +388 -0
  1056. cortex_persist-0.3.0b2/cortex/mac_maestro/events.py +45 -0
  1057. cortex_persist-0.3.0b2/cortex/mac_maestro/executor.py +271 -0
  1058. cortex_persist-0.3.0b2/cortex/mac_maestro/intent.py +24 -0
  1059. cortex_persist-0.3.0b2/cortex/mac_maestro/oracle.py +29 -0
  1060. cortex_persist-0.3.0b2/cortex/mcp/__init__.py +43 -0
  1061. cortex_persist-0.3.0b2/cortex/mcp/__main__.py +6 -0
  1062. cortex_persist-0.3.0b2/cortex/mcp/aether_server.py +316 -0
  1063. cortex_persist-0.3.0b2/cortex/mcp/auto_persist.py +220 -0
  1064. cortex_persist-0.3.0b2/cortex/mcp/core_tools.py +233 -0
  1065. cortex_persist-0.3.0b2/cortex/mcp/fl_studio_tools.py +307 -0
  1066. cortex_persist-0.3.0b2/cortex/mcp/genesis_tools.py +189 -0
  1067. cortex_persist-0.3.0b2/cortex/mcp/guard.py +187 -0
  1068. cortex_persist-0.3.0b2/cortex/mcp/health_tools.py +89 -0
  1069. cortex_persist-0.3.0b2/cortex/mcp/hilbert_tools.py +115 -0
  1070. cortex_persist-0.3.0b2/cortex/mcp/maestro_tools.py +49 -0
  1071. cortex_persist-0.3.0b2/cortex/mcp/mega_tools.py +495 -0
  1072. cortex_persist-0.3.0b2/cortex/mcp/music_tools.py +108 -0
  1073. cortex_persist-0.3.0b2/cortex/mcp/notebooklm_tools.py +220 -0
  1074. cortex_persist-0.3.0b2/cortex/mcp/resilient_gateway.py +430 -0
  1075. cortex_persist-0.3.0b2/cortex/mcp/scraper_tools.py +132 -0
  1076. cortex_persist-0.3.0b2/cortex/mcp/server.py +370 -0
  1077. cortex_persist-0.3.0b2/cortex/mcp/toolbox/run_toolbox.sh +52 -0
  1078. cortex_persist-0.3.0b2/cortex/mcp/toolbox/tools.yaml +306 -0
  1079. cortex_persist-0.3.0b2/cortex/mcp/toolbox_bridge.py +232 -0
  1080. cortex_persist-0.3.0b2/cortex/mcp/toolbox_watchdog.py +322 -0
  1081. cortex_persist-0.3.0b2/cortex/mcp/trust_compliance.py +280 -0
  1082. cortex_persist-0.3.0b2/cortex/mcp/trust_tools.py +232 -0
  1083. cortex_persist-0.3.0b2/cortex/mcp/utils.py +189 -0
  1084. cortex_persist-0.3.0b2/cortex/mcts/__init__.py +12 -0
  1085. cortex_persist-0.3.0b2/cortex/mcts/git_env.py +149 -0
  1086. cortex_persist-0.3.0b2/cortex/mcts/tree.py +137 -0
  1087. cortex_persist-0.3.0b2/cortex/memory/AGENTS.md +72 -0
  1088. cortex_persist-0.3.0b2/cortex/memory/__init__.py +211 -0
  1089. cortex_persist-0.3.0b2/cortex/memory/causal.py +149 -0
  1090. cortex_persist-0.3.0b2/cortex/memory/compression.py +132 -0
  1091. cortex_persist-0.3.0b2/cortex/memory/consolidation.py +288 -0
  1092. cortex_persist-0.3.0b2/cortex/memory/crdt.py +135 -0
  1093. cortex_persist-0.3.0b2/cortex/memory/distributed_cache.py +487 -0
  1094. cortex_persist-0.3.0b2/cortex/memory/dream.py +444 -0
  1095. cortex_persist-0.3.0b2/cortex/memory/drift.py +396 -0
  1096. cortex_persist-0.3.0b2/cortex/memory/encoder.py +58 -0
  1097. cortex_persist-0.3.0b2/cortex/memory/engrams.py +46 -0
  1098. cortex_persist-0.3.0b2/cortex/memory/episodic.py +311 -0
  1099. cortex_persist-0.3.0b2/cortex/memory/evaluator.py +57 -0
  1100. cortex_persist-0.3.0b2/cortex/memory/frequency.py +195 -0
  1101. cortex_persist-0.3.0b2/cortex/memory/graph_store.py +146 -0
  1102. cortex_persist-0.3.0b2/cortex/memory/guardrails.py +119 -0
  1103. cortex_persist-0.3.0b2/cortex/memory/hdc/__init__.py +39 -0
  1104. cortex_persist-0.3.0b2/cortex/memory/hdc/algebra.py +163 -0
  1105. cortex_persist-0.3.0b2/cortex/memory/hdc/codec.py +120 -0
  1106. cortex_persist-0.3.0b2/cortex/memory/hdc/item_memory.py +173 -0
  1107. cortex_persist-0.3.0b2/cortex/memory/hdc/store.py +419 -0
  1108. cortex_persist-0.3.0b2/cortex/memory/hologram.py +239 -0
  1109. cortex_persist-0.3.0b2/cortex/memory/homeostasis.py +227 -0
  1110. cortex_persist-0.3.0b2/cortex/memory/ingestion/__init__.py +13 -0
  1111. cortex_persist-0.3.0b2/cortex/memory/ingestion/ast_ingestor.py +85 -0
  1112. cortex_persist-0.3.0b2/cortex/memory/ingestion/prefix_ingestor.py +63 -0
  1113. cortex_persist-0.3.0b2/cortex/memory/ingestion/vision_ingestor.py +60 -0
  1114. cortex_persist-0.3.0b2/cortex/memory/l2_hybrid_search.py +466 -0
  1115. cortex_persist-0.3.0b2/cortex/memory/ledger.py +274 -0
  1116. cortex_persist-0.3.0b2/cortex/memory/manager.py +616 -0
  1117. cortex_persist-0.3.0b2/cortex/memory/memory_archaeology.py +233 -0
  1118. cortex_persist-0.3.0b2/cortex/memory/memory_compression.py +131 -0
  1119. cortex_persist-0.3.0b2/cortex/memory/memory_retrieval.py +252 -0
  1120. cortex_persist-0.3.0b2/cortex/memory/metamemory.py +482 -0
  1121. cortex_persist-0.3.0b2/cortex/memory/metamemory_schema.py +404 -0
  1122. cortex_persist-0.3.0b2/cortex/memory/models.py +299 -0
  1123. cortex_persist-0.3.0b2/cortex/memory/navigator.py +464 -0
  1124. cortex_persist-0.3.0b2/cortex/memory/nrem_cycle.py +192 -0
  1125. cortex_persist-0.3.0b2/cortex/memory/pii_sanitizer.py +286 -0
  1126. cortex_persist-0.3.0b2/cortex/memory/pipeline.py +195 -0
  1127. cortex_persist-0.3.0b2/cortex/memory/predictive.py +188 -0
  1128. cortex_persist-0.3.0b2/cortex/memory/procedural.py +260 -0
  1129. cortex_persist-0.3.0b2/cortex/memory/reconsolidation.py +442 -0
  1130. cortex_persist-0.3.0b2/cortex/memory/replay.py +150 -0
  1131. cortex_persist-0.3.0b2/cortex/memory/resonance.py +216 -0
  1132. cortex_persist-0.3.0b2/cortex/memory/rlvr_evaluator.py +43 -0
  1133. cortex_persist-0.3.0b2/cortex/memory/schemas.py +179 -0
  1134. cortex_persist-0.3.0b2/cortex/memory/semantic_ram.py +447 -0
  1135. cortex_persist-0.3.0b2/cortex/memory/sleep.py +293 -0
  1136. cortex_persist-0.3.0b2/cortex/memory/sparse.py +102 -0
  1137. cortex_persist-0.3.0b2/cortex/memory/sqlite_vec_store.py +692 -0
  1138. cortex_persist-0.3.0b2/cortex/memory/stdp.py +325 -0
  1139. cortex_persist-0.3.0b2/cortex/memory/temporal.py +191 -0
  1140. cortex_persist-0.3.0b2/cortex/memory/temporal_health.py +425 -0
  1141. cortex_persist-0.3.0b2/cortex/memory/temporal_health_models.py +100 -0
  1142. cortex_persist-0.3.0b2/cortex/memory/thalamus.py +212 -0
  1143. cortex_persist-0.3.0b2/cortex/memory/topological_health.py +317 -0
  1144. cortex_persist-0.3.0b2/cortex/memory/valence.py +144 -0
  1145. cortex_persist-0.3.0b2/cortex/memory/vector_providers/base.py +49 -0
  1146. cortex_persist-0.3.0b2/cortex/memory/void_detector.py +345 -0
  1147. cortex_persist-0.3.0b2/cortex/memory/working.py +297 -0
  1148. cortex_persist-0.3.0b2/cortex/migrate.py +291 -0
  1149. cortex_persist-0.3.0b2/cortex/migrations/001_ledger_events.sql +15 -0
  1150. cortex_persist-0.3.0b2/cortex/migrations/002_enrichment_jobs.sql +19 -0
  1151. cortex_persist-0.3.0b2/cortex/migrations/016_crypto_shredding.sql +23 -0
  1152. cortex_persist-0.3.0b2/cortex/migrations/017_hlc_crdt.sql +30 -0
  1153. cortex_persist-0.3.0b2/cortex/migrations/AGENTS.md +75 -0
  1154. cortex_persist-0.3.0b2/cortex/migrations/__init__.py +3 -0
  1155. cortex_persist-0.3.0b2/cortex/migrations/core.py +180 -0
  1156. cortex_persist-0.3.0b2/cortex/migrations/mig_base.py +59 -0
  1157. cortex_persist-0.3.0b2/cortex/migrations/mig_cognitive_layer.py +25 -0
  1158. cortex_persist-0.3.0b2/cortex/migrations/mig_consensus.py +87 -0
  1159. cortex_persist-0.3.0b2/cortex/migrations/mig_enrichment.py +50 -0
  1160. cortex_persist-0.3.0b2/cortex/migrations/mig_fts.py +68 -0
  1161. cortex_persist-0.3.0b2/cortex/migrations/mig_graph.py +47 -0
  1162. cortex_persist-0.3.0b2/cortex/migrations/mig_ha.py +48 -0
  1163. cortex_persist-0.3.0b2/cortex/migrations/mig_hash.py +24 -0
  1164. cortex_persist-0.3.0b2/cortex/migrations/mig_ledger.py +153 -0
  1165. cortex_persist-0.3.0b2/cortex/migrations/mig_scaling_indexes.py +29 -0
  1166. cortex_persist-0.3.0b2/cortex/migrations/mig_security_hardening.py +44 -0
  1167. cortex_persist-0.3.0b2/cortex/migrations/mig_signals.py +32 -0
  1168. cortex_persist-0.3.0b2/cortex/migrations/mig_simplify_facts.py +79 -0
  1169. cortex_persist-0.3.0b2/cortex/migrations/mig_solid_state.py +34 -0
  1170. cortex_persist-0.3.0b2/cortex/migrations/mig_tenant.py +51 -0
  1171. cortex_persist-0.3.0b2/cortex/migrations/mig_tombstone.py +20 -0
  1172. cortex_persist-0.3.0b2/cortex/migrations/registry.py +60 -0
  1173. cortex_persist-0.3.0b2/cortex/nexus_v8.py +33 -0
  1174. cortex_persist-0.3.0b2/cortex/py.typed +0 -0
  1175. cortex_persist-0.3.0b2/cortex/routes/__init__.py +80 -0
  1176. cortex_persist-0.3.0b2/cortex/routes/admin.py +437 -0
  1177. cortex_persist-0.3.0b2/cortex/routes/admin_health_probes.py +38 -0
  1178. cortex_persist-0.3.0b2/cortex/routes/agents.py +107 -0
  1179. cortex_persist-0.3.0b2/cortex/routes/ask.py +349 -0
  1180. cortex_persist-0.3.0b2/cortex/routes/context.py +128 -0
  1181. cortex_persist-0.3.0b2/cortex/routes/daemon.py +25 -0
  1182. cortex_persist-0.3.0b2/cortex/routes/dashboard.py +56 -0
  1183. cortex_persist-0.3.0b2/cortex/routes/events.py +83 -0
  1184. cortex_persist-0.3.0b2/cortex/routes/facts.py +430 -0
  1185. cortex_persist-0.3.0b2/cortex/routes/gate.py +96 -0
  1186. cortex_persist-0.3.0b2/cortex/routes/graph.py +64 -0
  1187. cortex_persist-0.3.0b2/cortex/routes/health.py +133 -0
  1188. cortex_persist-0.3.0b2/cortex/routes/langbase.py +216 -0
  1189. cortex_persist-0.3.0b2/cortex/routes/ledger.py +117 -0
  1190. cortex_persist-0.3.0b2/cortex/routes/mejoralo.py +105 -0
  1191. cortex_persist-0.3.0b2/cortex/routes/memories.py +268 -0
  1192. cortex_persist-0.3.0b2/cortex/routes/middleware.py +163 -0
  1193. cortex_persist-0.3.0b2/cortex/routes/missions.py +52 -0
  1194. cortex_persist-0.3.0b2/cortex/routes/notch_ws.py +148 -0
  1195. cortex_persist-0.3.0b2/cortex/routes/notebooklm.py +204 -0
  1196. cortex_persist-0.3.0b2/cortex/routes/observatory.py +138 -0
  1197. cortex_persist-0.3.0b2/cortex/routes/onboarding.py +87 -0
  1198. cortex_persist-0.3.0b2/cortex/routes/oracle.py +181 -0
  1199. cortex_persist-0.3.0b2/cortex/routes/runtime.py +32 -0
  1200. cortex_persist-0.3.0b2/cortex/routes/scraper.py +164 -0
  1201. cortex_persist-0.3.0b2/cortex/routes/search.py +68 -0
  1202. cortex_persist-0.3.0b2/cortex/routes/stripe.py +263 -0
  1203. cortex_persist-0.3.0b2/cortex/routes/swarm.py +131 -0
  1204. cortex_persist-0.3.0b2/cortex/routes/telemetry.py +121 -0
  1205. cortex_persist-0.3.0b2/cortex/routes/timing.py +156 -0
  1206. cortex_persist-0.3.0b2/cortex/routes/tips.py +187 -0
  1207. cortex_persist-0.3.0b2/cortex/routes/topology_ws.py +94 -0
  1208. cortex_persist-0.3.0b2/cortex/routes/translate.py +159 -0
  1209. cortex_persist-0.3.0b2/cortex/routes/trust.py +121 -0
  1210. cortex_persist-0.3.0b2/cortex/routes/usage.py +91 -0
  1211. cortex_persist-0.3.0b2/cortex/search/__init__.py +34 -0
  1212. cortex_persist-0.3.0b2/cortex/search/causal_gap.py +146 -0
  1213. cortex_persist-0.3.0b2/cortex/search/federation.py +443 -0
  1214. cortex_persist-0.3.0b2/cortex/search/hybrid.py +262 -0
  1215. cortex_persist-0.3.0b2/cortex/search/models.py +62 -0
  1216. cortex_persist-0.3.0b2/cortex/search/reranker.py +211 -0
  1217. cortex_persist-0.3.0b2/cortex/search/sync.py +315 -0
  1218. cortex_persist-0.3.0b2/cortex/search/text.py +194 -0
  1219. cortex_persist-0.3.0b2/cortex/search/utils.py +217 -0
  1220. cortex_persist-0.3.0b2/cortex/search/vector.py +235 -0
  1221. cortex_persist-0.3.0b2/cortex/security/haiku.py +128 -0
  1222. cortex_persist-0.3.0b2/cortex/security/policy.py +193 -0
  1223. cortex_persist-0.3.0b2/cortex/security/probe.py +207 -0
  1224. cortex_persist-0.3.0b2/cortex/security/quarantine.py +54 -0
  1225. cortex_persist-0.3.0b2/cortex/security/types.py +75 -0
  1226. cortex_persist-0.3.0b2/cortex/services/github_agent_demo.py +38 -0
  1227. cortex_persist-0.3.0b2/cortex/services/github_agent_session.py +110 -0
  1228. cortex_persist-0.3.0b2/cortex/services/github_shortcuts.py +296 -0
  1229. cortex_persist-0.3.0b2/cortex/services/notebooklm.py +242 -0
  1230. cortex_persist-0.3.0b2/cortex/services/public_memory.py +307 -0
  1231. cortex_persist-0.3.0b2/cortex/services/trust.py +464 -0
  1232. cortex_persist-0.3.0b2/cortex/shannon/__init__.py +15 -0
  1233. cortex_persist-0.3.0b2/cortex/shannon/entropy.py +305 -0
  1234. cortex_persist-0.3.0b2/cortex/shannon/exergy.py +91 -0
  1235. cortex_persist-0.3.0b2/cortex/storage/__init__.py +83 -0
  1236. cortex_persist-0.3.0b2/cortex/storage/adapter.py +67 -0
  1237. cortex_persist-0.3.0b2/cortex/storage/classifier.py +139 -0
  1238. cortex_persist-0.3.0b2/cortex/storage/pg_schema.py +454 -0
  1239. cortex_persist-0.3.0b2/cortex/storage/postgres.py +311 -0
  1240. cortex_persist-0.3.0b2/cortex/storage/qdrant.py +308 -0
  1241. cortex_persist-0.3.0b2/cortex/storage/router.py +183 -0
  1242. cortex_persist-0.3.0b2/cortex/storage/sqlite_adapter.py +147 -0
  1243. cortex_persist-0.3.0b2/cortex/storage/turso.py +192 -0
  1244. cortex_persist-0.3.0b2/cortex/telemetry/__init__.py +0 -0
  1245. cortex_persist-0.3.0b2/cortex/telemetry/core.py +223 -0
  1246. cortex_persist-0.3.0b2/cortex/telemetry/metrics.py +284 -0
  1247. cortex_persist-0.3.0b2/cortex/telemetry/pulse.py +217 -0
  1248. cortex_persist-0.3.0b2/cortex/telemetry/quality.py +88 -0
  1249. cortex_persist-0.3.0b2/cortex/types/__init__.py +0 -0
  1250. cortex_persist-0.3.0b2/cortex/types/models.py +531 -0
  1251. cortex_persist-0.3.0b2/cortex/utils/__init__.py +0 -0
  1252. cortex_persist-0.3.0b2/cortex/utils/applescript.py +60 -0
  1253. cortex_persist-0.3.0b2/cortex/utils/cache.py +158 -0
  1254. cortex_persist-0.3.0b2/cortex/utils/canonical.py +106 -0
  1255. cortex_persist-0.3.0b2/cortex/utils/compression.py +86 -0
  1256. cortex_persist-0.3.0b2/cortex/utils/context_formatter.py +73 -0
  1257. cortex_persist-0.3.0b2/cortex/utils/errors.py +124 -0
  1258. cortex_persist-0.3.0b2/cortex/utils/export.py +121 -0
  1259. cortex_persist-0.3.0b2/cortex/utils/http.py +256 -0
  1260. cortex_persist-0.3.0b2/cortex/utils/hygiene.py +53 -0
  1261. cortex_persist-0.3.0b2/cortex/utils/i18n.py +316 -0
  1262. cortex_persist-0.3.0b2/cortex/utils/landauer.py +154 -0
  1263. cortex_persist-0.3.0b2/cortex/utils/pulmones.py +210 -0
  1264. cortex_persist-0.3.0b2/cortex/utils/pulmones_worker.py +111 -0
  1265. cortex_persist-0.3.0b2/cortex/utils/respiration.py +93 -0
  1266. cortex_persist-0.3.0b2/cortex/utils/result.py +145 -0
  1267. cortex_persist-0.3.0b2/cortex/utils/sandbox.py +444 -0
  1268. cortex_persist-0.3.0b2/cortex/utils/sanitize.py +168 -0
  1269. cortex_persist-0.3.0b2/cortex/utils/semantic_heartbeat.py +62 -0
  1270. cortex_persist-0.3.0b2/cortex/utils/syscall.py +104 -0
  1271. cortex_persist-0.3.0b2/cortex/utils/tip_generator.py +47 -0
  1272. cortex_persist-0.3.0b2/cortex/utils/turboquant.py +127 -0
  1273. cortex_persist-0.3.0b2/cortex/utils/void_accel.c +80 -0
  1274. cortex_persist-0.3.0b2/cortex/utils/void_accel.so +0 -0
  1275. cortex_persist-0.3.0b2/cortex/utils/void_mih.py +51 -0
  1276. cortex_persist-0.3.0b2/cortex/utils/void_vec.py +119 -0
  1277. cortex_persist-0.3.0b2/cortex/verification/__init__.py +0 -0
  1278. cortex_persist-0.3.0b2/cortex/verification/counterexample.py +51 -0
  1279. cortex_persist-0.3.0b2/cortex/verification/extractor.py +61 -0
  1280. cortex_persist-0.3.0b2/cortex/verification/frontend_oracle.py +98 -0
  1281. cortex_persist-0.3.0b2/cortex/verification/invariants.py +60 -0
  1282. cortex_persist-0.3.0b2/cortex/verification/oracle.py +111 -0
  1283. cortex_persist-0.3.0b2/cortex/verification/rules/plan_rules.json +12 -0
  1284. cortex_persist-0.3.0b2/cortex/verification/rules/tool_rules.json +25 -0
  1285. cortex_persist-0.3.0b2/cortex/verification/verifier.py +80 -0
  1286. cortex_persist-0.3.0b2/cortex/worker/enrichment.py +109 -0
  1287. cortex_persist-0.3.0b2/cortex_persist.egg-info/PKG-INFO +323 -0
  1288. cortex_persist-0.3.0b2/cortex_persist.egg-info/SOURCES.txt +1292 -0
  1289. cortex_persist-0.3.0b2/cortex_persist.egg-info/dependency_links.txt +1 -0
  1290. cortex_persist-0.3.0b2/cortex_persist.egg-info/entry_points.txt +4 -0
  1291. cortex_persist-0.3.0b2/cortex_persist.egg-info/requires.txt +57 -0
  1292. cortex_persist-0.3.0b2/cortex_persist.egg-info/top_level.txt +1 -0
  1293. cortex_persist-0.3.0b2/pyproject.toml +158 -0
  1294. cortex_persist-0.3.0b2/setup.cfg +4 -0
@@ -0,0 +1,190 @@
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 the 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 the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, 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. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2024-2026 borjamoskv.com / Sovereign Systems Labs
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1,19 @@
1
+ include LICENSE
2
+ include README.md
3
+ include pyproject.toml
4
+ graft cortex
5
+ prune .github
6
+ prune build
7
+ prune cortex-sdk
8
+ prune dist
9
+ prune docs
10
+ prune docs_backup
11
+ prune experimental
12
+ prune node_modules
13
+ prune sdks
14
+ prune src
15
+ prune tests
16
+ prune worktrees
17
+ global-exclude __pycache__
18
+ global-exclude *.py[cod]
19
+ global-exclude .DS_Store
@@ -0,0 +1,323 @@
1
+ Metadata-Version: 2.4
2
+ Name: cortex-persist
3
+ Version: 0.3.0b2
4
+ Summary: Tamper-evident memory and decision lineage for AI agents.
5
+ Author-email: "borjamoskv.com" <borja@moskv.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://cortexpersist.com
8
+ Project-URL: Documentation, https://github.com/borjamoskv/Cortex-Persist/tree/main/src/content/docs
9
+ Project-URL: Repository, https://github.com/borjamoskv/Cortex-Persist
10
+ Project-URL: Issues, https://github.com/borjamoskv/Cortex-Persist/issues
11
+ Project-URL: Changelog, https://github.com/borjamoskv/Cortex-Persist/releases
12
+ Project-URL: Roadmap, https://github.com/borjamoskv/Cortex-Persist/blob/main/ROADMAP.md
13
+ Project-URL: Security, https://github.com/borjamoskv/Cortex-Persist/blob/main/SECURITY.md
14
+ Project-URL: Support, https://github.com/borjamoskv/Cortex-Persist/blob/main/SUPPORT.md
15
+ Keywords: ai,memory,agents,trust,compliance,eu-ai-act,cryptographic-ledger,audit-trail,vector-search,sqlite,mcp,multi-tenant
16
+ Classifier: Development Status :: 4 - Beta
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
+ Classifier: Topic :: Security :: Cryptography
25
+ Classifier: Topic :: Database
26
+ Classifier: Typing :: Typed
27
+ Requires-Python: >=3.10
28
+ Description-Content-Type: text/markdown
29
+ License-File: LICENSE
30
+ Requires-Dist: sqlite-vec>=0.1.6
31
+ Requires-Dist: sentence-transformers>=3.0
32
+ Requires-Dist: onnxruntime>=1.17
33
+ Requires-Dist: click>=8.0
34
+ Requires-Dist: rich>=13.0
35
+ Requires-Dist: aiosqlite>=0.20.0
36
+ Requires-Dist: pyobjc-core; sys_platform == "darwin"
37
+ Requires-Dist: pyobjc-framework-Cocoa; sys_platform == "darwin"
38
+ Requires-Dist: keyring>=25.7.0
39
+ Requires-Dist: cryptography>=46.0.5
40
+ Requires-Dist: watchdog>=6.0.0
41
+ Requires-Dist: pydantic>=2.0
42
+ Requires-Dist: PyYAML>=6.0
43
+ Requires-Dist: aiofiles
44
+ Requires-Dist: aiohttp
45
+ Requires-Dist: beautifulsoup4
46
+ Requires-Dist: arq
47
+ Requires-Dist: email-validator>=2.1.0
48
+ Provides-Extra: api
49
+ Requires-Dist: fastapi>=0.110; extra == "api"
50
+ Requires-Dist: uvicorn[standard]>=0.27; extra == "api"
51
+ Requires-Dist: httpx>=0.27; extra == "api"
52
+ Requires-Dist: sse-starlette>=0.10.3; extra == "api"
53
+ Provides-Extra: dev
54
+ Requires-Dist: pytest>=8.0; extra == "dev"
55
+ Requires-Dist: pytest-cov>=5.0; extra == "dev"
56
+ Requires-Dist: pytest-asyncio; extra == "dev"
57
+ Requires-Dist: pytest-timeout>=2.3; extra == "dev"
58
+ Requires-Dist: httpx>=0.27; extra == "dev"
59
+ Requires-Dist: pyright>=1.1.0; extra == "dev"
60
+ Requires-Dist: ruff>=0.11.0; extra == "dev"
61
+ Requires-Dist: z3-solver>=4.13.0; extra == "dev"
62
+ Provides-Extra: adk
63
+ Requires-Dist: google-adk>=0.5.0; extra == "adk"
64
+ Provides-Extra: toolbox
65
+ Requires-Dist: toolbox-core>=0.1.0; extra == "toolbox"
66
+ Provides-Extra: billing
67
+ Requires-Dist: stripe>=8.0; extra == "billing"
68
+ Provides-Extra: cloud
69
+ Requires-Dist: asyncpg>=0.29; extra == "cloud"
70
+ Requires-Dist: redis>=5.0; extra == "cloud"
71
+ Requires-Dist: qdrant-client>=1.9; extra == "cloud"
72
+ Provides-Extra: trends
73
+ Requires-Dist: pytrends>=4.9; extra == "trends"
74
+ Requires-Dist: pandas>=2.0; extra == "trends"
75
+ Provides-Extra: all
76
+ Requires-Dist: cortex-persist[adk,api,billing,cloud,dev,toolbox,trends]; extra == "all"
77
+ Dynamic: license-file
78
+
79
+ # CORTEX Persist
80
+
81
+ > Verifiable memory and decision records for AI agents.
82
+
83
+ **Track what an agent saw, decided, and changed - with tamper-evident history.**
84
+
85
+ Local-first. SHA-256 hash-chained. Merkle checkpoints. Audit-ready.
86
+
87
+ [![GitHub Stars](https://img.shields.io/github/stars/borjamoskv/Cortex-Persist?label=GitHub%20Stars)](https://github.com/borjamoskv/Cortex-Persist/stargazers)
88
+ [![Python](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/)
89
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
90
+ [![CI](https://github.com/borjamoskv/Cortex-Persist/actions/workflows/ci.yml/badge.svg)](https://github.com/borjamoskv/Cortex-Persist/actions)
91
+ [![Codecov](https://codecov.io/gh/borjamoskv/Cortex-Persist/branch/main/graph/badge.svg)](https://codecov.io/gh/borjamoskv/Cortex-Persist)
92
+
93
+ [Quickstart](#quickstart) ยท [System Map](src/content/docs/system-map.md) ยท [Native Technologies](src/content/docs/CORTEX-NATIVE-TECHNOLOGIES.md) ยท [Enterprise Readiness](ENTERPRISE_READINESS.md) ยท [Diligence Checklist](DUE_DILIGENCE_CHECKLIST.md) ยท [Deployment Hardening](DEPLOYMENT_HARDENING.md) ยท [API](src/content/docs/api.md) ยท [Security Model](src/content/docs/SECURITY_TRUST_MODEL.md) ยท [Support](SUPPORT.md) ยท [Roadmap](ROADMAP.md) ยท [Contributing](CONTRIBUTING.md)
94
+
95
+ CORTEX Persist adds a verification layer around agent memory and decision state. It sits between your runtime and your storage so facts, decisions, and derived state become reviewable, tamper-evident records instead of mutable application state. If stored context changes after the fact, verification fails.
96
+
97
+ ## Supported Core Today
98
+
99
+ The current public product contract is intentionally smaller than the full repository.
100
+
101
+ | Surface | Status | What to treat as public today |
102
+ | :--- | :--- | :--- |
103
+ | **Local-first Python package** | โœ… **Core** | Install the Python package, use the `cortex` CLI, and use `from cortex import CortexEngine` for the in-process API. |
104
+ | **SQLite/WAL deployment** | โœ… **Core** | Single-node, operator-managed, local-first usage. |
105
+ | **Trust flow** | โœ… **Core** | `install -> init -> store -> verify -> export` |
106
+ | **Current install path** | โœ… **Truthful today** | Source install is the reliable documented path until public package distribution is closed end-to-end. |
107
+ | **REST API / MCP / broader platform surfaces** | ๐ŸŸก **Beta** | Useful for evaluation and extension, but not the first public contract. |
108
+ | **JS SDK and alternate SDK workspaces** | ๐ŸŸก **Experimental / not yet fully aligned** | Present in the repo, but not part of the primary supported core until naming and distribution are fully closed. |
109
+
110
+ If you are evaluating CORTEX as a product rather than exploring the whole repository, start with the local-first core and the quickstart below. The current closure sequence for the public contract lives in [Productization Closure Plan](src/content/docs/productization-closure-plan.md).
111
+
112
+ ## Why CORTEX
113
+
114
+ | Feature | Logs & Observability | CORTEX Persist (Verification Layer) |
115
+ | :--- | :--- | :--- |
116
+ | **Trust Model** | "Trust the process" | **"Verify the record"** |
117
+ | **Tamper Detection** | Weak (DB mutation is silent) | **Cryptographic** (SHA-256 + Merkle) |
118
+ | **Compliance Proof** | Requires manual reconstruction | **Portable JSON Audit Packs** |
119
+ | **Decision Review** | Ambiguous context reconstruction | **Verifiable decision history** |
120
+
121
+ > Logs tell you what happened. CORTEX helps you verify what context an agent used, what it decided, and whether that record has changed since. [**Review a real verification proof.**](examples/audit_proof_artifact.json)
122
+
123
+ ## System Map
124
+
125
+ CORTEX now exposes a stable subsystem taxonomy for navigating the codebase and architecture without forcing an immediate package rename:
126
+
127
+ | Subsystem | Role | Existing Package Surfaces |
128
+ | :--- | :--- | :--- |
129
+ | **CORTEX Hypercore** | Trust kernel, guards, ledger, and persistence boundary | `engine/`, `ledger/`, `guards/`, `verification/`, `crypto/`, `database/`, `storage/`, `security/`, `auth/` |
130
+ | **CORTEX Overmind** | Orchestration, swarm control, coordination, and agent runtime | `agents/`, `consensus/`, `gateway/`, `mcp/`, `worker/`, `extensions/swarm/`, `extensions/sovereign/`, `extensions/federation/`, `extensions/hypervisor/`, `extensions/manifold/` |
131
+ | **CORTEX Deepforge** | Synthesis, reasoning, perception, and code-generation surfaces | `composer/`, `mcts/`, `shannon/`, `extensions/llm/`, `extensions/thinking/`, `extensions/evolution/`, `extensions/training/`, `extensions/skills/`, `extensions/perception/` |
132
+ | **CORTEX Primeflow** | Execution runtime, APIs, services, event delivery, and operational flows | `api/`, `routes/`, `services/`, `events/`, `http/`, `cli/`, `telemetry/`, `extensions/automation/`, `extensions/daemon/`, `extensions/sync/`, `extensions/notifications/`, `extensions/timing/` |
133
+ | **CORTEX Coreshift** | Memory evolution, indexing, migration, audit, and state transitions | `memory/`, `facts/`, `search/`, `embeddings/`, `graph/`, `compaction/`, `enrichment/`, `migrations/`, `audit/`, `compliance/`, `forensics/` |
134
+
135
+ These names are architectural groupings over the current repository, not replacement Python package names. The canonical mapping lives in [System Map](src/content/docs/system-map.md).
136
+
137
+ ## Core Trust Capabilities
138
+
139
+ CORTEX groups five core capabilities that show up across the repository. The names below map to the canonical architecture, but the practical value is straightforward:
140
+
141
+ 1. **Deterministic admission checks**: generated claims are validated before they become durable state.
142
+ 2. **Hash continuity and checkpoint verification**: ledger entries can be checked across events, batches, and rollback boundaries.
143
+ 3. **Explicit handling of uncertain or tainted memory**: uncertain, stale, or contradictory state stays visible instead of being silently blended in.
144
+ 4. **Rollback-aware write flows**: non-trivial mutations follow compensating steps instead of leaving partial state behind.
145
+ 5. **Isolated self-modification paths**: runtime code generation can be contained, tested, and validated before it affects persistent state.
146
+
147
+ The canonical definition and module mapping live in [CORTEX Native Technologies](src/content/docs/CORTEX-NATIVE-TECHNOLOGIES.md).
148
+
149
+ ## Use Cases
150
+
151
+ 1. **Autonomous Agents:** Record what context was present when an agent made a critical decision (for example, executing a trade or sending a legal email).
152
+ 2. **Multi-Agent Systems:** Trace state propagation across agents and workflows.
153
+ 3. **Compliance-Heavy Environments:** Produce audit trails for finance, security, and regulated operations.
154
+ 4. **Post-incident forensics:** detect silent mutation, tampering, or replayed state.
155
+ 5. **Trust-sensitive AI products:** ship verifiable memory and decisions instead of relying on mutable logs.
156
+
157
+ ## Why not just logs or a vector DB?
158
+
159
+ Traditional logging and standard vector stores help you observe systems. They do not give you a verifiable record of memory and decisions. CORTEX adds that layer without forcing you to replace your stack.
160
+
161
+ | Feature | Standard Logs (Datadog/ELK) | Standard Vector DB (Pinecone/Qdrant) | **CORTEX Persist** |
162
+ |:---------------------------|:----------------------------|:-------------------------------------|:------------------------------------------|
163
+ | **Primary Goal** | Observability & Debugging | Semantic Search & RAG | **Verifiable memory and decision records** |
164
+ | **Write Integrity** | Overwritable / Editable | Silent CRUD operations | **Append-Only + Cryptographic Hash** |
165
+ | **Fact Mutability** | Easy (API/Admin access) | Easy (API/Admin access) | **Tamper-evident, append-oriented records** |
166
+ | **Evidence Export** | Text dumps | JSON extracts | **Portable audit packs** |
167
+
168
+ > **See a real artifact**: [View exported audit pack](examples/audit_proof_artifact.json)
169
+
170
+ ### What CORTEX does NOT replace (Non-Goals)
171
+
172
+ - **CORTEX is not a Semantic Search primary DB:** Continue using Qdrant, Pinecone, or Milvus for purely ephemeral RAG chunks. CORTEX stores the *decisions* and core *facts*.
173
+ - **CORTEX is not an Observability Platform:** Continue using Datadog or ELK for server metrics, APM, and basic string logs.
174
+ - **CORTEX does not stop hallucinations:** A verifiable record can still contain a wrong model conclusion. CORTEX makes that state auditable; it does not make it true.
175
+
176
+ ## Deployment Matrix
177
+
178
+ - **Tamper-evident memory:** append-only ledger for facts, decisions, and state transitions.
179
+ - **Hash-linked records:** SHA-256 chaining across stored entries.
180
+ - **Batch integrity proofs:** Merkle checkpoints for efficient verification at scale.
181
+ - **Deterministic audit exports:** reproducible evidence for internal review and regulated workflows.
182
+ - **Drop-in positioning:** works on top of existing memory stores instead of replacing your stack.
183
+
184
+ | Environment | Status | Storage / Scaling |
185
+ | :--- | :--- | :--- |
186
+ | **Local-Only** | โœ… **Most Mature** | SQLite + WAL + built-in Vector Search. Best fit today for single-node, operator-managed deployments. |
187
+ | **Self-Hosted** | ๐ŸŸก **Beta** | Multi-tenant. API-driven. Redis cache. Pluggable to your infra. |
188
+ | **Cloud-Ready** | โณ **Roadmap** | AlloyDB/PostgreSQL + Qdrant. For distributed massive swarms. |
189
+
190
+ ## Enterprise Readiness
191
+
192
+ CORTEX is still on a beta product line, but the repository now exposes the basic due-diligence surfaces a serious buyer or platform team expects:
193
+
194
+ - **Stable governance surface:** [Support](SUPPORT.md), [Security Policy](SECURITY.md), [Contributing](CONTRIBUTING.md), and [Code of Conduct](CODE_OF_CONDUCT.md)
195
+ - **Stable technical entrypoints:** [Architecture](src/content/docs/architecture.md), [Security Model](src/content/docs/SECURITY_TRUST_MODEL.md), [API](src/content/docs/api.md), and [Operations](src/content/docs/OPERATIONS.md)
196
+ - **Release and supply-chain controls:** signed releases, CI, CodeQL, SBOM generation, dependency audit, and container scanning
197
+ - **Deployment and buyer validation guides:** [DEPLOYMENT_HARDENING.md](DEPLOYMENT_HARDENING.md) and [DUE_DILIGENCE_CHECKLIST.md](DUE_DILIGENCE_CHECKLIST.md)
198
+ - **Candid diligence summary:** strengths, current limits, and evaluation checklist in [ENTERPRISE_READINESS.md](ENTERPRISE_READINESS.md)
199
+
200
+ If you are evaluating CORTEX for acquisition, procurement, or internal platform adoption, start with [ENTERPRISE_READINESS.md](ENTERPRISE_READINESS.md) and [DUE_DILIGENCE_CHECKLIST.md](DUE_DILIGENCE_CHECKLIST.md).
201
+
202
+ ## 90-second demo
203
+
204
+ ```bash
205
+ # 1. Start the ledger
206
+ $ cortex init
207
+
208
+ # 2. Store a memory
209
+ $ cortex store risk-bot "Transaction flagged: IP mismatch" --type decision --source agent:risk-bot
210
+ [โœ“] Stored fact #<FACT_ID> in risk-bot
211
+
212
+ # 3. Verify integrity
213
+ $ cortex verify <FACT_ID>
214
+ [โœ”] VERIFIED: Hash chain intact.
215
+
216
+ # 4. Verify the ledger
217
+ $ cortex trust-ledger verify
218
+ [โœ”] Ledger is VALID
219
+
220
+ # 5. Generate a compliance snapshot
221
+ $ cortex compliance-report
222
+ ```
223
+
224
+ ## Quickstart
225
+
226
+ Start with the smallest supported flow and get to audit evidence fast.
227
+
228
+ ```bash
229
+ # 1. Install from source and initialize
230
+ git clone https://github.com/borjamoskv/Cortex-Persist.git
231
+ cd Cortex-Persist
232
+ python3 -m venv .venv && source .venv/bin/activate
233
+ pip install -e .
234
+ cortex init
235
+
236
+ # 2. Store a decision (copy the returned fact ID)
237
+ cortex store risk-bot "Transaction flagged: IP mismatch" --type decision --source agent:risk-bot
238
+
239
+ # 3. Verify the fact and the ledger
240
+ cortex verify <FACT_ID>
241
+ cortex trust-ledger verify
242
+
243
+ # 4. Export evidence
244
+ cortex compliance-report
245
+ ```
246
+
247
+ ## Integration
248
+
249
+ CORTEX wraps your existing state management. It does not replace your embeddings or vector search.
250
+
251
+ ```python
252
+ import asyncio
253
+ from cortex import CortexEngine
254
+
255
+ async def main() -> None:
256
+ engine = CortexEngine()
257
+
258
+ receipt = await engine.store_fact(
259
+ content="User approved transaction $5,000",
260
+ fact_type="decision",
261
+ project="fin-fraud-bot",
262
+ tenant_id="customer-123",
263
+ )
264
+
265
+ assert await engine.verify(receipt.hash) is True
266
+
267
+ asyncio.run(main())
268
+ ```
269
+
270
+ ## Performance
271
+
272
+ *Typical execution on a standard cloud instance (4 vCPU, 16 GB RAM).*
273
+
274
+ | Operation | Median | P95 | Notes |
275
+ | :--- | :--- | :--- | :--- |
276
+ | **Memory Write** | ~18 ms | ~35 ms | Local SQLite + SHA-256 |
277
+ | **Verify Record** | ~5 ms | ~12 ms | Single block validation |
278
+ | **Merkle Checkpoint** | ~85 ms | ~140 ms | Aggregating 10k records |
279
+ | **Report Export** | ~400 ms | ~800 ms | Lineage traversal |
280
+
281
+ ---
282
+
283
+ ## Threat Model Summary (Trust Boundaries)
284
+
285
+ CORTEX treats generative AI output as untrusted input until it passes deterministic checks.
286
+ - **Generated output is validated before persistence:** model output only becomes durable memory after guards, schema checks, and write-path validation.
287
+ - **Mutation paths are constrained:** agents cannot write arbitrary state outside the validated mutation flow.
288
+ - **Tamper evidence complements access control:** if someone edits stored records after the fact, the hash chain no longer verifies.
289
+
290
+ > Read the cryptographic guarantees in the [Security Model](src/content/docs/SECURITY_TRUST_MODEL.md).
291
+
292
+ ---
293
+
294
+ ## Documentation
295
+
296
+ Canonical long-form documentation lives under [`src/content/docs`](src/content/docs). The top-level `docs/` directory is a GitHub-facing compatibility shim, not the source of truth.
297
+
298
+ - [**Quickstart**](#quickstart) โ€” Install, store, verify, and export.
299
+ - [**Enterprise Readiness**](ENTERPRISE_READINESS.md) โ€” Buyer-facing maturity, risk, and diligence summary.
300
+ - [**Due Diligence Checklist**](DUE_DILIGENCE_CHECKLIST.md) โ€” Reproducible technical and security evaluation steps.
301
+ - [**Productization Closure Plan**](src/content/docs/productization-closure-plan.md) โ€” Execution sequence for supported core, naming, onboarding, and distribution alignment.
302
+ - [**Deployment Hardening**](DEPLOYMENT_HARDENING.md) โ€” Production-oriented guardrails for self-hosted deployments.
303
+ - [**Support Policy**](SUPPORT.md) โ€” Support channels, response targets, and release support window.
304
+ - [**Repository Governance**](REPO_GOVERNANCE.md) โ€” Ownership, review expectations, and change safety rules.
305
+ - [**Maintainers**](MAINTAINERS.md) โ€” Current maintainer model and stewardship boundaries.
306
+ - [**Version Support**](VERSION_SUPPORT.md) โ€” Supported release line expectations.
307
+ - [**Release Process**](RELEASE_PROCESS.md) โ€” Public package publication and signing flow.
308
+ - [**System Map**](src/content/docs/system-map.md) โ€” Canonical subsystem taxonomy for Hypercore, Overmind, Deepforge, Primeflow, and Coreshift.
309
+ - [**CORTEX Native Technologies**](src/content/docs/CORTEX-NATIVE-TECHNOLOGIES.md) โ€” Canonical definition of the platform's five core trust capabilities.
310
+ - [**API Reference**](src/content/docs/api.md) โ€” SDK primitives and REST endpoints.
311
+ - [**Security Model**](src/content/docs/SECURITY_TRUST_MODEL.md) โ€” Cryptographic invariants and trust guarantees.
312
+ - [**Architecture**](src/content/docs/architecture.md) โ€” System topology and critical trust surfaces.
313
+ - [**Installation**](src/content/docs/installation.md) โ€” Current reliable install path and packaging status.
314
+ - [**Roadmap**](ROADMAP.md) โ€” Deployment phases and scaling logic.
315
+ - [**Contributing**](CONTRIBUTING.md) โ€” Development workflow and contribution rules.
316
+
317
+ ---
318
+
319
+ ## License
320
+
321
+ Apache License 2.0. See [LICENSE](LICENSE).
322
+
323
+ *Built by [borjamoskv.com](https://borjamoskv.com) ยท [cortexpersist.com](https://cortexpersist.com)*