Skip to content
All guides

Data inventory

Every piece of data Trakkwise collects, why, where it is kept and for how long. It is written for customers' security, privacy and legal teams and for works councils. It describes the code in this repository; each section names the source files, so it can be checked. When the code changes what is collected, this file changes in the same pull request.

People the data is about

  • Employees whose managed computers run the Trakkwise agent, or whose managed browsers run the Trakkwise extension.
  • Console users: the customer's administrators, analysts and viewers who sign in to the Trakkwise console.

Roles. The customer is the controller. Trakkwise processes the data on the customer's behalf, so it is the processor (see Data processing agreement: draft terms).

1. Browser extension (Chrome, Edge and Firefox)

Source: extension/src. The extension runs only in browsers the customer manages and has force-installed it on. Until the customer's settings arrive by enterprise policy, it records nothing, not even in the browser.

Who and which browser

Data Example Why Personal data?
Email address of the browser profile, or in Firefox (which can't report it) the email the organization's policy sets (user on every event) jane@acme.com To show which person uses which AI tools, and to apply per-person policies Yes
Random install ID 4f1c… (a random UUID made on install, not derived from the hardware) To tell this browser apart from others Pseudonymous ID
Operating system and browser name and version macOS, Chrome 142 Fleet overview and support No

The email comes from the browser's signed-in profile (chrome.identity.getProfileUserInfo). If a person signs a personal Google account into a managed browser, that personal address is what is recorded.

Events

Events are sent every minute, in batches. Each one has an ID, a time, the AI site (tool) and its category. The rest depends on the event type:

AI inside other platforms (Notion AI, Gemini in Gmail and Docs, Copilot in Office on the web, Canva Magic Write; category platform_ai): the extension sends a prompt event (and, with prompt capture on, a copy) only for what is typed into the platform's AI box. The rest of the page (the person's own document, email or design) is never read, and these platforms send no visit events and get no site blocks or uploads checks. Each platform is checked only once its adapter has been written from a recording of the real AI box; until then the extension does nothing there. A dev-build recorder makes those recordings, with structure only, never text (docs/testing/platform-recording.md).

Event Also carries Never carries
visit (5-minute roll-up per AI site) visits, active seconds (tab and window focused, person not idle), the AI site's hostnames (for example chatgpt.com), provider, risk rating full URLs, page titles, non-AI sites
visit, when a policy blocked or warned on the site the decision, the policy, the hostname. On a warning the person continued past: the reason they typed (up to 500 characters) the URL path
prompt (ChatGPT, Claude, Gemini, Microsoft Copilot, Perplexity, DeepSeek, Grok) number of characters, how it was sent (Enter, button), sensitive-data labels and counts (for example pii.email: 1), the policy decision, the reason typed on a warning. Prompt insights worked out on the device: type (coding, writing, summarizing, analysis, translation, research, brainstorming or other), estimated tokens, and four flags (contains code, long pasted text, rephrase of the previous prompt, follow-up in the conversation) the prompt text (unless prompt capture is on; see below), the email address or key that was found. With capture on, the event also says captured: true when its prompt was kept
paste (only pastes over 1,000 characters or with sensitive data) size, sensitive-data labels and counts, decision, reason typed on a warning the pasted text
upload number of files, file extensions, total size, labels from the file names (for example secret.env_file), decision, reason typed on a warning file names or contents
coach_tip which tip was shown (rephrase, long_context, short_request) the prompt
extension_start why it started, extension and catalog version —

The account_type field (work or personal account on the AI site) exists in the schema. In the current version it is always unknown. When it is turned on, it will send only the label, never the address.

Prompt capture (off unless the organization turns it on)

An admin can turn on prompt capture in Settings → Privacy, after signing an acknowledgement (their name and the time are kept, and in the audit log). Then the extension also sends a copy of prompts, apart from events, to /v1/prompts:

Mode Prompts kept
Risky prompts only those with a sensitive-data label, and those blocked or warned
All prompts every prompt on the AI sites the extension checks

