When an AI Startup Goes Bankrupt, Your Prompt Logs Go to Auction: Architectural Lessons from the Character.AI Data Sale Block
On November 30, 2026, a coalition of 42 U.S. Attorneys General, led by North Carolina Attorney General Jeff Jackson, filed an urgent objection in federal bankruptcy court to block the proposed sale of Character.AI's asse
On November 30, 2026, a coalition of 42 U.S. Attorneys General, led by North Carolina Attorney General Jeff Jackson, filed an urgent objection in federal bankruptcy court to block the proposed sale of Character.AI's assets β including the chat histories of more than 21 million U.S. accounts, roughly 2.1 million of them registered to minors (13NewsNow report).
The detail that should worry every engineer building on top of an LLM is the buyer: Smirks and Pangs Acquisition LLC, a company formed 24 hours before Character Technologies selected it as the winning acquirer, with ownership and financing that were not publicly identified. The court ultimately ordered an independent consumer privacy ombudsman to review the data before any transfer could proceed.
For product teams, the lesson is not that one company had a bad privacy policy. It is that prompt logs stored in your own database are estate assets the moment your company enters chapter proceedings or a distressed sale. Your privacy promise describes normal operations. Bankruptcy court describes the exception that overrides it.
1. The bankruptcy asset trap in default LLM logging
Most AI products start with the same convenience pattern: capture the full request and response payload, key it by user_id, and keep it forever because "we might need it for evals later." That is fine while the data is only a debugging convenience. It becomes toxic liability when three conditions line up:
- The payload is stored in plaintext, or in a format your team can trivially decrypt.
- Records are joinable to a real person through account IDs, email addresses, or device identifiers.
- Retention has no upper bound, so the archive grows faster than anyone reviews it.
In the Character.AI filing, the objection focused on exactly this kind of content: disclosures about mental health crises, relationships, and emotional struggles, written by users who believed they were talking to a character, not filing a deposition. A court-appointed reviewer had to be inserted between the users and the buyer because the data could not simply be transferred like a license or a customer list.
If your prompt logs would look bad in a diligence data room, assume they will eventually be read aloud in one.
2. Zero-retention ingress: redact before you persist
The first architectural decision is where raw text is allowed to exist. Keep raw prompts in process memory for the duration of a single request and nothing more. If you need telemetry for latency, token accounting, or abuse detection, derive that metadata at the ingress proxy before anything touches persistent storage.
import re
import hashlib
import time
PII_PATTERNS = {
"EMAIL": re.compile(r"[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+"), "PHONE": re.compile(r"\b(?:\+?\d{1,3}[-.\s]?)?\(?\d{2,4}\)?[-.\s]?\d{3,4}[-.\s]?\d{4}\b"),
"CARD_OR_ID": re.compile(r"\b\d{4}[-\s]?\d{4}[-\s]?\d{4}[-\s]?\d{1,4}\b"),
}
def sanitize_prompt_for_telemetry(user_id: str, raw_prompt: str, salt: str) -> dict:
redacted = raw_prompt
for label, pattern in PII_PATTERNS.items():
redacted = pattern.sub(f"[REDACTED_{label}]", redacted)
The mapper keeps only the derived fields, then drops the raw text:
ephemeral_hash = hashlib.sha256(f"{user_id}:{salt}".encode("utf-8")).hexdigest()[:16]
return {
"session_pseudonym": ephemeral_hash,
"token_estimate": len(raw_prompt.split()),
"redacted_preview": redacted[:120],
"ttl_epoch": int(time.time()) + 86400,
}
Three properties matter here. The pseudonym is salted per deployment so it cannot be reversed by dictionary attack against a leaked user table. The preview is truncated, which limits accidental leakage of long pasted documents. And every record carries an explicit ttl_epoch, so retention is enforced by data shape rather than by a cron job someone forgot to update.
Redaction is not a privacy guarantee on its own. A determined reviewer can infer a lot from context. It is, however, the difference between a database dump that is mostly useless and one that is a ready-made chart of human vulnerability.
3. Client-held keys for anything you do keep
Users legitimately want their chat history to follow them across devices. That does not require you to hold readable history. Encrypt the conversation payload in the browser using a key derived from the user's passphrase (PBKDF2 or Argon2id into AES-256-GCM) and send only the ciphertext to your backend. The server stores opaque blobs plus the metadata needed to sync them.
The benefit is structural. If the company is acquired by an unknown shell entity, or if a liquidator sells the database to pay creditors, the dump is cryptographically inert without the user's local key. You can hand over the asset and hand over nothing readable at the same time.
Two implementation notes from production: store the key-derivation parameters (salt, iterations, algorithm) alongside the ciphertext so future clients can decrypt, and design a recovery path the user controls β a printed recovery code or an export file β because a lost key is a lost history and your support queue will hear about it.
4. Retention budgets and deletion that actually deletes
Retention should be a product decision with a number attached, not an infrastructure default. A workable pattern:
- Raw prompts: zero retention, memory only.
- Redacted telemetry: 24 hours.
- Conversation history: user-controlled, encrypted client-side.
- Abuse evidence: isolated store, 90 days, access-logged, requires a ticket to read.
Deletion needs the same rigor. When a user deletes a conversation, mark the row as tombstoned immediately, then destroy the encryption key for that record. Key destruction is the only deletion primitive that survives backups, replicas, and snapshots that you cannot reach. If your architecture cannot destroy keys per record, your "deleted" data is still readable somewhere, and a bankruptcy trustee will eventually ask where.
5. Contract and procedure are part of the architecture
Engineers tend to treat this as a legal problem, but three procedural items belong in your design review:
- Asset-transfer carve-out. Your data processing agreement and terms should state explicitly that user prompts and derived logs are excluded from any sale of company assets, and that a successor must obtain fresh consent. Many standard terms say the opposite in a merger clause.
- Data inventory before diligence. Maintain a living map of every store that touches prompt text: primary database, analytics warehouse, error tracker, log aggregator, vendor caches. The Character.AI objection referenced a single corpus; real products usually have five copies of it.
- A named privacy reviewer in the runbook. The court had to appoint an ombudsman after the fact. Appoint one internally before the sale, with authority to block a transfer.
Checklist
- Raw prompt text never reaches disk without a documented exception.
- Telemetry is derived and redacted at ingress, with per-record TTLs.
- Persistent history is client-encrypted and decryptable only by the user.
- Deletion destroys keys, not just rows.
- Vendor and error-tracking stores are in the same inventory and retention policy.
- Terms exclude user prompts from asset sales.
None of this makes a bankruptcy pleasant. It makes the difference between a court ordering an independent reviewer because your archive cannot be responsibly transferred, and a database that a buyer can hold but cannot read.
We keep browser-side privacy and payload inspection utilities at DOLIT English Engineering Hub, where parsing runs entirely in client memory with zero server-side log retention.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.