linkedparticles 1.132.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (626) hide show
  1. linkedparticles-1.132.1/LICENSE +201 -0
  2. linkedparticles-1.132.1/NOTICE +18 -0
  3. linkedparticles-1.132.1/PKG-INFO +159 -0
  4. linkedparticles-1.132.1/README.md +108 -0
  5. linkedparticles-1.132.1/alembic/env.py +77 -0
  6. linkedparticles-1.132.1/alembic/script.py.mako +27 -0
  7. linkedparticles-1.132.1/alembic/versions/001_initial.py +112 -0
  8. linkedparticles-1.132.1/alembic/versions/002_subjects.py +47 -0
  9. linkedparticles-1.132.1/alembic/versions/003_wikidata_label_cache.py +28 -0
  10. linkedparticles-1.132.1/alembic/versions/004_source_trust.py +112 -0
  11. linkedparticles-1.132.1/alembic/versions/005_structured_properties.py +35 -0
  12. linkedparticles-1.132.1/alembic/versions/006_extractor_records.py +35 -0
  13. linkedparticles-1.132.1/alembic/versions/007_domain_hint.py +24 -0
  14. linkedparticles-1.132.1/alembic/versions/008_content_published_at.py +25 -0
  15. linkedparticles-1.132.1/alembic/versions/009_provenance_chunk_hash.py +31 -0
  16. linkedparticles-1.132.1/alembic/versions/010_context_fingerprint.py +25 -0
  17. linkedparticles-1.132.1/alembic/versions/011_particle_relations.py +48 -0
  18. linkedparticles-1.132.1/alembic/versions/012_taxonomies.py +63 -0
  19. linkedparticles-1.132.1/alembic/versions/013_extractor_calibration.py +25 -0
  20. linkedparticles-1.132.1/alembic/versions/014_corpus_follow_edges.py +42 -0
  21. linkedparticles-1.132.1/alembic/versions/015_synthesis_cache.py +38 -0
  22. linkedparticles-1.132.1/alembic/versions/016_snapshot_extraction_started_at.py +36 -0
  23. linkedparticles-1.132.1/alembic/versions/017_operator_events.py +49 -0
  24. linkedparticles-1.132.1/alembic/versions/018_contributor_refs.py +33 -0
  25. linkedparticles-1.132.1/alembic/versions/019_embedding_model_id.py +29 -0
  26. linkedparticles-1.132.1/alembic/versions/020_trust_lenses.py +67 -0
  27. linkedparticles-1.132.1/alembic/versions/021_registered_at_string.py +62 -0
  28. linkedparticles-1.132.1/alembic/versions/022_assertion_modality.py +37 -0
  29. linkedparticles-1.132.1/alembic/versions/023_url_mentions.py +44 -0
  30. linkedparticles-1.132.1/alembic/versions/024_corpus_document_supersession.py +33 -0
  31. linkedparticles-1.132.1/alembic/versions/025_per_provider_calibration.py +83 -0
  32. linkedparticles-1.132.1/alembic/versions/026_conformance_trust_cap.py +35 -0
  33. linkedparticles-1.132.1/alembic/versions/027_lens_decay_rules.py +38 -0
  34. linkedparticles-1.132.1/alembic/versions/028_utility_lens.py +61 -0
  35. linkedparticles-1.132.1/alembic/versions/029_retired_at.py +34 -0
  36. linkedparticles-1.132.1/alembic/versions/030_utility_rank_lift.py +56 -0
  37. linkedparticles-1.132.1/alembic/versions/031_content_norm_hash.py +89 -0
  38. linkedparticles-1.132.1/alembic/versions/032_utility_event_source.py +78 -0
  39. linkedparticles-1.132.1/alembic/versions/033_structured_claim.py +77 -0
  40. linkedparticles-1.132.1/alembic/versions/034_extraction_provider_model.py +66 -0
  41. linkedparticles-1.132.1/alembic/versions/035_prefix_extraction_properties_keys.py +106 -0
  42. linkedparticles-1.132.1/alembic/versions/036_curation_snapshots.py +53 -0
  43. linkedparticles-1.132.1/alembic.ini +38 -0
  44. linkedparticles-1.132.1/artifacts/conformance/README.md +171 -0
  45. linkedparticles-1.132.1/artifacts/conformance/profile.yaml +468 -0
  46. linkedparticles-1.132.1/artifacts/conformance/similarity_vectors.json +272 -0
  47. linkedparticles-1.132.1/artifacts/graph/LICENSE.cytoscape.txt +19 -0
  48. linkedparticles-1.132.1/artifacts/graph/cytoscape.min.js +31 -0
  49. linkedparticles-1.132.1/artifacts/openapi.json +8801 -0
  50. linkedparticles-1.132.1/artifacts/schemas/context.jsonld +160 -0
  51. linkedparticles-1.132.1/artifacts/schemas/interchange.schema.json +258 -0
  52. linkedparticles-1.132.1/artifacts/schemas/particle.schema.json +394 -0
  53. linkedparticles-1.132.1/artifacts/schemas/shacl/CorpusSnapshotShape.ttl +46 -0
  54. linkedparticles-1.132.1/artifacts/schemas/shacl/ParticleShape.ttl +374 -0
  55. linkedparticles-1.132.1/artifacts/schemas/shacl/ProvenanceChainShape.ttl +30 -0
  56. linkedparticles-1.132.1/artifacts/schemas/shacl/SubjectShape.ttl +79 -0
  57. linkedparticles-1.132.1/artifacts/schemas/shacl/TrustStatementShape.ttl +71 -0
  58. linkedparticles-1.132.1/artifacts/schemas/trust_lens.schema.json +276 -0
  59. linkedparticles-1.132.1/config.yaml.sample +1767 -0
  60. linkedparticles-1.132.1/constraints.txt +429 -0
  61. linkedparticles-1.132.1/design/tokens.css +237 -0
  62. linkedparticles-1.132.1/particles/_orm_modules.py +35 -0
  63. linkedparticles-1.132.1/particles/api/__init__.py +1 -0
  64. linkedparticles-1.132.1/particles/api/_middleware.py +106 -0
  65. linkedparticles-1.132.1/particles/api/_rate_limit.py +103 -0
  66. linkedparticles-1.132.1/particles/api/app.py +2549 -0
  67. linkedparticles-1.132.1/particles/api/auth.py +256 -0
  68. linkedparticles-1.132.1/particles/api/cli/__init__.py +357 -0
  69. linkedparticles-1.132.1/particles/api/cli/_claude_code.py +972 -0
  70. linkedparticles-1.132.1/particles/api/cli/_id_norm.py +36 -0
  71. linkedparticles-1.132.1/particles/api/cli/_logging.py +42 -0
  72. linkedparticles-1.132.1/particles/api/cli/_memory_projection.py +327 -0
  73. linkedparticles-1.132.1/particles/api/cli/_output.py +124 -0
  74. linkedparticles-1.132.1/particles/api/cli/_progress.py +149 -0
  75. linkedparticles-1.132.1/particles/api/cli/_projection_git.py +240 -0
  76. linkedparticles-1.132.1/particles/api/cli/_remote.py +49 -0
  77. linkedparticles-1.132.1/particles/api/cli/audit.py +540 -0
  78. linkedparticles-1.132.1/particles/api/cli/benchmark.py +378 -0
  79. linkedparticles-1.132.1/particles/api/cli/config.py +82 -0
  80. linkedparticles-1.132.1/particles/api/cli/conformance.py +82 -0
  81. linkedparticles-1.132.1/particles/api/cli/corpus.py +1234 -0
  82. linkedparticles-1.132.1/particles/api/cli/curate.py +210 -0
  83. linkedparticles-1.132.1/particles/api/cli/db.py +104 -0
  84. linkedparticles-1.132.1/particles/api/cli/deposit.py +366 -0
  85. linkedparticles-1.132.1/particles/api/cli/engine.py +154 -0
  86. linkedparticles-1.132.1/particles/api/cli/events.py +114 -0
  87. linkedparticles-1.132.1/particles/api/cli/export.py +420 -0
  88. linkedparticles-1.132.1/particles/api/cli/extract.py +383 -0
  89. linkedparticles-1.132.1/particles/api/cli/extractor.py +2185 -0
  90. linkedparticles-1.132.1/particles/api/cli/hook.py +687 -0
  91. linkedparticles-1.132.1/particles/api/cli/import_vault.py +357 -0
  92. linkedparticles-1.132.1/particles/api/cli/inbox.py +191 -0
  93. linkedparticles-1.132.1/particles/api/cli/init.py +779 -0
  94. linkedparticles-1.132.1/particles/api/cli/interchange.py +171 -0
  95. linkedparticles-1.132.1/particles/api/cli/links.py +659 -0
  96. linkedparticles-1.132.1/particles/api/cli/lint.py +197 -0
  97. linkedparticles-1.132.1/particles/api/cli/mcp.py +141 -0
  98. linkedparticles-1.132.1/particles/api/cli/memory.py +882 -0
  99. linkedparticles-1.132.1/particles/api/cli/particle.py +514 -0
  100. linkedparticles-1.132.1/particles/api/cli/project.py +321 -0
  101. linkedparticles-1.132.1/particles/api/cli/quality.py +68 -0
  102. linkedparticles-1.132.1/particles/api/cli/query.py +414 -0
  103. linkedparticles-1.132.1/particles/api/cli/reconcile.py +49 -0
  104. linkedparticles-1.132.1/particles/api/cli/reindex.py +151 -0
  105. linkedparticles-1.132.1/particles/api/cli/review.py +224 -0
  106. linkedparticles-1.132.1/particles/api/cli/rules.py +314 -0
  107. linkedparticles-1.132.1/particles/api/cli/skills.py +119 -0
  108. linkedparticles-1.132.1/particles/api/cli/structure.py +102 -0
  109. linkedparticles-1.132.1/particles/api/cli/subjects.py +590 -0
  110. linkedparticles-1.132.1/particles/api/cli/synthesis_cache.py +176 -0
  111. linkedparticles-1.132.1/particles/api/cli/trust.py +421 -0
  112. linkedparticles-1.132.1/particles/api/client/__init__.py +45 -0
  113. linkedparticles-1.132.1/particles/api/client/base.py +563 -0
  114. linkedparticles-1.132.1/particles/api/client/http.py +914 -0
  115. linkedparticles-1.132.1/particles/api/client/local.py +855 -0
  116. linkedparticles-1.132.1/particles/api/daemon.py +441 -0
  117. linkedparticles-1.132.1/particles/api/web_app.py +101 -0
  118. linkedparticles-1.132.1/particles/benchmark/__init__.py +25 -0
  119. linkedparticles-1.132.1/particles/benchmark/compare.py +144 -0
  120. linkedparticles-1.132.1/particles/benchmark/equivalence.py +233 -0
  121. linkedparticles-1.132.1/particles/benchmark/loader.py +256 -0
  122. linkedparticles-1.132.1/particles/benchmark/memory/__init__.py +107 -0
  123. linkedparticles-1.132.1/particles/benchmark/memory/comparators.py +358 -0
  124. linkedparticles-1.132.1/particles/benchmark/memory/loader.py +308 -0
  125. linkedparticles-1.132.1/particles/benchmark/memory/metrics.py +124 -0
  126. linkedparticles-1.132.1/particles/benchmark/memory/runner.py +1626 -0
  127. linkedparticles-1.132.1/particles/benchmark/memory/schema.py +369 -0
  128. linkedparticles-1.132.1/particles/benchmark/metrics.py +79 -0
  129. linkedparticles-1.132.1/particles/benchmark/modality/__init__.py +69 -0
  130. linkedparticles-1.132.1/particles/benchmark/modality/loader.py +170 -0
  131. linkedparticles-1.132.1/particles/benchmark/modality/metrics.py +93 -0
  132. linkedparticles-1.132.1/particles/benchmark/modality/runner.py +263 -0
  133. linkedparticles-1.132.1/particles/benchmark/modality/schema.py +61 -0
  134. linkedparticles-1.132.1/particles/benchmark/polarity/__init__.py +75 -0
  135. linkedparticles-1.132.1/particles/benchmark/polarity/loader.py +169 -0
  136. linkedparticles-1.132.1/particles/benchmark/polarity/metrics.py +109 -0
  137. linkedparticles-1.132.1/particles/benchmark/polarity/runner.py +269 -0
  138. linkedparticles-1.132.1/particles/benchmark/polarity/schema.py +86 -0
  139. linkedparticles-1.132.1/particles/benchmark/runner.py +476 -0
  140. linkedparticles-1.132.1/particles/benchmark/schema.py +93 -0
  141. linkedparticles-1.132.1/particles/benchmark/validity/__init__.py +72 -0
  142. linkedparticles-1.132.1/particles/benchmark/validity/loader.py +206 -0
  143. linkedparticles-1.132.1/particles/benchmark/validity/metrics.py +113 -0
  144. linkedparticles-1.132.1/particles/benchmark/validity/runner.py +247 -0
  145. linkedparticles-1.132.1/particles/benchmark/validity/schema.py +93 -0
  146. linkedparticles-1.132.1/particles/corpus/__init__.py +1 -0
  147. linkedparticles-1.132.1/particles/corpus/blob_fsck.py +313 -0
  148. linkedparticles-1.132.1/particles/corpus/blob_health.py +173 -0
  149. linkedparticles-1.132.1/particles/corpus/deposit.py +1538 -0
  150. linkedparticles-1.132.1/particles/corpus/fetch.py +349 -0
  151. linkedparticles-1.132.1/particles/corpus/follow_edges.py +106 -0
  152. linkedparticles-1.132.1/particles/corpus/rule_sources.py +307 -0
  153. linkedparticles-1.132.1/particles/corpus/store.py +692 -0
  154. linkedparticles-1.132.1/particles/corpus/supersession.py +301 -0
  155. linkedparticles-1.132.1/particles/db.py +437 -0
  156. linkedparticles-1.132.1/particles/exporters/__init__.py +0 -0
  157. linkedparticles-1.132.1/particles/exporters/anki.py +242 -0
  158. linkedparticles-1.132.1/particles/exporters/article_synthesis/__init__.py +114 -0
  159. linkedparticles-1.132.1/particles/exporters/graph/__init__.py +5 -0
  160. linkedparticles-1.132.1/particles/exporters/graph/_assets.py +50 -0
  161. linkedparticles-1.132.1/particles/exporters/graph/exporter.py +113 -0
  162. linkedparticles-1.132.1/particles/exporters/graph/render.py +457 -0
  163. linkedparticles-1.132.1/particles/exporters/jsonl.py +96 -0
  164. linkedparticles-1.132.1/particles/exporters/logseq/__init__.py +22 -0
  165. linkedparticles-1.132.1/particles/exporters/logseq/exporter.py +71 -0
  166. linkedparticles-1.132.1/particles/exporters/logseq/format.py +256 -0
  167. linkedparticles-1.132.1/particles/exporters/logseq/narrative.py +83 -0
  168. linkedparticles-1.132.1/particles/exporters/logseq/synthesis.py +251 -0
  169. linkedparticles-1.132.1/particles/exporters/logseq/vault.py +572 -0
  170. linkedparticles-1.132.1/particles/exporters/markdown.py +60 -0
  171. linkedparticles-1.132.1/particles/exporters/notion.py +539 -0
  172. linkedparticles-1.132.1/particles/exporters/obsidian/__init__.py +90 -0
  173. linkedparticles-1.132.1/particles/exporters/obsidian/exporter.py +68 -0
  174. linkedparticles-1.132.1/particles/exporters/obsidian/format.py +498 -0
  175. linkedparticles-1.132.1/particles/exporters/obsidian/narrative.py +104 -0
  176. linkedparticles-1.132.1/particles/exporters/obsidian/synthesis.py +291 -0
  177. linkedparticles-1.132.1/particles/exporters/obsidian/vault.py +1078 -0
  178. linkedparticles-1.132.1/particles/exporters/registry.py +101 -0
  179. linkedparticles-1.132.1/particles/exporters/summaries.py +178 -0
  180. linkedparticles-1.132.1/particles/exporters/wiki.py +831 -0
  181. linkedparticles-1.132.1/particles/ingest/__init__.py +20 -0
  182. linkedparticles-1.132.1/particles/ingest/authorities/__init__.py +28 -0
  183. linkedparticles-1.132.1/particles/ingest/authorities/_shared.py +131 -0
  184. linkedparticles-1.132.1/particles/ingest/authorities/registry.py +171 -0
  185. linkedparticles-1.132.1/particles/ingest/authorities/wikidata.py +310 -0
  186. linkedparticles-1.132.1/particles/ingest/candidate_dedup.py +134 -0
  187. linkedparticles-1.132.1/particles/ingest/duplicate_suppression.py +149 -0
  188. linkedparticles-1.132.1/particles/ingest/generation.py +179 -0
  189. linkedparticles-1.132.1/particles/ingest/importers/__init__.py +31 -0
  190. linkedparticles-1.132.1/particles/ingest/importers/github.py +601 -0
  191. linkedparticles-1.132.1/particles/ingest/importers/hackernews.py +122 -0
  192. linkedparticles-1.132.1/particles/ingest/importers/mastodon.py +161 -0
  193. linkedparticles-1.132.1/particles/ingest/importers/nomisma.py +78 -0
  194. linkedparticles-1.132.1/particles/ingest/importers/numista.py +128 -0
  195. linkedparticles-1.132.1/particles/ingest/importers/reddit.py +136 -0
  196. linkedparticles-1.132.1/particles/ingest/importers/registry.py +134 -0
  197. linkedparticles-1.132.1/particles/ingest/importers/wikidata.py +70 -0
  198. linkedparticles-1.132.1/particles/ingest/narrative_merge.py +120 -0
  199. linkedparticles-1.132.1/particles/ingest/pipeline.py +1582 -0
  200. linkedparticles-1.132.1/particles/ingest/subject_resolver.py +357 -0
  201. linkedparticles-1.132.1/particles/integrations/__init__.py +61 -0
  202. linkedparticles-1.132.1/particles/integrations/_mapping.py +81 -0
  203. linkedparticles-1.132.1/particles/integrations/langchain.py +275 -0
  204. linkedparticles-1.132.1/particles/interchange/store.py +425 -0
  205. linkedparticles-1.132.1/particles/mcp/__init__.py +15 -0
  206. linkedparticles-1.132.1/particles/mcp/memory_compat/__init__.py +10 -0
  207. linkedparticles-1.132.1/particles/mcp/memory_compat/graph.py +330 -0
  208. linkedparticles-1.132.1/particles/mcp/memory_compat/ops.py +422 -0
  209. linkedparticles-1.132.1/particles/mcp/memory_compat/server.py +580 -0
  210. linkedparticles-1.132.1/particles/mcp/resources.py +92 -0
  211. linkedparticles-1.132.1/particles/mcp/server.py +184 -0
  212. linkedparticles-1.132.1/particles/mcp/tools/__init__.py +14 -0
  213. linkedparticles-1.132.1/particles/mcp/tools/corpus.py +52 -0
  214. linkedparticles-1.132.1/particles/mcp/tools/diagnostics.py +21 -0
  215. linkedparticles-1.132.1/particles/mcp/tools/events.py +54 -0
  216. linkedparticles-1.132.1/particles/mcp/tools/graph.py +141 -0
  217. linkedparticles-1.132.1/particles/mcp/tools/links_suggest.py +75 -0
  218. linkedparticles-1.132.1/particles/mcp/tools/lint.py +75 -0
  219. linkedparticles-1.132.1/particles/mcp/tools/particles.py +170 -0
  220. linkedparticles-1.132.1/particles/mcp/tools/query.py +183 -0
  221. linkedparticles-1.132.1/particles/mcp/tools/subjects.py +100 -0
  222. linkedparticles-1.132.1/particles/mcp/tools/taxonomy.py +34 -0
  223. linkedparticles-1.132.1/particles/mcp/tools/write.py +343 -0
  224. linkedparticles-1.132.1/particles/observability/__init__.py +24 -0
  225. linkedparticles-1.132.1/particles/observability/setup.py +310 -0
  226. linkedparticles-1.132.1/particles/observability/spans.py +41 -0
  227. linkedparticles-1.132.1/particles/operations/__init__.py +1 -0
  228. linkedparticles-1.132.1/particles/operations/_llm.py +209 -0
  229. linkedparticles-1.132.1/particles/operations/_quarantine.py +95 -0
  230. linkedparticles-1.132.1/particles/operations/_scope.py +34 -0
  231. linkedparticles-1.132.1/particles/operations/abstraction.py +1020 -0
  232. linkedparticles-1.132.1/particles/operations/agent_write.py +644 -0
  233. linkedparticles-1.132.1/particles/operations/audit.py +810 -0
  234. linkedparticles-1.132.1/particles/operations/cascade.py +272 -0
  235. linkedparticles-1.132.1/particles/operations/consolidation.py +1539 -0
  236. linkedparticles-1.132.1/particles/operations/curation/__init__.py +42 -0
  237. linkedparticles-1.132.1/particles/operations/curation/cards.py +225 -0
  238. linkedparticles-1.132.1/particles/operations/curation/collect.py +205 -0
  239. linkedparticles-1.132.1/particles/operations/curation/leverage.py +188 -0
  240. linkedparticles-1.132.1/particles/operations/curation/session.py +608 -0
  241. linkedparticles-1.132.1/particles/operations/curation/snapshot.py +301 -0
  242. linkedparticles-1.132.1/particles/operations/deposit.py +47 -0
  243. linkedparticles-1.132.1/particles/operations/deposit_suggest.py +194 -0
  244. linkedparticles-1.132.1/particles/operations/digest.py +88 -0
  245. linkedparticles-1.132.1/particles/operations/extract.py +23 -0
  246. linkedparticles-1.132.1/particles/operations/graph_view.py +907 -0
  247. linkedparticles-1.132.1/particles/operations/inbox.py +147 -0
  248. linkedparticles-1.132.1/particles/operations/links_suggest.py +1068 -0
  249. linkedparticles-1.132.1/particles/operations/lint/__init__.py +99 -0
  250. linkedparticles-1.132.1/particles/operations/lint/assertion_quality.py +55 -0
  251. linkedparticles-1.132.1/particles/operations/lint/citation_signal.py +42 -0
  252. linkedparticles-1.132.1/particles/operations/lint/contestedness.py +345 -0
  253. linkedparticles-1.132.1/particles/operations/lint/contradictions.py +345 -0
  254. linkedparticles-1.132.1/particles/operations/lint/coverage.py +364 -0
  255. linkedparticles-1.132.1/particles/operations/lint/granularity.py +94 -0
  256. linkedparticles-1.132.1/particles/operations/lint/orchestrator.py +145 -0
  257. linkedparticles-1.132.1/particles/operations/lint/retirement.py +74 -0
  258. linkedparticles-1.132.1/particles/operations/lint/staleness.py +232 -0
  259. linkedparticles-1.132.1/particles/operations/lint/wikidata_links.py +63 -0
  260. linkedparticles-1.132.1/particles/operations/narrative.py +110 -0
  261. linkedparticles-1.132.1/particles/operations/narrative_synthesis.py +124 -0
  262. linkedparticles-1.132.1/particles/operations/projection/__init__.py +57 -0
  263. linkedparticles-1.132.1/particles/operations/projection/manifest.py +264 -0
  264. linkedparticles-1.132.1/particles/operations/projection/project.py +1026 -0
  265. linkedparticles-1.132.1/particles/operations/quality.py +81 -0
  266. linkedparticles-1.132.1/particles/operations/query/__init__.py +42 -0
  267. linkedparticles-1.132.1/particles/operations/query/as_of.py +276 -0
  268. linkedparticles-1.132.1/particles/operations/query/contested.py +145 -0
  269. linkedparticles-1.132.1/particles/operations/query/contestedness.py +198 -0
  270. linkedparticles-1.132.1/particles/operations/query/decay_policy.py +136 -0
  271. linkedparticles-1.132.1/particles/operations/query/effective_confidence.py +183 -0
  272. linkedparticles-1.132.1/particles/operations/query/gaps.py +83 -0
  273. linkedparticles-1.132.1/particles/operations/query/main.py +1010 -0
  274. linkedparticles-1.132.1/particles/operations/query/owner_policy.py +218 -0
  275. linkedparticles-1.132.1/particles/operations/query/precedence.py +142 -0
  276. linkedparticles-1.132.1/particles/operations/query/rank.py +163 -0
  277. linkedparticles-1.132.1/particles/operations/query/respond.py +196 -0
  278. linkedparticles-1.132.1/particles/operations/query/source_info.py +89 -0
  279. linkedparticles-1.132.1/particles/operations/query/source_trust.py +313 -0
  280. linkedparticles-1.132.1/particles/operations/query/stance.py +111 -0
  281. linkedparticles-1.132.1/particles/operations/query/structural.py +483 -0
  282. linkedparticles-1.132.1/particles/operations/query/utility_policy.py +217 -0
  283. linkedparticles-1.132.1/particles/operations/reconcile.py +272 -0
  284. linkedparticles-1.132.1/particles/operations/reindex.py +571 -0
  285. linkedparticles-1.132.1/particles/operations/retract.py +107 -0
  286. linkedparticles-1.132.1/particles/operations/review.py +303 -0
  287. linkedparticles-1.132.1/particles/operations/structure.py +217 -0
  288. linkedparticles-1.132.1/particles/operations/trust.py +54 -0
  289. linkedparticles-1.132.1/particles/operations/utility_feedback.py +209 -0
  290. linkedparticles-1.132.1/particles/operations/utility_mining.py +531 -0
  291. linkedparticles-1.132.1/particles/operations/utility_sweep.py +458 -0
  292. linkedparticles-1.132.1/particles/operations/version_guard.py +39 -0
  293. linkedparticles-1.132.1/particles/render/article_synthesis/__init__.py +217 -0
  294. linkedparticles-1.132.1/particles/render/article_synthesis/cache.py +395 -0
  295. linkedparticles-1.132.1/particles/render/article_synthesis/layer_a.py +118 -0
  296. linkedparticles-1.132.1/particles/render/article_synthesis/layer_b.py +326 -0
  297. linkedparticles-1.132.1/particles/render/article_synthesis/orchestrate.py +403 -0
  298. linkedparticles-1.132.1/particles/render/article_synthesis/render.py +873 -0
  299. linkedparticles-1.132.1/particles/render/article_synthesis/topic.py +58 -0
  300. linkedparticles-1.132.1/particles/skills/__init__.py +62 -0
  301. linkedparticles-1.132.1/particles/skills/asking-the-store.md +64 -0
  302. linkedparticles-1.132.1/particles/skills/keeping-it-clean.md +58 -0
  303. linkedparticles-1.132.1/particles/skills/recording-a-belief.md +79 -0
  304. linkedparticles-1.132.1/particles/sql_safety.py +37 -0
  305. linkedparticles-1.132.1/particles/store/__init__.py +1 -0
  306. linkedparticles-1.132.1/particles/store/curation_snapshot_store.py +181 -0
  307. linkedparticles-1.132.1/particles/store/event_store.py +467 -0
  308. linkedparticles-1.132.1/particles/store/extractor_store.py +315 -0
  309. linkedparticles-1.132.1/particles/store/lens_store.py +372 -0
  310. linkedparticles-1.132.1/particles/store/particle_store.py +1786 -0
  311. linkedparticles-1.132.1/particles/store/relation_store.py +359 -0
  312. linkedparticles-1.132.1/particles/store/subject_cache.py +112 -0
  313. linkedparticles-1.132.1/particles/store/subject_store.py +973 -0
  314. linkedparticles-1.132.1/particles/store/synthesis_cache_store.py +161 -0
  315. linkedparticles-1.132.1/particles/store/taxonomy_store.py +344 -0
  316. linkedparticles-1.132.1/particles/store/trust_store.py +275 -0
  317. linkedparticles-1.132.1/particles/store/url_mention_store.py +222 -0
  318. linkedparticles-1.132.1/particles/store/utility_store.py +284 -0
  319. linkedparticles-1.132.1/particles/store/wikidata_cache.py +89 -0
  320. linkedparticles-1.132.1/pyproject.toml +238 -0
  321. linkedparticles-1.132.1/tests/__init__.py +1 -0
  322. linkedparticles-1.132.1/tests/_capped_http.py +83 -0
  323. linkedparticles-1.132.1/tests/_client_fixtures.py +183 -0
  324. linkedparticles-1.132.1/tests/_upstream.py +38 -0
  325. linkedparticles-1.132.1/tests/benchmark/calibration/numismatic-calibration-001.yaml +84 -0
  326. linkedparticles-1.132.1/tests/benchmark/calibration/prose-calibration-001.yaml +822 -0
  327. linkedparticles-1.132.1/tests/benchmark/calibration/rdf-calibration-001.yaml +68 -0
  328. linkedparticles-1.132.1/tests/benchmark/memory/fixtures/NOTICE +22 -0
  329. linkedparticles-1.132.1/tests/benchmark/memory/fixtures/longmemeval_oracle_synthetic.json +107 -0
  330. linkedparticles-1.132.1/tests/benchmark/modality/journal-modality-seed-001.yaml +96 -0
  331. linkedparticles-1.132.1/tests/benchmark/polarity/adr-polarity-seed-001.yaml +98 -0
  332. linkedparticles-1.132.1/tests/benchmark/suites/hackernews-seed-001.yaml +84 -0
  333. linkedparticles-1.132.1/tests/benchmark/suites/numismatic-seed-001.yaml +82 -0
  334. linkedparticles-1.132.1/tests/benchmark/suites/prose-article-seed-001.yaml +766 -0
  335. linkedparticles-1.132.1/tests/benchmark/suites/rdf-seed-001.yaml +84 -0
  336. linkedparticles-1.132.1/tests/benchmark/suites/reddit-seed-001.yaml +79 -0
  337. linkedparticles-1.132.1/tests/benchmark/suites/wikidata-seed-001.yaml +72 -0
  338. linkedparticles-1.132.1/tests/benchmark/validity/durability-seed-001.yaml +90 -0
  339. linkedparticles-1.132.1/tests/conformance/fixtures/MANIFEST.yaml +67 -0
  340. linkedparticles-1.132.1/tests/conformance/fixtures/hackernews-thread-001/content.bin +42 -0
  341. linkedparticles-1.132.1/tests/conformance/fixtures/hackernews-thread-001/manifest.yaml +19 -0
  342. linkedparticles-1.132.1/tests/conformance/fixtures/hackernews-thread-001/snapshot.json +14 -0
  343. linkedparticles-1.132.1/tests/conformance/fixtures/journal-entry-001/content.bin +13 -0
  344. linkedparticles-1.132.1/tests/conformance/fixtures/journal-entry-001/manifest.yaml +24 -0
  345. linkedparticles-1.132.1/tests/conformance/fixtures/journal-entry-001/snapshot.json +14 -0
  346. linkedparticles-1.132.1/tests/conformance/fixtures/mastodon-thread-001/content.bin +1 -0
  347. linkedparticles-1.132.1/tests/conformance/fixtures/mastodon-thread-001/manifest.yaml +30 -0
  348. linkedparticles-1.132.1/tests/conformance/fixtures/mastodon-thread-001/snapshot.json +14 -0
  349. linkedparticles-1.132.1/tests/conformance/fixtures/nomisma-concept-001/content.bin +30 -0
  350. linkedparticles-1.132.1/tests/conformance/fixtures/nomisma-concept-001/manifest.yaml +34 -0
  351. linkedparticles-1.132.1/tests/conformance/fixtures/nomisma-concept-001/snapshot.json +14 -0
  352. linkedparticles-1.132.1/tests/conformance/fixtures/numista-coin-001/content.bin +30 -0
  353. linkedparticles-1.132.1/tests/conformance/fixtures/numista-coin-001/manifest.yaml +16 -0
  354. linkedparticles-1.132.1/tests/conformance/fixtures/numista-coin-001/snapshot.json +14 -0
  355. linkedparticles-1.132.1/tests/conformance/fixtures/numista-issuer-001/content.bin +33 -0
  356. linkedparticles-1.132.1/tests/conformance/fixtures/numista-issuer-001/manifest.yaml +30 -0
  357. linkedparticles-1.132.1/tests/conformance/fixtures/numista-issuer-001/snapshot.json +14 -0
  358. linkedparticles-1.132.1/tests/conformance/fixtures/numista-listing-001/content.bin +22 -0
  359. linkedparticles-1.132.1/tests/conformance/fixtures/numista-listing-001/manifest.yaml +32 -0
  360. linkedparticles-1.132.1/tests/conformance/fixtures/numista-listing-001/snapshot.json +14 -0
  361. linkedparticles-1.132.1/tests/conformance/fixtures/rdf-graph-001/content.bin +39 -0
  362. linkedparticles-1.132.1/tests/conformance/fixtures/rdf-graph-001/manifest.yaml +35 -0
  363. linkedparticles-1.132.1/tests/conformance/fixtures/rdf-graph-001/snapshot.json +14 -0
  364. linkedparticles-1.132.1/tests/conformance/fixtures/reddit-thread-001/content.bin +1 -0
  365. linkedparticles-1.132.1/tests/conformance/fixtures/reddit-thread-001/manifest.yaml +20 -0
  366. linkedparticles-1.132.1/tests/conformance/fixtures/reddit-thread-001/snapshot.json +14 -0
  367. linkedparticles-1.132.1/tests/conformance/fixtures/taxonomy-coins-001/content.bin +11 -0
  368. linkedparticles-1.132.1/tests/conformance/fixtures/taxonomy-coins-001/manifest.yaml +18 -0
  369. linkedparticles-1.132.1/tests/conformance/fixtures/taxonomy-coins-001/snapshot.json +14 -0
  370. linkedparticles-1.132.1/tests/conformance/fixtures/trust-lens-001/content.bin +15 -0
  371. linkedparticles-1.132.1/tests/conformance/fixtures/trust-lens-001/manifest.yaml +18 -0
  372. linkedparticles-1.132.1/tests/conformance/fixtures/trust-lens-001/snapshot.json +14 -0
  373. linkedparticles-1.132.1/tests/conformance/fixtures/web-article-001/content.bin +63 -0
  374. linkedparticles-1.132.1/tests/conformance/fixtures/web-article-001/manifest.yaml +31 -0
  375. linkedparticles-1.132.1/tests/conformance/fixtures/web-article-001/snapshot.json +14 -0
  376. linkedparticles-1.132.1/tests/conformance/fixtures/web-article-002/content.bin +57 -0
  377. linkedparticles-1.132.1/tests/conformance/fixtures/web-article-002/manifest.yaml +29 -0
  378. linkedparticles-1.132.1/tests/conformance/fixtures/web-article-002/snapshot.json +14 -0
  379. linkedparticles-1.132.1/tests/conformance/fixtures/web-essay-001/content.bin +60 -0
  380. linkedparticles-1.132.1/tests/conformance/fixtures/web-essay-001/manifest.yaml +27 -0
  381. linkedparticles-1.132.1/tests/conformance/fixtures/web-essay-001/snapshot.json +14 -0
  382. linkedparticles-1.132.1/tests/conformance/fixtures/web-interview-001/content.bin +60 -0
  383. linkedparticles-1.132.1/tests/conformance/fixtures/web-interview-001/manifest.yaml +32 -0
  384. linkedparticles-1.132.1/tests/conformance/fixtures/web-interview-001/snapshot.json +14 -0
  385. linkedparticles-1.132.1/tests/conformance/fixtures/wikidata-entity-001/content.bin +60 -0
  386. linkedparticles-1.132.1/tests/conformance/fixtures/wikidata-entity-001/manifest.yaml +40 -0
  387. linkedparticles-1.132.1/tests/conformance/fixtures/wikidata-entity-001/snapshot.json +14 -0
  388. linkedparticles-1.132.1/tests/conftest.py +140 -0
  389. linkedparticles-1.132.1/tests/dogfood/__init__.py +344 -0
  390. linkedparticles-1.132.1/tests/dogfood/corpus.yaml +251 -0
  391. linkedparticles-1.132.1/tests/dogfood/llm_responses.yaml +154 -0
  392. linkedparticles-1.132.1/tests/dogfood/record.py +251 -0
  393. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/.obsidian/app.json +5 -0
  394. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/1933 Double Eagle.md +25 -0
  395. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Coin Silver Standards.md +24 -0
  396. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Flowing Hair Dollar.md +22 -0
  397. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Grading and Condition.md +24 -0
  398. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Home.md +29 -0
  399. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Mint Records.md +24 -0
  400. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Morgan Dollar.md +24 -0
  401. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Most Expensive Coins.md +22 -0
  402. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Philadelphia Mint.md +21 -0
  403. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Seated Liberty Dollar.md +23 -0
  404. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/US Mint History.md +23 -0
  405. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/_GROUND_TRUTH.md +84 -0
  406. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/_templates/Coin Note Template.md +13 -0
  407. linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/inventory.csv +4 -0
  408. linkedparticles-1.132.1/tests/fixtures/memory_dir/MEMORY.md +11 -0
  409. linkedparticles-1.132.1/tests/fixtures/memory_dir/deploy-pipeline.md +6 -0
  410. linkedparticles-1.132.1/tests/fixtures/memory_dir/orion-api.md +7 -0
  411. linkedparticles-1.132.1/tests/fixtures/scope/normative-rule-file.md +23 -0
  412. linkedparticles-1.132.1/tests/fixtures/scope/normative-rule-file.recorded.json +8 -0
  413. linkedparticles-1.132.1/tests/fixtures/scope/rule-file-agents-md.md +84 -0
  414. linkedparticles-1.132.1/tests/fixtures/scope/rule-file-agents-md.recorded.json +9 -0
  415. linkedparticles-1.132.1/tests/mcp/memory-tool-schema.json +641 -0
  416. linkedparticles-1.132.1/tests/mcp/resource-schema.json +11 -0
  417. linkedparticles-1.132.1/tests/mcp/tool-schema.json +684 -0
  418. linkedparticles-1.132.1/tests/test_abstraction.py +903 -0
  419. linkedparticles-1.132.1/tests/test_account_level_failure.py +311 -0
  420. linkedparticles-1.132.1/tests/test_agent_write_operator.py +273 -0
  421. linkedparticles-1.132.1/tests/test_anki.py +306 -0
  422. linkedparticles-1.132.1/tests/test_api_client.py +801 -0
  423. linkedparticles-1.132.1/tests/test_api_middleware.py +105 -0
  424. linkedparticles-1.132.1/tests/test_api_rate_limit.py +92 -0
  425. linkedparticles-1.132.1/tests/test_app.py +2026 -0
  426. linkedparticles-1.132.1/tests/test_article_synthesis.py +218 -0
  427. linkedparticles-1.132.1/tests/test_as_of.py +860 -0
  428. linkedparticles-1.132.1/tests/test_audit.py +956 -0
  429. linkedparticles-1.132.1/tests/test_auth.py +351 -0
  430. linkedparticles-1.132.1/tests/test_benchmark_compare.py +326 -0
  431. linkedparticles-1.132.1/tests/test_benchmark_memory.py +2074 -0
  432. linkedparticles-1.132.1/tests/test_benchmark_memory_comparators.py +478 -0
  433. linkedparticles-1.132.1/tests/test_benchmark_modality.py +337 -0
  434. linkedparticles-1.132.1/tests/test_benchmark_polarity.py +356 -0
  435. linkedparticles-1.132.1/tests/test_benchmark_runner.py +961 -0
  436. linkedparticles-1.132.1/tests/test_benchmark_schema.py +450 -0
  437. linkedparticles-1.132.1/tests/test_benchmark_validity.py +385 -0
  438. linkedparticles-1.132.1/tests/test_blob_fsck.py +359 -0
  439. linkedparticles-1.132.1/tests/test_blob_health.py +201 -0
  440. linkedparticles-1.132.1/tests/test_calibration.py +603 -0
  441. linkedparticles-1.132.1/tests/test_calibration_integration.py +1240 -0
  442. linkedparticles-1.132.1/tests/test_candidate_dedup.py +201 -0
  443. linkedparticles-1.132.1/tests/test_cascade.py +679 -0
  444. linkedparticles-1.132.1/tests/test_cascade_gate.py +61 -0
  445. linkedparticles-1.132.1/tests/test_claims.py +227 -0
  446. linkedparticles-1.132.1/tests/test_claude_code_hook.py +628 -0
  447. linkedparticles-1.132.1/tests/test_claude_code_init.py +698 -0
  448. linkedparticles-1.132.1/tests/test_cli.py +2859 -0
  449. linkedparticles-1.132.1/tests/test_cli_audit.py +492 -0
  450. linkedparticles-1.132.1/tests/test_cli_benchmark_memory.py +213 -0
  451. linkedparticles-1.132.1/tests/test_cli_curate.py +193 -0
  452. linkedparticles-1.132.1/tests/test_cli_extract.py +80 -0
  453. linkedparticles-1.132.1/tests/test_cli_lint.py +219 -0
  454. linkedparticles-1.132.1/tests/test_cli_logging.py +57 -0
  455. linkedparticles-1.132.1/tests/test_cli_memory.py +346 -0
  456. linkedparticles-1.132.1/tests/test_cli_memory_useful.py +159 -0
  457. linkedparticles-1.132.1/tests/test_cli_output.py +114 -0
  458. linkedparticles-1.132.1/tests/test_cli_particle_retract.py +236 -0
  459. linkedparticles-1.132.1/tests/test_cli_progress.py +60 -0
  460. linkedparticles-1.132.1/tests/test_cli_query.py +401 -0
  461. linkedparticles-1.132.1/tests/test_cli_structure.py +118 -0
  462. linkedparticles-1.132.1/tests/test_cli_suggested_commands.py +117 -0
  463. linkedparticles-1.132.1/tests/test_co_evidential_cli.py +332 -0
  464. linkedparticles-1.132.1/tests/test_co_evidential_merge.py +183 -0
  465. linkedparticles-1.132.1/tests/test_co_evidential_query_collapse.py +207 -0
  466. linkedparticles-1.132.1/tests/test_config.py +676 -0
  467. linkedparticles-1.132.1/tests/test_conflict_resolution.py +674 -0
  468. linkedparticles-1.132.1/tests/test_conformance.py +829 -0
  469. linkedparticles-1.132.1/tests/test_conformance_cli.py +35 -0
  470. linkedparticles-1.132.1/tests/test_conformance_profile.py +243 -0
  471. linkedparticles-1.132.1/tests/test_consolidation.py +1296 -0
  472. linkedparticles-1.132.1/tests/test_contested_badge.py +674 -0
  473. linkedparticles-1.132.1/tests/test_context_fingerprint.py +158 -0
  474. linkedparticles-1.132.1/tests/test_context_schema_sync.py +114 -0
  475. linkedparticles-1.132.1/tests/test_contributor_ref.py +197 -0
  476. linkedparticles-1.132.1/tests/test_corpus_cat.py +132 -0
  477. linkedparticles-1.132.1/tests/test_corpus_delete.py +332 -0
  478. linkedparticles-1.132.1/tests/test_corpus_fetch.py +629 -0
  479. linkedparticles-1.132.1/tests/test_corpus_fsck_cli.py +230 -0
  480. linkedparticles-1.132.1/tests/test_corpus_links_cli.py +105 -0
  481. linkedparticles-1.132.1/tests/test_corpus_retract.py +279 -0
  482. linkedparticles-1.132.1/tests/test_corpus_store.py +173 -0
  483. linkedparticles-1.132.1/tests/test_curation.py +661 -0
  484. linkedparticles-1.132.1/tests/test_curation_snapshot.py +487 -0
  485. linkedparticles-1.132.1/tests/test_daemon.py +408 -0
  486. linkedparticles-1.132.1/tests/test_db.py +378 -0
  487. linkedparticles-1.132.1/tests/test_decay.py +134 -0
  488. linkedparticles-1.132.1/tests/test_decay_policy.py +180 -0
  489. linkedparticles-1.132.1/tests/test_deposit_date.py +403 -0
  490. linkedparticles-1.132.1/tests/test_deposit_follow.py +450 -0
  491. linkedparticles-1.132.1/tests/test_deposit_routing.py +521 -0
  492. linkedparticles-1.132.1/tests/test_deposit_suggest.py +186 -0
  493. linkedparticles-1.132.1/tests/test_deposit_versioned.py +86 -0
  494. linkedparticles-1.132.1/tests/test_docstrings.py +433 -0
  495. linkedparticles-1.132.1/tests/test_document_scope.py +328 -0
  496. linkedparticles-1.132.1/tests/test_dogfood_corpus.py +358 -0
  497. linkedparticles-1.132.1/tests/test_dogfood_record.py +104 -0
  498. linkedparticles-1.132.1/tests/test_duplicate_suppression.py +722 -0
  499. linkedparticles-1.132.1/tests/test_egress_chokepoint.py +414 -0
  500. linkedparticles-1.132.1/tests/test_embedding_model_marker.py +163 -0
  501. linkedparticles-1.132.1/tests/test_engine_cli.py +197 -0
  502. linkedparticles-1.132.1/tests/test_equivalence.py +67 -0
  503. linkedparticles-1.132.1/tests/test_exporter_quality_threshold.py +438 -0
  504. linkedparticles-1.132.1/tests/test_exporters_registry.py +78 -0
  505. linkedparticles-1.132.1/tests/test_extract.py +2537 -0
  506. linkedparticles-1.132.1/tests/test_extraction_provider_model.py +291 -0
  507. linkedparticles-1.132.1/tests/test_extractor_ref.py +313 -0
  508. linkedparticles-1.132.1/tests/test_extractor_registry.py +479 -0
  509. linkedparticles-1.132.1/tests/test_fingerprint.py +50 -0
  510. linkedparticles-1.132.1/tests/test_generation_cascade.py +296 -0
  511. linkedparticles-1.132.1/tests/test_github_extractor.py +1686 -0
  512. linkedparticles-1.132.1/tests/test_granularity.py +32 -0
  513. linkedparticles-1.132.1/tests/test_graph_exporter.py +754 -0
  514. linkedparticles-1.132.1/tests/test_hackernews_extractor.py +561 -0
  515. linkedparticles-1.132.1/tests/test_http.py +249 -0
  516. linkedparticles-1.132.1/tests/test_id_norm.py +91 -0
  517. linkedparticles-1.132.1/tests/test_inbox.py +215 -0
  518. linkedparticles-1.132.1/tests/test_incremental.py +653 -0
  519. linkedparticles-1.132.1/tests/test_integration_audit.py +91 -0
  520. linkedparticles-1.132.1/tests/test_integration_journal_modality.py +82 -0
  521. linkedparticles-1.132.1/tests/test_integration_llm.py +341 -0
  522. linkedparticles-1.132.1/tests/test_integration_memory_benchmark.py +99 -0
  523. linkedparticles-1.132.1/tests/test_integration_polarity.py +98 -0
  524. linkedparticles-1.132.1/tests/test_integration_polarity_benchmark.py +89 -0
  525. linkedparticles-1.132.1/tests/test_integration_validity_benchmark.py +90 -0
  526. linkedparticles-1.132.1/tests/test_integrations_langchain.py +311 -0
  527. linkedparticles-1.132.1/tests/test_interchange.py +952 -0
  528. linkedparticles-1.132.1/tests/test_journal.py +405 -0
  529. linkedparticles-1.132.1/tests/test_jsonl_exporter.py +68 -0
  530. linkedparticles-1.132.1/tests/test_jsonld_context.py +95 -0
  531. linkedparticles-1.132.1/tests/test_layer_boundary.py +189 -0
  532. linkedparticles-1.132.1/tests/test_links_dedup.py +607 -0
  533. linkedparticles-1.132.1/tests/test_links_suggest.py +504 -0
  534. linkedparticles-1.132.1/tests/test_links_unmerge.py +569 -0
  535. linkedparticles-1.132.1/tests/test_lint.py +1170 -0
  536. linkedparticles-1.132.1/tests/test_lint_callouts.py +212 -0
  537. linkedparticles-1.132.1/tests/test_lint_citation_signal.py +56 -0
  538. linkedparticles-1.132.1/tests/test_lint_contested.py +436 -0
  539. linkedparticles-1.132.1/tests/test_lint_contestedness.py +118 -0
  540. linkedparticles-1.132.1/tests/test_lint_granularity.py +116 -0
  541. linkedparticles-1.132.1/tests/test_llm.py +572 -0
  542. linkedparticles-1.132.1/tests/test_llm_batch.py +503 -0
  543. linkedparticles-1.132.1/tests/test_llm_circuit_breaker.py +101 -0
  544. linkedparticles-1.132.1/tests/test_llm_openai_compat.py +691 -0
  545. linkedparticles-1.132.1/tests/test_logseq_exporter.py +793 -0
  546. linkedparticles-1.132.1/tests/test_markdown.py +774 -0
  547. linkedparticles-1.132.1/tests/test_mastodon_extractor.py +948 -0
  548. linkedparticles-1.132.1/tests/test_mcp_links_suggest.py +157 -0
  549. linkedparticles-1.132.1/tests/test_mcp_routing.py +305 -0
  550. linkedparticles-1.132.1/tests/test_mcp_server.py +1158 -0
  551. linkedparticles-1.132.1/tests/test_mcp_write.py +465 -0
  552. linkedparticles-1.132.1/tests/test_memory_compat.py +662 -0
  553. linkedparticles-1.132.1/tests/test_memory_projection.py +670 -0
  554. linkedparticles-1.132.1/tests/test_migration_035_properties_keys.py +146 -0
  555. linkedparticles-1.132.1/tests/test_narrative.py +194 -0
  556. linkedparticles-1.132.1/tests/test_narrative_cli.py +181 -0
  557. linkedparticles-1.132.1/tests/test_narrative_merge.py +138 -0
  558. linkedparticles-1.132.1/tests/test_narrative_synthesis.py +146 -0
  559. linkedparticles-1.132.1/tests/test_nomisma.py +363 -0
  560. linkedparticles-1.132.1/tests/test_notion_exporter.py +421 -0
  561. linkedparticles-1.132.1/tests/test_numista.py +456 -0
  562. linkedparticles-1.132.1/tests/test_observability.py +353 -0
  563. linkedparticles-1.132.1/tests/test_obsidian.py +1108 -0
  564. linkedparticles-1.132.1/tests/test_openapi_snapshot.py +54 -0
  565. linkedparticles-1.132.1/tests/test_operations_scope.py +42 -0
  566. linkedparticles-1.132.1/tests/test_operator_events.py +630 -0
  567. linkedparticles-1.132.1/tests/test_operator_verb_routing.py +128 -0
  568. linkedparticles-1.132.1/tests/test_owner_policy.py +407 -0
  569. linkedparticles-1.132.1/tests/test_packaging.py +218 -0
  570. linkedparticles-1.132.1/tests/test_particle_store.py +427 -0
  571. linkedparticles-1.132.1/tests/test_polarity.py +406 -0
  572. linkedparticles-1.132.1/tests/test_project_import.py +416 -0
  573. linkedparticles-1.132.1/tests/test_projection.py +991 -0
  574. linkedparticles-1.132.1/tests/test_projection_git.py +208 -0
  575. linkedparticles-1.132.1/tests/test_projection_manifest.py +547 -0
  576. linkedparticles-1.132.1/tests/test_property_keys.py +84 -0
  577. linkedparticles-1.132.1/tests/test_quality.py +173 -0
  578. linkedparticles-1.132.1/tests/test_query.py +1069 -0
  579. linkedparticles-1.132.1/tests/test_query_contestedness.py +330 -0
  580. linkedparticles-1.132.1/tests/test_query_gaps.py +152 -0
  581. linkedparticles-1.132.1/tests/test_query_source_trust.py +606 -0
  582. linkedparticles-1.132.1/tests/test_query_stance.py +164 -0
  583. linkedparticles-1.132.1/tests/test_rdf.py +741 -0
  584. linkedparticles-1.132.1/tests/test_reconcile.py +242 -0
  585. linkedparticles-1.132.1/tests/test_reddit.py +1115 -0
  586. linkedparticles-1.132.1/tests/test_reindex.py +887 -0
  587. linkedparticles-1.132.1/tests/test_relation_store.py +492 -0
  588. linkedparticles-1.132.1/tests/test_relevance.py +249 -0
  589. linkedparticles-1.132.1/tests/test_review.py +358 -0
  590. linkedparticles-1.132.1/tests/test_rule_sources.py +856 -0
  591. linkedparticles-1.132.1/tests/test_scope_exemption.py +449 -0
  592. linkedparticles-1.132.1/tests/test_skills.py +125 -0
  593. linkedparticles-1.132.1/tests/test_sql_safety.py +114 -0
  594. linkedparticles-1.132.1/tests/test_stance.py +80 -0
  595. linkedparticles-1.132.1/tests/test_store_adjacent_paths.py +108 -0
  596. linkedparticles-1.132.1/tests/test_store_engine.py +67 -0
  597. linkedparticles-1.132.1/tests/test_structural_query.py +415 -0
  598. linkedparticles-1.132.1/tests/test_structured_claim.py +881 -0
  599. linkedparticles-1.132.1/tests/test_subject_authority.py +196 -0
  600. linkedparticles-1.132.1/tests/test_subject_scope.py +231 -0
  601. linkedparticles-1.132.1/tests/test_subjects.py +974 -0
  602. linkedparticles-1.132.1/tests/test_subjects_split.py +458 -0
  603. linkedparticles-1.132.1/tests/test_synthesis_cache_integration.py +285 -0
  604. linkedparticles-1.132.1/tests/test_synthesis_cache_store.py +211 -0
  605. linkedparticles-1.132.1/tests/test_synthesis_topic.py +116 -0
  606. linkedparticles-1.132.1/tests/test_taxonomy_extractor.py +146 -0
  607. linkedparticles-1.132.1/tests/test_taxonomy_schema.py +82 -0
  608. linkedparticles-1.132.1/tests/test_taxonomy_store.py +240 -0
  609. linkedparticles-1.132.1/tests/test_transitions.py +85 -0
  610. linkedparticles-1.132.1/tests/test_trust_lens.py +479 -0
  611. linkedparticles-1.132.1/tests/test_url_mention_store.py +173 -0
  612. linkedparticles-1.132.1/tests/test_url_safety.py +422 -0
  613. linkedparticles-1.132.1/tests/test_utility.py +428 -0
  614. linkedparticles-1.132.1/tests/test_utility_feedback.py +196 -0
  615. linkedparticles-1.132.1/tests/test_utility_mining.py +555 -0
  616. linkedparticles-1.132.1/tests/test_utility_policy.py +341 -0
  617. linkedparticles-1.132.1/tests/test_utility_store.py +163 -0
  618. linkedparticles-1.132.1/tests/test_vault_import.py +582 -0
  619. linkedparticles-1.132.1/tests/test_version_guard.py +274 -0
  620. linkedparticles-1.132.1/tests/test_web_app.py +146 -0
  621. linkedparticles-1.132.1/tests/test_web_clipper_import.py +480 -0
  622. linkedparticles-1.132.1/tests/test_wiki_exporter.py +2367 -0
  623. linkedparticles-1.132.1/tests/test_wikidata_cache.py +113 -0
  624. linkedparticles-1.132.1/tests/test_wikidata_extractor.py +347 -0
  625. linkedparticles-1.132.1/tests/test_wikidata_importer.py +150 -0
  626. linkedparticles-1.132.1/tests/test_wikidata_link_confidence.py +308 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. 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 those 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
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,18 @@
1
+ Particles
2
+ Copyright 2026 The Particles authors
3
+
4
+ This product includes software developed by the Particles project
5
+ (https://github.com/LinkedParticles/particles-engine-py).
6
+
7
+ Licensed under the Apache License, Version 2.0. See the LICENSE file.
8
+
9
+ "Particles" is the name of this project and standard. The name and any
10
+ conformance claims ("Particles-compatible", "conforms to the Particles
11
+ standard") are reserved by the project and are not granted by the code
12
+ license above. Use of the code is permitted under Apache-2.0; use of the
13
+ name to describe a derivative or competing product is not.
14
+
15
+ The standard's prose — the documents under docs/spec/ (whitepaper,
16
+ technical specification) — is licensed under Creative Commons
17
+ Attribution 4.0 International (CC-BY-4.0), not Apache-2.0. See
18
+ docs/spec/LICENSE.
@@ -0,0 +1,159 @@
1
+ Metadata-Version: 2.5
2
+ Name: linkedparticles
3
+ Version: 1.132.1
4
+ Summary: Python reference SDK for the Particles epistemic knowledge standard — Engine layer and surfaces
5
+ Project-URL: Homepage, https://github.com/LinkedParticles/particles-engine-py
6
+ Project-URL: Repository, https://github.com/LinkedParticles/particles-engine-py
7
+ Project-URL: Issues, https://github.com/LinkedParticles/particles-engine-py/issues
8
+ Author: The Particles authors
9
+ License: Apache-2.0
10
+ License-File: LICENSE
11
+ License-File: NOTICE
12
+ Keywords: agents,beliefs,citations,epistemic,knowledge-graph,knowledge-management,llm,provenance,psum,rag,uncertainty
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
+ Classifier: Typing :: Typed
25
+ Requires-Python: >=3.11
26
+ Requires-Dist: aiosqlite>=0.20
27
+ Requires-Dist: alembic>=1.13
28
+ Requires-Dist: apscheduler>=3.10
29
+ Requires-Dist: fastapi>=0.111
30
+ Requires-Dist: filelock>=3.13
31
+ Requires-Dist: greenlet>=3.5.0
32
+ Requires-Dist: jinja2>=3.1
33
+ Requires-Dist: linkedparticles-core==1.132.1
34
+ Requires-Dist: mcp<2,>=1.27.1
35
+ Requires-Dist: opentelemetry-api>=1.27
36
+ Requires-Dist: python-multipart>=0.0.9
37
+ Requires-Dist: sqlalchemy>=2.0
38
+ Requires-Dist: typer>=0.12
39
+ Requires-Dist: uvicorn[standard]>=0.30
40
+ Requires-Dist: warcio>=1.7
41
+ Provides-Extra: langchain
42
+ Requires-Dist: langchain-core>=0.3; extra == 'langchain'
43
+ Provides-Extra: otel
44
+ Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.27; extra == 'otel'
45
+ Requires-Dist: opentelemetry-instrumentation-fastapi>=0.48b0; extra == 'otel'
46
+ Requires-Dist: opentelemetry-instrumentation-httpx>=0.48b0; extra == 'otel'
47
+ Requires-Dist: opentelemetry-instrumentation-logging>=0.48b0; extra == 'otel'
48
+ Requires-Dist: opentelemetry-instrumentation-sqlalchemy>=0.48b0; extra == 'otel'
49
+ Requires-Dist: opentelemetry-sdk>=1.27; extra == 'otel'
50
+ Description-Content-Type: text/markdown
51
+
52
+ # linkedparticles
53
+
54
+ > **Particles is shared memory for humans and AI agents.** Each particle is one
55
+ > claim, plus what you need to judge it: who said it, where, when, and how
56
+ > confident they were. Facts, opinions, and memories are all claims, recorded
57
+ > the same way as particles. Particles are not edited or deleted. Particles are
58
+ > superseded, retracted, or disputed in the open. How much to trust it is a
59
+ > perspective applied at query time, never baked into the record.
60
+
61
+ The **Engine layer** of the Particles reference implementation — the
62
+ state-holding SDK and its surfaces. This is the package you install to actually
63
+ run a Particles knowledge store. The core loop:
64
+
65
+ - **deposit** source material into an append-only corpus;
66
+ - **extract** claim-granularity particles with subject resolution and
67
+ confidence/provenance metadata;
68
+ - **query** with effective-confidence ranking and subject filtering;
69
+ - **lint** for contradictions and staleness;
70
+ - **review** inconsistencies into a reusable source-trust policy.
71
+
72
+ When your agent is wrong, you can see exactly why, and fix it at the source.
73
+
74
+ The Engine is a library first. The FastAPI server, the CLI, the read-only MCP
75
+ server, and the resident daemon are all *surfaces* over it.
76
+
77
+ ## Why Particles?
78
+
79
+ <!-- BEGIN PROJECTED: what-is (manifest: docs/projection/readme.yaml) -->
80
+ Most Retrieval-Augmented Generation systems re-derive knowledge from scratch on every query, operating over raw text chunks without any persistent record of what was learned, how confidently it was held, or where it came from. Particles takes a different approach: rather than retrieving passages, it stores discrete, citable, revisable claims — natural-language sentences paired with structured metadata for confidence, provenance, and uncertainty — so that an agent's knowledge accumulates as an auditable ledger rather than evaporating between sessions. Corpus-entry-level provenance is required at Core, meaning every belief can be traced back to the source that produced it, and the particle store itself is a derived view that can be rebuilt from the corpus by re-running extractors, giving the system both durability and reproducibility.
81
+
82
+ The Particles standard defines the particle schema, the source-corpus model, the extraction protocol, and a set of operations — deposit, extract, query, lint, review, and reindex — that together form the spine along which an agent's knowledge is built, queried, audited, and revised one belief at a time. A developer working with this loop deposits a source into the append-only corpus, extracts claim-granularity particles with resolved subjects, queries by effective-confidence ranking, lints for contradictions and staleness, and reviews inconsistencies into a reusable trust policy. Because particles carry explicit confidence and provenance, Particles can answer queries that require finding relevant claims about a subject and synthesising them with provenance intact, rather than returning a ranked list of chunks whose epistemic status is opaque.
83
+
84
+ Particles is a minimal interoperable substrate for claim-granularity agent knowledge — narrower than a formal-ontology knowledge graph such as RDF/SPARQL and more structured than augmented markdown. Anchoring every particle to a subject is what makes this precision possible: the Subject store is the standard's catalogue of real-world entities against which particles are indexed, aligning beliefs to canonical entities that can, in principle, be mapped to external ontologies. A developer choosing Particles is therefore choosing a substrate where each belief is a first-class object with an identity, a confidence score, a source, and a subject — not a position in a vector space.
85
+
86
+ <!-- sources: p-21f11766, p-3f71ca93, p-7931228a, p-80f9b726, p-a5a42fe0, p-ba8cfa2c, p-cb10c54c, p-d3fd6c56 -->
87
+ <!-- END PROJECTED: what-is -->
88
+
89
+ ## Design rationale
90
+
91
+ <!-- BEGIN PROJECTED: design-rationale (manifest: docs/projection/readme.yaml) -->
92
+ The foundation of Particles is the guarantee that nothing already written is ever overwritten. The Source Corpus is constituted as an append-only archive of all materials from which particles have been or may be extracted, meaning that every ingested source and every derived claim accumulates in place rather than displacing what came before. Provenance is carried by each particle from the moment of its creation, and when a source must be handled in a mutable mode rather than a purely append-only one, the system does not silently absorb the change: particles whose provenance location falls within the changed regions are flagged with `PROVENANCE_STALE`, making the disturbance visible rather than burying it. Supersession and retraction therefore propagate deterministically through the provenance graph, touching every claim whose origin is implicated, so the ledger remains a faithful record of what was asserted and when, never a quietly revised version of the past.
93
+
94
+ Trust in Particles is not a property baked into a stored record but a lens applied at the moment of reading. The raw confidence value is stored immutably, calibrated at the time a particle is created and never subsequently altered; what changes with each query is the effective confidence, which is computed at query time rather than stored. Trust weighting, recency decay, and the as-of instant are all applied per observer at query time, never written back into the record. This means that a belief does not need to be retracted or rewritten to sink in the rankings as its source ages or as the extractor that produced it loses credibility: the stored particle remains intact while the effective confidence computed over it falls, allowing stale beliefs to recede naturally without any mutation of the underlying ledger. When `as_of` is set to a past instant T, the query evaluates the store on the assertion-time axis — what the store believed at T — rather than on any world-time validity dimension, so the same immutable corpus can answer questions about present belief and historical belief without ambiguity.
95
+
96
+ Contradictions in Particles are treated as first-class citizens of the knowledge graph rather than anomalies to be suppressed. When two sources or two principals disagree, the conflict-resolution ladder surfaces an `INCONSISTENCY` record for review instead of silently overwriting either side, preserving both competing claims in the ledger and making the disagreement legible to any downstream consumer. Contestedness, the property that marks a particle as being in tension with one or more others, must be computed at read time and is never stored; like effective confidence, it is a read-time lens rather than a durable annotation, which means that as new particles arrive or old ones are superseded, the contested status of any given claim is always freshly derived from the current state of the graph rather than from a stale flag written at some earlier moment.
97
+
98
+ Memory in Particles maintains itself through a periodic, automated health discipline. The Lint operation performs health checks for contradictions, stale claims, orphan pages, and missing cross-references, scanning the corpus on a scheduled basis so that problems accumulate into visible findings rather than silently degrading the quality of the belief store. Because nothing is overwritten and contradictions are surfaced rather than resolved by fiat, Lint operates on a stable substrate: it traverses the same immutable record that queries read, and its findings feed back into the trust-policy review cycle, closing the loop between ingestion, querying, and the ongoing stewardship of the ledger's integrity.
99
+
100
+ <!-- sources: p-0296afc0, p-8476c2ac, p-8767ad66, p-9cf41a46, p-c3b1cef6, p-cea0186c, p-d0d41702, p-f1ced6c4, p-f35e1dee -->
101
+ <!-- END PROJECTED: design-rationale -->
102
+
103
+ ## Install
104
+
105
+ ```bash
106
+ pip install linkedparticles
107
+ ```
108
+
109
+ This depends on `linkedparticles-core` (the store-free Client layer) — it is
110
+ pulled in automatically.
111
+
112
+ ## Architecture
113
+
114
+ <!-- BEGIN PROJECTED: architecture (manifest: docs/projection/readme.yaml) -->
115
+ A Particles deployment is organized around two distinct storage subsystems: a Source Corpus store and a Particle store. The Source Corpus store is an append-only object store, compatible with a local filesystem, an S3-compatible backend, or a content-addressed store, while corpus entries and snapshot metadata are held in queryable form, either relational or document store. Together these two subsystems form the durable foundation on which all operations act.
116
+
117
+ The Core SDK exposes both a clean Python API and a CLI, and the six core operations — Deposit, Extract, Query, Lint, Reindex, and Review — each map to a CLI subcommand and a `POST` API endpoint in the reference SDK. A developer therefore has two symmetric surfaces for every operation: a scriptable command line suitable for pipelines and a programmatic endpoint suitable for application integration.
118
+
119
+ The journey from a raw source to a set of particles begins with Deposit, which writes the source into the append-only corpus, and continues with Extract, which drives the extraction pipeline. That pipeline selects the most specific registered extractor whose applicability specification matches the deposited source; the general extractor is used if and only if no domain-specific extractor applies. Once particles exist in the Particle store, Query retrieves them ranked by effective confidence, Lint checks for contradictions and staleness, Reindex rebuilds derived indexes, and Review consolidates inconsistencies into a reusable trust policy. Each step in this sequence is a discrete, named operation rather than an implicit side effect, which means a developer can invoke any stage independently and observe its inputs and outputs in isolation.
120
+
121
+ <!-- sources: p-3bd3740c, p-5a941962, p-8f670063, p-a4bdde07, p-ac28fba0, p-cb1cd190, p-e5639e78 -->
122
+ <!-- END PROJECTED: architecture -->
123
+
124
+ > The *Why Particles?*, *Design rationale*, and *Architecture* sections are
125
+ > **cited projections of a particle store**, not hand-authored prose. Each
126
+ > marked block is rendered from [`docs/projection/readme.yaml`](docs/projection/readme.yaml)
127
+ > and the corpus bundle committed beside it, and the trailer under each block
128
+ > names the exact claims it was built from. Edit the manifest or the underlying
129
+ > particles and re-render — never the prose between the sentinels. Check it
130
+ > yourself: `python scripts/projection_drift.py` restores the bundle into a
131
+ > throwaway store, re-derives the deterministic render, and fails if any block
132
+ > has drifted from the claims it cites.
133
+ >
134
+ > This is the project eating its own dogfood: the README argues for
135
+ > claim-granularity knowledge with provenance, and is itself assembled that way.
136
+
137
+ ## The three repositories
138
+
139
+ | Repo | What it is |
140
+ |---|---|
141
+ | [`particles-standard`](https://github.com/LinkedParticles/particles-standard) | The standard: whitepaper, technical specification, normative schema + SHACL artifacts, conformance fixtures |
142
+ | [`particles-core-py`](https://github.com/LinkedParticles/particles-core-py) | The Python Client layer (`linkedparticles-core`) |
143
+ | [`particles-engine-py`](https://github.com/LinkedParticles/particles-engine-py) | **This repo** — the Python Engine layer + surfaces (`linkedparticles`) |
144
+
145
+ ## Deployment
146
+
147
+ Container and chart artifacts live under [`deploy/`](deploy/). The engine ships
148
+ as a single-writer service; see the
149
+ [operator guide](docs/operator-guide/index.md).
150
+
151
+ ## License
152
+
153
+ Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
154
+
155
+ ## Contributing
156
+
157
+ See [CONTRIBUTING.md](CONTRIBUTING.md) and [ARCHITECTURE.md](ARCHITECTURE.md).
158
+ Contributions are accepted under a Developer Certificate of Origin sign-off —
159
+ there is no CLA.
@@ -0,0 +1,108 @@
1
+ # linkedparticles
2
+
3
+ > **Particles is shared memory for humans and AI agents.** Each particle is one
4
+ > claim, plus what you need to judge it: who said it, where, when, and how
5
+ > confident they were. Facts, opinions, and memories are all claims, recorded
6
+ > the same way as particles. Particles are not edited or deleted. Particles are
7
+ > superseded, retracted, or disputed in the open. How much to trust it is a
8
+ > perspective applied at query time, never baked into the record.
9
+
10
+ The **Engine layer** of the Particles reference implementation — the
11
+ state-holding SDK and its surfaces. This is the package you install to actually
12
+ run a Particles knowledge store. The core loop:
13
+
14
+ - **deposit** source material into an append-only corpus;
15
+ - **extract** claim-granularity particles with subject resolution and
16
+ confidence/provenance metadata;
17
+ - **query** with effective-confidence ranking and subject filtering;
18
+ - **lint** for contradictions and staleness;
19
+ - **review** inconsistencies into a reusable source-trust policy.
20
+
21
+ When your agent is wrong, you can see exactly why, and fix it at the source.
22
+
23
+ The Engine is a library first. The FastAPI server, the CLI, the read-only MCP
24
+ server, and the resident daemon are all *surfaces* over it.
25
+
26
+ ## Why Particles?
27
+
28
+ <!-- BEGIN PROJECTED: what-is (manifest: docs/projection/readme.yaml) -->
29
+ Most Retrieval-Augmented Generation systems re-derive knowledge from scratch on every query, operating over raw text chunks without any persistent record of what was learned, how confidently it was held, or where it came from. Particles takes a different approach: rather than retrieving passages, it stores discrete, citable, revisable claims — natural-language sentences paired with structured metadata for confidence, provenance, and uncertainty — so that an agent's knowledge accumulates as an auditable ledger rather than evaporating between sessions. Corpus-entry-level provenance is required at Core, meaning every belief can be traced back to the source that produced it, and the particle store itself is a derived view that can be rebuilt from the corpus by re-running extractors, giving the system both durability and reproducibility.
30
+
31
+ The Particles standard defines the particle schema, the source-corpus model, the extraction protocol, and a set of operations — deposit, extract, query, lint, review, and reindex — that together form the spine along which an agent's knowledge is built, queried, audited, and revised one belief at a time. A developer working with this loop deposits a source into the append-only corpus, extracts claim-granularity particles with resolved subjects, queries by effective-confidence ranking, lints for contradictions and staleness, and reviews inconsistencies into a reusable trust policy. Because particles carry explicit confidence and provenance, Particles can answer queries that require finding relevant claims about a subject and synthesising them with provenance intact, rather than returning a ranked list of chunks whose epistemic status is opaque.
32
+
33
+ Particles is a minimal interoperable substrate for claim-granularity agent knowledge — narrower than a formal-ontology knowledge graph such as RDF/SPARQL and more structured than augmented markdown. Anchoring every particle to a subject is what makes this precision possible: the Subject store is the standard's catalogue of real-world entities against which particles are indexed, aligning beliefs to canonical entities that can, in principle, be mapped to external ontologies. A developer choosing Particles is therefore choosing a substrate where each belief is a first-class object with an identity, a confidence score, a source, and a subject — not a position in a vector space.
34
+
35
+ <!-- sources: p-21f11766, p-3f71ca93, p-7931228a, p-80f9b726, p-a5a42fe0, p-ba8cfa2c, p-cb10c54c, p-d3fd6c56 -->
36
+ <!-- END PROJECTED: what-is -->
37
+
38
+ ## Design rationale
39
+
40
+ <!-- BEGIN PROJECTED: design-rationale (manifest: docs/projection/readme.yaml) -->
41
+ The foundation of Particles is the guarantee that nothing already written is ever overwritten. The Source Corpus is constituted as an append-only archive of all materials from which particles have been or may be extracted, meaning that every ingested source and every derived claim accumulates in place rather than displacing what came before. Provenance is carried by each particle from the moment of its creation, and when a source must be handled in a mutable mode rather than a purely append-only one, the system does not silently absorb the change: particles whose provenance location falls within the changed regions are flagged with `PROVENANCE_STALE`, making the disturbance visible rather than burying it. Supersession and retraction therefore propagate deterministically through the provenance graph, touching every claim whose origin is implicated, so the ledger remains a faithful record of what was asserted and when, never a quietly revised version of the past.
42
+
43
+ Trust in Particles is not a property baked into a stored record but a lens applied at the moment of reading. The raw confidence value is stored immutably, calibrated at the time a particle is created and never subsequently altered; what changes with each query is the effective confidence, which is computed at query time rather than stored. Trust weighting, recency decay, and the as-of instant are all applied per observer at query time, never written back into the record. This means that a belief does not need to be retracted or rewritten to sink in the rankings as its source ages or as the extractor that produced it loses credibility: the stored particle remains intact while the effective confidence computed over it falls, allowing stale beliefs to recede naturally without any mutation of the underlying ledger. When `as_of` is set to a past instant T, the query evaluates the store on the assertion-time axis — what the store believed at T — rather than on any world-time validity dimension, so the same immutable corpus can answer questions about present belief and historical belief without ambiguity.
44
+
45
+ Contradictions in Particles are treated as first-class citizens of the knowledge graph rather than anomalies to be suppressed. When two sources or two principals disagree, the conflict-resolution ladder surfaces an `INCONSISTENCY` record for review instead of silently overwriting either side, preserving both competing claims in the ledger and making the disagreement legible to any downstream consumer. Contestedness, the property that marks a particle as being in tension with one or more others, must be computed at read time and is never stored; like effective confidence, it is a read-time lens rather than a durable annotation, which means that as new particles arrive or old ones are superseded, the contested status of any given claim is always freshly derived from the current state of the graph rather than from a stale flag written at some earlier moment.
46
+
47
+ Memory in Particles maintains itself through a periodic, automated health discipline. The Lint operation performs health checks for contradictions, stale claims, orphan pages, and missing cross-references, scanning the corpus on a scheduled basis so that problems accumulate into visible findings rather than silently degrading the quality of the belief store. Because nothing is overwritten and contradictions are surfaced rather than resolved by fiat, Lint operates on a stable substrate: it traverses the same immutable record that queries read, and its findings feed back into the trust-policy review cycle, closing the loop between ingestion, querying, and the ongoing stewardship of the ledger's integrity.
48
+
49
+ <!-- sources: p-0296afc0, p-8476c2ac, p-8767ad66, p-9cf41a46, p-c3b1cef6, p-cea0186c, p-d0d41702, p-f1ced6c4, p-f35e1dee -->
50
+ <!-- END PROJECTED: design-rationale -->
51
+
52
+ ## Install
53
+
54
+ ```bash
55
+ pip install linkedparticles
56
+ ```
57
+
58
+ This depends on `linkedparticles-core` (the store-free Client layer) — it is
59
+ pulled in automatically.
60
+
61
+ ## Architecture
62
+
63
+ <!-- BEGIN PROJECTED: architecture (manifest: docs/projection/readme.yaml) -->
64
+ A Particles deployment is organized around two distinct storage subsystems: a Source Corpus store and a Particle store. The Source Corpus store is an append-only object store, compatible with a local filesystem, an S3-compatible backend, or a content-addressed store, while corpus entries and snapshot metadata are held in queryable form, either relational or document store. Together these two subsystems form the durable foundation on which all operations act.
65
+
66
+ The Core SDK exposes both a clean Python API and a CLI, and the six core operations — Deposit, Extract, Query, Lint, Reindex, and Review — each map to a CLI subcommand and a `POST` API endpoint in the reference SDK. A developer therefore has two symmetric surfaces for every operation: a scriptable command line suitable for pipelines and a programmatic endpoint suitable for application integration.
67
+
68
+ The journey from a raw source to a set of particles begins with Deposit, which writes the source into the append-only corpus, and continues with Extract, which drives the extraction pipeline. That pipeline selects the most specific registered extractor whose applicability specification matches the deposited source; the general extractor is used if and only if no domain-specific extractor applies. Once particles exist in the Particle store, Query retrieves them ranked by effective confidence, Lint checks for contradictions and staleness, Reindex rebuilds derived indexes, and Review consolidates inconsistencies into a reusable trust policy. Each step in this sequence is a discrete, named operation rather than an implicit side effect, which means a developer can invoke any stage independently and observe its inputs and outputs in isolation.
69
+
70
+ <!-- sources: p-3bd3740c, p-5a941962, p-8f670063, p-a4bdde07, p-ac28fba0, p-cb1cd190, p-e5639e78 -->
71
+ <!-- END PROJECTED: architecture -->
72
+
73
+ > The *Why Particles?*, *Design rationale*, and *Architecture* sections are
74
+ > **cited projections of a particle store**, not hand-authored prose. Each
75
+ > marked block is rendered from [`docs/projection/readme.yaml`](docs/projection/readme.yaml)
76
+ > and the corpus bundle committed beside it, and the trailer under each block
77
+ > names the exact claims it was built from. Edit the manifest or the underlying
78
+ > particles and re-render — never the prose between the sentinels. Check it
79
+ > yourself: `python scripts/projection_drift.py` restores the bundle into a
80
+ > throwaway store, re-derives the deterministic render, and fails if any block
81
+ > has drifted from the claims it cites.
82
+ >
83
+ > This is the project eating its own dogfood: the README argues for
84
+ > claim-granularity knowledge with provenance, and is itself assembled that way.
85
+
86
+ ## The three repositories
87
+
88
+ | Repo | What it is |
89
+ |---|---|
90
+ | [`particles-standard`](https://github.com/LinkedParticles/particles-standard) | The standard: whitepaper, technical specification, normative schema + SHACL artifacts, conformance fixtures |
91
+ | [`particles-core-py`](https://github.com/LinkedParticles/particles-core-py) | The Python Client layer (`linkedparticles-core`) |
92
+ | [`particles-engine-py`](https://github.com/LinkedParticles/particles-engine-py) | **This repo** — the Python Engine layer + surfaces (`linkedparticles`) |
93
+
94
+ ## Deployment
95
+
96
+ Container and chart artifacts live under [`deploy/`](deploy/). The engine ships
97
+ as a single-writer service; see the
98
+ [operator guide](docs/operator-guide/index.md).
99
+
100
+ ## License
101
+
102
+ Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
103
+
104
+ ## Contributing
105
+
106
+ See [CONTRIBUTING.md](CONTRIBUTING.md) and [ARCHITECTURE.md](ARCHITECTURE.md).
107
+ Contributions are accepted under a Developer Certificate of Origin sign-off —
108
+ there is no CLA.
@@ -0,0 +1,77 @@
1
+ """Alembic environment for async SQLAlchemy migrations."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import asyncio
6
+ import os
7
+ from logging.config import fileConfig
8
+
9
+ from sqlalchemy import pool
10
+ from sqlalchemy.ext.asyncio import async_engine_from_config
11
+
12
+ # Import all ORM modules so their tables register on Base.metadata.
13
+ # Maintained in one place — see particles/_orm_modules.py.
14
+ import particles._orm_modules # noqa: F401
15
+ from alembic import context
16
+ from particles.db import Base
17
+
18
+ config = context.config
19
+
20
+ if config.config_file_name is not None:
21
+ # disable_existing_loggers=False: this fileConfig runs every time
22
+ # particles.db.create_tables() invokes `alembic upgrade head` inside the
23
+ # engine's FastAPI lifespan. The default (True) would disable every logger
24
+ # not named in alembic.ini — silencing uvicorn and the `particles.*`
25
+ # loggers, which kills log-based observability (no "request start"/"request
26
+ # end" lines, no SQLITE_BUSY write-lock WARNING). Leaving existing loggers
27
+ # intact still configures alembic/sqlalchemy logging from alembic.ini.
28
+ fileConfig(config.config_file_name, disable_existing_loggers=False)
29
+
30
+ target_metadata = Base.metadata
31
+
32
+ # A caller (particles.db.create_tables) may target a specific store by setting
33
+ # config.attributes["store_url"]; it takes precedence over the DATABASE_URL env
34
+ # var so multi-store `create_tables(store=...)` migrates the right database
35
+ #.
36
+ store_url = config.attributes.get("store_url")
37
+ database_url = store_url or os.environ.get("DATABASE_URL", "sqlite+aiosqlite:///./particles.db")
38
+ config.set_main_option("sqlalchemy.url", database_url)
39
+
40
+
41
+ def run_migrations_offline() -> None:
42
+ url = config.get_main_option("sqlalchemy.url")
43
+ context.configure(
44
+ url=url,
45
+ target_metadata=target_metadata,
46
+ literal_binds=True,
47
+ dialect_opts={"paramstyle": "named"},
48
+ )
49
+ with context.begin_transaction():
50
+ context.run_migrations()
51
+
52
+
53
+ def do_run_migrations(connection: object) -> None:
54
+ context.configure(connection=connection, target_metadata=target_metadata) # type: ignore[arg-type]
55
+ with context.begin_transaction():
56
+ context.run_migrations()
57
+
58
+
59
+ async def run_async_migrations() -> None:
60
+ connectable = async_engine_from_config(
61
+ config.get_section(config.config_ini_section, {}),
62
+ prefix="sqlalchemy.",
63
+ poolclass=pool.NullPool,
64
+ )
65
+ async with connectable.connect() as connection:
66
+ await connection.run_sync(do_run_migrations)
67
+ await connectable.dispose()
68
+
69
+
70
+ def run_migrations_online() -> None:
71
+ asyncio.run(run_async_migrations())
72
+
73
+
74
+ if context.is_offline_mode():
75
+ run_migrations_offline()
76
+ else:
77
+ run_migrations_online()
@@ -0,0 +1,27 @@
1
+ """${message}.
2
+
3
+ REVIEW ME: autogenerate is not magic — check for wrong drops, missing
4
+ server defaults, and constraint-name churn, then replace this paragraph
5
+ with real prose (which tables/columns, which ADR, why; see 018/019/020
6
+ for the house docstring style) before committing.
7
+
8
+ Revision ID: ${up_revision}
9
+ Revises: ${down_revision | comma,n}
10
+ """
11
+
12
+ import sqlalchemy as sa
13
+
14
+ from alembic import op
15
+ ${imports if imports else ""}
16
+ revision = ${repr(up_revision)}
17
+ down_revision = ${repr(down_revision)}
18
+ branch_labels = ${repr(branch_labels)}
19
+ depends_on = ${repr(depends_on)}
20
+
21
+
22
+ def upgrade() -> None:
23
+ ${upgrades if upgrades else "pass"}
24
+
25
+
26
+ def downgrade() -> None:
27
+ ${downgrades if downgrades else "pass"}