Each kept prompt carries: the prompt text, with passwords, keys, tokens and connection strings replaced on the device by their kind (for example [secret.aws_key removed]), the email of the browser profile, the AI site, the decision, the sensitive-data labels, its length, the time, and the id of its prompt event. Personal data in the text (an email address, a phone number) is not removed: it is often why the prompt was kept.

  • People are told: each AI site shows a notice once per browser session while capture is on, and the extension's popup says so.
  • Kept apart: prompts are not events. They are not in the raw event archive, and nothing in events, usage records or the cost ledger points to them, so deleting prompts leaves spend and activity history intact.
  • Encrypted: with a key of the customer's own (AES-256-GCM), itself sealed with a service key (PROMPT_CAPTURE_KEY). Deleting every prompt also replaces the customer's key.
  • Kept for: 30 days by default, 7 to 90 as the customer chooses, then deleted by the nightly job. Turning capture off stops new copies at once; prompts already kept stay until then, unless an admin deletes them all.
  • Who can read one: only members an admin makes prompt reviewers, signed in as themselves (never with an API key), one prompt at a time, after writing a reason. The customer can require a second reviewer to approve each request. An approved request lets that reviewer read that prompt for an hour. Every request, approval and read is in the audit log. The list of kept prompts shows no text.
  • Erasure: deleting a person's data deletes their kept prompts.
  • Classified: within a minute, rules on Trakkwise's own server read each kept prompt and record which of these it shows: confidential business information, records about many people (five or more email addresses), unreleased financial or deal information, HR matters, legal matters, health information, attempts to get around policy or the AI tool's safeguards. Only these categories are stored, next to the prompt, never a summary. They show to prompt reviewers in the list and add points to the person's and the tool's risk scores.
  • Classified by Claude, only if the customer turns it on (off by default, in the same settings): each kept prompt's text is also sent to Anthropic's Claude API, which returns categories from the same list. Claude can add to what the rules found, never remove it. Trakkwise keeps only the categories; Anthropic's API data retention applies to what it received.

Health report (every 5 minutes)

This report carries:

  • the extension version;
  • the install ID;
  • the number of queued events;
  • the catalog and policy versions;
  • up to 20 of the extension's own error codes, each with a count, the first and last time, and the last error text.

The error text has email addresses, credentials and home-folder names masked on the device. The API masks it again.

Kept in the browser

All of this is in chrome.storage, which only the extension can read:

  • Identity: the profile email and install ID.
  • Credentials: the device key.
  • The policy.
  • Queued events: up to 5,000, until they are sent.
  • The current 5-minute usage window.
  • Coaching state: the day, the number of tips shown and the time of the last one.

Two things are kept in the tab:

  • To spot a rephrase, the words of the previous prompt stay in the tab's memory until the tab closes. They are never stored or sent.
  • To show the "use the sanctioned tool" coaching note only once per browser session, the AI site's own session storage gets a trakkwise-coached-<site> flag. The site can see it.

2. Endpoint agent (macOS, Windows, Linux)

Source: agent/. It runs as a system service on computers the customer manages, and scans every user account on the computer.

The computer

Data Example Why Personal data?
Hostname Janes-MacBook-Pro To identify the computer in the console Often (names in hostnames)
Machine ID: macOS hardware UUID, Windows MachineGuid, Linux /etc/machine-id 6F3A… To recognise the same computer after a reinstall Persistent device ID
OS, OS version, CPU architecture, agent version darwin 15.1 arm64 Fleet overview, updates No

These go with enrollment and with the health report every 5 minutes. Not sent: serial number, model, IP or MAC addresses.

Inventory (every 6 hours, and changes as events)

For each AI tool found, the agent sends:

  • the tool, name, vendor, version and kind (app, CLI, IDE extension, local runtime, local model, MCP server);
  • how it was found;
  • the OS account it belongs to;
  • its install path (for example /Users/jane/Applications/Cursor.app).

For each kind it also adds:

Kind Extra fields
IDE extensions the editor and extension ID
Local models the model name and size
MCP servers the server name, the client app, transport, scope, command name, package or container image, the hostname of a remote server, the names (not values) of its environment variables and headers, and the number of arguments

Never sent for MCP servers:

  • environment variable values;
  • arguments;
  • header values;
  • URL paths and queries;
  • the project folder (only a 4-byte hash);
  • local file paths. A package that is a local file is reported as (local file).

Events

Event Carries
install, uninstall, mcp_config the inventory item above, including the OS account and path, and the policy decision (logged only: installs are never stopped)
active (5-minute roll-up) the AI tool, the OS account running it, active seconds, the names of its processes
active with a decision (enforcement on computers) when a blocked program was closed or a warn or coach notice was shown: the tool, the OS account, the rule, the process names and how many processes were closed
connect (5-minute roll-up) the process name, the AI API host it talked to (for example api.anthropic.com), the provider, and how many addresses (not the addresses)
agent_start, agent_update, queue_drop versions and counts

