linkedparticles
Particles is shared memory for humans and AI agents. Each particle is one claim, plus what you need to judge it: who said it, where, when, and how confident they were. Facts, opinions, and memories are all claims, recorded the same way as particles. Particles are not edited or deleted. Particles are superseded, retracted, or disputed in the open. How much to trust it is a perspective applied at query time, never baked into the record.
The Engine layer of the Particles reference implementation — the state-holding SDK and its surfaces. This is the package you install to actually run a Particles knowledge store. The core loop:
- deposit source material into an append-only corpus;
- extract claim-granularity particles with subject resolution and confidence/provenance metadata;
- query with effective-confidence ranking and subject filtering;
- lint for contradictions and staleness;
- review inconsistencies into a reusable source-trust policy.
When your agent is wrong, you can see exactly why, and fix it at the source.
The Engine is a library first. The FastAPI server, the CLI, the read-only MCP server, and the resident daemon are all surfaces over it.
Why Particles?
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.
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.
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.
Design rationale
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.
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.
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.
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.
Install
pip install linkedparticles
This depends on linkedparticles-core (the store-free Client layer) — it is
pulled in automatically.
Architecture
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.
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.
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.
The Why Particles?, Design rationale, and Architecture sections are cited projections of a particle store, not hand-authored prose. Each marked block is rendered from
docs/projection/readme.yamland the corpus bundle committed beside it, and the trailer under each block names the exact claims it was built from. Edit the manifest or the underlying particles and re-render — never the prose between the sentinels. Check it yourself:python scripts/projection_drift.pyrestores the bundle into a throwaway store, re-derives the deterministic render, and fails if any block has drifted from the claims it cites.This is the project eating its own dogfood: the README argues for claim-granularity knowledge with provenance, and is itself assembled that way.
The three repositories
| Repo | What it is |
|---|---|
particles-standard |
The standard: whitepaper, technical specification, normative schema + SHACL artifacts, conformance fixtures |
particles-core-py |
The Python Client layer (linkedparticles-core) |
particles-engine-py |
This repo — the Python Engine layer + surfaces (linkedparticles) |
Deployment
Container and chart artifacts live under deploy/. The engine ships
as a single-writer service; see the
operator guide.
License
Apache-2.0. See LICENSE and NOTICE.
Contributing
See CONTRIBUTING.md and ARCHITECTURE.md. Contributions are accepted under a Developer Certificate of Origin sign-off — there is no CLA.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file linkedparticles-1.132.1.tar.gz.
File metadata
- Download URL: linkedparticles-1.132.1.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e177c55d027b8cabae39292041701b3a9ae0f3e82c2b265dd9937ca00076fcc
|
|
| MD5 |
1d7867bc8505555cfe6136605cd33090
|
|
| BLAKE2b-256 |
93d6475fa39dbbb12fb2068f8f4ca04db18c231b6cdadb6289d078adc6a1739e
|
Provenance
The following attestation bundles were made for linkedparticles-1.132.1.tar.gz:
Publisher:
publish.yml on LinkedParticles/particles-engine-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
linkedparticles-1.132.1.tar.gz -
Subject digest:
0e177c55d027b8cabae39292041701b3a9ae0f3e82c2b265dd9937ca00076fcc - Sigstore transparency entry: 2569373721
- Sigstore integration time:
-
Permalink:
LinkedParticles/particles-engine-py@38e76746eea425373b83e13808355471506c91dd -
Branch / Tag:
refs/tags/v1.132.1 - Owner: https://github.com/LinkedParticles
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@38e76746eea425373b83e13808355471506c91dd -
Trigger Event:
release
-
Statement type:
File details
Details for the file linkedparticles-1.132.1-py3-none-any.whl.
File metadata
- Download URL: linkedparticles-1.132.1-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89e66f5af9fea6b6a0ad9b18ba63a2babe74741be64c7b07821d44aa34f3ec7b
|
|
| MD5 |
040efcbb1833dddc04dfc035ffd9a6d3
|
|
| BLAKE2b-256 |
6661a2856c3090b03c3bcd2512f886f9b55b5f549fc1a1f03e85e34e27c4e502
|
Provenance
The following attestation bundles were made for linkedparticles-1.132.1-py3-none-any.whl:
Publisher:
publish.yml on LinkedParticles/particles-engine-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
linkedparticles-1.132.1-py3-none-any.whl -
Subject digest:
89e66f5af9fea6b6a0ad9b18ba63a2babe74741be64c7b07821d44aa34f3ec7b - Sigstore transparency entry: 2569373731
- Sigstore integration time:
-
Permalink:
LinkedParticles/particles-engine-py@38e76746eea425373b83e13808355471506c91dd -
Branch / Tag:
refs/tags/v1.132.1 - Owner: https://github.com/LinkedParticles
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@38e76746eea425373b83e13808355471506c91dd -
Trigger Event:
release
-
Statement type: