By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
Waypoint holds more customer data than the prompt it sends. Traces contain redacted request text, eval corpora contain whole conversations, caches contain answers, vector indexes contain chunks of policy documents, approvals contain amounts and names, and backups contain all of it. Step 13 covered privacy-safe logs and retention at the logging layer; step 27 covered audit and governance. This lesson is the lifecycle that connects them.
Two questions arrive with the same seriousness. A tenant asks: "Delete everything you hold for us." An auditor asks: "Prove you deleted what you said you deleted, and show me you kept what you were required to keep." Answering either one without a written record class, retention clock and deletion procedure means the answer is a promise, not evidence.
| Record class | Why it exists | Typical retention | Deletion mechanism |
|---|---|---|---|
| Redacted request trace | Operations, incidents, cost and quality sampling | 30 days | Partition drop plus encryption-key destruction |
| Raw prompt and output sample | Quality review of a sampled window | 7-14 days, only under the tenant's stated basis | Row delete from the sample store |
| Eval case corpus | Regression evidence for gates and releases | 180 days after the suite version is retired | Tenant-scoped delete, then reindex the affected suites |
| Approval and chargeable-action record | Legal and audit evidence that money moved correctly | Per the audit policy, often seven years | Never deleted by a customer request; access-restricted |
| Deletion receipt | Proof that a deletion happened, for the audit record | As long as the audit policy requires | Append-only, object-locked storage |
| Provider-side logs | Vendor observability and abuse review | Per the vendor DPA | Vendor process with a written attestation |
Legal hold overrides every clock in the table. If litigation, an auditor's request or an active investigation touches a tenant, the data stays, access narrows and the hold is recorded with its scope and owner. The hold is itself an audit artefact; releasing it is a named decision, not a timeout.
from hashlib import sha256
RETENTION_DAYS = {"trace": 30, "eval_case": 180, "approval_record": 2555}
records = [
{"id": "trc-1", "type": "trace", "age_days": 45},
{"id": "trc-2", "type": "trace", "age_days": 12},
{"id": "evc-1", "type": "eval_case", "age_days": 200},
{"id": "apr-1", "type": "approval_record", "age_days": 400, "legal_hold": True},
{"id": "log-1", "type": "access_log", "age_days": 900},
]
def classify(record: dict) -> str:
if record.get("legal_hold"):
return "hold"
limit = RETENTION_DAYS.get(record["type"])
if limit is None:
return "hold" # unknown classes are reviewed, never guessed at
return "delete" if record["age_days"] > limit else "keep"
def deletion_receipt(tenant: str, deleted_ids: list[str]) -> dict:
manifest = sha256("|".join(sorted(deleted_ids)).encode("utf-8")).hexdigest()
return {"tenant": tenant, "deleted": len(deleted_ids), "manifest": manifest[:16]}
decisions = {record["id"]: classify(record) for record in records}
to_delete = [record_id for record_id, decision in decisions.items() if decision == "delete"]
print(decisions)
print(deletion_receipt("northline", to_delete))Evidence is not a folder of logs. For each deletion, an auditor should be able to read the policy version that was applied, the lineage scope, the record counts, the hash manifest, the verified job run, the name of the person who executed it and the vendor attestation for provider-side copies. That set answers "who, what, when and how do you know" without a meeting.
Key takeaways
Classify every record — traces, samples, eval corpora, approvals, receipts and provider logs — with its own retention clock and deletion mechanism.
Legal holds override retention and are recorded with scope and owner; releasing a hold is a named decision, not a timeout.
Delete from lineage: tombstone, remove primary and derived copies, destroy keys where needed, verify by sampling and reconcile backups.
Write an append-only deletion receipt with counts, a hash manifest, the job run and the operator, and make it reconstructable without the operator present.
Audit evidence must be immutable, access-controlled, outliving the data it describes, and the deletion job must not be able to erase its own trail.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.