0066. Jev chat message check sends raw chat text to TypeSafe

Status: Accepted (2026-09-24)

Context

TypeSafe Jev judges each person-typed rental chat message for scam signs and early off-platform contact (design: docs/superpowers/specs/2026-09-24-typesafe-jev-message-check-design.md). Each call sends the new message plus the last 5 messages in the thread. Chat is private talk between two people. It can hold phone numbers, bank account numbers, email addresses and names. As in ADR-0064, TypeSafe does not train on customer data, but the standard plan has no fixed retention period and hosts data in the US. Gremlin’s 90-day typesafe_calls deletion does not bind TypeSafe. Masking digits and emails in code before sending (012-345 6789 → ###-### ####) was considered. It keeps enough signal for the contact check but hides amounts and does not hide spelled-out numbers or names.

Decision

Send the raw text for now. Masking is deferred until privacy becomes an issue. Gremlin is the accountable owner of this trade-off, as in ADR-0064. TYPESAFE_RENTAL_CHAT_ENABLED is separate from TYPESAFE_RENTAL_ENABLED and stays off by default. Turning it on for real users is gated on:
  1. Gremlin confirming the user-facing disclosure covers both:
    • raw chat text sent to TypeSafe, and
    • admin review of messages with findings, shown with up to 5 earlier messages in the thread (design §7, §8.2).
  2. Calibration (design §6.4) using only synthetic chats by default; real chats need an explicit opt-in flag, gated on the same confirmation.

Consequences

  • Real chat text, including any numbers people type, reaches a US third party under open-ended retention once the switch is on. Data already sent cannot be recalled.
  • Gremlin admins (admin, superadmin) can read messages with findings and up to 5 earlier messages, including text from the other party who did nothing wrong. Today no admin reads chat. reviewed_by / reviewed_at record who acted; views are not logged. A view audit log is out of scope until a regulator or customer asks.
  • The listing check can be enabled without enabling the chat check.
  • Adding masking later, or a zero-retention plan, would supersede this ADR.