Skip to content
Open the dashboard
Security and data

What we store

SecurityWorkspace admins6 min read

This page lists every kind of data Groundrule keeps for a workspace, what each holds, and how long it is kept. All of it is separated by workspace in the database, as How Groundrule protects your code describes. For what is sent to AI, see AI and your data.

  • Your source code. Scans and checks run on your computer or CI runner and upload results, not files or diffs. The most code Groundrule keeps is one-line snippets of at most 200 characters, with secrets redacted, and none for security rules: up to 3 per rule in a scan, and one per finding in a check result (at most 500 findings). --no-snippets turns them off. For a repository an admin turned on for hosted checks, Groundrule reads the code in a sealed sandbox and deletes it when the check ends: it keeps no code, archives, diffs or whole files, in logs, backups or anywhere else, and snippets only if Keep one-line snippets is on for that repository.
  • Whole agent files. A scan uploads each agent file’s path, line count and a hash of its contents, plus the instructions found in it, with secrets redacted.
  • Uploaded files. A document is read into text passages, and the file itself is discarded.
  • Document text after reading. Passages are deleted when reading ends, whatever the outcome.
  • Raw secrets. Passwords are stored only as scrypt hashes; sessions, email links and API tokens only as SHA-256 hashes; connected-app tokens only encrypted.
