Skip to article
Daedalus Development Group
← More from this project

George Sarris (0xcircuitbreaker) · · 3 min read

Verifying Agent Runs in CI with OpenTine 0.8

A practical CI design for artifact integrity, replay drift, semantic diff, signatures, and repository checks in OpenTine 0.8.

In this article

Define the proof obligation first

A CI job should not have one ambiguous “OpenTine passed” badge. OpenTine 0.8 exposes several checks because recorded consistency, authorship, replay stability, and repository structure are different properties.

GateQuestion
tine verifyIs this portable artifact internally consistent?
Signature verificationWas the canonical signed view authorized by a trusted key?
tine replay --verifyDoes the selected replay procedure reproduce the expected recorded structure?
tine diff --exit-codeDid the candidate run differ from the baseline?
tine fsckAre repository objects, links, refs, and graph structure valid?

None of those checks evaluates whether a model answer is correct. Put quality, safety, and task-specific evaluation beside provenance verification rather than hiding them inside one status.

Pin the release and the evidence

The pipeline should install the version whose behavior it asserts:

python -m pip install "opentine==0.8.0"
tine pricing check
tine verify artifacts/baseline.tine

Pinning the package does not pin a hosted model, mutable API, operating system, or repository checkout. Record or freeze those inputs separately when they are material to the gate.

Use cache replay for the artifact path

tine replay artifacts/baseline.tine --verify --json

This is the inexpensive reproducibility gate. OpenTine derives a cached replay in a temporary workspace, reads it back, derives it again, and compares identity, integrity, retained structure, and drift. It exits 0 on reproduction and 1 on drift.

The check writes nothing unless --save names a destination. Use --ignore-cost-drift only when accounting differences are explicitly non-blocking; structural drift still fails.

A pass shows that the fixed recorded transformation reproduced. It does not show that a live provider would emit the same output.

Treat a live harness rerun as a harder experiment

tine replay artifacts/hermes.tine --verify --harness hermes --harness-login-env --json

With a harness, OpenTine executes the external agent twice and compares the artifacts. A changed model response, web result, repository state, tool output, or timing field can surface as drift. This is useful for detecting nondeterminism, but it may be too volatile for every pull request.

Run it in a controlled nightly or release environment when live credentials, tools, or compute are involved. Keep side-effecting tools disabled, mocked, idempotent, or approval-gated: a provenance rerun does not undo an email, deployment, payment, or database write.

Make baseline comparison machine-readable

tine diff artifacts/baseline.tine artifacts/candidate.tine --json --exit-code

Exit 0 means identical and 1 means different. The JSON drift object separates structural from accounting changes and names source-only or replay-only content. A difference is evidence for a policy decision; it is not automatically a regression.

Pair the diff with an explicit evaluator. For example, reject a tool-path change on a locked workflow while allowing a catalog-only cost change after review.

Do not confuse integrity with authenticity

An unkeyed integrity digest detects accidental corruption and many edits, but anyone who can rewrite the file can recompute it. When authorship is part of the gate, require a trusted HMAC or Ed25519 verification path and fail closed when the signature is absent or invalid.

Keep signing keys outside the artifact and outside untrusted run content. Report which key policy was checked instead of reducing the result to “verified.”

Check repositories structurally

For v3 history:

tine fsck --repo history
tine repo-diff heads/main experiments/candidate --repo history --exit-code --json

fsck recomputes typed object IDs, validates canonical bodies, parent and causal links, refs, shallow boundaries, and cycles. It is the repository structural gate, not an evaluation or promotion.

Promotion should remain a separate operator action after the candidate has the required evaluation and attestation. A ref name is mutable; the run object it points to is immutable.

A practical CI order

  1. install the pinned OpenTine release;
  2. verify every portable input before reading or migrating it;
  3. run cache-replay verification;
  4. compare the candidate with the approved baseline;
  5. run domain-specific quality and safety tests;
  6. verify the required signature policy;
  7. migrate or record into the repository;
  8. run fsck;
  9. attach evaluation and attestation objects;
  10. promote only through an explicit release job.

This order keeps claims narrow. The final badge can say exactly what passed: artifact integrity, trusted signature, cached replay, structural diff policy, repository fsck, and application evaluation.

Non-claims

A green pipeline does not establish that model output is true, safe, unbiased, or permanently deterministic. It establishes only the checks the pipeline actually executed over the versions and inputs it retained.