Zero-trust engineering without zero-trust psychology
Scientific integrity infrastructure for AI-assisted research.
- 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.
-
01
policy
The owner names the protected files in a policy: data, ground truth, evaluation code.
zerotrust.yaml -
02
seal
zerotrust makes the hashes of those files, and the owner signs them and the policy.
zerotrust seal -
03
anchor
The seal goes into the anchor: a folder outside the project. A list of hashes in the project cannot do this, because an agent can write that list.
--anchor <folder> -
04
verify
zerotrust compares the project with the newest seal. An honest user sees one line.
PASS · FAIL · ERROR
ZEROTRUST / Terminal
[02] Quickstart
Three commands to a verifiable result.
One mark. Native to the terminal. Built to stay small.
-
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 -
02
Policy
In the project, make the policy. Then name the protected paths in
zerotrust.yaml.zerotrust initecho " data/: immutable" >> zerotrust.yaml -
03
Seal
Put your public key into the anchor: a folder outside the project. Then make a seal.
ssh-keygenasks 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:... -
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.
Or let an agent do it
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 filesverifyexamines.verifycannot read a protected file.ERROR. A check that did not run is not a pass.- No change.
PASS, in one line.
Tomorrow / not built
- Stage 3
runandaudit - Each result has a receipt in the anchor.
- Stage 4
append_only - The verdict names each record that changed.
- Stage 5
reproduce - 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.