Zero-trust engineering without zero-trust psychology

Scientific integrity infrastructure for AI-assisted research.

v0.1.0-alpha.1

try it install

Open source
Deterministic
Cryptographically authenticated
Model-agnostic

01.1 / How it works

The agent must not control the evidence that judges its work.

The same agent can write the acquisition code, modify the data, train the model, implement the evaluation and report the results. That is an enormous concentration of trust.

  1. 01

    policy

    The owner names the files that the agent must not change: data, ground truth, evaluation code.

    zerotrust.yaml
  2. 02

    seal

    zerotrust hashes the protected files. The owner signs the hashes and the policy.

    zerotrust seal
  3. 03

    anchor

    The seal goes into an anchor that the agent cannot write to.

    --anchor <folder>
  4. 04

    verify

    zerotrust compares the protected files and policy with the signed seal.

    PASS · FAIL · ERROR

ZEROTRUST / Terminal

[02] Quickstart

Three commands to a verifiable result.

Written in Rust. Two direct dependencies. No model or network in a verdict.One mark. Native to the terminal. Built to stay small.

  1. 01

    Install

    To build from source, you need Rust 1.85. zerotrust is not on crates.io or PyPI: the packages with that name there are from other people. Release files, with the hash check

    git clone --branch v0.1.0-alpha.1 https://github.com/Amillanv/zerotrustcargo install --locked --path zerotrust
  2. 02

    Policy

    In the project, make the policy. Then name the protected paths in zerotrust.yaml.

    zerotrust initecho "  data/: immutable" >> zerotrust.yaml
  3. 03

    Seal

    Put your public key into the anchor: a folder outside the project. Then make a seal. ssh-keygen asks for your passphrase. zerotrust does not read the key file.

    zerotrust init --anchor <anchor> --key ~/.ssh/id_ed25519.pubzerotrust seal --anchor <anchor> --key ~/.ssh/id_ed25519seal 1 is in the anchor. Protected files: 1. Key: SHA256:...
  4. 04

    Verify

    Examine the project at each later time. A check that did not run is not a pass. Watch it run

    zerotrust verify --anchor <anchor>PASS seal 1 SHA256:...

ZEROTRUST / Verification

[03] Demo

Go on. Try to fake a result.

Five projects. In each one the owner sealed the evidence: the data, and the code that judges the result. Play the agent and change anything. verify answers in one line.

project/ The project

Or let an agent do it

ZEROTRUST_ANCHOR=../anchor In your browser
zerotrust verify
PASS seal 1 SHA256:...
echo $?
0

Seal 1 holds. Now play the agent: change something.

Today / v0.1.0-alpha.1

One bit changes in a protected file.
FAIL, with the name of the file and the blocks that changed.
A protected file is deleted, or a new file is in a protected folder.
FAIL, with the name of the file.
The policy of the project changes.
FAIL. The sealed policy decides which files verify examines.
verify cannot read a protected file.
ERROR. A check that did not run is not a pass.
The anchor has a different signing key.
FAIL with the expected fingerprint.
An older seal is restored.
FAIL with the trusted minimum seal number.
No change.
PASS, in one line.

Tomorrow / not built

Stage 3run and audit
Independent evidence of how a result was produced and evaluated.
Stage 4append_only
The verdict names each record that changed.
Stage 5reproduce
A second run of a receipt gives the same results, or zerotrust shows the difference.
Stage 6 and upOne reader in each stage
XLSX, NPZ, OWL, images, and others.

zerotrust shows a change. It does not show the truth, and it does not stop a change. The limits, in SPEC.md

The demo is a copy of the check, not the program. This page makes the SHA-256 hashes of these files and examines an Ed25519 signature in your browser, and nothing leaves the page. The lines have the form that zerotrust verify gives. The five projects are short stand-ins written for this page: zerotrust has no adapter for a benchmark. It protects the paths that the policy names.