Private preview. Daggry is not publicly released.Roadmap
Skip to content

Why you can trust a run ​

An agent says "all tests pass". That sentence is a claim: the agent can be wrong, can misread a result, or can pass a test it rewrote. Daggry replaces the claim with records you can check yourself. Read this page if you decide whether to rely on a run, or if someone asks you why they should.

Without Daggry
“Done, all tests pass.”

The agent’s own words are the only record. A reviewer must trust them or redo the work.

With Daggry
validators run by code: 0 failed, sealed

Code ran the validators on a clean copy, wrote down the result and sealed it. Sealed means checked by code, then signed so that a later change shows.

The same work, reported twice. Without Daggry, the agent's own report is all you have. With Daggry, code runs the validators and seals the result into a trail you can verify.

The comparison shows two accounts of the same work. Without Daggry, the agent's own words are the only account. With Daggry, code checked the work again and sealed the result into a trail you can verify.

You get three things:

  • Validators. Code checks every step, so the same work always gets the same result.
  • An evidence trail. Every record is signed and linked to the records before it.
  • Open formats. Every record format is published, so you can read the trail with your own tools.

Validators: nobody can talk code into a pass ​

An agent that grades an agent can be persuaded, and can answer differently on different days. A validator is named code that checks the work and returns pass or fail. It reads records that are already sealed, and the same records always give the same result.

  1. readsSealed recordsResults code already checked and signed.
  2. runsA validatorFor example: every plan item has a proof that failed before the work and passes after it.
  3. decidesPass or failSame records, same result, every time.pass
  4. Gate opensThe next step starts.
    Gate stays closedOn a fail, the run stops or loops back.
the agent saysDone, all tests pass.
Bounced. No sealed record backs it, so the validator never sees it. A claim on its own opens no gate.
A validator reads only sealed records and returns pass or fail. The gate opens only on a pass. What the agent says about its own work is not a record, so it cannot open a gate.

The diagram shows sealed records going into a validator, the validator returning pass or fail, and that result opening or closing a gate.

For example, a validator reads a sealed plan and a sealed result. A plan item counts as covered only when a passing finding carries its id. The agent can say "C2 is covered", but the validator says so only when the result shows it.

Where does a validator run?

No validator runs where an agent can write, and none starts an agent.

  • A built-in validator ships with Daggry and runs in the control plane. It reads only sealed records.
  • A native validator is installed by the cluster admin. It reads only sealed records.
  • A script validator is a script of yours. It runs on a clean copy of the workspace, after the agent process has ended. The script reports a result, and Daggry, not the script, decides pass or fail.

To add your own, see Add a validator.

Sealing: a change to the trail shows ​

A record you can edit later proves nothing. To seal a record, Daggry takes its fingerprint, combines the fingerprint with a link to the trail so far, and signs the result. A fingerprint is a short code computed from every byte of the record. Each record therefore vouches for all the records before it.

  1. 1. recordA step's resultvalidators run: 0 failedWritten by code, not by the agent.
  2. 2. fingerprintA short code from every bytee0d3…Change one byte and the code changes.
  3. 3. combineJoined with the trail so fartrail 4b7a… + e0d3… = 5f19…The new link vouches for every record before it.
  4. 4. signSigned with a keysignature over 5f19…The signing key never enters a runner, so no agent can sign.
  5. 5. appendAdded to the end of the trailNothing can be edited afterwards without it showing.
Sealing a record: take its fingerprint, combine it with the link that ends the trail so far, sign the new link, and add it to the trail. Change any earlier record and every later fingerprint stops matching.

The diagram shows a record becoming a fingerprint, the fingerprint combined with the trail so far, and the combination signed.

Suppose someone changes the exit_code of an old record from 1 to 0. Its fingerprint changes, so its signature fails, and so does every later record. One command finds the change.

sh
daggry verify
text
daggry: entry 2: digest does not match the content

The output says entry for a record and digest for a fingerprint. Every record format is a published JSON Schema under /schemas/ on this site, so your own tools can read the trail too. See Verify a run.

What a seal does not prove ​

A seal is not a quality stamp: a result is only as good as the validator that produced it.

What a sealed record contains. The result is what the step produced: its kind, its id and its body. Code adds who produced it, when, which records it builds on and which key signs it. The fingerprint is computed from all of that, and the signature is made with a key that never enters a runner. A seal proves that a validator ran and that the record is unchanged. It does not prove that you chose the right validators.

The trail is tamper-evident, not tamper-proof. daggry verify takes the public key from the same control plane that serves the trail. So it proves this: nobody without the signing key changed, reordered or removed a record in the middle of the trail. Two cases need a signed copy of the newest link, kept outside the cluster: someone drops the newest records, or someone with the signing key rewrites everything. For every field of a record, see the Evidence record format.

Related:

Sponsored by