Skip to content

Data retention and deletion ​

Retention periods below apply to the hosted service at stamp.build. Self-hosted instances configure their own periods.

GitHub stays the source of truth for code, pull requests, reviews, and comments. Deleting data in Stamp never deletes anything on GitHub.

What is deleted on a schedule ​

WhatKept forThen
GitHub events Stamp received (webhook deliveries)14 daysDeleted.
Comment and review events (comment text shown in Stamp search)90 daysDeleted; those comments leave Stamp's search.
Push code bundles (stored before publishing to GitHub)Until published to GitHubDeleted once published (or 7 days after a failed publish; storage removes the bytes about 7 days after upload).
Code bundles of a push Stamp refused (stored before the refusal)At least until no other push to the same repository is arriving; then until Stamp deletes them, or, past 7 days, until Stamp's operators doDeleted at the refusal if no other push to that repository is arriving; otherwise checked again 31 minutes later and every 31 minutes for 7 days, and whatever is still left then is logged for Stamp's operators, who delete it by hand. A bundle that a push record names follows that record (the row above). One whose push may have been accepted is not deleted here; if no record ends up naming it, it is named as in the next row. Storage removes the bytes about 7 days after upload at the earliest.
Code bundles that no push record names (left when a push is cut off between storing its code and recording it)At least 8 days; until Stamp's operators delete themFrom their 8th day, named to Stamp's operators once per complete pass of Stamp's daily check over all stored code (a pass takes a day, or a few on a very large store), until an operator deletes them; nothing deletes them on its own, because a new push of the same code could be about to use the same stored copy. Storage removes the bytes about 7 days after upload at the earliest.
Needs you items you handed to an agent (the item, the agent, your note, and the question if the agent handed it back)While it is with the agent. It ends when you take it back, the agent hands it back, or 7 days after its pull request closed or merged; your note is erased when it ends. The rest is kept 30 days after it ended.Deleted at your next hand-off past those 30 days, and with the server's data when its GitHub App is uninstalled.
Your Needs you hand-off rules (the server, the repository, the agent or "the recommended agent", who added it and when)Until you remove it, or replace it with a new rule for the same repository. A removed rule is kept 30 days.Deleted at your next new rule past those 30 days, and with the server's data when its GitHub App is uninstalled.
Agent inbox items (stamp inbox)30 days after the item's last event. An item you took off your to-do list for a permission request still waiting on a decision is kept until the request is decided or expires, so it does not come back, then deleted at the next run past those 30 days.Deleted.
Pushes a repository protection in evaluate mode would have refused (stamp repo guard log)30 daysDeleted.
An organization owner's approval, on GitHub, of an install request someone of a server sent (details: the installation, the organization, the person who asked and the owner who approved, each by GitHub account, when it was installed, and the server it connected)While the connection it made lasts; when it connected no server, 30 days after the installationWhen the connection is removed (from the server, or the installation deleted on GitHub), Stamp keeps only the installation id and times, with no logins or GitHub ids, until 30 days after the installation, so the same approval never connects again. That, and one that connected nothing, is deleted at the first check past those 30 days (every 10 minutes).
The stamp CLI version an agent's requests name (per server and agent: the version, when Stamp first and last saw it, and the release its daily digest last told it about; never a person's)30 days after Stamp last saw itDeleted.
Each agent's workflow runs started or rerun through Stamp, counted for its hourly limit (the server, the agent, the repository, dispatch or rerun, and when)2 hoursDeleted.
CI facts: each GitHub Actions run and job of a repository Stamp covers (workflow and job name, branch, commit, pull request numbers, conclusion, times; no logs or output text)60 daysDeleted.
CI test reports, from the JUnit XML a repository's CI uploads as stamp-test-report* artifacts (per run attempt: each test file's path, test counts and time, and the names of failed and flaky tests; no test output or failure messages)60 daysDeleted.
Local test runs an agent reports with stamp ci local-run (per pushed head: the branch, each run's commit, start, duration, wait, exit code and test file paths; no test output)60 days after the last report for that headDeleted.
What you last saw of a pull request, for its page's "since you last looked" (per person and pull request: when, the head, and its CI result and failing check names then)60 days after you last opened itDeleted.
The steps of a code tour you marked as viewed (per person, tour and step: when, and a fingerprint of the step's code then, not the code itself)60 days after you marked the stepDeleted; also deleted when you unmark it.
CLI sign-in codes (stamp login at /device)Valid 10 minutesDeleted when a later code is issued, once it is a day past expiry.
A GitHub sign-in on an approval link (an organization's GitHub owner allowing a server's use of its repositories: the GitHub account that signed in, what Stamp found, when; never the GitHub token, which Stamp uses once and revokes)2 hours, the sign-in's hold on the linkDeleted.
An approval link (the server's name, its sender's name and handle, the organization, the repositories, the note, who allowed, declined or stopped it on GitHub and when; never the link itself)While it is open, and while it is allowed (it is where its owner stops it); 30 days after it was declined, revoked, stopped or expired unusedDeleted, and with the server's data when its GitHub App is uninstalled.

Scheduled deletions run hourly in batches, so items may remain briefly past their retention window; sign-in codes are cleared when a later code is issued, and a push's code when it is published.

When a comment is deleted or edited on GitHub ​

Stamp keeps a comment's text only as long as GitHub shows it. When GitHub tells Stamp a comment was deleted, its text leaves Stamp's search and the stored GitHub events, whichever order the events arrive in. An edited comment or review keeps only its new text, and agent notifications and inbox items that quoted the old text lose the quote. The pull request page's conversation follows at its next refresh from GitHub.

Three limits remain. Notifications already sent to Raft stay as they were sent. If GitHub never delivers the deletion, the text stays until the 90 days above. Backups keep older copies until they expire. So if you paste a secret, rotate it as well as deleting it.

When a server's GitHub App is uninstalled ​

When the GitHub App installation covering a server is uninstalled on GitHub (or reported gone) and no other installation covers any of the server's repositories, Stamp deletes that server's pull request data and keeps its audit receipts:

WhatWhen
Pull request pages and search (stored pull request data, details, metrics, agent insights) and the server's public repository view settings (server-wide and each repository's own) and repository names, its Actions trust rules, its code tours with their comments, symbol indexes and the steps people marked as viewed, and its approval links with the GitHub sign-ins on them7 days after the uninstall
Who registered a merge queue target branch for the server (their Raft id and GitHub account). The registration itself stays: it still guards the branch until it is unregistered or moved to another server7 days after the uninstall
Push receipts, pull request creation receipts (who pushed what, when, and where it was published) the history of the public repository view settings, the history of its Actions trust rules (who added, changed or removed each), and the history of its merge queue target registrations (who registered, unregistered or took over each)Kept (stamp.build keeps them; the code default deletes them 90 days after the uninstall)

Deletion is cancelled as long as, or as soon as, another installation covers one of the server's repositories again (including a reinstall), so uninstalling one of several installations deletes nothing. Other servers' data is untouched.

When Stamp is uninstalled from a Raft server ​

When a server uninstalls Stamp in Raft, or the server is deleted, Raft tells Stamp, and Stamp ends that server's agents' and people's access to Stamp: their sessions there, CLI sign-ins, CLI agents and SSH keys. The approvals they gave on that server no longer count, and their auto-merge registrations there end. The act-as grants its people gave from it to agents on other servers end for good too (installing Stamp again does not restore them; they grant again). Nothing is deleted: the server's pull request data stays until the GitHub App is uninstalled (the section above). Only an explicit answer from Raft does this; Raft not answering never signs anyone out. After Stamp is installed again, agents and people sign in again, and sessions from the earlier installation do not come back.

What is kept with no automatic deletion ​

Everything else is kept while the server uses Stamp:

  • Stored pull request data, details, metrics, and agent insights of a server whose App remains installed.
  • Push receipts and pull request creation receipts of a server that is still installed, and accepted push records (who, which refs, which commit).
  • The Raft conversation an agent opened a pull request from (when it ran stamp pr create inside a Raft Worker), kept with that pull request's creation receipt: Stamp sends it only in that agent's own events about that pull request, and deletes it with the creation receipt. While Stamp retries a creation GitHub failed, its retry job holds the value too, until that job ends.
  • Stored data of a repository removed from App coverage or an installation unbound with "Remove" without uninstalling: Stamp stops acting on it without deleting stored data.
  • Requests, grants (act-as, workflow, App requests), and approvals. A workflow request stores the input values of the run it records and shows them to whoever approves it. If it ends without an approval (declined, closed, or a draft that lapses after 24 hours), the values are cleared and only their digest is kept. An approved request keeps them, because the approver saw them and GitHub records them for the run.
  • Actions trust rules until someone removes them, and the history of who added, changed or removed each.
  • Code tours and the comments on them, until the server's GitHub App is uninstalled.
  • A merge queue target branch registration, with the Raft id and GitHub account of the person who registered it, until it is unregistered or moved to another server (or until the server's GitHub App is uninstalled, for the person's details: above), and the history of each registration.
  • Agent SSH keys and commit email bindings (revoked keys remain as records).
  • Notifications delivered to agents (deleting an inbox item leaves the underlying notification).
  • Expired browser and CLI session records (no longer usable, kept as records).
  • Uninstall records and what was deleted.

How fast pages load (browser telemetry) ​

When it is turned on, the Stamp web app reports how its pages perform, so slow pages and errors can be found and fixed. Your browser sends the reports to Stamp itself, never to another site, and Stamp checks every field before keeping it. Signed-out pages (sign-in, setup) report too, but only page loads, request timings and errors.

What a report holds:

  • Which kind of page it was, as a template: /github/:owner/:repo, never the repository's, organization's or person's name.
  • Timings your browser measured: how long the page took to show its main content, how long each Stamp request took, and loading and responsiveness measures.
  • For a failed request: which Stamp operation (as a template), its method, its status code, and a fixed failure kind (network, timeout, http_5xx...), never its text.
  • For a page error: the error's type (TypeError...), the file of Stamp's own code it happened in (any other file is recorded only as "external"), and at most 200 characters of its message. Stamp cleans the message again itself: every web address is cut down to its site (https://example.com, never the page it pointed to), and e-mail addresses, tokens and secrets, IP addresses and long numbers are removed. The other words of the message stay as they were, so if the error message itself contained a word such as a repository's or a person's name, that word can be in the report.
  • Your device class (desktop, mobile or tablet) and browser family (Chrome, Safari, Firefox, Edge, Opera or other).
  • On signed-in pages only, what you did with What's new: that its unread dot was shown, that the small window announcing a new issue was shown and whether you chose View or Dismiss in it, that you opened it, which item's link you followed (by the issue's number and the item's position) and that you reached the full list of changes. Nothing else about what you click is recorded.
  • Random identifiers: one for the page load, and, on signed-in pages, one for your browser session. They count page loads and sessions, never people, and cannot be traced back to you. On signed-in pages, a trace id ties a page's request to Stamp's own record of serving it.
  • Which Stamp build and environment served the page, filled in by Stamp, not by your browser.

What is never collected: full addresses, queries or fragments; names or ids of repositories, organizations, channels or people; e-mail addresses; your IP address (Stamp uses it only for a minute, to limit how much one address can send, and never stores it); your browser's raw user agent, its version, your operating system or device model; screen size; network type; your location.

Retention: kept with Stamp's and Raft's own telemetry, with no automatic deletion period yet. Deletion periods by kind of telemetry are still to be decided; this page will say when one is set.

Sessions, tokens and connections ​

  • Browser sessions: expire after 7 days of inactivity (extended on each use), and last at most 30 days from sign-in however much they are used. At 30 days, the next page you open signs you in again through Raft by itself and brings you back to that page; while you are still signed in to Raft you only see the page load a moment longer. This re-reads your role on the Raft server. Signing out deletes the session.
  • CLI sessions (stamp login, and an agent's stamp agent login): end after 30 days without use. However much it is used, a CLI session lasts at most 90 days from the approval at /device; after that the command says to run stamp login (or stamp agent login) again, and the new approval reads your current role on the server. Only a member, admin or owner of the server can approve a CLI sign-in; a guest cannot. A session also ends, within 15 minutes, when Stamp's records show that the person who approved it was removed from the server, or that they have since signed in to Stamp with a lower role than the session carries. stamp logout ends the session on the server; stamp logout --all ends an agent's sessions on every machine.
  • Your GitHub connection: GitHub tokens are stored encrypted. "Disconnect GitHub" deletes them, and tokens revoked on GitHub are deleted on next use.
  • Your GitHub connection per Raft account (rolling out): once your GitHub connection moves to your Raft account, Stamp keeps one GitHub identity for your Raft account (your GitHub account id and login, and when a GitHub sign-in last proved them) and one GitHub token per GitHub App you signed in through, stored encrypted. On each server that uses that App, your sign-in record keeps your GitHub account id, login and last use, and stands for the account's token, with no token of its own. A token ends after 7 days without your own use on any server that uses its App (the rule below), when you revoke Stamp on GitHub, or at "Disconnect GitHub", and is deleted then. "Disconnect GitHub" ends it on every server: it deletes the identity, the tokens and your sign-in records everywhere. If your connection moves back to each server instead, Stamp deletes the identity once your account holds no token, within about 15 minutes of the last one ending; your sign-in record on each server keeps your GitHub account id and login, as after a sign-in token ends (the rule below).
  • Security rule: stored GitHub sign-in tokens expire when idle. A GitHub sign-in token Stamp stores ends after 7 days without your own use: Stamp revokes it at GitHub and deletes it. Only your own actions count: opening a page, a click, a CLI command. Background reads and agents acting under your grants do not. You get an inbox item 2 days before and at the end, and so do agents holding your grants. Stamp keeps your GitHub account id and login and your act-as grants, which wait until you connect the same account again; until then agents act as the App. If GitHub cannot be reached for 24 hours Stamp deletes the token anyway and tells you to revoke it on GitHub. A .stamp/CODEOWNERS owner counts as connected for 90 days after their last use. Full GitHub permissions below follow their own rule.
  • Full GitHub permissions (rolling out): Stamp keeps no such token. It works only in the browser where you authorized it, for at most 3 days from when you authorized; by GitHub's documented default it stops working after 8 hours. Nothing extends that time: once it ends, you authorize again. "Revoke", "Disconnect GitHub" and signing out, from that browser, revoke the authorization at GitHub and remove it from the browser. Done from another browser they cannot reach it: the token ends with its 8 hours, and Stamp will not use it. Tokens Stamp stored before this change are revoked at GitHub and deleted within 15 minutes of the release. The history of connects and revokes (account, scopes, time; never a token) is kept. In the full-access pilot, Stamp keeps the token for your Raft account instead of your browser: until 7 days pass without your own use, 90 days after you authorized, or until you authorize again, whichever comes first; it then revokes the token at GitHub and deletes it. If an authorization does not finish, Stamp never uses that token: it revokes it at GitHub and deletes it, usually at once, otherwise within about an hour; when that fails, the token stays stored, never used, until its idle limit (7 days without your use) or, in rare cases, until Stamp's operators revoke it. "Revoke" and "Disconnect GitHub" end it at once: nothing uses it from then on, and Stamp revokes the token at GitHub and deletes it, trying again until that succeeds. It also ends when your Raft account's GitHub connection changes to another GitHub account, and when you are no longer a member of any server Stamp knows you on: Stamp normally stops using it at once, and revokes the token at GitHub and deletes it shortly after, usually within a minute (if it cannot end it then, at its idle limit). Signing out does not end it. Stamp messages you 2 days before the 7 days without your use run out, 7 days before the 90 days (these two while you are in the pilot), and when it ends. Stamp records each use (which action, on which server, when; never the token) and each connect, revoke and end, and keeps those records; nothing deletes them yet (a year is planned). Stamp also keeps a record of the token without the token itself (its id, your GitHub account, the scopes, when you authorized it and last used it, when it ends, and whether it is being revoked or ended and why), after it ends too, and its connects, revokes (asked for and confirmed, with why), ends and a fork's use (its id) join the history above, kept like it. Before such a use you confirm with Raft again; Raft's sign-in proof from that confirmation is kept for at most 15 minutes.
  • Your Raft servers (rolling out): when you sign in or authorize a server, Stamp keeps the list of servers Raft says you can use Stamp on: each one's id, slug and name, and when Raft listed it, never your role there. Each sign-in replaces the list, and a server you leave is removed from it (at the latest at your next sign-in); Sign out everywhere deletes it. If Stamp stops keeping these lists, it deletes them all.
  • Leaving a Raft server: removing someone from the server revokes their browser and CLI sessions there (plus SSH keys for an agent). Uninstalling Stamp from the server ends everyone's there (above).
  • Which Raft installation a sign-in belongs to: each session records the Raft installation of Stamp it was signed in under, so when Raft says that installation was removed, its sessions end, and installing Stamp again never brings them back. Sessions from before Stamp recorded this end once: an agent signs in again (stamp login) at its first refresh, a CLI session asks for one more device approval, your browser signs in again through Raft by itself, and each other server you had authorized asks you to authorize it once more.
  • Leaving a federation: act-as grants that relied on the federation are revoked immediately.

Asking for deletion ​

  • To stop Stamp acting on your repositories and delete your server's pull request data, uninstall every GitHub App installation covering the server on GitHub (following the uninstall schedule above). Removing repositories from an installation or unbinding it stops Stamp from acting on them without deleting stored data.
  • For any other deletion request, contact the Stamp team (stamp feedback for agents, or directly for people).