Docs/Administration/Captured Records Integrity

Captured Records Integrity

Captured records integrity seals the input and output of every trace and observation when ANTS Platform receives them, so anyone can later prove that a stored prompt or response is what was received. Each day's seals are summarised in a digest written to S3 Object Lock storage in compliance mode, which nobody can change or delete before its retention date, including the account root user.

ℹ

Off by default. A self-hosted deployment on AWS S3 turns it on with global.captureSeal.enabled (see Turn it on). With Azure or Google Cloud storage it stays off. Data received before it is turned on is not sealed.

What you see

Verify a trace

On a trace, Verify (next to bookmark and publish) opens Verify captured records: one row per trace and observation, with a status for its input and output.

StatusMeaning
VerifiedMatches a sealed record in a locked daily digest
Sealed tonightMatches a sealed record; that day's digest is written after 00:30 UTC
Not sealedReceived before sealing was on
Changed after captureNo sealed record has this content. The tooltip says when the cause is a field over 1 MB that was cut when it was stored.
DeletedSealed content that is no longer stored, for example after data retention removed it

Verify needs trace read access in AI governance. The check hashes the stored content on the server, so the result reveals no content.

Download a proof

Download proof saves a JSON file for an auditor. It holds the hashes, the path from each record to its day's digest, and the bucket, key and version of each locked digest. It contains prompt and response content only when you may read it, with the same rules as the trace view; otherwise hashes only.

Daily check

Every day ANTS Platform recomputes the last two whole days and checks the digests, their chain and the locked objects for the last 7 days; a weekly check covers older days. A break raises the Captured records integrity check failed automation event (severity High). The audit log page shows a Captured records badge with the latest result.

People with only Budget AI roles, and organizations that use only Budget AI, see none of this.

Check a proof without ANTS Platform

An auditor needs the proof file, read access to the digest bucket with the AWS CLI, and the verification script from ANTS Platform (Node 22 with tsx). The script uses only standard cryptography, so it can be read and run on its own.

shell
mkdir digests aws s3api get-object --bucket <bucket> --key <key> --version-id <version> digests/<day>.json aws s3api get-object-retention --bucket <bucket> --key <key> --version-id <version> > digests/<day>.retention.json tsx scripts/verify-capture-proof.ts trace-<id>-proof.json --digests digests

The bucket, key and version of each day are in the proof, and the script prints the exact commands when files are missing. For each field it recomputes the content hash, the record hash, the hour and day roots and the digest, and compares them with the locked object and its compliance-mode retention:

code
[OK] trace <id> input: sealed on 2026-11-26, locked until 2036-11-24T00:30:04.000Z [INFO] observation <id> output: not_sealed 1 verified, 0 failed

Turn it on

Create the bucket

Create an S3 bucket with Object Lock enabled at creation and versioning on, default retention in compliance mode (for example 3650 days), SSE-KMS encryption and public access blocked. Compliance mode cannot be shortened or removed afterwards, so check the retention before you create it.

Grant access

Through IRSA, give the worker s3:PutObject, s3:PutObjectRetention, s3:GetObject, s3:GetObjectRetention, s3:GetObjectVersion, s3:ListBucket and kms:GenerateDataKey and kms:Decrypt on the key, with no delete. Give web s3:GetObject, s3:GetObjectRetention, s3:GetObjectVersion and kms:Decrypt.

Set the Helm values

yaml
global: captureSeal: enabled: true bucket: "your-capture-seal-bucket" region: "us-east-1" retentionDays: 3650

prefix, endpoint and forcePathStyle are optional.

Roll out

Upgrade the worker first, then web and the gateway.

Retention and deletion

  • Seals follow trace retention: they are deleted a few days after the longest trace period that applies to the project, and kept for up to 10 years when traces are kept indefinitely.
  • After content is deleted, Verify shows Deleted. The locked digests stay for their full retention and keep proving what existed on each day.
  • Deleting a project removes its seals; its locked digests stay until their retention ends.

What it proves, and what it does not

  • It proves the stored content is what ANTS Platform received. It does not prove that what was received is what a person typed: a client that sends altered data seals the altered data.
  • It detects changes; it does not prevent them. A change made directly in the database shows as Changed after capture and fails the next daily check.
  • Hashes are not salted, so keep the seal table to the same readers as traces.
  • There is no external timestamp authority; the Object Lock retention date fixes when each digest existed.

Sealing adds well under a millisecond per typical record.

Next steps

© 2026 ANTS Platform, Inc.Docs v1.0 · Last updated June 2026