tortoise-graph 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. tortoise_graph-0.2.0/LICENSE +95 -0
  2. tortoise_graph-0.2.0/PKG-INFO +152 -0
  3. tortoise_graph-0.2.0/README.md +122 -0
  4. tortoise_graph-0.2.0/pyproject.toml +41 -0
  5. tortoise_graph-0.2.0/setup.cfg +4 -0
  6. tortoise_graph-0.2.0/tests/test_about_edges.py +337 -0
  7. tortoise_graph-0.2.0/tests/test_analytics.py +58 -0
  8. tortoise_graph-0.2.0/tests/test_analyze.py +231 -0
  9. tortoise_graph-0.2.0/tests/test_analyze_scoped.py +123 -0
  10. tortoise_graph-0.2.0/tests/test_api.py +449 -0
  11. tortoise_graph-0.2.0/tests/test_audit_events.py +179 -0
  12. tortoise_graph-0.2.0/tests/test_auth.py +55 -0
  13. tortoise_graph-0.2.0/tests/test_backup.py +131 -0
  14. tortoise_graph-0.2.0/tests/test_backup_e2e.py +157 -0
  15. tortoise_graph-0.2.0/tests/test_bfs_audit.py +157 -0
  16. tortoise_graph-0.2.0/tests/test_bridge_mcp.py +119 -0
  17. tortoise_graph-0.2.0/tests/test_calibration.py +222 -0
  18. tortoise_graph-0.2.0/tests/test_cli_context.py +72 -0
  19. tortoise_graph-0.2.0/tests/test_config.py +152 -0
  20. tortoise_graph-0.2.0/tests/test_connector_loader.py +94 -0
  21. tortoise_graph-0.2.0/tests/test_connector_secrets.py +177 -0
  22. tortoise_graph-0.2.0/tests/test_control_plane.py +336 -0
  23. tortoise_graph-0.2.0/tests/test_crash_recovery.py +28 -0
  24. tortoise_graph-0.2.0/tests/test_crash_recovery_e2e.py +341 -0
  25. tortoise_graph-0.2.0/tests/test_crypto.py +37 -0
  26. tortoise_graph-0.2.0/tests/test_decide.py +350 -0
  27. tortoise_graph-0.2.0/tests/test_deployment.py +24 -0
  28. tortoise_graph-0.2.0/tests/test_directional_impl.py +483 -0
  29. tortoise_graph-0.2.0/tests/test_directional_impl_fix.py +512 -0
  30. tortoise_graph-0.2.0/tests/test_dream.py +242 -0
  31. tortoise_graph-0.2.0/tests/test_embedded_concurrency.py +360 -0
  32. tortoise_graph-0.2.0/tests/test_embeddings.py +286 -0
  33. tortoise_graph-0.2.0/tests/test_embeddings_filters.py +317 -0
  34. tortoise_graph-0.2.0/tests/test_enumeration_surfaces.py +352 -0
  35. tortoise_graph-0.2.0/tests/test_ep_directional.py +302 -0
  36. tortoise_graph-0.2.0/tests/test_ep_nary_falsification.py +334 -0
  37. tortoise_graph-0.2.0/tests/test_ep_projections.py +557 -0
  38. tortoise_graph-0.2.0/tests/test_ep_quadrature.py +341 -0
  39. tortoise_graph-0.2.0/tests/test_ep_selector.py +605 -0
  40. tortoise_graph-0.2.0/tests/test_ep_sources.py +1103 -0
  41. tortoise_graph-0.2.0/tests/test_event_log.py +169 -0
  42. tortoise_graph-0.2.0/tests/test_event_provenance.py +1207 -0
  43. tortoise_graph-0.2.0/tests/test_extractor.py +514 -0
  44. tortoise_graph-0.2.0/tests/test_extractor_doc.py +475 -0
  45. tortoise_graph-0.2.0/tests/test_extractor_priors.py +333 -0
  46. tortoise_graph-0.2.0/tests/test_file_human_approval.py +194 -0
  47. tortoise_graph-0.2.0/tests/test_github_connect.py +104 -0
  48. tortoise_graph-0.2.0/tests/test_github_connector.py +252 -0
  49. tortoise_graph-0.2.0/tests/test_github_indexer.py +98 -0
  50. tortoise_graph-0.2.0/tests/test_gmm_proofs.py +100 -0
  51. tortoise_graph-0.2.0/tests/test_guard.py +94 -0
  52. tortoise_graph-0.2.0/tests/test_hard_reject.py +135 -0
  53. tortoise_graph-0.2.0/tests/test_hnsw_vector_index.py +220 -0
  54. tortoise_graph-0.2.0/tests/test_hosted_api.py +1142 -0
  55. tortoise_graph-0.2.0/tests/test_hosted_auth.py +317 -0
  56. tortoise_graph-0.2.0/tests/test_idempotency.py +200 -0
  57. tortoise_graph-0.2.0/tests/test_ids.py +124 -0
  58. tortoise_graph-0.2.0/tests/test_indexes.py +297 -0
  59. tortoise_graph-0.2.0/tests/test_ingest.py +781 -0
  60. tortoise_graph-0.2.0/tests/test_integration_search.py +600 -0
  61. tortoise_graph-0.2.0/tests/test_issue94_annotate_ep_batch.py +139 -0
  62. tortoise_graph-0.2.0/tests/test_linear_connector.py +173 -0
  63. tortoise_graph-0.2.0/tests/test_list_contexts.py +85 -0
  64. tortoise_graph-0.2.0/tests/test_log.py +137 -0
  65. tortoise_graph-0.2.0/tests/test_m0.py +129 -0
  66. tortoise_graph-0.2.0/tests/test_m1.py +135 -0
  67. tortoise_graph-0.2.0/tests/test_m2.py +145 -0
  68. tortoise_graph-0.2.0/tests/test_main_guards.py +130 -0
  69. tortoise_graph-0.2.0/tests/test_mcp_client.py +118 -0
  70. tortoise_graph-0.2.0/tests/test_mcp_http.py +665 -0
  71. tortoise_graph-0.2.0/tests/test_mcp_server.py +357 -0
  72. tortoise_graph-0.2.0/tests/test_mcp_server_auth_modes.py +173 -0
  73. tortoise_graph-0.2.0/tests/test_memory_orchestrator.py +592 -0
  74. tortoise_graph-0.2.0/tests/test_migrate_db.py +121 -0
  75. tortoise_graph-0.2.0/tests/test_migration_consumers.py +110 -0
  76. tortoise_graph-0.2.0/tests/test_mining.py +183 -0
  77. tortoise_graph-0.2.0/tests/test_models.py +178 -0
  78. tortoise_graph-0.2.0/tests/test_monitoring.py +105 -0
  79. tortoise_graph-0.2.0/tests/test_namespace_uri_mode.py +75 -0
  80. tortoise_graph-0.2.0/tests/test_navigation.py +393 -0
  81. tortoise_graph-0.2.0/tests/test_onboarding_endpoints.py +143 -0
  82. tortoise_graph-0.2.0/tests/test_onboarding_integration.py +139 -0
  83. tortoise_graph-0.2.0/tests/test_open_kinds.py +91 -0
  84. tortoise_graph-0.2.0/tests/test_operator_source_search.py +138 -0
  85. tortoise_graph-0.2.0/tests/test_operator_source_unit.py +75 -0
  86. tortoise_graph-0.2.0/tests/test_ops_safety.py +246 -0
  87. tortoise_graph-0.2.0/tests/test_p1_differentiators.py +244 -0
  88. tortoise_graph-0.2.0/tests/test_pack_kinds.py +165 -0
  89. tortoise_graph-0.2.0/tests/test_pack_registry_gaps.py +540 -0
  90. tortoise_graph-0.2.0/tests/test_pre_migration_safety.py +377 -0
  91. tortoise_graph-0.2.0/tests/test_projection.py +1717 -0
  92. tortoise_graph-0.2.0/tests/test_projection_lifecycle.py +111 -0
  93. tortoise_graph-0.2.0/tests/test_projection_version_gate.py +325 -0
  94. tortoise_graph-0.2.0/tests/test_query_suggestions.py +164 -0
  95. tortoise_graph-0.2.0/tests/test_quota.py +99 -0
  96. tortoise_graph-0.2.0/tests/test_ranking.py +279 -0
  97. tortoise_graph-0.2.0/tests/test_reaper.py +629 -0
  98. tortoise_graph-0.2.0/tests/test_redis_guard.py +71 -0
  99. tortoise_graph-0.2.0/tests/test_references_edge.py +352 -0
  100. tortoise_graph-0.2.0/tests/test_remove_context_migration.py +343 -0
  101. tortoise_graph-0.2.0/tests/test_render.py +226 -0
  102. tortoise_graph-0.2.0/tests/test_sdk.py +825 -0
  103. tortoise_graph-0.2.0/tests/test_sdk_dedup.py +119 -0
  104. tortoise_graph-0.2.0/tests/test_sdk_ep.py +276 -0
  105. tortoise_graph-0.2.0/tests/test_sdk_group3.py +429 -0
  106. tortoise_graph-0.2.0/tests/test_sdk_legacy_coverage.py +227 -0
  107. tortoise_graph-0.2.0/tests/test_sdk_props_coercion.py +455 -0
  108. tortoise_graph-0.2.0/tests/test_search_engine.py +187 -0
  109. tortoise_graph-0.2.0/tests/test_search_engine_gaps.py +1690 -0
  110. tortoise_graph-0.2.0/tests/test_search_engine_nameerror.py +130 -0
  111. tortoise_graph-0.2.0/tests/test_search_sessions_temporal.py +175 -0
  112. tortoise_graph-0.2.0/tests/test_security.py +218 -0
  113. tortoise_graph-0.2.0/tests/test_selfhost.py +278 -0
  114. tortoise_graph-0.2.0/tests/test_selfhost_rest.py +100 -0
  115. tortoise_graph-0.2.0/tests/test_semantic_extractor.py +292 -0
  116. tortoise_graph-0.2.0/tests/test_session_capture_e2e.py +76 -0
  117. tortoise_graph-0.2.0/tests/test_session_context.py +106 -0
  118. tortoise_graph-0.2.0/tests/test_session_semantic_search.py +503 -0
  119. tortoise_graph-0.2.0/tests/test_slack_connector.py +159 -0
  120. tortoise_graph-0.2.0/tests/test_source_credibility.py +465 -0
  121. tortoise_graph-0.2.0/tests/test_source_inheritance_own.py +817 -0
  122. tortoise_graph-0.2.0/tests/test_stop_writes.py +74 -0
  123. tortoise_graph-0.2.0/tests/test_suggest_entry_points.py +234 -0
  124. tortoise_graph-0.2.0/tests/test_supersede_edges.py +279 -0
  125. tortoise_graph-0.2.0/tests/test_supplementary.py +165 -0
  126. tortoise_graph-0.2.0/tests/test_taxonomy.py +103 -0
  127. tortoise_graph-0.2.0/tests/test_tool_registry.py +235 -0
  128. tortoise_graph-0.2.0/tests/test_tortoise_search.py +243 -0
  129. tortoise_graph-0.2.0/tests/test_version_vector.py +169 -0
  130. tortoise_graph-0.2.0/tortoise/__init__.py +45 -0
  131. tortoise_graph-0.2.0/tortoise/__main__.py +1865 -0
  132. tortoise_graph-0.2.0/tortoise/analyze.py +473 -0
  133. tortoise_graph-0.2.0/tortoise/api.py +303 -0
  134. tortoise_graph-0.2.0/tortoise/archived/search_legacy.py +31 -0
  135. tortoise_graph-0.2.0/tortoise/audit.py +236 -0
  136. tortoise_graph-0.2.0/tortoise/audit_events.py +284 -0
  137. tortoise_graph-0.2.0/tortoise/auth.py +107 -0
  138. tortoise_graph-0.2.0/tortoise/backup.py +155 -0
  139. tortoise_graph-0.2.0/tortoise/config.py +99 -0
  140. tortoise_graph-0.2.0/tortoise/connector_loader.py +74 -0
  141. tortoise_graph-0.2.0/tortoise/connectors/__init__.py +5 -0
  142. tortoise_graph-0.2.0/tortoise/connectors/github.py +432 -0
  143. tortoise_graph-0.2.0/tortoise/connectors/github_docs.py +146 -0
  144. tortoise_graph-0.2.0/tortoise/connectors/linear.py +199 -0
  145. tortoise_graph-0.2.0/tortoise/connectors/slack.py +222 -0
  146. tortoise_graph-0.2.0/tortoise/consistency.py +132 -0
  147. tortoise_graph-0.2.0/tortoise/crypto.py +52 -0
  148. tortoise_graph-0.2.0/tortoise/deployment.py +62 -0
  149. tortoise_graph-0.2.0/tortoise/domain_loader.py +142 -0
  150. tortoise_graph-0.2.0/tortoise/dream.py +153 -0
  151. tortoise_graph-0.2.0/tortoise/embedded_reaper.py +744 -0
  152. tortoise_graph-0.2.0/tortoise/embeddings.py +227 -0
  153. tortoise_graph-0.2.0/tortoise/ep.py +534 -0
  154. tortoise_graph-0.2.0/tortoise/exceptions.py +16 -0
  155. tortoise_graph-0.2.0/tortoise/extractor.py +945 -0
  156. tortoise_graph-0.2.0/tortoise/hosted_api.py +1982 -0
  157. tortoise_graph-0.2.0/tortoise/hosted_middleware.py +22 -0
  158. tortoise_graph-0.2.0/tortoise/idempotency.py +39 -0
  159. tortoise_graph-0.2.0/tortoise/ids.py +23 -0
  160. tortoise_graph-0.2.0/tortoise/indexer/github_indexer.py +129 -0
  161. tortoise_graph-0.2.0/tortoise/ingest.py +614 -0
  162. tortoise_graph-0.2.0/tortoise/log.py +29 -0
  163. tortoise_graph-0.2.0/tortoise/m0.py +50 -0
  164. tortoise_graph-0.2.0/tortoise/mcp_auth.py +337 -0
  165. tortoise_graph-0.2.0/tortoise/mcp_client.py +108 -0
  166. tortoise_graph-0.2.0/tortoise/mcp_server.py +1356 -0
  167. tortoise_graph-0.2.0/tortoise/memory_orchestrator.py +492 -0
  168. tortoise_graph-0.2.0/tortoise/memory_scope.py +15 -0
  169. tortoise_graph-0.2.0/tortoise/migrate_db.py +244 -0
  170. tortoise_graph-0.2.0/tortoise/migrate_kinds.py +141 -0
  171. tortoise_graph-0.2.0/tortoise/mining.py +338 -0
  172. tortoise_graph-0.2.0/tortoise/models.py +109 -0
  173. tortoise_graph-0.2.0/tortoise/monitoring.py +133 -0
  174. tortoise_graph-0.2.0/tortoise/navigation.py +216 -0
  175. tortoise_graph-0.2.0/tortoise/pack_registry.py +767 -0
  176. tortoise_graph-0.2.0/tortoise/pipeline_cli.py +197 -0
  177. tortoise_graph-0.2.0/tortoise/projection/__init__.py +913 -0
  178. tortoise_graph-0.2.0/tortoise/projection/edges.py +311 -0
  179. tortoise_graph-0.2.0/tortoise/projection/entities.py +521 -0
  180. tortoise_graph-0.2.0/tortoise/projection/grounding.py +95 -0
  181. tortoise_graph-0.2.0/tortoise/projection/propagation.py +114 -0
  182. tortoise_graph-0.2.0/tortoise/projection.py +37 -0
  183. tortoise_graph-0.2.0/tortoise/quadrature.py +90 -0
  184. tortoise_graph-0.2.0/tortoise/query_suggestions.py +194 -0
  185. tortoise_graph-0.2.0/tortoise/quota.py +163 -0
  186. tortoise_graph-0.2.0/tortoise/ranking.py +280 -0
  187. tortoise_graph-0.2.0/tortoise/render.py +108 -0
  188. tortoise_graph-0.2.0/tortoise/scripts/manifest.py +67 -0
  189. tortoise_graph-0.2.0/tortoise/sdk.py +4713 -0
  190. tortoise_graph-0.2.0/tortoise/search_engine.py +887 -0
  191. tortoise_graph-0.2.0/tortoise/security.py +268 -0
  192. tortoise_graph-0.2.0/tortoise/selfhost.py +157 -0
  193. tortoise_graph-0.2.0/tortoise/selfhost_api.py +201 -0
  194. tortoise_graph-0.2.0/tortoise/session_continuity.py +82 -0
  195. tortoise_graph-0.2.0/tortoise/session_indexer.py +569 -0
  196. tortoise_graph-0.2.0/tortoise/shared_state/__init__.py +20 -0
  197. tortoise_graph-0.2.0/tortoise/shared_state/concurrency.py +113 -0
  198. tortoise_graph-0.2.0/tortoise/shared_state/event_log.py +192 -0
  199. tortoise_graph-0.2.0/tortoise/shared_state/events.py +150 -0
  200. tortoise_graph-0.2.0/tortoise/shared_state/monitoring.py +87 -0
  201. tortoise_graph-0.2.0/tortoise/shared_state/recovery.py +126 -0
  202. tortoise_graph-0.2.0/tortoise/shared_state/tests/__init__.py +15 -0
  203. tortoise_graph-0.2.0/tortoise/shared_state/tests/test_concurrency.py +123 -0
  204. tortoise_graph-0.2.0/tortoise/shared_state/tests/test_events.py +145 -0
  205. tortoise_graph-0.2.0/tortoise/shared_state/tests/test_monitoring.py +54 -0
  206. tortoise_graph-0.2.0/tortoise/shared_state/tests/test_recovery.py +181 -0
  207. tortoise_graph-0.2.0/tortoise/source_credibility.py +306 -0
  208. tortoise_graph-0.2.0/tortoise/svbp.py +446 -0
  209. tortoise_graph-0.2.0/tortoise/taxonomy.py +71 -0
  210. tortoise_graph-0.2.0/tortoise/test_cross_ontology.py +180 -0
  211. tortoise_graph-0.2.0/tortoise/test_tortoise_client.py +206 -0
  212. tortoise_graph-0.2.0/tortoise/tool_registry.py +805 -0
  213. tortoise_graph-0.2.0/tortoise/tortoise_client.py +262 -0
  214. tortoise_graph-0.2.0/tortoise/verify_ontology.py +154 -0
  215. tortoise_graph-0.2.0/tortoise/version_vector.py +97 -0
  216. tortoise_graph-0.2.0/tortoise/weights.py +61 -0
  217. tortoise_graph-0.2.0/tortoise_graph.egg-info/PKG-INFO +152 -0
  218. tortoise_graph-0.2.0/tortoise_graph.egg-info/SOURCES.txt +220 -0
  219. tortoise_graph-0.2.0/tortoise_graph.egg-info/dependency_links.txt +1 -0
  220. tortoise_graph-0.2.0/tortoise_graph.egg-info/entry_points.txt +4 -0
  221. tortoise_graph-0.2.0/tortoise_graph.egg-info/requires.txt +19 -0
  222. tortoise_graph-0.2.0/tortoise_graph.egg-info/top_level.txt +1 -0