The OS account is the home-folder name (jane) or, for running programs, the process owner. On Windows, running programs have no account in this version.

Linking accounts to people. The console counts an OS account as a person's email when the computer's MDM profile sets UserEmail (sent in the health report), when an admin assigns the computer to a person, or when an admin links the account, both under People → Computer logins (by hand or from a CSV). The assignment (email, who made it, when) and the link are stored, and the account name is kept in each event (meta.login) so a link can be undone. Deleting a person's data covers the accounts linked to them.

Health report (every 5 minutes)

This report carries:

  • the computer fields above;
  • the computer's user email, if the MDM profile sets UserEmail;
  • uptime;
  • queue size;
  • when it last scanned;
  • the policy and catalog versions;
  • up to 20 error codes, each with a masked last message (home-folder names, emails and credentials hidden).

Never collected by the agent

  • File contents and prompt text.
  • Command-line arguments: they are read in memory only, to spot tools run through node or python.
  • Browsing.
  • Network packets: there is no packet capture and no TLS interception.
  • Remote IP addresses.
  • Keystrokes and screenshots.

3. Console and account data

Source: api/migrations, api/src.

Data About Why
Console users: email, name, the identity provider's user ID, role, last sign-in Console users Sign-in and access control
Invitations (email, role), valid 14 days Console users Adding people
Provisioning (SCIM), when the customer turns it on: each person's userName, email, names, external ID and whether active; their cost center, department, division and organization when sent; group names, external IDs and members; the SCIM token's hash Console users The identity provider adding, updating and removing members
Chargeback, when an admin uploads a list: each listed person's email and cost center, who set it and when Console users and people using AI tools Billing AI spend back to cost centers (Spend → Chargeback)
AI registry: each AI tool or system's name, owner (email), department, purpose, use, data categories, whose data it handles, legal basis, models, human oversight, retention and impact assessment link, risk; who requested it and each reviewer's decision and comment Console users, and people named as owners Approving AI before use, and showing who is accountable for it
Vendor assessments: the plan in use with each AI vendor, corrections to Trakkwise's vendor facts, notes, and who saved them The customer, and console users Judging the risk of each AI vendor
Framework attestations: the status and evidence note a person recorded for an EU AI Act, NIST AI RMF or ISO/IEC 42001 control, and who The customer, and console users Showing compliance
Audit log: who changed what and when (policies, tools, members, prices, alerts and so on) Console users Accountability
SSO settings (issuer, client ID, client secret encrypted with AES-256-GCM), verified domains The customer Sign-in
Policies, tool reviews, price book, alert channels (Slack URL encrypted, email recipients) The customer Product settings
Budgets (a monthly limit for the organization, a tool, or a person by email) and spend alerts (a budget near or over its limit, or a person's day of unusually high spend, with the amounts and the tools behind it). Alerts are deleted after 90 days; a person's budget and alerts are removed when they are erased The customer, employees Keeping AI spend within limits
The personal spend summary (email, Teams or Slack): whether it is on, its hour, frequency and channels; where each person who has messaged the assistant can be reached (their Teams conversation and account IDs, or Slack direct-message channel, replaced each time they ask; removed when they are erased); who stopped it (their email address, from the signed link in the email, kept until they are erased); and who was sent it each day (kept 35 days, so nobody gets two in a day). The email itself carries only that person's own amounts and tools The customer, employees Telling each person what their AI use costs
The spend assistant (Microsoft Teams and Slack): whether it's on and the customer's Microsoft Entra tenant ID; the Slack workspace it's installed in, with the bot token (sealed with AES-256-GCM, deleted when it's removed); for each question, who asked, when, and the tokens it used (kept for rate limits and the bill). The question and answer are never stored by Trakkwise; they pass through Microsoft's Bot Service or Slack, and Anthropic's API The customer, employees Answering people's questions about their own AI spend
Integrations (Settings → Integrations): each AI platform's admin key or client secret (encrypted with AES-256-GCM, only the last four characters shown), its non-secret settings (GitHub organization, Entra tenant and app IDs), and the last sync's time and error The customer Reading billed spend and seat use
From those platforms: spend per day, tool and line item, and, where the platform says, per person (Anthropic: the console user's email); Anthropic also: Claude API requests and tokens per day, model and person (the console user's email, or none for an API key), for the premium-model savings rule (never prompts or completions; Claude Code's usage isn't read here, it comes from Claude Code's own telemetry); OpenAI also: API requests and tokens per day, model and person, with each person's email from the organization's user list (service accounts and usage with no user have none; never prompts or completions; Codex used with an API key can appear both here and in Codex's own telemetry, since OpenAI's report doesn't say which tool made a request); Copilot seats with each person's GitHub login or Microsoft sign-in name and last activity date; GitHub Copilot's premium requests and AI credits per day and model, and what they cost (the organization's totals, no person); Microsoft 365 Copilot Credits and sessions per person per day, with the person's sign-in name looked up from their Entra ID; the agents in Microsoft 365 Copilot's catalog (name, description, where built, publisher, availability, blocked or not; no owners or contents); Claude Enterprise seats with each member's email and whether they used Claude in the last 30 days (activity counts only, never conversations); ChatGPT Enterprise users with their email, the last day they sent messages in ChatGPT or Codex, and spend by client (never conversations); Replit Account members with their email and when they were last active on Replit, and Replit's cost per member per day and metric (Agent, deployments, storage; never projects, prompts or conversations). Google Gemini: how many Gemini actions each Workspace user took per day in the Workspace apps and in NotebookLM, and when they last did (activity counts only; never prompts, responses or documents). Cursor team members with their email and when they last used Cursor; per person per day, Agent, chat, Composer, Cmd+K and Bugbot request counts and AI lines accepted; per person, day and model, tokens and what Cursor charged beyond the plan (never prompts, code or conversations). xAI: the team's API spend, tokens and requests per day and model (no person; never prompts or completions). Gemini API and Vertex AI: what the Google Cloud billing account paid per day, SKU and project, net of credits, from the customer's Cloud Billing export in BigQuery (no person; never prompts, responses or resource contents). Re-read every 6 hours for the last 30 days; deleted when the integration is disconnected or the customer is deleted Employees, the customer Actual cost per tool and person, and seats nobody uses
Console sessions, with the browser's IP address and user agent: expire after 2 hours idle and 12 hours at most Console users Sign-in, and spotting a stolen session
Deleted organizations: the tenant ID, a hash of its name, who asked, when, and how much was deleted The customer Proof that the customer's data was deleted
Deletion requests: a SHA-256 hash of the person's name, who asked, when, and how much was deleted. The name itself is kept only until the raw copies are cleaned (at most a day) Employees Proof that a deletion was done, and re-applying it after a backup restore

Hiding names from viewers and analysts

An admin can turn on pseudonyms (Settings → Privacy). Viewers and analysts then see each person and computer as a stable pseudonym (Person 7K3Q9XAB, Computer 2M4PZA5Q), made with a keyed hash under a secret per customer, in every console page and export, and alert messages to Slack and email carry the same pseudonyms. Admins see names in the console and can look up a pseudonym; each lookup is in the audit log. Trakkwise keeps the pseudonym-to-name map so filters and lookups work. Free text people type (a warning's reason) is shown as written.

3b. Coding assistants (Claude Code and Codex OpenTelemetry)

Only if the customer turns it on (docs/deploy/coding-assistants.md). The tools send their own telemetry; Trakkwise keeps daily totals per tool, person and model:

Data About Why
The day, the tool, the model, and the signed-in email the tool reports (or none) Developers Who uses which coding assistant
Counts: sessions, prompts, tokens (input, output, cache), lines added and removed, commits, pull requests, active seconds; the tool's estimated cost Developers Usage and cost per person and model

Never stored, even when a developer's settings send them: prompt text, assistant responses, tool input and output, file and repository names, session and conversation IDs. The request bodies are not archived. Totals follow the customer's retention period and are removed when one person's data is deleted, and included when it is exported.

3c. Usage records and the cost ledger

Built from what the sections above already hold (vendor bills and seats from AI platform integrations, and coding-assistant totals), and from what the customer's own systems send to the usage webhook (docs/deploy/usage-webhook.md: day, tool, model, item, the person's work email if given, metric and quantity; nothing else from the request is stored), in one common shape (api/migrations/025_cost_ledger.sql, api/src/lib/ledger.ts):

Data About Why
Usage records: day, source, tool, model or line item, the person as the source named them (an email or a vendor login), a metric (billed or estimated cost, seats held, tokens, prompts, sessions, credits and so on) and its quantity Employees using AI platforms One place for every source's usage
Ledger entries: day, person, tool, source, model, and an amount in US dollars marked billed, allocated (an organization-level bill split by each person's share of use) or estimated Employees using AI platforms What each person's AI use cost

No prompt text or content of any kind. Both are financial records, kept for 730 days (LEDGER_RETENTION_DAYS) rather than the activity period, so yearly reports work. They are included in a person's export and removed when their data is deleted; an organization-level bill they had a share of is then split among the others.

3d. LLM gateway

When a customer points API calls at Trakkwise's gateway (Settings → Gateway, docs/deploy/llm-gateway.md), each call passes through Trakkwise on its way to Anthropic or OpenAI, forwarded with the customer's own vendor key.

Kept Who it's about Why For how long
Gateway keys: a name, the person's email (or none for a service), who made it, when it was last used. Only the key's SHA-256 Employees Knowing whose call it is Until revoked; then kept, marked revoked, until the customer is deleted
The customer's vendor keys, sealed with AES-256-GCM The customer Calling the vendor on their behalf Until removed
Per call: when, key, person, provider, endpoint, model, streamed or not, status, token counts, time taken, the gateway's reason when it failed Employees Recent calls and troubleshooting 30 days
Per day, person and model: requests and tokens (usage records, source gateway) Employees Spend per person, efficiency, savings As usage records (section 3c)

When the newest message has sensitive data, or a policy rule acts on the call: a prompt event like the extension's (source gateway: the labels and counts, the decision and rule, the model and the message's length; never the text). When the customer has prompt capture on and its mode keeps the call: a copy of the newest message, secrets removed, kept as section 1 describes.

Never kept otherwise: the prompt, the answer, the vendor's error text, or the caller's key in clear. Prompts and answers are in Trakkwise's memory only while they pass through, and go to the vendor the customer chose, under the customer's own account and terms with that vendor.

3e. SIEM export

When an admin adds a destination (Settings → SIEM export, docs/deploy/siem-export.md), Trakkwise sends it the records it chose, as they arrive: policy decisions and sensitive data found, all AI activity events, the audit log, LLM gateway calls. They name people (pseudonyms don't apply) and carry what the console has (never prompt text, files or page addresses). The destination is the customer's own (Datadog, Microsoft Sentinel, or a webhook they run), so what it keeps, and for how long, is the customer's. Erasing a person in Trakkwise doesn't reach what was already sent.

Kept by Trakkwise: each destination's settings, its key or secret (sealed with AES-256-GCM), where it has got to in each stream, and its last error.

4. Where it is kept, for how long, who sees it

Store What Kept for
Postgres (AWS RDS, encrypted with KMS) events 400 days by default (EVENT_RETENTION_DAYS), or less if the customer chooses (30 days or more), then deleted
Postgres devices, inventory, console and settings data while the customer's account exists
Postgres coding assistant daily totals the same period as events
Postgres usage records and cost ledger 730 days (LEDGER_RETENTION_DAYS)
Postgres alert delivery records 30 days
Postgres, encrypted again with the customer's own key kept prompts (prompt capture, off by default) 30 days by default, 7 to 90 as the customer chooses
Postgres sign-in requests 10 minutes
Object storage (AWS S3, encrypted with KMS, TLS only) raw event batches as received 730 days (moved to cheaper storage after 90), or the customer's shorter period, then deleted
Database backups everything in Postgres 14 days
Server logs (AWS CloudWatch, encrypted) requests: time, method, path, status, client IP address 365 days
Load balancer access logs client IP address, path, status 365 days

Hosting is AWS us-east-1 (US). Every customer's data sits in the same database, separated by row-level security on every table that holds it; the few tables without it hold no customer data or are closed to the API. A tested role-by-role access table enforces it in the API. The layers are described in Encryption: separation between customers.

Inside the customer. Anyone the customer gives a console role sees the data above for their organization: viewers, analysts and admins all see people and events. Admins also manage settings, members and the audit log.

Inside Trakkwise. Only operators with production access can reach the database. Access to the customer's data is for support and operation only (see the DPA).

5. Alerts

If the customer turns on alerts, digests of blocks, warnings and silent devices go to the Slack channel or email addresses the customer chooses. They include the person's email, the AI tool, the policy and the data labels. Emails are sent through AWS SES.