Data What is in it How long it is kept
Your account Name, email, whether it is verified, the role you described, if you gave one, a password hash, and your GitHub identity if you connected it While the account exists
Your workspace Name, URL name, company name, team size, stack, coding agents, code host; members and their roles; invitations While the workspace exists
The rulebook Your own standards with every version and change note; which packs are on; rollout settings per organization, team and repository; teams, owners and repositories While the workspace exists
Scan reports Repository name, branch, commit, file count; stack and tools; agent file paths, line counts and hashes; from CLI 0.22.0 the resolved import graph (each import’s file, line, and the repository path or package name it points at; at most 20,000; never code), kept for the latest scan of each repository; per rule: outcome, counts, up to 3 examples (file, line, message, optional redacted snippet); who uploaded it, with which token The latest 20 scans per repository; older ones are removed when a new one is uploaded
Check results from CI and hosted checks For each check uploaded with groundrule check --upload, or checked by Groundrule for a repository turned on for hosted checks: the repository’s name, branch and commit; for a pull request, its number, title, link, branches and the author’s login on the code host; whether it passed and at which threshold; counts; each standard’s outcome; up to 500 findings (rule, severity, file, line, message, and a one-line snippet of at most 200 characters with secrets redacted, none for security rules); the CLI version; who uploaded it, with which token. From CLI 0.9.0, and for every hosted check, the compliance record: a digest of the rules in effect, each rule’s version and stage, the exceptions that hid findings (ID, rule, expiry, approvedBy as written, and a count), and per coding agent the commits declare, its name and a count, never commit messages, SHAs, names or emails. From CLI 0.10.0, with a signing key in CI, the run’s Ed25519 signature, the signing key’s ID, whether it verified, and the run exactly as signed (without snippets); or, with keyless signing in GitHub Actions (CLI 0.11.0, --sigstore), the Sigstore bundle (the short-lived certificate, the signature and the transparency-log entry) and the workflow identity it names. For a hosted check: that Groundrule checked it, when the code was read and when it was deleted, and snippets only if Keep one-line snippets is on. Every member of the workspace can see them The latest 300 check results per repository; older ones are removed when a new one arrives
Signing keys The public keys an admin registers under Settings → Signing keys: a name, the key, its ID, who added it and when. Never a private key. Every member can see them Until an admin removes the key
Hosted-check switches Which repositories are turned on for hosted checks, who turned each on and when, and whether snippets are kept Until an admin turns the repository off, or Groundrule Code Checks is uninstalled or disconnected
Hosted-check jobs One record per check: the repository’s ID and name, the pull request’s number, the commits, the status and a short reason. No code, no file names Kept
Agent check reports For each check the stop hook or the MCP check tool ran in a connected repository (CLI 0.16.0 and later, unless the config says reports: none): the repository’s name; the agent and whether it was the hook or the MCP tool; a SHA-256 hash of the agent’s session id when it gave one; the mode and base; how many files and rules were checked and how long it took; per rule that found something, its ID, severity, a count and whether it was blocking; whether the agent was stopped; the CLI version; who uploaded it, with which token. Never a path, a line, a snippet, a prompt or an answer. Every member of the workspace can see the counts 180 days; older reports are removed as new ones arrive
Agent action reports For each ask or deny the before-tool hook answered in a connected repository (CLI 0.24.0 and later, unless the config says reports: none): the repository’s name; the agent; a SHA-256 hash of the agent’s session id when it gave one; the kind of action (shell, edit, read, fetch, mcp, other) and the decision; the IDs and effects of the policies that matched; the CLI version; who uploaded it, with which token. Never the command, the file path, the URL, the tool’s arguments, a prompt or an answer. Allowed actions are never reported. Every member of the workspace can see the counts 180 days; older reports are removed as new ones arrive
Contributor digest From CLI 0.20.0, with scan --upload or check --upload: for each distinct commit author on the repository’s default branch in the last 90 days, a SHA-256 hash of the address salted with a value that belongs to your workspace; the repository’s name; when the hash was first and last seen. Never an address, name, login or commit. The workspace counts distinct hashes as its active contributors for billing; a hash cannot be read back, and the salt never leaves the API. --no-contributors sends none Counted while last seen within 90 days; rows older than that are ignored
Agent reports from CI For each report uploaded with groundrule sync --upload: the repository’s name, branch and commit, and the pull request’s number; whether the rules come from the workspace or local packs; each agent format’s file paths and whether they match the rulebook; the number and IDs of the rules in them; yes or no for the stop hook and the MCP server per agent; the CLI version; who uploaded it, with which token. Never file contents. Every member of the workspace can see them The latest 50 reports per repository; older ones are removed when a new one arrives
Imported documents The import’s record: name, title, kind, size, pages, passage count, cost estimate and cost, status, who imported it, and the source link for a connected app The record is kept
The explainer list If you sign up for the explainers on groundrule.dev: your email address, as a contact at Resend, our email provider, once you have confirmed it by clicking the link we send. Nothing is stored before the click. Signing up creates no account and the address is used for nothing else Until you unsubscribe (every email has a one-click link) or ask us to delete it
Document passages The text, with secrets redacted, and each passage’s location Until reading ends. An import nobody confirms is cancelled after a day; a reading interrupted for 30 minutes is stopped. Either way the passages are deleted
Proposals The proposal’s text (redacted), its kind, category, strength, similar rules, AI’s draft and confidence; sources (repository, file, lines); citations (document, location, and a quote of up to 600 characters); for proposed rules, who proposed it, the reason and example; decisions with who, when and why Kept. A proposal from a scan leaves the open list once no repository contains it anymore
Connected apps The app, the account name, its access and refresh tokens encrypted with AES-256-GCM, status, who connected it, when it was last used Until an admin chooses Disconnect, which deletes the tokens
GitHub installations For each installation of Groundrule for GitHub or Groundrule Code Checks: the GitHub account, whether it covers all or selected repositories, who installed it Until it is disconnected in Groundrule or uninstalled on GitHub
GitHub webhook deliveries The delivery ID, to handle each one once 7 days
API tokens Name, SHA-256 hash, the first 12 characters, permissions, expiry, when it was last used, and whether and by whom it was revoked Kept after expiry or revocation, so the list shows its history; a revoked or expired token never works again
Agents signed in to the MCP server For each agent that signs in: what it says about itself (its name, the addresses it returns to, and the address of its registration document if it has one); for each sign-in: the person, workspace, agent name, where it returns to, the permissions, when it was created and last used, and whether and by whom it was signed out. One-time sign-in codes and renewal tokens are stored only as SHA-256 hashes; hourly access tokens are API tokens bound to the MCP server Agent registrations nobody used are removed after a day. Sign-ins are kept after sign-out, so the list has its history; codes last 60 seconds and renewal tokens 30 days
CLI sign-in requests A hash of the device code, the code shown, the computer’s name, and the IP address of the request Removed a day after they expire
Sessions A SHA-256 hash of the session token, your browser’s user agent, when it started and was last used 30 days, or until you sign out. Changing or resetting your password ends your other sessions
Email links A hash of the link’s token, its purpose, and the email Removed 7 days after they expire
Rate-limit counters A key (such as an email or IP address) and a count Removed after a day
Audit log Who did what and when, for administrative actions: workspace and AI settings, packs, standards, rule adoptions and promotions, teams, owners, repositories, members and invitations, API tokens and CLI approvals, connections and GitHub (including turning hosted checks on, changing or off), proposals, and document imports. Details are IDs, names and counts Kept; it can’t be changed or deleted
AI usage ledger Feature, person, time, model, prompt version, token counts, cost, status, attempts, number of redactions, duration. Never what was sent or returned Kept; it can’t be changed or deleted
AI answer cache The model’s answer (such as a drafted standard or the rules found in a document), keyed by a hash of what was sent 30 days. Never with Zero retention; choosing it deletes the cache

You can delete or end some data yourself:

What How
A connected app’s tokens Settings → Connections, the bin icon, Disconnect
A GitHub installation Settings → Connections, the bin icon, and uninstall the app on GitHub
An API token Settings → API tokens, revoke
Your other sessions Change your password in Settings → Your account
An import’s text before reading Cancel import in the estimate dialog
Cached AI answers Choose Zero retention in Settings → AI
Snippets in future scans npx @groundrule/cli scan --upload --no-snippets
Snippets in future check results npx @groundrule/cli check --upload --no-snippets, or snippets: "false" in the GitHub Action
Coding agents in future check results npx @groundrule/cli check --upload --no-authorship
The contributor digest in future uploads --no-contributors on scan --upload or check --upload
Snippets in future hosted checks Untick Keep one-line snippets for the repository in Settings → Connections
Hosted checks of a repository Turn its switch off in Settings → Connections; nothing more is read

Deleting a whole account or workspace from the dashboard isn’t available yet.