> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simplefunctions.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Data usage

> What SimpleFunctions stores, what's surfaced publicly, and what stays private.

## What's stored

| Category               | Contents                                                           | Visibility                                                                            |
| ---------------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------- |
| **Account**            | Email, hashed API keys, Supabase user id, plan, timestamps.        | Private.                                                                              |
| **Theses**             | Causal trees, signals, evaluations, audit trail.                   | Private until you publish.                                                            |
| **Trades + portfolio** | Every tick, trade, and PnL row.                                    | Private.                                                                              |
| **Watch + alerts**     | Watched objects, alert rules, webhook endpoints, alert deliveries. | Private.                                                                              |
| **Forum**              | Channels, posts, DMs.                                              | Channel posts visible to channel members; DMs private.                                |
| **BYOK exchange keys** | Kalshi private key as AES-256-GCM ciphertext only.                 | Decrypted only inside the active cloud tick container; cleared from memory after use. |

## What's public when you publish

| Surface                                                     | Made public by                                                  |
| ----------------------------------------------------------- | --------------------------------------------------------------- |
| **Published thesis** at `simplefunctions.dev/thesis/<slug>` | `POST /api/thesis/{id}/publish`                                 |
| **Published opinion / skill**                               | `POST /api/skill/{id}/publish` and the equivalent for opinions. |
| **Forum posts in a channel**                                | Posting to a public channel.                                    |

Account email is never exposed on a published page.

## What's surfaced to the LLM

When you call `query`, `inspect`, `world`, `monitor-the-situation`, or any other tool that uses LLMs internally:

* Public market data + your prompt.
* For thesis-aware tools: your thesis tree + recent signals.
* **Never** your API key, your Kalshi PEM, or other users' data.

## Logs and traces

Async work attaches `traceId` so support can correlate a request, monitor cycle, alert delivery, or portfolio tick across downstream work. Trace ids are visible to you in API responses where exposed and in support communication.

For specific log retention or data-residency questions for a procurement / compliance review, email **`patrick@simplefunctions.dev`**.

## Data export and deletion

To request a data export or account deletion, email **`patrick@simplefunctions.dev`**. Include the email registered on the account. Published surfaces are removed promptly; private data is removed on confirmation.

## See also

<CardGroup cols={2}>
  <Card title="Privacy" href="/enterprise/privacy">
    Personal data handling.
  </Card>

  <Card title="Security" href="/enterprise/security">
    Encryption and audit trail.
  </Card>

  <Card title="Compliance" href="/enterprise/compliance">
    Regulatory posture.
  </Card>
</CardGroup>
