portal
Your data

What portal reads, keeps and sends.

portal reads your repo to check pull requests against your architecture. It keeps the facts it read, not your code. This page lists all of it, and it's checked against the code: when what portal keeps changes, this page changes with it.

What it reads

  • Through the GitHub App, with these permissions only: repository contents and metadata (read), issues (read), pull requests (read and write, for its comment), checks (read and write, for its check). Nothing else, and never your secrets: it reads config files, not secret stores.
  • When: when a repo is added, after a pull request merges, and on each pull request (its changed files, the spec, the config, and for packages a copy of the code at the pull request's head). The code is read in memory and not stored.
  • Traces, only if you create a telemetry key and send OpenTelemetry traces to portal.
  • Your GitHub account, when you sign in: your login, avatar, and which repos you can read or write. portal keeps no GitHub token after sign-in.

What it keeps

WhatHow long
systems

The repo's name and installation; your spec's .c4 files as text; what portal read from the code: file paths and line numbers, service and package names, languages and frameworks, dependency and API names, environment variable names (not their values; from Docker Compose, only host names), and short expressions where the code calls out (os.Getenv("CART_ADDR")); a hash of the telemetry key (never the key); whether AI review is on, and who turned it on.

While the repo is installed. Replaced on each read of the default branch.
reviews

For each pull request commit portal checked: its number, title, author, file and line counts, the checks' findings (element names, file paths and lines), and the AI review's text and token counts when one ran.

While the repo is installed.
pull_requests

Each pull request's number, title, author and state (open, merged, closed).

While the repo is installed.
pr_comments

The id of the comment portal posted on each pull request, to update it instead of posting again.

While the repo is installed.
runtime_edges

From the traces your services send (only if you set up a telemetry key): which service called which, in which environment, how many times, first and last seen. No span attributes, payloads or headers.

While the repo is installed.
pending

A span's trace and span ids, service, kind, environment and the host it called, while portal waits for the other half of the call.

Minutes: up to 10 minutes; calls are counted after 60 seconds, then the span is deleted.
repo_reads

For the Add repositories search: whether a repo has a Docker Compose file or a Worker config.

While the repo is installed. Re-read on push.
sessions

Your GitHub login, avatar URL, and the names of the repos you can access. A hash of the session id; never a GitHub token.

12 hours, then deleted.

Logs: Cloudflare keeps the Worker's logs (repo names, errors) for a few days, for running and fixing portal.

Who it's sent to

WhoWhat and whyWhen
Cloudflare

Runs portal: the Worker, its database (D1) and queue. Everything above is stored there.

Always
GitHub

portal reads the repo and its pull requests through the GitHub App, and posts its checks and one comment per pull request.

Always
Anthropic

Only when AI review is on for the repo (it's off by default), or someone with write access asks for one with /portal review: the pull request's title, description and author, its diff (lockfiles and generated files left out), and portal's checks. Under Anthropic's commercial terms, API inputs aren't used to train models.

Only if AI review is on, or asked for

No one else. portal doesn't sell or share data, and has no analytics or advertising trackers.

When you leave

  • Uninstall the GitHub App, or remove a repo from it: everything portal kept about that repo is deleted at once, from every table above.
  • Suspend the App: the repo is hidden and kept, and comes back when you unsuspend it.
  • Sign out: your session is deleted.