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.
- linkedparticles-1.132.1/LICENSE +201 -0
- linkedparticles-1.132.1/NOTICE +18 -0
- linkedparticles-1.132.1/PKG-INFO +159 -0
- linkedparticles-1.132.1/README.md +108 -0
- linkedparticles-1.132.1/alembic/env.py +77 -0
- linkedparticles-1.132.1/alembic/script.py.mako +27 -0
- linkedparticles-1.132.1/alembic/versions/001_initial.py +112 -0
- linkedparticles-1.132.1/alembic/versions/002_subjects.py +47 -0
- linkedparticles-1.132.1/alembic/versions/003_wikidata_label_cache.py +28 -0
- linkedparticles-1.132.1/alembic/versions/004_source_trust.py +112 -0
- linkedparticles-1.132.1/alembic/versions/005_structured_properties.py +35 -0
- linkedparticles-1.132.1/alembic/versions/006_extractor_records.py +35 -0
- linkedparticles-1.132.1/alembic/versions/007_domain_hint.py +24 -0
- linkedparticles-1.132.1/alembic/versions/008_content_published_at.py +25 -0
- linkedparticles-1.132.1/alembic/versions/009_provenance_chunk_hash.py +31 -0
- linkedparticles-1.132.1/alembic/versions/010_context_fingerprint.py +25 -0
- linkedparticles-1.132.1/alembic/versions/011_particle_relations.py +48 -0
- linkedparticles-1.132.1/alembic/versions/012_taxonomies.py +63 -0
- linkedparticles-1.132.1/alembic/versions/013_extractor_calibration.py +25 -0
- linkedparticles-1.132.1/alembic/versions/014_corpus_follow_edges.py +42 -0
- linkedparticles-1.132.1/alembic/versions/015_synthesis_cache.py +38 -0
- linkedparticles-1.132.1/alembic/versions/016_snapshot_extraction_started_at.py +36 -0
- linkedparticles-1.132.1/alembic/versions/017_operator_events.py +49 -0
- linkedparticles-1.132.1/alembic/versions/018_contributor_refs.py +33 -0
- linkedparticles-1.132.1/alembic/versions/019_embedding_model_id.py +29 -0
- linkedparticles-1.132.1/alembic/versions/020_trust_lenses.py +67 -0
- linkedparticles-1.132.1/alembic/versions/021_registered_at_string.py +62 -0
- linkedparticles-1.132.1/alembic/versions/022_assertion_modality.py +37 -0
- linkedparticles-1.132.1/alembic/versions/023_url_mentions.py +44 -0
- linkedparticles-1.132.1/alembic/versions/024_corpus_document_supersession.py +33 -0
- linkedparticles-1.132.1/alembic/versions/025_per_provider_calibration.py +83 -0
- linkedparticles-1.132.1/alembic/versions/026_conformance_trust_cap.py +35 -0
- linkedparticles-1.132.1/alembic/versions/027_lens_decay_rules.py +38 -0
- linkedparticles-1.132.1/alembic/versions/028_utility_lens.py +61 -0
- linkedparticles-1.132.1/alembic/versions/029_retired_at.py +34 -0
- linkedparticles-1.132.1/alembic/versions/030_utility_rank_lift.py +56 -0
- linkedparticles-1.132.1/alembic/versions/031_content_norm_hash.py +89 -0
- linkedparticles-1.132.1/alembic/versions/032_utility_event_source.py +78 -0
- linkedparticles-1.132.1/alembic/versions/033_structured_claim.py +77 -0
- linkedparticles-1.132.1/alembic/versions/034_extraction_provider_model.py +66 -0
- linkedparticles-1.132.1/alembic/versions/035_prefix_extraction_properties_keys.py +106 -0
- linkedparticles-1.132.1/alembic/versions/036_curation_snapshots.py +53 -0
- linkedparticles-1.132.1/alembic.ini +38 -0
- linkedparticles-1.132.1/artifacts/conformance/README.md +171 -0
- linkedparticles-1.132.1/artifacts/conformance/profile.yaml +468 -0
- linkedparticles-1.132.1/artifacts/conformance/similarity_vectors.json +272 -0
- linkedparticles-1.132.1/artifacts/graph/LICENSE.cytoscape.txt +19 -0
- linkedparticles-1.132.1/artifacts/graph/cytoscape.min.js +31 -0
- linkedparticles-1.132.1/artifacts/openapi.json +8801 -0
- linkedparticles-1.132.1/artifacts/schemas/context.jsonld +160 -0
- linkedparticles-1.132.1/artifacts/schemas/interchange.schema.json +258 -0
- linkedparticles-1.132.1/artifacts/schemas/particle.schema.json +394 -0
- linkedparticles-1.132.1/artifacts/schemas/shacl/CorpusSnapshotShape.ttl +46 -0
- linkedparticles-1.132.1/artifacts/schemas/shacl/ParticleShape.ttl +374 -0
- linkedparticles-1.132.1/artifacts/schemas/shacl/ProvenanceChainShape.ttl +30 -0
- linkedparticles-1.132.1/artifacts/schemas/shacl/SubjectShape.ttl +79 -0
- linkedparticles-1.132.1/artifacts/schemas/shacl/TrustStatementShape.ttl +71 -0
- linkedparticles-1.132.1/artifacts/schemas/trust_lens.schema.json +276 -0
- linkedparticles-1.132.1/config.yaml.sample +1767 -0
- linkedparticles-1.132.1/constraints.txt +429 -0
- linkedparticles-1.132.1/design/tokens.css +237 -0
- linkedparticles-1.132.1/particles/_orm_modules.py +35 -0
- linkedparticles-1.132.1/particles/api/__init__.py +1 -0
- linkedparticles-1.132.1/particles/api/_middleware.py +106 -0
- linkedparticles-1.132.1/particles/api/_rate_limit.py +103 -0
- linkedparticles-1.132.1/particles/api/app.py +2549 -0
- linkedparticles-1.132.1/particles/api/auth.py +256 -0
- linkedparticles-1.132.1/particles/api/cli/__init__.py +357 -0
- linkedparticles-1.132.1/particles/api/cli/_claude_code.py +972 -0
- linkedparticles-1.132.1/particles/api/cli/_id_norm.py +36 -0
- linkedparticles-1.132.1/particles/api/cli/_logging.py +42 -0
- linkedparticles-1.132.1/particles/api/cli/_memory_projection.py +327 -0
- linkedparticles-1.132.1/particles/api/cli/_output.py +124 -0
- linkedparticles-1.132.1/particles/api/cli/_progress.py +149 -0
- linkedparticles-1.132.1/particles/api/cli/_projection_git.py +240 -0
- linkedparticles-1.132.1/particles/api/cli/_remote.py +49 -0
- linkedparticles-1.132.1/particles/api/cli/audit.py +540 -0
- linkedparticles-1.132.1/particles/api/cli/benchmark.py +378 -0
- linkedparticles-1.132.1/particles/api/cli/config.py +82 -0
- linkedparticles-1.132.1/particles/api/cli/conformance.py +82 -0
- linkedparticles-1.132.1/particles/api/cli/corpus.py +1234 -0
- linkedparticles-1.132.1/particles/api/cli/curate.py +210 -0
- linkedparticles-1.132.1/particles/api/cli/db.py +104 -0
- linkedparticles-1.132.1/particles/api/cli/deposit.py +366 -0
- linkedparticles-1.132.1/particles/api/cli/engine.py +154 -0
- linkedparticles-1.132.1/particles/api/cli/events.py +114 -0
- linkedparticles-1.132.1/particles/api/cli/export.py +420 -0
- linkedparticles-1.132.1/particles/api/cli/extract.py +383 -0
- linkedparticles-1.132.1/particles/api/cli/extractor.py +2185 -0
- linkedparticles-1.132.1/particles/api/cli/hook.py +687 -0
- linkedparticles-1.132.1/particles/api/cli/import_vault.py +357 -0
- linkedparticles-1.132.1/particles/api/cli/inbox.py +191 -0
- linkedparticles-1.132.1/particles/api/cli/init.py +779 -0
- linkedparticles-1.132.1/particles/api/cli/interchange.py +171 -0
- linkedparticles-1.132.1/particles/api/cli/links.py +659 -0
- linkedparticles-1.132.1/particles/api/cli/lint.py +197 -0
- linkedparticles-1.132.1/particles/api/cli/mcp.py +141 -0
- linkedparticles-1.132.1/particles/api/cli/memory.py +882 -0
- linkedparticles-1.132.1/particles/api/cli/particle.py +514 -0
- linkedparticles-1.132.1/particles/api/cli/project.py +321 -0
- linkedparticles-1.132.1/particles/api/cli/quality.py +68 -0
- linkedparticles-1.132.1/particles/api/cli/query.py +414 -0
- linkedparticles-1.132.1/particles/api/cli/reconcile.py +49 -0
- linkedparticles-1.132.1/particles/api/cli/reindex.py +151 -0
- linkedparticles-1.132.1/particles/api/cli/review.py +224 -0
- linkedparticles-1.132.1/particles/api/cli/rules.py +314 -0
- linkedparticles-1.132.1/particles/api/cli/skills.py +119 -0
- linkedparticles-1.132.1/particles/api/cli/structure.py +102 -0
- linkedparticles-1.132.1/particles/api/cli/subjects.py +590 -0
- linkedparticles-1.132.1/particles/api/cli/synthesis_cache.py +176 -0
- linkedparticles-1.132.1/particles/api/cli/trust.py +421 -0
- linkedparticles-1.132.1/particles/api/client/__init__.py +45 -0
- linkedparticles-1.132.1/particles/api/client/base.py +563 -0
- linkedparticles-1.132.1/particles/api/client/http.py +914 -0
- linkedparticles-1.132.1/particles/api/client/local.py +855 -0
- linkedparticles-1.132.1/particles/api/daemon.py +441 -0
- linkedparticles-1.132.1/particles/api/web_app.py +101 -0
- linkedparticles-1.132.1/particles/benchmark/__init__.py +25 -0
- linkedparticles-1.132.1/particles/benchmark/compare.py +144 -0
- linkedparticles-1.132.1/particles/benchmark/equivalence.py +233 -0
- linkedparticles-1.132.1/particles/benchmark/loader.py +256 -0
- linkedparticles-1.132.1/particles/benchmark/memory/__init__.py +107 -0
- linkedparticles-1.132.1/particles/benchmark/memory/comparators.py +358 -0
- linkedparticles-1.132.1/particles/benchmark/memory/loader.py +308 -0
- linkedparticles-1.132.1/particles/benchmark/memory/metrics.py +124 -0
- linkedparticles-1.132.1/particles/benchmark/memory/runner.py +1626 -0
- linkedparticles-1.132.1/particles/benchmark/memory/schema.py +369 -0
- linkedparticles-1.132.1/particles/benchmark/metrics.py +79 -0
- linkedparticles-1.132.1/particles/benchmark/modality/__init__.py +69 -0
- linkedparticles-1.132.1/particles/benchmark/modality/loader.py +170 -0
- linkedparticles-1.132.1/particles/benchmark/modality/metrics.py +93 -0
- linkedparticles-1.132.1/particles/benchmark/modality/runner.py +263 -0
- linkedparticles-1.132.1/particles/benchmark/modality/schema.py +61 -0
- linkedparticles-1.132.1/particles/benchmark/polarity/__init__.py +75 -0
- linkedparticles-1.132.1/particles/benchmark/polarity/loader.py +169 -0
- linkedparticles-1.132.1/particles/benchmark/polarity/metrics.py +109 -0
- linkedparticles-1.132.1/particles/benchmark/polarity/runner.py +269 -0
- linkedparticles-1.132.1/particles/benchmark/polarity/schema.py +86 -0
- linkedparticles-1.132.1/particles/benchmark/runner.py +476 -0
- linkedparticles-1.132.1/particles/benchmark/schema.py +93 -0
- linkedparticles-1.132.1/particles/benchmark/validity/__init__.py +72 -0
- linkedparticles-1.132.1/particles/benchmark/validity/loader.py +206 -0
- linkedparticles-1.132.1/particles/benchmark/validity/metrics.py +113 -0
- linkedparticles-1.132.1/particles/benchmark/validity/runner.py +247 -0
- linkedparticles-1.132.1/particles/benchmark/validity/schema.py +93 -0
- linkedparticles-1.132.1/particles/corpus/__init__.py +1 -0
- linkedparticles-1.132.1/particles/corpus/blob_fsck.py +313 -0
- linkedparticles-1.132.1/particles/corpus/blob_health.py +173 -0
- linkedparticles-1.132.1/particles/corpus/deposit.py +1538 -0
- linkedparticles-1.132.1/particles/corpus/fetch.py +349 -0
- linkedparticles-1.132.1/particles/corpus/follow_edges.py +106 -0
- linkedparticles-1.132.1/particles/corpus/rule_sources.py +307 -0
- linkedparticles-1.132.1/particles/corpus/store.py +692 -0
- linkedparticles-1.132.1/particles/corpus/supersession.py +301 -0
- linkedparticles-1.132.1/particles/db.py +437 -0
- linkedparticles-1.132.1/particles/exporters/__init__.py +0 -0
- linkedparticles-1.132.1/particles/exporters/anki.py +242 -0
- linkedparticles-1.132.1/particles/exporters/article_synthesis/__init__.py +114 -0
- linkedparticles-1.132.1/particles/exporters/graph/__init__.py +5 -0
- linkedparticles-1.132.1/particles/exporters/graph/_assets.py +50 -0
- linkedparticles-1.132.1/particles/exporters/graph/exporter.py +113 -0
- linkedparticles-1.132.1/particles/exporters/graph/render.py +457 -0
- linkedparticles-1.132.1/particles/exporters/jsonl.py +96 -0
- linkedparticles-1.132.1/particles/exporters/logseq/__init__.py +22 -0
- linkedparticles-1.132.1/particles/exporters/logseq/exporter.py +71 -0
- linkedparticles-1.132.1/particles/exporters/logseq/format.py +256 -0
- linkedparticles-1.132.1/particles/exporters/logseq/narrative.py +83 -0
- linkedparticles-1.132.1/particles/exporters/logseq/synthesis.py +251 -0
- linkedparticles-1.132.1/particles/exporters/logseq/vault.py +572 -0
- linkedparticles-1.132.1/particles/exporters/markdown.py +60 -0
- linkedparticles-1.132.1/particles/exporters/notion.py +539 -0
- linkedparticles-1.132.1/particles/exporters/obsidian/__init__.py +90 -0
- linkedparticles-1.132.1/particles/exporters/obsidian/exporter.py +68 -0
- linkedparticles-1.132.1/particles/exporters/obsidian/format.py +498 -0
- linkedparticles-1.132.1/particles/exporters/obsidian/narrative.py +104 -0
- linkedparticles-1.132.1/particles/exporters/obsidian/synthesis.py +291 -0
- linkedparticles-1.132.1/particles/exporters/obsidian/vault.py +1078 -0
- linkedparticles-1.132.1/particles/exporters/registry.py +101 -0
- linkedparticles-1.132.1/particles/exporters/summaries.py +178 -0
- linkedparticles-1.132.1/particles/exporters/wiki.py +831 -0
- linkedparticles-1.132.1/particles/ingest/__init__.py +20 -0
- linkedparticles-1.132.1/particles/ingest/authorities/__init__.py +28 -0
- linkedparticles-1.132.1/particles/ingest/authorities/_shared.py +131 -0
- linkedparticles-1.132.1/particles/ingest/authorities/registry.py +171 -0
- linkedparticles-1.132.1/particles/ingest/authorities/wikidata.py +310 -0
- linkedparticles-1.132.1/particles/ingest/candidate_dedup.py +134 -0
- linkedparticles-1.132.1/particles/ingest/duplicate_suppression.py +149 -0
- linkedparticles-1.132.1/particles/ingest/generation.py +179 -0
- linkedparticles-1.132.1/particles/ingest/importers/__init__.py +31 -0
- linkedparticles-1.132.1/particles/ingest/importers/github.py +601 -0
- linkedparticles-1.132.1/particles/ingest/importers/hackernews.py +122 -0
- linkedparticles-1.132.1/particles/ingest/importers/mastodon.py +161 -0
- linkedparticles-1.132.1/particles/ingest/importers/nomisma.py +78 -0
- linkedparticles-1.132.1/particles/ingest/importers/numista.py +128 -0
- linkedparticles-1.132.1/particles/ingest/importers/reddit.py +136 -0
- linkedparticles-1.132.1/particles/ingest/importers/registry.py +134 -0
- linkedparticles-1.132.1/particles/ingest/importers/wikidata.py +70 -0
- linkedparticles-1.132.1/particles/ingest/narrative_merge.py +120 -0
- linkedparticles-1.132.1/particles/ingest/pipeline.py +1582 -0
- linkedparticles-1.132.1/particles/ingest/subject_resolver.py +357 -0
- linkedparticles-1.132.1/particles/integrations/__init__.py +61 -0
- linkedparticles-1.132.1/particles/integrations/_mapping.py +81 -0
- linkedparticles-1.132.1/particles/integrations/langchain.py +275 -0
- linkedparticles-1.132.1/particles/interchange/store.py +425 -0
- linkedparticles-1.132.1/particles/mcp/__init__.py +15 -0
- linkedparticles-1.132.1/particles/mcp/memory_compat/__init__.py +10 -0
- linkedparticles-1.132.1/particles/mcp/memory_compat/graph.py +330 -0
- linkedparticles-1.132.1/particles/mcp/memory_compat/ops.py +422 -0
- linkedparticles-1.132.1/particles/mcp/memory_compat/server.py +580 -0
- linkedparticles-1.132.1/particles/mcp/resources.py +92 -0
- linkedparticles-1.132.1/particles/mcp/server.py +184 -0
- linkedparticles-1.132.1/particles/mcp/tools/__init__.py +14 -0
- linkedparticles-1.132.1/particles/mcp/tools/corpus.py +52 -0
- linkedparticles-1.132.1/particles/mcp/tools/diagnostics.py +21 -0
- linkedparticles-1.132.1/particles/mcp/tools/events.py +54 -0
- linkedparticles-1.132.1/particles/mcp/tools/graph.py +141 -0
- linkedparticles-1.132.1/particles/mcp/tools/links_suggest.py +75 -0
- linkedparticles-1.132.1/particles/mcp/tools/lint.py +75 -0
- linkedparticles-1.132.1/particles/mcp/tools/particles.py +170 -0
- linkedparticles-1.132.1/particles/mcp/tools/query.py +183 -0
- linkedparticles-1.132.1/particles/mcp/tools/subjects.py +100 -0
- linkedparticles-1.132.1/particles/mcp/tools/taxonomy.py +34 -0
- linkedparticles-1.132.1/particles/mcp/tools/write.py +343 -0
- linkedparticles-1.132.1/particles/observability/__init__.py +24 -0
- linkedparticles-1.132.1/particles/observability/setup.py +310 -0
- linkedparticles-1.132.1/particles/observability/spans.py +41 -0
- linkedparticles-1.132.1/particles/operations/__init__.py +1 -0
- linkedparticles-1.132.1/particles/operations/_llm.py +209 -0
- linkedparticles-1.132.1/particles/operations/_quarantine.py +95 -0
- linkedparticles-1.132.1/particles/operations/_scope.py +34 -0
- linkedparticles-1.132.1/particles/operations/abstraction.py +1020 -0
- linkedparticles-1.132.1/particles/operations/agent_write.py +644 -0
- linkedparticles-1.132.1/particles/operations/audit.py +810 -0
- linkedparticles-1.132.1/particles/operations/cascade.py +272 -0
- linkedparticles-1.132.1/particles/operations/consolidation.py +1539 -0
- linkedparticles-1.132.1/particles/operations/curation/__init__.py +42 -0
- linkedparticles-1.132.1/particles/operations/curation/cards.py +225 -0
- linkedparticles-1.132.1/particles/operations/curation/collect.py +205 -0
- linkedparticles-1.132.1/particles/operations/curation/leverage.py +188 -0
- linkedparticles-1.132.1/particles/operations/curation/session.py +608 -0
- linkedparticles-1.132.1/particles/operations/curation/snapshot.py +301 -0
- linkedparticles-1.132.1/particles/operations/deposit.py +47 -0
- linkedparticles-1.132.1/particles/operations/deposit_suggest.py +194 -0
- linkedparticles-1.132.1/particles/operations/digest.py +88 -0
- linkedparticles-1.132.1/particles/operations/extract.py +23 -0
- linkedparticles-1.132.1/particles/operations/graph_view.py +907 -0
- linkedparticles-1.132.1/particles/operations/inbox.py +147 -0
- linkedparticles-1.132.1/particles/operations/links_suggest.py +1068 -0
- linkedparticles-1.132.1/particles/operations/lint/__init__.py +99 -0
- linkedparticles-1.132.1/particles/operations/lint/assertion_quality.py +55 -0
- linkedparticles-1.132.1/particles/operations/lint/citation_signal.py +42 -0
- linkedparticles-1.132.1/particles/operations/lint/contestedness.py +345 -0
- linkedparticles-1.132.1/particles/operations/lint/contradictions.py +345 -0
- linkedparticles-1.132.1/particles/operations/lint/coverage.py +364 -0
- linkedparticles-1.132.1/particles/operations/lint/granularity.py +94 -0
- linkedparticles-1.132.1/particles/operations/lint/orchestrator.py +145 -0
- linkedparticles-1.132.1/particles/operations/lint/retirement.py +74 -0
- linkedparticles-1.132.1/particles/operations/lint/staleness.py +232 -0
- linkedparticles-1.132.1/particles/operations/lint/wikidata_links.py +63 -0
- linkedparticles-1.132.1/particles/operations/narrative.py +110 -0
- linkedparticles-1.132.1/particles/operations/narrative_synthesis.py +124 -0
- linkedparticles-1.132.1/particles/operations/projection/__init__.py +57 -0
- linkedparticles-1.132.1/particles/operations/projection/manifest.py +264 -0
- linkedparticles-1.132.1/particles/operations/projection/project.py +1026 -0
- linkedparticles-1.132.1/particles/operations/quality.py +81 -0
- linkedparticles-1.132.1/particles/operations/query/__init__.py +42 -0
- linkedparticles-1.132.1/particles/operations/query/as_of.py +276 -0
- linkedparticles-1.132.1/particles/operations/query/contested.py +145 -0
- linkedparticles-1.132.1/particles/operations/query/contestedness.py +198 -0
- linkedparticles-1.132.1/particles/operations/query/decay_policy.py +136 -0
- linkedparticles-1.132.1/particles/operations/query/effective_confidence.py +183 -0
- linkedparticles-1.132.1/particles/operations/query/gaps.py +83 -0
- linkedparticles-1.132.1/particles/operations/query/main.py +1010 -0
- linkedparticles-1.132.1/particles/operations/query/owner_policy.py +218 -0
- linkedparticles-1.132.1/particles/operations/query/precedence.py +142 -0
- linkedparticles-1.132.1/particles/operations/query/rank.py +163 -0
- linkedparticles-1.132.1/particles/operations/query/respond.py +196 -0
- linkedparticles-1.132.1/particles/operations/query/source_info.py +89 -0
- linkedparticles-1.132.1/particles/operations/query/source_trust.py +313 -0
- linkedparticles-1.132.1/particles/operations/query/stance.py +111 -0
- linkedparticles-1.132.1/particles/operations/query/structural.py +483 -0
- linkedparticles-1.132.1/particles/operations/query/utility_policy.py +217 -0
- linkedparticles-1.132.1/particles/operations/reconcile.py +272 -0
- linkedparticles-1.132.1/particles/operations/reindex.py +571 -0
- linkedparticles-1.132.1/particles/operations/retract.py +107 -0
- linkedparticles-1.132.1/particles/operations/review.py +303 -0
- linkedparticles-1.132.1/particles/operations/structure.py +217 -0
- linkedparticles-1.132.1/particles/operations/trust.py +54 -0
- linkedparticles-1.132.1/particles/operations/utility_feedback.py +209 -0
- linkedparticles-1.132.1/particles/operations/utility_mining.py +531 -0
- linkedparticles-1.132.1/particles/operations/utility_sweep.py +458 -0
- linkedparticles-1.132.1/particles/operations/version_guard.py +39 -0
- linkedparticles-1.132.1/particles/render/article_synthesis/__init__.py +217 -0
- linkedparticles-1.132.1/particles/render/article_synthesis/cache.py +395 -0
- linkedparticles-1.132.1/particles/render/article_synthesis/layer_a.py +118 -0
- linkedparticles-1.132.1/particles/render/article_synthesis/layer_b.py +326 -0
- linkedparticles-1.132.1/particles/render/article_synthesis/orchestrate.py +403 -0
- linkedparticles-1.132.1/particles/render/article_synthesis/render.py +873 -0
- linkedparticles-1.132.1/particles/render/article_synthesis/topic.py +58 -0
- linkedparticles-1.132.1/particles/skills/__init__.py +62 -0
- linkedparticles-1.132.1/particles/skills/asking-the-store.md +64 -0
- linkedparticles-1.132.1/particles/skills/keeping-it-clean.md +58 -0
- linkedparticles-1.132.1/particles/skills/recording-a-belief.md +79 -0
- linkedparticles-1.132.1/particles/sql_safety.py +37 -0
- linkedparticles-1.132.1/particles/store/__init__.py +1 -0
- linkedparticles-1.132.1/particles/store/curation_snapshot_store.py +181 -0
- linkedparticles-1.132.1/particles/store/event_store.py +467 -0
- linkedparticles-1.132.1/particles/store/extractor_store.py +315 -0
- linkedparticles-1.132.1/particles/store/lens_store.py +372 -0
- linkedparticles-1.132.1/particles/store/particle_store.py +1786 -0
- linkedparticles-1.132.1/particles/store/relation_store.py +359 -0
- linkedparticles-1.132.1/particles/store/subject_cache.py +112 -0
- linkedparticles-1.132.1/particles/store/subject_store.py +973 -0
- linkedparticles-1.132.1/particles/store/synthesis_cache_store.py +161 -0
- linkedparticles-1.132.1/particles/store/taxonomy_store.py +344 -0
- linkedparticles-1.132.1/particles/store/trust_store.py +275 -0
- linkedparticles-1.132.1/particles/store/url_mention_store.py +222 -0
- linkedparticles-1.132.1/particles/store/utility_store.py +284 -0
- linkedparticles-1.132.1/particles/store/wikidata_cache.py +89 -0
- linkedparticles-1.132.1/pyproject.toml +238 -0
- linkedparticles-1.132.1/tests/__init__.py +1 -0
- linkedparticles-1.132.1/tests/_capped_http.py +83 -0
- linkedparticles-1.132.1/tests/_client_fixtures.py +183 -0
- linkedparticles-1.132.1/tests/_upstream.py +38 -0
- linkedparticles-1.132.1/tests/benchmark/calibration/numismatic-calibration-001.yaml +84 -0
- linkedparticles-1.132.1/tests/benchmark/calibration/prose-calibration-001.yaml +822 -0
- linkedparticles-1.132.1/tests/benchmark/calibration/rdf-calibration-001.yaml +68 -0
- linkedparticles-1.132.1/tests/benchmark/memory/fixtures/NOTICE +22 -0
- linkedparticles-1.132.1/tests/benchmark/memory/fixtures/longmemeval_oracle_synthetic.json +107 -0
- linkedparticles-1.132.1/tests/benchmark/modality/journal-modality-seed-001.yaml +96 -0
- linkedparticles-1.132.1/tests/benchmark/polarity/adr-polarity-seed-001.yaml +98 -0
- linkedparticles-1.132.1/tests/benchmark/suites/hackernews-seed-001.yaml +84 -0
- linkedparticles-1.132.1/tests/benchmark/suites/numismatic-seed-001.yaml +82 -0
- linkedparticles-1.132.1/tests/benchmark/suites/prose-article-seed-001.yaml +766 -0
- linkedparticles-1.132.1/tests/benchmark/suites/rdf-seed-001.yaml +84 -0
- linkedparticles-1.132.1/tests/benchmark/suites/reddit-seed-001.yaml +79 -0
- linkedparticles-1.132.1/tests/benchmark/suites/wikidata-seed-001.yaml +72 -0
- linkedparticles-1.132.1/tests/benchmark/validity/durability-seed-001.yaml +90 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/MANIFEST.yaml +67 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/hackernews-thread-001/content.bin +42 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/hackernews-thread-001/manifest.yaml +19 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/hackernews-thread-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/journal-entry-001/content.bin +13 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/journal-entry-001/manifest.yaml +24 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/journal-entry-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/mastodon-thread-001/content.bin +1 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/mastodon-thread-001/manifest.yaml +30 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/mastodon-thread-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/nomisma-concept-001/content.bin +30 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/nomisma-concept-001/manifest.yaml +34 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/nomisma-concept-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/numista-coin-001/content.bin +30 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/numista-coin-001/manifest.yaml +16 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/numista-coin-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/numista-issuer-001/content.bin +33 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/numista-issuer-001/manifest.yaml +30 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/numista-issuer-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/numista-listing-001/content.bin +22 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/numista-listing-001/manifest.yaml +32 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/numista-listing-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/rdf-graph-001/content.bin +39 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/rdf-graph-001/manifest.yaml +35 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/rdf-graph-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/reddit-thread-001/content.bin +1 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/reddit-thread-001/manifest.yaml +20 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/reddit-thread-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/taxonomy-coins-001/content.bin +11 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/taxonomy-coins-001/manifest.yaml +18 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/taxonomy-coins-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/trust-lens-001/content.bin +15 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/trust-lens-001/manifest.yaml +18 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/trust-lens-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/web-article-001/content.bin +63 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/web-article-001/manifest.yaml +31 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/web-article-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/web-article-002/content.bin +57 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/web-article-002/manifest.yaml +29 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/web-article-002/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/web-essay-001/content.bin +60 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/web-essay-001/manifest.yaml +27 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/web-essay-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/web-interview-001/content.bin +60 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/web-interview-001/manifest.yaml +32 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/web-interview-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/wikidata-entity-001/content.bin +60 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/wikidata-entity-001/manifest.yaml +40 -0
- linkedparticles-1.132.1/tests/conformance/fixtures/wikidata-entity-001/snapshot.json +14 -0
- linkedparticles-1.132.1/tests/conftest.py +140 -0
- linkedparticles-1.132.1/tests/dogfood/__init__.py +344 -0
- linkedparticles-1.132.1/tests/dogfood/corpus.yaml +251 -0
- linkedparticles-1.132.1/tests/dogfood/llm_responses.yaml +154 -0
- linkedparticles-1.132.1/tests/dogfood/record.py +251 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/.obsidian/app.json +5 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/1933 Double Eagle.md +25 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Coin Silver Standards.md +24 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Flowing Hair Dollar.md +22 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Grading and Condition.md +24 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Home.md +29 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Mint Records.md +24 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Morgan Dollar.md +24 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Most Expensive Coins.md +22 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Philadelphia Mint.md +21 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/Seated Liberty Dollar.md +23 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/US Mint History.md +23 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/_GROUND_TRUTH.md +84 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/_templates/Coin Note Template.md +13 -0
- linkedparticles-1.132.1/tests/fixtures/llm_wiki_vault/inventory.csv +4 -0
- linkedparticles-1.132.1/tests/fixtures/memory_dir/MEMORY.md +11 -0
- linkedparticles-1.132.1/tests/fixtures/memory_dir/deploy-pipeline.md +6 -0
- linkedparticles-1.132.1/tests/fixtures/memory_dir/orion-api.md +7 -0
- linkedparticles-1.132.1/tests/fixtures/scope/normative-rule-file.md +23 -0
- linkedparticles-1.132.1/tests/fixtures/scope/normative-rule-file.recorded.json +8 -0
- linkedparticles-1.132.1/tests/fixtures/scope/rule-file-agents-md.md +84 -0
- linkedparticles-1.132.1/tests/fixtures/scope/rule-file-agents-md.recorded.json +9 -0
- linkedparticles-1.132.1/tests/mcp/memory-tool-schema.json +641 -0
- linkedparticles-1.132.1/tests/mcp/resource-schema.json +11 -0
- linkedparticles-1.132.1/tests/mcp/tool-schema.json +684 -0
- linkedparticles-1.132.1/tests/test_abstraction.py +903 -0
- linkedparticles-1.132.1/tests/test_account_level_failure.py +311 -0
- linkedparticles-1.132.1/tests/test_agent_write_operator.py +273 -0
- linkedparticles-1.132.1/tests/test_anki.py +306 -0
- linkedparticles-1.132.1/tests/test_api_client.py +801 -0
- linkedparticles-1.132.1/tests/test_api_middleware.py +105 -0
- linkedparticles-1.132.1/tests/test_api_rate_limit.py +92 -0
- linkedparticles-1.132.1/tests/test_app.py +2026 -0
- linkedparticles-1.132.1/tests/test_article_synthesis.py +218 -0
- linkedparticles-1.132.1/tests/test_as_of.py +860 -0
- linkedparticles-1.132.1/tests/test_audit.py +956 -0
- linkedparticles-1.132.1/tests/test_auth.py +351 -0
- linkedparticles-1.132.1/tests/test_benchmark_compare.py +326 -0
- linkedparticles-1.132.1/tests/test_benchmark_memory.py +2074 -0
- linkedparticles-1.132.1/tests/test_benchmark_memory_comparators.py +478 -0
- linkedparticles-1.132.1/tests/test_benchmark_modality.py +337 -0
- linkedparticles-1.132.1/tests/test_benchmark_polarity.py +356 -0
- linkedparticles-1.132.1/tests/test_benchmark_runner.py +961 -0
- linkedparticles-1.132.1/tests/test_benchmark_schema.py +450 -0
- linkedparticles-1.132.1/tests/test_benchmark_validity.py +385 -0
- linkedparticles-1.132.1/tests/test_blob_fsck.py +359 -0
- linkedparticles-1.132.1/tests/test_blob_health.py +201 -0
- linkedparticles-1.132.1/tests/test_calibration.py +603 -0
- linkedparticles-1.132.1/tests/test_calibration_integration.py +1240 -0
- linkedparticles-1.132.1/tests/test_candidate_dedup.py +201 -0
- linkedparticles-1.132.1/tests/test_cascade.py +679 -0
- linkedparticles-1.132.1/tests/test_cascade_gate.py +61 -0
- linkedparticles-1.132.1/tests/test_claims.py +227 -0
- linkedparticles-1.132.1/tests/test_claude_code_hook.py +628 -0
- linkedparticles-1.132.1/tests/test_claude_code_init.py +698 -0
- linkedparticles-1.132.1/tests/test_cli.py +2859 -0
- linkedparticles-1.132.1/tests/test_cli_audit.py +492 -0
- linkedparticles-1.132.1/tests/test_cli_benchmark_memory.py +213 -0
- linkedparticles-1.132.1/tests/test_cli_curate.py +193 -0
- linkedparticles-1.132.1/tests/test_cli_extract.py +80 -0
- linkedparticles-1.132.1/tests/test_cli_lint.py +219 -0
- linkedparticles-1.132.1/tests/test_cli_logging.py +57 -0
- linkedparticles-1.132.1/tests/test_cli_memory.py +346 -0
- linkedparticles-1.132.1/tests/test_cli_memory_useful.py +159 -0
- linkedparticles-1.132.1/tests/test_cli_output.py +114 -0
- linkedparticles-1.132.1/tests/test_cli_particle_retract.py +236 -0
- linkedparticles-1.132.1/tests/test_cli_progress.py +60 -0
- linkedparticles-1.132.1/tests/test_cli_query.py +401 -0
- linkedparticles-1.132.1/tests/test_cli_structure.py +118 -0
- linkedparticles-1.132.1/tests/test_cli_suggested_commands.py +117 -0
- linkedparticles-1.132.1/tests/test_co_evidential_cli.py +332 -0
- linkedparticles-1.132.1/tests/test_co_evidential_merge.py +183 -0
- linkedparticles-1.132.1/tests/test_co_evidential_query_collapse.py +207 -0
- linkedparticles-1.132.1/tests/test_config.py +676 -0
- linkedparticles-1.132.1/tests/test_conflict_resolution.py +674 -0
- linkedparticles-1.132.1/tests/test_conformance.py +829 -0
- linkedparticles-1.132.1/tests/test_conformance_cli.py +35 -0
- linkedparticles-1.132.1/tests/test_conformance_profile.py +243 -0
- linkedparticles-1.132.1/tests/test_consolidation.py +1296 -0
- linkedparticles-1.132.1/tests/test_contested_badge.py +674 -0
- linkedparticles-1.132.1/tests/test_context_fingerprint.py +158 -0
- linkedparticles-1.132.1/tests/test_context_schema_sync.py +114 -0
- linkedparticles-1.132.1/tests/test_contributor_ref.py +197 -0
- linkedparticles-1.132.1/tests/test_corpus_cat.py +132 -0
- linkedparticles-1.132.1/tests/test_corpus_delete.py +332 -0
- linkedparticles-1.132.1/tests/test_corpus_fetch.py +629 -0
- linkedparticles-1.132.1/tests/test_corpus_fsck_cli.py +230 -0
- linkedparticles-1.132.1/tests/test_corpus_links_cli.py +105 -0
- linkedparticles-1.132.1/tests/test_corpus_retract.py +279 -0
- linkedparticles-1.132.1/tests/test_corpus_store.py +173 -0
- linkedparticles-1.132.1/tests/test_curation.py +661 -0
- linkedparticles-1.132.1/tests/test_curation_snapshot.py +487 -0
- linkedparticles-1.132.1/tests/test_daemon.py +408 -0
- linkedparticles-1.132.1/tests/test_db.py +378 -0
- linkedparticles-1.132.1/tests/test_decay.py +134 -0
- linkedparticles-1.132.1/tests/test_decay_policy.py +180 -0
- linkedparticles-1.132.1/tests/test_deposit_date.py +403 -0
- linkedparticles-1.132.1/tests/test_deposit_follow.py +450 -0
- linkedparticles-1.132.1/tests/test_deposit_routing.py +521 -0
- linkedparticles-1.132.1/tests/test_deposit_suggest.py +186 -0
- linkedparticles-1.132.1/tests/test_deposit_versioned.py +86 -0
- linkedparticles-1.132.1/tests/test_docstrings.py +433 -0
- linkedparticles-1.132.1/tests/test_document_scope.py +328 -0
- linkedparticles-1.132.1/tests/test_dogfood_corpus.py +358 -0
- linkedparticles-1.132.1/tests/test_dogfood_record.py +104 -0
- linkedparticles-1.132.1/tests/test_duplicate_suppression.py +722 -0
- linkedparticles-1.132.1/tests/test_egress_chokepoint.py +414 -0
- linkedparticles-1.132.1/tests/test_embedding_model_marker.py +163 -0
- linkedparticles-1.132.1/tests/test_engine_cli.py +197 -0
- linkedparticles-1.132.1/tests/test_equivalence.py +67 -0
- linkedparticles-1.132.1/tests/test_exporter_quality_threshold.py +438 -0
- linkedparticles-1.132.1/tests/test_exporters_registry.py +78 -0
- linkedparticles-1.132.1/tests/test_extract.py +2537 -0
- linkedparticles-1.132.1/tests/test_extraction_provider_model.py +291 -0
- linkedparticles-1.132.1/tests/test_extractor_ref.py +313 -0
- linkedparticles-1.132.1/tests/test_extractor_registry.py +479 -0
- linkedparticles-1.132.1/tests/test_fingerprint.py +50 -0
- linkedparticles-1.132.1/tests/test_generation_cascade.py +296 -0
- linkedparticles-1.132.1/tests/test_github_extractor.py +1686 -0
- linkedparticles-1.132.1/tests/test_granularity.py +32 -0
- linkedparticles-1.132.1/tests/test_graph_exporter.py +754 -0
- linkedparticles-1.132.1/tests/test_hackernews_extractor.py +561 -0
- linkedparticles-1.132.1/tests/test_http.py +249 -0
- linkedparticles-1.132.1/tests/test_id_norm.py +91 -0
- linkedparticles-1.132.1/tests/test_inbox.py +215 -0
- linkedparticles-1.132.1/tests/test_incremental.py +653 -0
- linkedparticles-1.132.1/tests/test_integration_audit.py +91 -0
- linkedparticles-1.132.1/tests/test_integration_journal_modality.py +82 -0
- linkedparticles-1.132.1/tests/test_integration_llm.py +341 -0
- linkedparticles-1.132.1/tests/test_integration_memory_benchmark.py +99 -0
- linkedparticles-1.132.1/tests/test_integration_polarity.py +98 -0
- linkedparticles-1.132.1/tests/test_integration_polarity_benchmark.py +89 -0
- linkedparticles-1.132.1/tests/test_integration_validity_benchmark.py +90 -0
- linkedparticles-1.132.1/tests/test_integrations_langchain.py +311 -0
- linkedparticles-1.132.1/tests/test_interchange.py +952 -0
- linkedparticles-1.132.1/tests/test_journal.py +405 -0
- linkedparticles-1.132.1/tests/test_jsonl_exporter.py +68 -0
- linkedparticles-1.132.1/tests/test_jsonld_context.py +95 -0
- linkedparticles-1.132.1/tests/test_layer_boundary.py +189 -0
- linkedparticles-1.132.1/tests/test_links_dedup.py +607 -0
- linkedparticles-1.132.1/tests/test_links_suggest.py +504 -0
- linkedparticles-1.132.1/tests/test_links_unmerge.py +569 -0
- linkedparticles-1.132.1/tests/test_lint.py +1170 -0
- linkedparticles-1.132.1/tests/test_lint_callouts.py +212 -0
- linkedparticles-1.132.1/tests/test_lint_citation_signal.py +56 -0
- linkedparticles-1.132.1/tests/test_lint_contested.py +436 -0
- linkedparticles-1.132.1/tests/test_lint_contestedness.py +118 -0
- linkedparticles-1.132.1/tests/test_lint_granularity.py +116 -0
- linkedparticles-1.132.1/tests/test_llm.py +572 -0
- linkedparticles-1.132.1/tests/test_llm_batch.py +503 -0
- linkedparticles-1.132.1/tests/test_llm_circuit_breaker.py +101 -0
- linkedparticles-1.132.1/tests/test_llm_openai_compat.py +691 -0
- linkedparticles-1.132.1/tests/test_logseq_exporter.py +793 -0
- linkedparticles-1.132.1/tests/test_markdown.py +774 -0
- linkedparticles-1.132.1/tests/test_mastodon_extractor.py +948 -0
- linkedparticles-1.132.1/tests/test_mcp_links_suggest.py +157 -0
- linkedparticles-1.132.1/tests/test_mcp_routing.py +305 -0
- linkedparticles-1.132.1/tests/test_mcp_server.py +1158 -0
- linkedparticles-1.132.1/tests/test_mcp_write.py +465 -0
- linkedparticles-1.132.1/tests/test_memory_compat.py +662 -0
- linkedparticles-1.132.1/tests/test_memory_projection.py +670 -0
- linkedparticles-1.132.1/tests/test_migration_035_properties_keys.py +146 -0
- linkedparticles-1.132.1/tests/test_narrative.py +194 -0
- linkedparticles-1.132.1/tests/test_narrative_cli.py +181 -0
- linkedparticles-1.132.1/tests/test_narrative_merge.py +138 -0
- linkedparticles-1.132.1/tests/test_narrative_synthesis.py +146 -0
- linkedparticles-1.132.1/tests/test_nomisma.py +363 -0
- linkedparticles-1.132.1/tests/test_notion_exporter.py +421 -0
- linkedparticles-1.132.1/tests/test_numista.py +456 -0
- linkedparticles-1.132.1/tests/test_observability.py +353 -0
- linkedparticles-1.132.1/tests/test_obsidian.py +1108 -0
- linkedparticles-1.132.1/tests/test_openapi_snapshot.py +54 -0
- linkedparticles-1.132.1/tests/test_operations_scope.py +42 -0
- linkedparticles-1.132.1/tests/test_operator_events.py +630 -0
- linkedparticles-1.132.1/tests/test_operator_verb_routing.py +128 -0
- linkedparticles-1.132.1/tests/test_owner_policy.py +407 -0
- linkedparticles-1.132.1/tests/test_packaging.py +218 -0
- linkedparticles-1.132.1/tests/test_particle_store.py +427 -0
- linkedparticles-1.132.1/tests/test_polarity.py +406 -0
- linkedparticles-1.132.1/tests/test_project_import.py +416 -0
- linkedparticles-1.132.1/tests/test_projection.py +991 -0
- linkedparticles-1.132.1/tests/test_projection_git.py +208 -0
- linkedparticles-1.132.1/tests/test_projection_manifest.py +547 -0
- linkedparticles-1.132.1/tests/test_property_keys.py +84 -0
- linkedparticles-1.132.1/tests/test_quality.py +173 -0
- linkedparticles-1.132.1/tests/test_query.py +1069 -0
- linkedparticles-1.132.1/tests/test_query_contestedness.py +330 -0
- linkedparticles-1.132.1/tests/test_query_gaps.py +152 -0
- linkedparticles-1.132.1/tests/test_query_source_trust.py +606 -0
- linkedparticles-1.132.1/tests/test_query_stance.py +164 -0
- linkedparticles-1.132.1/tests/test_rdf.py +741 -0
- linkedparticles-1.132.1/tests/test_reconcile.py +242 -0
- linkedparticles-1.132.1/tests/test_reddit.py +1115 -0
- linkedparticles-1.132.1/tests/test_reindex.py +887 -0
- linkedparticles-1.132.1/tests/test_relation_store.py +492 -0
- linkedparticles-1.132.1/tests/test_relevance.py +249 -0
- linkedparticles-1.132.1/tests/test_review.py +358 -0
- linkedparticles-1.132.1/tests/test_rule_sources.py +856 -0
- linkedparticles-1.132.1/tests/test_scope_exemption.py +449 -0
- linkedparticles-1.132.1/tests/test_skills.py +125 -0
- linkedparticles-1.132.1/tests/test_sql_safety.py +114 -0
- linkedparticles-1.132.1/tests/test_stance.py +80 -0
- linkedparticles-1.132.1/tests/test_store_adjacent_paths.py +108 -0
- linkedparticles-1.132.1/tests/test_store_engine.py +67 -0
- linkedparticles-1.132.1/tests/test_structural_query.py +415 -0
- linkedparticles-1.132.1/tests/test_structured_claim.py +881 -0
- linkedparticles-1.132.1/tests/test_subject_authority.py +196 -0
- linkedparticles-1.132.1/tests/test_subject_scope.py +231 -0
- linkedparticles-1.132.1/tests/test_subjects.py +974 -0
- linkedparticles-1.132.1/tests/test_subjects_split.py +458 -0
- linkedparticles-1.132.1/tests/test_synthesis_cache_integration.py +285 -0
- linkedparticles-1.132.1/tests/test_synthesis_cache_store.py +211 -0
- linkedparticles-1.132.1/tests/test_synthesis_topic.py +116 -0
- linkedparticles-1.132.1/tests/test_taxonomy_extractor.py +146 -0
- linkedparticles-1.132.1/tests/test_taxonomy_schema.py +82 -0
- linkedparticles-1.132.1/tests/test_taxonomy_store.py +240 -0
- linkedparticles-1.132.1/tests/test_transitions.py +85 -0
- linkedparticles-1.132.1/tests/test_trust_lens.py +479 -0
- linkedparticles-1.132.1/tests/test_url_mention_store.py +173 -0
- linkedparticles-1.132.1/tests/test_url_safety.py +422 -0
- linkedparticles-1.132.1/tests/test_utility.py +428 -0
- linkedparticles-1.132.1/tests/test_utility_feedback.py +196 -0
- linkedparticles-1.132.1/tests/test_utility_mining.py +555 -0
- linkedparticles-1.132.1/tests/test_utility_policy.py +341 -0
- linkedparticles-1.132.1/tests/test_utility_store.py +163 -0
- linkedparticles-1.132.1/tests/test_vault_import.py +582 -0
- linkedparticles-1.132.1/tests/test_version_guard.py +274 -0
- linkedparticles-1.132.1/tests/test_web_app.py +146 -0
- linkedparticles-1.132.1/tests/test_web_clipper_import.py +480 -0
- linkedparticles-1.132.1/tests/test_wiki_exporter.py +2367 -0
- linkedparticles-1.132.1/tests/test_wikidata_cache.py +113 -0
- linkedparticles-1.132.1/tests/test_wikidata_extractor.py +347 -0
- linkedparticles-1.132.1/tests/test_wikidata_importer.py +150 -0
- 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"}
|