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:

evidence;

manifests it read);

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:

StatusMeans
validthe signature holds, the evidence re-hashes, the checker recomputes the same claims, nothing above it is revoked
revokedthe proof still holds, but something it depends on was revoked (a source, a licence, a parent, the subject)
invalidthe 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 #

ObjectWhat it isChecker
Sourcesomething you ingest from (a folder, a bucket, a repo, a crawl), registered by its ownerthe owner's signed registration
Licencethe owner's signed permission: this licensee may use this source for these uses until this date(signed record)
Manifestone batch of fingerprints from a source, chained to the previous one (prev)ingest.manifest.v1
Dataseta set of sources as of their current manifests, for one consumer and one use, created only through the gateingest.dataset.v1
Modeltrained weights (by hash), with the dataset as its parentingest.model.v1
Revocationa 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:

  1. the source is registered (an unregistered source fails closed: source_unregistered);
  2. 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);
  3. the source itself is not revoked (asset_revoked);
  4. 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:

but not the earlier ones;

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, offlinePython, hostedBrowser
Howtensorchain.cloud.Local("file.sqlite")tensorchain.cloud.Client(url, api_key)the web app
Where the records liveone file on your machineyour tenant's store on tensorchain.ioyour tenant's store
Authnonean API keya 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 #

its own evaluation.

can be anchored to a public chain as a timestamp.