Privacy — retention that matches the implementation
ANANZI inspects text you submit for defined checks. This page states what customer data the shipped scaffold retains, for how long, and what is never stored. It matches the accepted retention ADRs and Postgres sweeps — not a new retention choice.
Default: submitted inspection text and findings are never retained as customer data. Logs and ledger rows keep metadata only, with the durations below.
Never retained
These are product defaults for v1 — not optional switches:
- Submitted inspection text / prompts / request bodies are not written to Postgres, application logs, audit rows, analytics, or support tooling.
- Inspection findings and HTTP response bodies are not retained; clients keep their own copies.
- Authorization headers, raw API keys, and idempotency keys are not logged. Raw API secrets are never stored (prefix + hash only).
- There is no customer-controlled retention switch in v1.
What is retained
Metadata and account rows only. Durations match the accepted retention ADR and the shipped Postgres sweep task:
- Application request logs (metadata allowlist): 30 days, then delete or rotate out.
- usage_events (ledger fields; no content): 90 days from created_at, then deleted.
- webhook_events (provider replay ids; no prompt payloads): 90 days from created_at, then deleted.
- audit_events (metadata only when present): 90 days from created_at, then deleted.
- usage_rollups (unit aggregates): 13 months from period_start, then deleted.
- subscriptions (and period fields): retained for the life of the organization, and for 13 months after canceled_at when the organization remains, then deleted.
- Account/tenancy (organizations, memberships, api_keys prefix+hash; users/email while tied to the org): life of the organization; 30-day grace after an organization deletion request, then purge org-scoped customer rows. A users row is not deleted if it still has memberships in another organization.
- Operators run cargo loco task retention_sweep so primary DB rows do not outlive those TTLs.
- Backups must not keep expired customer rows queryable in the primary database; backup buffer is at most 7 days beyond a class TTL.
Scope notes
Honesty limits for this page:
- This page publishes the default retention profile that the implementation already follows. It does not add a second profile or a retention API.
- Log-shipper configuration for the 30-day metadata stream is an ops commitment for sinks ANANZI controls; the Postgres sweep task owns database row TTLs.
- After a usage_events row ages out, reusing the same idempotency key may reserve again.
- No production hostname or domain mailbox is published here while hostname clearance stays blocked under brand-licenses.
Security · prompt_injection product page · secrets product page · Local docs live in apps/docs (Starlight). Deploy is tracked separately.