@@ -0,0 +1,95 @@
1
+ License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved.
2
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
3
+
4
+ Parameters
5
+
6
+ Licensor: Premise Labs (Daniel Ospina)
7
+ Licensed Work: Tortoise — the Tortoise epistemic graph engine (all versions)
8
+ The Licensed Work is (c) 2026 Premise Labs (Daniel Ospina)
9
+ Additional Use Grant: You may make production use of the Licensed Work for your own organization's internal purposes, provided that the total annual revenue of your organization does not exceed US $5,000,000 (or the equivalent in other currencies) in the most recent twelve-month period. This grant does not permit (a) offering the Licensed Work, or a substantially similar product, to third parties as a hosted or managed service, or (b) use of the Premise Labs hosted Tortoise service under these terms — the hosted service is licensed separately as a commercial product (free tier available).
10
+ Change Date: Four years from the date the Licensed Work is published.
11
+ Change License: Mozilla Public License, Version 2.0
12
+
13
+ For information about alternative licensing arrangements for the Licensed Work,
14
+ please open an issue at https://github.com/daniel-ospina/tortoise/issues.
15
+
16
+ Notice
17
+
18
+ The Business Source License (this document, or the “License”) is not an Open
19
+ Source license. However, the Licensed Work will eventually be made available
20
+ under an Open Source License, as stated in this License.
21
+
22
+ For more information on the use of the Business Source License generally,
23
+ please visit the Adopting and Developing Business Source License FAQ at
24
+ https://mariadb.com/bsl-faq-adopting.
25
+
26
+ -----------------------------------------------------------------------------
27
+
28
+ Business Source License 1.1
29
+
30
+ Terms
31
+
32
+ The Licensor hereby grants you the right to copy, modify, create derivative
33
+ works, redistribute, and make non-production use of the Licensed Work. The
34
+ Licensor may make an Additional Use Grant, above, permitting limited
35
+ production use.
36
+
37
+ Effective on the Change Date, or the fourth anniversary of the first publicly
38
+ available distribution of a specific version of the Licensed Work under this
39
+ License, whichever comes first, the Licensor hereby grants you rights under
40
+ the terms of the Change License, and the rights granted in the paragraph
41
+ above terminate.
42
+
43
+ If your use of the Licensed Work does not comply with the requirements
44
+ currently in effect as described in this License, you must purchase a
45
+ commercial license from the Licensor, its affiliated entities, or authorized
46
+ resellers, or you must refrain from using the Licensed Work.
47
+
48
+ All copies of the original and modified Licensed Work, and derivative works
49
+ of the Licensed Work, are subject to this License. This License applies
50
+ separately for each version of the Licensed Work and the Change Date may vary
51
+ for each version of the Licensed Work released by Licensor.
52
+
53
+ You must conspicuously display this License on each original or modified copy
54
+ of the Licensed Work. If you receive the Licensed Work in original or
55
+ modified form from a third party, the terms and conditions set forth in this
56
+ License apply to your use of that work.
57
+
58
+ Any use of the Licensed Work in violation of this License will automatically
59
+ terminate your rights under this License for the current and all other
60
+ versions of the Licensed Work.
61
+
62
+ This License does not grant you any right in any trademark or logo of
63
+ Licensor or its affiliates (provided that you may use a trademark or logo of
64
+ Licensor as expressly required by this License).
65
+
66
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
67
+ AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
68
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
69
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
70
+ TITLE.
71
+
72
+ MariaDB hereby grants you permission to use this License’s text to license
73
+ your works, and to refer to it using the trademark “Business Source License”,
74
+ as long as you comply with the Covenants of Licensor below.
75
+
76
+ Covenants of Licensor
77
+
78
+ In consideration of the right to use this License’s text and the “Business
79
+ Source License” name and trademark, Licensor covenants to MariaDB, and to all
80
+ other recipients of the licensed work to be provided by Licensor:
81
+
82
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
83
+ or a license that is compatible with GPL Version 2.0 or a later version,
84
+ where “compatible” means that software provided under the Change License can
85
+ be included in a program with software provided under GPL Version 2.0 or a
86
+ later version. Licensor may specify additional Change Licenses without
87
+ limitation.
88
+
89
+ 2. To either: (a) specify an additional grant of rights to use that does not
90
+ impose any additional restriction on the right granted in this License, as
91
+ the Additional Use Grant; or (b) insert the text “None”.
92
+
93
+ 3. To specify a Change Date.
94
+
95
+ 4. Not to modify this License in any other way.
@@ -0,0 +1,152 @@
1
+ Metadata-Version: 2.4
2
+ Name: tortoise-graph
3
+ Version: 0.2.0
4
+ Summary: Tortoise — live epistemic-graph extraction from transcripts (SDK)
5
+ Author: Premise Labs
6
+ License-Expression: BUSL-1.1
7
+ Classifier: Development Status :: 3 - Alpha
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: Programming Language :: Python :: 3.12
10
+ Requires-Python: >=3.12
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: fastapi>=0.100.0
14
+ Requires-Dist: uvicorn>=0.23.0
15
+ Requires-Dist: numpy>=1.24
16
+ Requires-Dist: scipy>=1.10
17
+ Requires-Dist: falkordb>=1.0
18
+ Requires-Dist: falkordblite>=0.10
19
+ Requires-Dist: pyyaml>=6.0
20
+ Requires-Dist: fastmcp==3.4.6
21
+ Requires-Dist: prometheus-client>=0.16
22
+ Provides-Extra: embeddings
23
+ Requires-Dist: sentence-transformers<6,>=3; extra == "embeddings"
24
+ Requires-Dist: scikit-learn>=1.0; extra == "embeddings"
25
+ Provides-Extra: quadrature
26
+ Requires-Dist: jax>=0.4; extra == "quadrature"
27
+ Provides-Extra: postgres
28
+ Requires-Dist: psycopg2-binary>=2.9; extra == "postgres"
29
+ Dynamic: license-file
30
+
31
+ ---
32
+ title: "Tortoise — Semantic + Epistemic + Episodic + Procedural Graph Engine"
33
+ type: readme
34
+ domain: epistemic
35
+ status: live
36
+ created: 2026-07-24
37
+ updated: 2026-08-07
38
+ ---
39
+
40
+ # Tortoise
41
+
42
+ A graph engine for agent memory: claims are **Points**, relationships are **edges**, and belief scores are computed by propagating evidence through the graph (EP — Evidence Propagation).
43
+
44
+ Tortoise runs **as a service** — self-hosted or hosted — and your tools **connect** to it over MCP (Model Context Protocol). You don't import it into your application; you run it and point your agent at it, the way you'd run MongoDB and connect a driver.
45
+
46
+ A product of [Premise Labs](https://premiselabs.co).
47
+
48
+ ## Quickstart — Install → Connect → Query
49
+
50
+ ### 1. Install
51
+
52
+ Pick one:
53
+
54
+ | Path | How | Best for |
55
+ |---|---|---|
56
+ | **Hosted** | Sign up at [tortoise.premiselabs.co](https://api.premiselabs.co) (free tier available), get an API key on the welcome page | Teams that want a managed server; zero ops |
57
+ | **Self-host (eval)** | `docker run -p 127.0.0.1:8000:8000 ghcr.io/daniel-ospina/tortoise-selfhost` (embedded DB — **not durable**, for eval only; daemon refuses non-loopback binds without `TORTOISE_API_KEY`) | Solo devs trying it locally |
58
+ | **Self-host (durable)** | `docker compose up -d` — daemon + FalkorDB sidecar (AOF on, backups) | Production self-hosting; data locality and trust |
59
+
60
+ > ⚠️ Embedded mode (plain `docker run`) is for evaluation only — it is not durable. For real data use `docker compose` or point the daemon at a FalkorDB with `TORTOISE_DB_URI`. See [License & FAQ](#license--faq) and [docs/infra-runbook.md](docs/infra-runbook.md).
61
+
62
+ ### 2. Connect
63
+
64
+ Point your agent at Tortoise over MCP:
65
+
66
+ ```bash
67
+ # Hosted
68
+ claude mcp add tortoise https://api.premiselabs.co/mcp
69
+ # or self-hosted
70
+ claude mcp add tortoise http://localhost:8000/mcp
71
+ ```
72
+
73
+ ```bash
74
+ # Codex
75
+ codex mcp add tortoise http://localhost:8000/mcp --bearer-token-env-var TORTOISE_API_KEY
76
+ ```
77
+
78
+ Or add to `.mcp.json`:
79
+
80
+ ```json
81
+ {
82
+ "mcpServers": {
83
+ "tortoise": {
84
+ "type": "http",
85
+ "url": "http://localhost:8000/mcp"
86
+ }
87
+ }
88
+ }
89
+ ```
90
+
91
+ ### 3. Query
92
+
93
+ Your agent now has Tortoise's tools — create points, query the graph, check belief structure, run evidence propagation. See the [MCP tool surface](tortoise/tool_registry.py) for the full registry (58 tools) and the [REST reference](tortoise/tool_registry.py) (as it lands).
94
+
95
+ ## SDK for local dev / scripting
96
+
97
+ `pip install tortoise-graph` gives you the **SDK** — a driver for local development, scripting, and power-user access against a running daemon (or embedded mode for experiments). Tortoise is a service: the SDK connects, it doesn't replace the server. (The package is published as `tortoise-graph` on PyPI — the bare `tortoise` name is squatted by an unrelated library, #258.)
98
+
99
+ ```bash
100
+ pip install tortoise-graph # or: pip install 'tortoise-graph[embeddings]' for vector search
101
+ # from source: pip install -e .
102
+ python -m tortoise.selfhost # run the daemon locally (see env table below)
103
+ ```
104
+
105
+ ## Self-host configuration
106
+
107
+ | Env var | Default | Purpose |
108
+ |---|---|---|
109
+ | `TORTOISE_DB_URI` | — | Durable FalkorDB connection string (recommended) |
110
+ | `TORTOISE_DB_PATH` | `/data/tortoise.db` | Embedded FalkorDBLite eval path (⚠️ not durable) |
111
+ | `TORTOISE_API_KEY` | unset | Set → `auth_mode=static` (Bearer key); unset → `auth_mode=none` — ⚠️ a non-localhost bind with no key exposes an unauthenticated engine |
112
+ | `TORTOISE_HOST` / `TORTOISE_PORT` | `127.0.0.1` / `8000` | Daemon bind |
113
+ | `TORTOISE_RATE_LIMIT` | `100` | Requests per minute per IP (MCP SSE bursts ≈ 5–10 req/call) |
114
+ | `TORTOISE_ALLOWED_ORIGINS` | `http://localhost:8000` | CORS allowlist (comma-separated) |
115
+ | `TORTOISE_TOOL_GROUP` | unset | Role-scoped MCP surface (#523) — e.g. `memory` exposes only memory tools (tool-selection accuracy degrades past ~20 tools; groups: memory, reasoning, graph, sessions, sources, journal, admin, onboarding) |
116
+
117
+ Also: `tortoise-serve http [--host] [--port] [--api-key]` (flags override env), and `tortoise-serve` (stdio MCP) for scripting.
118
+
119
+ ## License & FAQ
120
+
121
+ Tortoise is **Business Source License 1.1** — see [LICENSE](LICENSE) and the [license notes](docs/license-notes.md) (clause-by-clause precedent + audit).
122
+
123
+ - **Self-hosted:** free production use for organizations under **US $5,000,000** annual revenue (trailing 12 months); above that, a commercial license is required.
124
+ - **Hosted (api.premiselabs.co):** a separate commercial product with a **free tier** — not covered by the BSL grant.
125
+ - **MIT products are never blocked:** connect over MCP/REST and you never import Tortoise — the license boundary sits at the network, so your distribution stays clean.
126
+ - **MPL 2.0 conversion:** every version converts to Mozilla Public License 2.0 (file-level copyleft — enterprise-safe) four years after publication.
127
+ - **Can't offer Tortoise as a service:** the grant never permits reselling Tortoise (or a substantially similar product) to third parties as a hosted/managed service.
128
+
129
+ ## What's here
130
+
131
+ - `tortoise/` — the SDK, MCP server, projection, search engine, backup/restore, and the self-host daemon (`tortoise/selfhost.py`)
132
+ - `integrations/` — thin connectors that talk to Tortoise over MCP (not SDK imports)
133
+ - `premise-labs/` — the hosted product's landing pages + dashboard (deploys to Cloudflare Pages)
134
+ - `docs/ONTOLOGY.md` — **canonical ontology v3.1** (co-located with the code it governs)
135
+ - `tests/` — test suite
136
+
137
+ ## Canonical ontology
138
+
139
+ `docs/ONTOLOGY.md` is the single source of truth for the entity model (Point, Subject, Object, Event, Source), edge topology (IMPL/NAND/structural/about*), kind vocabularies, and EP semantics. It is **canonical** — product gaps are filed as issues, never added to the ontology as roadmap detail.
140
+
141
+ ## Repo map & issue routing
142
+
143
+ File issues in the repo that owns the code:
144
+
145
+ | Repo | Owns | File issues for |
146
+ |---|---|---|
147
+ | **daniel-ospina/tortoise** (this repo) | Tortoise product: SDK, MCP, hosted API, graph engine, ontology | Tortoise product bugs, features, ontology gaps |
148
+ | **daniel-ospina/agent-infra** | Agent infrastructure: Pi extensions, skills, commit-workflow, CI gates, review-enforcer | Skill/pipeline/extension/CI work |
149
+ | **daniel-ospina/premise-labs** | Premise Labs internal ops: meetings recorder, CRM (Twenty), bridge scripts, health checks | Ops tooling, CRM, meeting pipeline |
150
+ | **daniel-ospina/eldato** | El Dato app (eldato.com.mx): scanner, webapp, deals/offers, notifications, ads, SEO | El Dato product work |
151
+
152
+ **Rule of thumb:** if the issue is about Tortoise code (this repo's `tortoise/` or `premise-labs/` dirs), file it here. If it's about agent tooling, file in agent-infra. If it's about Premise Labs ops (meetings/CRM), file in premise-labs.
@@ -0,0 +1,122 @@
1
+ ---
2
+ title: "Tortoise — Semantic + Epistemic + Episodic + Procedural Graph Engine"
3
+ type: readme
4
+ domain: epistemic
5
+ status: live
6
+ created: 2026-07-24
7
+ updated: 2026-08-07
8
+ ---
9
+
10
+ # Tortoise
11
+
12
+ A graph engine for agent memory: claims are **Points**, relationships are **edges**, and belief scores are computed by propagating evidence through the graph (EP — Evidence Propagation).
13
+
14
+ Tortoise runs **as a service** — self-hosted or hosted — and your tools **connect** to it over MCP (Model Context Protocol). You don't import it into your application; you run it and point your agent at it, the way you'd run MongoDB and connect a driver.
15
+
16
+ A product of [Premise Labs](https://premiselabs.co).
17
+
18
+ ## Quickstart — Install → Connect → Query
19
+
20
+ ### 1. Install
21
+
22
+ Pick one:
23
+
24
+ | Path | How | Best for |
25
+ |---|---|---|
26
+ | **Hosted** | Sign up at [tortoise.premiselabs.co](https://api.premiselabs.co) (free tier available), get an API key on the welcome page | Teams that want a managed server; zero ops |
27
+ | **Self-host (eval)** | `docker run -p 127.0.0.1:8000:8000 ghcr.io/daniel-ospina/tortoise-selfhost` (embedded DB — **not durable**, for eval only; daemon refuses non-loopback binds without `TORTOISE_API_KEY`) | Solo devs trying it locally |
28
+ | **Self-host (durable)** | `docker compose up -d` — daemon + FalkorDB sidecar (AOF on, backups) | Production self-hosting; data locality and trust |
29
+
30
+ > ⚠️ Embedded mode (plain `docker run`) is for evaluation only — it is not durable. For real data use `docker compose` or point the daemon at a FalkorDB with `TORTOISE_DB_URI`. See [License & FAQ](#license--faq) and [docs/infra-runbook.md](docs/infra-runbook.md).
31
+
32
+ ### 2. Connect
33
+
34
+ Point your agent at Tortoise over MCP:
35
+
36
+ ```bash
37
+ # Hosted
38
+ claude mcp add tortoise https://api.premiselabs.co/mcp
39
+ # or self-hosted
40
+ claude mcp add tortoise http://localhost:8000/mcp
41
+ ```
42
+
43
+ ```bash
44
+ # Codex
45
+ codex mcp add tortoise http://localhost:8000/mcp --bearer-token-env-var TORTOISE_API_KEY
46
+ ```
47
+
48
+ Or add to `.mcp.json`:
49
+
50
+ ```json
51
+ {
52
+ "mcpServers": {
53
+ "tortoise": {
54
+ "type": "http",
55
+ "url": "http://localhost:8000/mcp"
56
+ }
57
+ }
58
+ }
59
+ ```
60
+
61
+ ### 3. Query
62
+
63
+ Your agent now has Tortoise's tools — create points, query the graph, check belief structure, run evidence propagation. See the [MCP tool surface](tortoise/tool_registry.py) for the full registry (58 tools) and the [REST reference](tortoise/tool_registry.py) (as it lands).
64
+
65
+ ## SDK for local dev / scripting
66
+
67
+ `pip install tortoise-graph` gives you the **SDK** — a driver for local development, scripting, and power-user access against a running daemon (or embedded mode for experiments). Tortoise is a service: the SDK connects, it doesn't replace the server. (The package is published as `tortoise-graph` on PyPI — the bare `tortoise` name is squatted by an unrelated library, #258.)
68
+
69
+ ```bash
70
+ pip install tortoise-graph # or: pip install 'tortoise-graph[embeddings]' for vector search
71
+ # from source: pip install -e .
72
+ python -m tortoise.selfhost # run the daemon locally (see env table below)
73
+ ```
74
+
75
+ ## Self-host configuration
76
+
77
+ | Env var | Default | Purpose |
78
+ |---|---|---|
79
+ | `TORTOISE_DB_URI` | — | Durable FalkorDB connection string (recommended) |
80
+ | `TORTOISE_DB_PATH` | `/data/tortoise.db` | Embedded FalkorDBLite eval path (⚠️ not durable) |
81
+ | `TORTOISE_API_KEY` | unset | Set → `auth_mode=static` (Bearer key); unset → `auth_mode=none` — ⚠️ a non-localhost bind with no key exposes an unauthenticated engine |
82
+ | `TORTOISE_HOST` / `TORTOISE_PORT` | `127.0.0.1` / `8000` | Daemon bind |
83
+ | `TORTOISE_RATE_LIMIT` | `100` | Requests per minute per IP (MCP SSE bursts ≈ 5–10 req/call) |
84
+ | `TORTOISE_ALLOWED_ORIGINS` | `http://localhost:8000` | CORS allowlist (comma-separated) |
85
+ | `TORTOISE_TOOL_GROUP` | unset | Role-scoped MCP surface (#523) — e.g. `memory` exposes only memory tools (tool-selection accuracy degrades past ~20 tools; groups: memory, reasoning, graph, sessions, sources, journal, admin, onboarding) |
86
+
87
+ Also: `tortoise-serve http [--host] [--port] [--api-key]` (flags override env), and `tortoise-serve` (stdio MCP) for scripting.
88
+
89
+ ## License & FAQ
90
+
91
+ Tortoise is **Business Source License 1.1** — see [LICENSE](LICENSE) and the [license notes](docs/license-notes.md) (clause-by-clause precedent + audit).
92
+
93
+ - **Self-hosted:** free production use for organizations under **US $5,000,000** annual revenue (trailing 12 months); above that, a commercial license is required.
94
+ - **Hosted (api.premiselabs.co):** a separate commercial product with a **free tier** — not covered by the BSL grant.
95
+ - **MIT products are never blocked:** connect over MCP/REST and you never import Tortoise — the license boundary sits at the network, so your distribution stays clean.
96
+ - **MPL 2.0 conversion:** every version converts to Mozilla Public License 2.0 (file-level copyleft — enterprise-safe) four years after publication.
97
+ - **Can't offer Tortoise as a service:** the grant never permits reselling Tortoise (or a substantially similar product) to third parties as a hosted/managed service.
98
+
99
+ ## What's here
100
+
101
+ - `tortoise/` — the SDK, MCP server, projection, search engine, backup/restore, and the self-host daemon (`tortoise/selfhost.py`)
102
+ - `integrations/` — thin connectors that talk to Tortoise over MCP (not SDK imports)
103
+ - `premise-labs/` — the hosted product's landing pages + dashboard (deploys to Cloudflare Pages)
104
+ - `docs/ONTOLOGY.md` — **canonical ontology v3.1** (co-located with the code it governs)
105
+ - `tests/` — test suite
106
+
107
+ ## Canonical ontology
108
+
109
+ `docs/ONTOLOGY.md` is the single source of truth for the entity model (Point, Subject, Object, Event, Source), edge topology (IMPL/NAND/structural/about*), kind vocabularies, and EP semantics. It is **canonical** — product gaps are filed as issues, never added to the ontology as roadmap detail.
110
+
111
+ ## Repo map & issue routing
112
+
113
+ File issues in the repo that owns the code:
114
+
115
+ | Repo | Owns | File issues for |
116
+ |---|---|---|
117
+ | **daniel-ospina/tortoise** (this repo) | Tortoise product: SDK, MCP, hosted API, graph engine, ontology | Tortoise product bugs, features, ontology gaps |
118
+ | **daniel-ospina/agent-infra** | Agent infrastructure: Pi extensions, skills, commit-workflow, CI gates, review-enforcer | Skill/pipeline/extension/CI work |
119
+ | **daniel-ospina/premise-labs** | Premise Labs internal ops: meetings recorder, CRM (Twenty), bridge scripts, health checks | Ops tooling, CRM, meeting pipeline |
120
+ | **daniel-ospina/eldato** | El Dato app (eldato.com.mx): scanner, webapp, deals/offers, notifications, ads, SEO | El Dato product work |
121
+
122
+ **Rule of thumb:** if the issue is about Tortoise code (this repo's `tortoise/` or `premise-labs/` dirs), file it here. If it's about agent tooling, file in agent-infra. If it's about Premise Labs ops (meetings/CRM), file in premise-labs.
@@ -0,0 +1,41 @@
1
+ [project]
2
+ name = "tortoise-graph"
3
+ version = "0.2.0"
4
+ requires-python = ">=3.12"
5
+ license = "BUSL-1.1"
6
+ readme = {file = "README.md", content-type = "text/markdown"}
7
+ description = "Tortoise — live epistemic-graph extraction from transcripts (SDK)"
8
+ authors = [{ name = "Premise Labs" }]
9
+ classifiers = [
10
+ "Development Status :: 3 - Alpha",
11
+ "Intended Audience :: Developers",
12
+ "Programming Language :: Python :: 3.12",
13
+ ]
14
+ dependencies = [
15
+ "fastapi>=0.100.0",
16
+ "uvicorn>=0.23.0",
17
+ "numpy>=1.24",
18
+ "scipy>=1.10",
19
+ "falkordb>=1.0",
20
+ "falkordblite>=0.10",
21
+ "pyyaml>=6.0",
22
+ "fastmcp==3.4.6",
23
+ "prometheus-client>=0.16",
24
+ ]
25
+
26
+ [project.scripts]
27
+ tortoise = "tortoise.__main__:main"
28
+ tortoise-ingest = "tortoise.ingest:main"
29
+ tortoise-serve = "tortoise.deployment:serve"
30
+
31
+ [project.optional-dependencies]
32
+ embeddings = ["sentence-transformers>=3,<6", "scikit-learn>=1.0"]
33
+ quadrature = ["jax>=0.4"]
34
+ postgres = ["psycopg2-binary>=2.9"]
35
+
36
+ [tool.setuptools.packages.find]
37
+ include = ["tortoise*"]
38
+
39
+ [build-system]
40
+ requires = ["setuptools"]
41
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+