How it works #
TensorChain keeps one kind of record: this was made from that, checked by this program, signed by this issuer. Everything else (licences, revocations, impact, the web app) is built from that record.
Fingerprints, not data #
Every object is named by the sha256 of its bytes. Change one byte and it is a different object with a different name, so a name is also a check: anyone holding the bytes can recompute it. When you ingest data, TensorChain records manifests: lists of [name, sha256, size] for the files you hold. The files stay with you. With names="hash", even the file names are sent as hashes.
Attestations: claims recomputed, then signed #
An attestation is a signed statement about a subject (a manifest, a dataset, a model, a render, a build). It names:
- the checker: a small, fixed program (bound to the sha256 of its own source) that recomputes the claims from the
evidence;
- the claims it computed, and the evidence it computed them from, by hash;
- its parents: the attestations it builds on (a model's parent is its dataset; a dataset's parents are the
manifests it read);
- the issuer who signed it, with an Ed25519 key whose history (issued, rotated, revoked) is itself a signed,
hash-linked log.
Verifying an attestation re-runs its checker on the stored evidence, re-checks every hash and signature, and walks its parents. The result is one of three words:
| Status | Means |
|---|---|
valid | the signature holds, the evidence re-hashes, the checker recomputes the same claims, nothing above it is revoked |
revoked | the proof still holds, but something it depends on was revoked (a source, a licence, a parent, the subject) |
invalid | the proof is broken: a changed byte, a forged signature, a compromised key, a checker that no longer agrees. invalid outranks revoked |
The objects of the AI workflow #
| Object | What it is | Checker |
|---|---|---|
| Source | something you ingest from (a folder, a bucket, a repo, a crawl), registered by its owner | the owner's signed registration |
| Licence | the owner's signed permission: this licensee may use this source for these uses until this date | (signed record) |
| Manifest | one batch of fingerprints from a source, chained to the previous one (prev) | ingest.manifest.v1 |
| Dataset | a set of sources as of their current manifests, for one consumer and one use, created only through the gate | ingest.dataset.v1 |
| Model | trained weights (by hash), with the dataset as its parent | ingest.model.v1 |
| Revocation | a signed decision by the target's own authority, with a reason; it deletes nothing | (signed record) |
The gate #
A dataset (and so a training run) is created only if, for every source:
- the source is registered (an unregistered source fails closed:
source_unregistered); - the owner has issued a licence to this consumer (
licence_required) for this use (use_not_licensed), still in date (licence_expired) and not revoked (licence_revoked); - the source itself is not revoked (
asset_revoked); - its newest data is attested (
batch_unattested).
Every decision, allowed or refused, is recorded. With the SDK, p.training(...) runs the gate before your training code; a refusal raises Refused(code) and your code never starts.
Impact and revocation #
Every attestation says what it was made from, so the records form a graph: source to manifests, manifest to the next manifest, manifests to datasets, dataset to models. Impact walks that graph forward from anything:
- pull a source: every manifest of it, every dataset over it, every model trained on those;
- pull one manifest (a poisoned batch): every later manifest of that source and every dataset reading through it,
but not the earlier ones;
- pull a model or a dataset by its attestation: what was built on it.
Revoking marks everything reached as revoked and makes the gate refuse it from then on. Nothing is deleted: the old records still verify as what they were, and the revocation is itself a record of who decided and why.
Three ways in, one behaviour #
| Python, offline | Python, hosted | Browser | |
|---|---|---|---|
| How | tensorchain.cloud.Local("file.sqlite") | tensorchain.cloud.Client(url, api_key) | the web app |
| Where the records live | one file on your machine | your tenant's store on tensorchain.io | your tenant's store |
| Auth | none | an API key | a session bound to a key your browser cannot export |
All three run the same operations (tensorchain.provenance_ops) and refuse with the same codes. A refusal never writes anything except, where the contract says so, the record of the refusal.
What is not claimed #
- A model is not proved good. TensorChain proves what a model is made of and whether it was allowed. Quality needs
its own evaluation.
- It is not a blockchain. There is no token and no consensus; records are signed by known issuers. A root hash
can be anchored to a public chain as a timestamp.
- A licence here is a signed permission, not legal advice. Your contracts decide what a licence means.
- See the security model for what each protection does and does not stop.