Audit trail
Export a task's or a period's decision trail with signed checkpoints, and verify offline that no record was changed, removed, added or reordered.
What you get#
Every task has a history: created, who was asked and when, deliveries, page opens, each answer, the decision, the callbacks, and anything TaskToHuman support did. TaskToHuman seals that history into a hash chain per task and signs each organization's chains into checkpoints. You can download it and check it yourself, offline, with a small verifier.
Two exports, on plans that include Audit export (see Pricing):
- One task: on the task's page in the app, Audit trail → Verification file (.jsonl). It holds the task's events, the latest checkpoint that covers them with a proof that the task is in it, and the events sealed since.
- A period: Organization → Audit export in the app. It holds every checkpoint signed in those UTC days with all their tasks, and every event of those tasks. At most 31 days per file; the file is gzipped (
.jsonl.gz).
Both can also be downloaded as a spreadsheet (.csv, one row per event with its hashes). The spreadsheet is for reading: only the .jsonl file can be verified.
Owners, admins and members with the read-only role can export (permission audit.export). A member whose access is limited to some workspaces can export single tasks only: a period export lists every workspace's task ids. Per organization, at most 60 task exports and 10 period exports an hour.
Exports hold ids, codes, times and hashes: no payload values, titles, comments, callback bodies or human names. The only free text in them is the reason TaskToHuman support gave for an action and the error message of a failed delivery (notification_failed, callback_attempt), which can name a recipient address or quote your endpoint's response.
What is in the trail#
Every task event, from every part of TaskToHuman, including:
answered: each person's answer on a consensus step, with their human id, the answer, the running counts,overridefor a person who can decide alone (truewhen they decided for everyone,falsewhen they added an ordinary vote), and the hash of their comment;support_action: what TaskToHuman support did, with the reason they gave, includingcontent_viewed(a break-glass look at the task's content). Support staff appear ass:followed by 32 hex digits: a pseudonym that is the same for the same person within your organization and never reveals who it is.
Some events carry SHA-256 hashes (hex) of content, so you can show later which content a decision was about without revealing it:
| Event | Key | What was hashed (UTF-8) |
|---|---|---|
created | payload_sha256 | The payload JSON as TaskToHuman stored it: for POST /v1/tasks the exact text of the payload object you sent; for webhook intake and MCP the mapped object as TaskToHuman wrote it. GET /v1/tasks/{id} returns the same value as payload_sha256: record it if you want to prove a payload later. |
created | title_sha256 | The task's title. |
created | test | true on a test task. |
created | chosen_steps | Not a hash: the numbers of the open steps whose human the task's creator named, such as 1,3. Absent when the chain had none. Who was asked is in the notification events. |
answered, resolved | comment_sha256 | The comment, trimmed, when there is one. |
resolved | edited_payload_sha256 | The edited payload JSON as stored, after an edit. |
callback_queued | body_sha256 | The exact callback body your endpoint received (the bytes the signature covers). |
Tasks created before the audit trail started have no content hashes (events are never rewritten).
Check an export#
The verifier is one file, Node.js 18 or newer, no dependencies. Save it as verify-audit.mjs, download the published keys, then:
curl -o tth-audit-keys.json https://api.tasktohuman.com/.well-known/tth-audit-keys.json
node verify-audit.mjs tth-audit-2026-11-01-to-2026-11-30.jsonl.gz --keys tth-audit-keys.jsonIt prints one of three results and exits with its code:
OK(exit 0): every event in the file is covered by a signed checkpoint and everything checks out.NOT PROVEN(exit 3): nothing failed, but some events are not in a checkpoint yet, so nothing signed vouches for them. This happens with a task export downloaded within about 10 minutes of the task's latest events; the verifier lists them. Download the export again a little later.FAILED(exit 1): the file was changed, cut or doesn't belong together; each reason is listed.
A period export also lists each task it accepts as deleted by retention, with the task's signed creation time and the cut-off that excused it: check them against your plan's history. Options:
--keys <file>: the published signing keys. Without it the verifier trusts the keys inside the export and says so.--previous <older export>: an earlier period export you kept. The new one must contain the same checkpoints where they overlap, must not end before it, and must contain its newest checkpoint or continue right after it: this catches history that was cut off at the end or signed again from some point. Export a period that starts where the kept one ended.--payload <file>: a task's payload file, compared withpayload_sha256(byte for byte: hash exactly what TaskToHuman stored).
It checks that every checkpoint is signed by a published key, that checkpoints follow each other without a gap, that each task's events give the head its checkpoint signed, that every record is in canonical form, and that a task missing from a period export is one your plan's history or retention could have removed. The export's cut-off dates are not signed: the verifier refuses any later than the shortest history a plan keeps (7 days before now) and lists every task they excuse. It also counts events that were sealed late (more than an hour after they happened) and events still waiting for a checkpoint.
#!/usr/bin/env node
// Verifies a TaskToHuman audit export offline (scheme v1). Node 18 or newer, no dependencies.
//
// node verify-audit.mjs <export.jsonl | export.jsonl.gz>
// [--keys tth-audit-keys.json] the published keys (recommended)
// [--previous older.jsonl.gz] an older range export you kept
// [--payload payload.json] a task's payload, to compare with payload_sha256
//
// Prints OK, NOT PROVEN or FAILED with the reasons. Exits 0 when every event is proven by a signed checkpoint, 3 when
// nothing failed but some events are not in a checkpoint yet (a task export downloaded within minutes of them: they are
// listed), and 1 when verification fails. Tasks a period export accepts as deleted by retention are listed with their
// signed creation time and the export's cut-off: check them against your plan's history. The same rules as TaskToHuman's own nightly check (AuditVerifier.cs).
import { createHash, createPublicKey, verify } from "node:crypto";
import { readFileSync } from "node:fs";
import { gunzipSync } from "node:zlib";
const sha256 = (data) => createHash("sha256").update(data).digest();
const hex = (bytes) => Buffer.from(bytes).toString("hex");
// Canonical JSON: sorted keys, no spaces; strings, safe integers, null and objects only.
export function canonical(value) {
if (value === null) return "null";
if (typeof value === "string") return JSON.stringify(value);
if (typeof value === "number" && Number.isSafeInteger(value)) return String(value);
if (typeof value === "object" && !Array.isArray(value)) {
const keys = Object.keys(value).sort();
return `{${keys.map((k) => `${JSON.stringify(k)}:${canonical(value[k])}`).join(",")}}`;
}
throw new Error("value not allowed in a canonical record");
}
// Parses a canonical string; null unless re-writing it gives the same text
// (this refuses duplicate keys, floats, spaces and anything else).
export function parseCanonical(text) {
try {
const value = JSON.parse(text);
if (value === null || typeof value !== "object" || Array.isArray(value)) return null;
return canonical(value) === text ? value : null;
} catch {
return null;
}
}
// The task chain: h0 = 32 zero bytes, h(i) = SHA-256(h(i-1) || SHA-256(record i)).
export function chainHeads(records) {
let h = Buffer.alloc(32);
return records.map((record) => {
h = sha256(Buffer.concat([h, sha256(Buffer.from(record, "utf8"))]));
return hex(h);
});
}
// RFC 6962 Merkle tree hash over leaves (canonical strings).
const leafHash = (leaf) => sha256(Buffer.concat([Buffer.from([0]), Buffer.from(leaf, "utf8")]));
const node = (l, r) => sha256(Buffer.concat([Buffer.from([1]), l, r]));
const split = (n) => {
let k = 1;
while (k * 2 < n) k *= 2;
return k;
};
function mth(hashes) {
if (hashes.length === 0) return sha256(Buffer.alloc(0));
if (hashes.length === 1) return hashes[0];
const k = split(hashes.length);
return node(mth(hashes.slice(0, k)), mth(hashes.slice(k)));
}
export const merkleRoot = (leaves) => hex(mth(leaves.map(leafHash)));
// RFC 9162 2.1.3.2 inclusion proof check. It proves the leaf is in the tree that has this root at this size, so size
// and root must both come from the signed checkpoint: the same path can also fit another size (RFC 9162 2.1.3.2).
export function merkleVerify(leaf, index, size, path, root) {
if (!Number.isSafeInteger(index) || !Number.isSafeInteger(size) || !Array.isArray(path)) return false;
if (index < 0 || index >= size) return false;
let fn = index;
let sn = size - 1;
let r = leafHash(leaf);
for (const p of path) {
if (sn === 0 || !/^[0-9a-f]{64}$/.test(p)) return false;
const ph = Buffer.from(p, "hex");
if (fn % 2 === 1 || fn === sn) {
r = node(ph, r);
while (fn % 2 === 0 && fn !== 0) {
fn = Math.floor(fn / 2);
sn = Math.floor(sn / 2);
}
} else r = node(r, ph);
fn = Math.floor(fn / 2);
sn = Math.floor(sn / 2);
}
return sn === 0 && hex(r) === root;
}
// Ed25519 with a raw 32-byte public key (hex).
const SPKI = Buffer.from("302a300506032b6570032100", "hex");
export function ed25519Verify(publicKeyHex, message, signatureHex) {
try {
if (!/^[0-9a-f]{64}$/.test(publicKeyHex) || !/^[0-9a-f]{128}$/.test(signatureHex)) return false;
const key = createPublicKey({ key: Buffer.concat([SPKI, Buffer.from(publicKeyHex, "hex")]), format: "der", type: "spki" });
return verify(null, Buffer.from(message, "utf8"), key, Buffer.from(signatureHex, "hex"));
} catch {
return false;
}
}
const time = (text) => Date.parse(text);
const LATE_MS = 60 * 60 * 1000;
const DAY_MS = 24 * 60 * 60 * 1000;
// The shortest history any plan keeps (and the test tasks' retention): an honest export's cut-offs are at least this far
// back from when it was made, so never later than this before now (with a day's leeway for clocks).
const SHORTEST_HISTORY_MS = 7 * DAY_MS;
const CLOCK_LEEWAY_MS = DAY_MS;
const iso = (ms) => new Date(ms).toISOString();
/**
* Verifies the text of an export. `keys`: { id: publicKeyHex } from the published list (null trusts the file's own
* key lines, with a warning). `previous`: the text of an older range export of the same organization. `now`: the time
* to check the cut-off dates against (default: this computer's clock).
*
* `ok`: nothing failed. `proven`: ok, and nothing is listed in `unproven` (events no checkpoint covers yet). `status`:
* "OK", "NOT PROVEN" or "FAILED". `deleted`: the tasks accepted as deleted by retention, each with its signed creation
* time and the cut-off that excused it (the cut-offs are the export's own, unsigned).
*/
export function verifyAuditExport(text, { keys = null, previous = null, now = Date.now() } = {}) {
const failures = [];
const warnings = [];
const unproven = [];
const deleted = [];
const fail = (m) => failures.push(m);
const result = () => {
const ok = failures.length === 0;
const proven = ok && unproven.length === 0;
return { ok, proven, status: proven ? "OK" : ok ? "NOT PROVEN" : "FAILED", failures, warnings, unproven, deleted, counts };
};
const counts = { events: 0, checkpoints: 0, tasks: 0, pending: 0, purged: 0, lateSealed: 0 };
let lines;
try {
lines = text.split("\n").filter((l) => l.trim()).map((l) => JSON.parse(l));
} catch (e) {
fail(`unreadable file: ${e.message}`);
return result();
}
if (lines.length < 2 || lines[0].kind !== "export" || lines.at(-1).kind !== "end") {
fail("the file must start with an export line and end with an end line (cut off?)");
return result();
}
const header = lines[0];
if (header.v !== 1) {
fail("unknown scheme version");
return result();
}
const org = header.org;
const isTask = header.scope.type === "task";
// Keys.
let known = keys;
if (!known) {
known = {};
for (const k of lines.filter((l) => l.kind === "key")) {
if (k.id in known) fail("a key id appears twice");
known[k.id] = k.public_key;
}
warnings.push("keys taken from the file itself: compare them with the published keys (--keys)");
}
// Checkpoints: canonical statement of this organization, signed by a known key.
const checkpoints = [];
for (const line of lines.filter((l) => l.kind === "checkpoint")) {
const s = parseCanonical(line.statement);
if (!s || s.kind !== "tth.audit.checkpoint" || s.alg !== "Ed25519" || s.v !== 1) {
fail(`checkpoint ${line.seq}: the statement is not a canonical v1 checkpoint`);
continue;
}
if (s.org !== org || s.seq !== line.seq) {
fail(`checkpoint ${line.seq}: the statement names another organization or seq`);
continue;
}
if (!(s.key in known)) fail(`checkpoint ${line.seq}: signed with unknown key ${s.key}`);
else if (!ed25519Verify(known[s.key], line.statement, line.signature)) fail(`checkpoint ${line.seq}: the signature is not valid`);
checkpoints.push({ line, seq: s.seq, prev: s.prev, root: s.root, leaves: s.leaves, hash: hex(sha256(Buffer.from(line.statement, "utf8"))), signedAt: time(s.signed_at) });
}
// Events, grouped by task in file order, indexes 0..n-1.
const events = new Map();
let current = null;
const closed = new Set();
for (const line of lines.filter((l) => l.kind === "event")) {
if (line.task !== current) {
if (current !== null) closed.add(current);
if (closed.has(line.task)) fail(`task ${line.task}: its events are not together`);
current = line.task;
}
if (!events.has(line.task)) events.set(line.task, { records: [], at: [] });
const entry = events.get(line.task);
const r = parseCanonical(line.record);
if (!r || r.v !== 1) fail(`task ${line.task}: event ${entry.records.length} is not a canonical v1 record`);
else if (r.org !== org || r.task !== line.task) fail(`task ${line.task}: event ${entry.records.length} belongs to another organization or task`);
if (line.index !== entry.records.length) fail(`task ${line.task}: events out of order or missing at index ${entry.records.length}`);
entry.records.push(line.record);
entry.at.push(r ? time(r.at) : 0);
}
for (const entry of events.values()) entry.heads = chainHeads(entry.records);
const total = [...events.values()].reduce((n, e) => n + e.records.length, 0);
const end = lines.at(-1);
if (end.events !== total || end.checkpoints !== checkpoints.length) fail("the end line's counts don't match the file (lines removed or added)");
counts.events = total;
counts.checkpoints = checkpoints.length;
counts.tasks = events.size;
const pending = new Map(lines.filter((l) => l.kind === "pending").map((l) => [l.task, l.events]));
counts.pending = [...pending.values()].reduce((n, p) => n + p, 0);
const readLeaf = (leafText, seq) => {
const l = parseCanonical(leafText);
if (!l || typeof l.task !== "string" || !Number.isSafeInteger(l.count) || typeof l.head !== "string" || typeof l.created !== "string" || !Number.isSafeInteger(l.test)) {
fail(`checkpoint ${seq}: a leaf is not canonical`);
return null;
}
return { task: l.task, count: l.count, head: l.head, created: time(l.created), test: l.test === 1 };
};
const checkLeaf = (leaf, seq) => {
const entry = events.get(leaf.task);
if (!entry) return false;
if (leaf.count < 1 || leaf.count > entry.records.length) fail(`task ${leaf.task}: checkpoint ${seq} covers ${leaf.count} events, the file has ${entry.records.length} (events removed?)`);
else if (entry.heads[leaf.count - 1] !== leaf.head) fail(`task ${leaf.task}: the events don't match checkpoint ${seq} (changed, removed, added or reordered)`);
return true;
};
if (isTask) {
const taskId = header.scope.task;
if ([...events.keys()].some((t) => t !== taskId)) fail("a task export holds events of another task");
let covered = 0;
if (checkpoints.length > 1) fail("a task export holds one checkpoint");
else if (checkpoints.length === 1) {
const cp = checkpoints[0];
const { index, size, path } = cp.line.proof;
if (size !== cp.leaves || !merkleVerify(cp.line.leaf, index, cp.leaves, path, cp.root)) fail(`checkpoint ${cp.seq}: the task's leaf is not in the signed root`);
const leaf = readLeaf(cp.line.leaf, cp.seq);
if (leaf) {
if (leaf.task !== taskId) fail(`checkpoint ${cp.seq}: the leaf names another task`);
else if (!checkLeaf(leaf, cp.seq)) fail(`task ${taskId}: no events in the file`);
covered = leaf.count;
}
}
const n = events.get(taskId)?.records.length ?? 0;
if (n - covered !== (pending.get(taskId) ?? 0)) fail(`task ${taskId}: ${n - covered} events after the checkpoint, the pending line says ${pending.get(taskId) ?? 0}`);
// Nothing signed vouches for events after the checkpoint (or for any event without one): they could have been
// changed, removed or added. Download again once the next checkpoint is signed (about 10 minutes).
if (n > covered) unproven.push(`task ${taskId}: events ${covered}..${n - 1} are not in a checkpoint yet${checkpoints.length === 0 ? " (the file has no checkpoint)" : ""}: download again in about 10 minutes`);
} else {
const from = time(`${header.scope.from}T00:00:00Z`);
const cutoff = header.retention_cutoff ? time(header.retention_cutoff) : null;
const testCutoff = time(header.test_retention_cutoff);
// The cut-offs come from the export's unsigned header: a later one would excuse deleting recent tasks.
const latest = now - SHORTEST_HISTORY_MS + CLOCK_LEEWAY_MS;
for (const [name, value] of [["retention_cutoff", cutoff], ["test_retention_cutoff", testCutoff]]) {
if (value !== null && !(value <= latest)) fail(`the export's ${name} (${header[name]}) is later than any plan's history allows (${iso(latest)})`);
}
const reached = new Map();
const purged = new Set();
let before = null;
for (const cp of checkpoints) {
if (before && (cp.seq !== before.seq + 1 || cp.prev !== before.hash)) fail(`checkpoint ${cp.seq}: does not follow checkpoint ${before.seq} (a checkpoint is missing or changed)`);
before = cp;
const texts = cp.line.leaves;
if (texts.length !== cp.leaves || merkleRoot(texts) !== cp.root) fail(`checkpoint ${cp.seq}: the leaves don't give the signed root`);
let previousTask = null;
for (const leaf of texts.map((t) => readLeaf(t, cp.seq)).filter(Boolean)) {
if (previousTask !== null && previousTask >= leaf.task) fail(`checkpoint ${cp.seq}: leaves are not sorted by task`);
previousTask = leaf.task;
if (checkLeaf(leaf, cp.seq)) {
const entry = events.get(leaf.task);
const coveredBefore = reached.get(leaf.task) ?? 0;
for (let i = coveredBefore; i < leaf.count && i < entry.records.length; i++) {
if ((coveredBefore > 0 || entry.at[i] >= from) && cp.signedAt - entry.at[i] > LATE_MS) counts.lateSealed++;
}
reached.set(leaf.task, Math.max(coveredBefore, leaf.count));
continue;
}
const limit = leaf.test ? testCutoff : cutoff;
if (limit === null || leaf.created >= limit) fail(`task ${leaf.task}: in checkpoint ${cp.seq} but missing from the file, and too recent to have been deleted by retention`);
else if (!purged.has(leaf.task)) {
purged.add(leaf.task);
deleted.push(`task ${leaf.task}${leaf.test ? " (test)" : ""}: created ${iso(leaf.created)}, before the ${leaf.test ? "test_retention_cutoff" : "retention_cutoff"} ${iso(limit)}`);
}
}
}
for (const [task, entry] of events) {
if (!reached.has(task)) fail(`task ${task}: has events but is in no checkpoint of the file`);
else if (entry.records.length !== reached.get(task)) fail(`task ${task}: the file has ${entry.records.length} events, the checkpoints cover ${reached.get(task)}`);
}
counts.purged = purged.size;
if (previous !== null) {
const old = previous.split("\n").filter((l) => l.trim()).map((l) => JSON.parse(l));
if (old[0]?.kind !== "export" || old[0].org !== org) fail("the previous export is of another organization or unreadable");
else {
const olderHashes = new Map(old.filter((l) => l.kind === "checkpoint").map((l) => [l.seq, hex(sha256(Buffer.from(l.statement, "utf8")))]));
if (olderHashes.size > 0) {
const newest = checkpoints.length ? Math.max(...checkpoints.map((c) => c.seq)) : 0;
const last = Math.max(...olderHashes.keys());
if (newest < last) fail(`this export ends at checkpoint ${newest}, before the previous export's ${last} (history cut?)`);
for (const cp of checkpoints) if (olderHashes.has(cp.seq) && olderHashes.get(cp.seq) !== cp.hash) fail(`checkpoint ${cp.seq} differs from the previous export's`);
// The new chain must contain the previous export's newest checkpoint, or continue from it: otherwise a chain
// re-signed after it (a fork) would pass. Export a period that starts where the previous one ended.
const next = checkpoints.find((c) => c.seq === last + 1);
if (newest >= last && !checkpoints.some((c) => c.seq === last)) {
if (!next) fail(`this export holds neither the previous export's newest checkpoint ${last} nor checkpoint ${last + 1}: export a period that starts where the previous one ended`);
else if (next.prev !== olderHashes.get(last)) fail(`checkpoint ${last + 1} does not follow the previous export's checkpoint ${last} (history rewritten?)`);
}
}
}
}
}
if (previous !== null && isTask) warnings.push("a previous export is compared with range exports only");
return result();
}
/** The SHA-256 a payload file must have to match the task's created event (payload_sha256). */
export function payloadMatches(text, payloadBytes) {
const want = text
.split("\n")
.filter((l) => l.trim())
.map((l) => JSON.parse(l))
.filter((l) => l.kind === "event")
.map((l) => JSON.parse(l.record))
.find((r) => r.type === "created")?.data?.payload_sha256;
return want !== undefined && want === hex(sha256(payloadBytes));
}
const read = (file) => {
const bytes = readFileSync(file);
return (bytes[0] === 0x1f && bytes[1] === 0x8b ? gunzipSync(bytes) : bytes).toString("utf8");
};
if (import.meta.url === `file://${process.argv[1]}`) {
const args = process.argv.slice(2);
const option = (name) => {
const i = args.indexOf(name);
return i >= 0 ? args.splice(i, 2)[1] : null;
};
const keysFile = option("--keys");
const previousFile = option("--previous");
const payloadFile = option("--payload");
if (args.length !== 1) {
console.error("usage: node verify-audit.mjs <export.jsonl[.gz]> [--keys keys.json] [--previous older.jsonl[.gz]] [--payload payload.json]");
process.exit(2);
}
const text = read(args[0]);
const keys = keysFile ? Object.fromEntries(JSON.parse(read(keysFile)).keys.map((k) => [k.id, k.public_key])) : null;
const result = verifyAuditExport(text, { keys, previous: previousFile ? read(previousFile) : null });
if (payloadFile && !payloadMatches(text, readFileSync(payloadFile))) result.failures.push("the payload file's SHA-256 is not the task's payload_sha256 (hash the exact JSON TaskToHuman stored)");
const c = result.counts;
const status = result.failures.length > 0 ? "FAILED" : result.status;
console.log(`${status}: ${c.events} events, ${c.tasks} tasks, ${c.checkpoints} checkpoints, ${c.pending} pending, ${c.purged} deleted by retention, ${c.lateSealed} sealed late`);
for (const f of result.failures) console.log(` failed: ${f}`);
for (const u of result.unproven) console.log(` not proven: ${u}`);
for (const d of result.deleted) console.log(` deleted by retention: ${d} (check it against your plan's history)`);
for (const w of result.warnings) console.log(` note: ${w}`);
process.exit(status === "FAILED" ? 1 : status === "NOT PROVEN" ? 3 : 0);
}How it works#
Everything is SHA-256 and lower-case hex; signatures are Ed25519 (RFC 8032).
- Records. Each event is written as canonical JSON: keys sorted, no spaces, strings, integers and
nullonly (a subset of RFC 8785). The keys areactor_id,actor_kind(system,human,member,api_key,staff),at(UTC, milliseconds),data,id,org,seq,step,task,type,vandworkspace. - Task chains. About a minute after an event is written, it is appended to its task's chain:
h0is 32 zero bytes andh(i) = SHA-256(h(i-1) ‖ SHA-256(record i)). - Checkpoints. At most every 10 minutes, each organization's changed tasks become leaves (
{"count","created","head","task","test"}, sorted by task), combined in a Merkle tree (RFC 6962). The checkpoint statement names the root, the number of leaves, its sequence number, the previous checkpoint's hash and the signing key, and is signed. - Exports. One JSON object per line:
export(scope, retention cut-off, where the keys are),key,checkpoint,event(the exact record text),pending(task exports), andendwith the counts, so a cut-off file fails.
What it proves, and what it doesn't#
It proves:
- once an event is in a checkpoint, nobody can change, remove or reorder it, slip another event in before it, or change the checkpoint, without verification failing, unless they also hold TaskToHuman's signing key. An event added later with an earlier time shows up as sealed late. Events after the newest checkpoint in a file are reported as not proven, never as OK;
- that history was not cut off after an export you kept: verify the newer export with
--previous; - which payload, comment and callback body a decision was about, through their hashes.
It doesn't prove:
- that events were true when they were written: TaskToHuman records them;
- anything in the window before an event is in a checkpoint (up to about 11 minutes);
- that a task a period export accepts as deleted by retention was really deleted by it: the cut-off dates come from the export itself. The verifier lists those tasks with their signed creation times so you can check them against your plan's history;
- that the newest checkpoints still exist: someone with full database access could delete the latest checkpoints together with their events, and the rest would still verify. Keeping exports, and comparing with
--previous, is what shows that; - who physically held the link or the inbox when an answer was given;
- what the task page looked like (labels, layout): the payload hash proves the data, not its presentation;
- the accuracy of the server's clock;
- anything about events before the audit trail started: they were sealed by its first run, so they are proven unaltered only from then.
Hashes of short, guessable content (a comment like "OK", a payload like {"approve":true}) can be guessed by anyone you share the file with. The payload hash covers sensitive fields too: someone who knows every other field could confirm a guess of a short sensitive value (a PIN, a yes/no) against it, even though the app masks that field from them. The app's task timeline shows no hashes for that reason; share exports like any other record.
For the EU AI Act, the trail helps document human oversight (Article 14) and keep records (Articles 12 and 26). It does not by itself make a system compliant.
Signing keys#
The public keys are at https://api.tasktohuman.com/.well-known/tth-audit-keys.json, each with its id (k1, k2…), created_at and, once replaced, retired_at. Retired keys stay published, so older checkpoints keep verifying. Keys are rotated when needed; if a key were ever compromised it would be rotated at once, and the exports you already kept stay your evidence for what was signed before.
Retention#
When your plan's history removes a task, its events and chain go with it; the checkpoints that named it stay, so other tasks still verify. A period export lists such a task in its checkpoints without its events, and the verifier accepts that only when the task was created before the export's retention_cutoff (test tasks: before test_retention_cutoff), and lists it. Tasks your plan's history hides but has not deleted yet are treated the same way.