Your source code is never stored
Each run is a short-lived job in a fresh container. It takes a shallow, sparse clone of the merge commit, limited to your docs folder where there is one, works on it, and ends. When the run ends, the container and the clone are gone.
- Never used to train models. Only what a run needs is sent, under terms that exclude training on your data.
- Your source code and code changes are never written to DocFit's database.
- PR descriptions and ticket text are read during the run and not kept.
- The run gets a GitHub token minted for that run, valid for under an hour, and nothing else from your account.
- Your own build and lint commands run in an isolated runner that holds no DocFit secrets.
What DocFit never does
- Never merges. It opens pull requests and posts comments. A person on your team decides what ships.
- Never writes outside your docs. The editing agent can only read and write inside the docs folder of its own branch. Absolute paths,
..and symlinks out of it are refused, and an edit outside it fails the run. - Never pushes outside its own branches. Every commit goes to a branch named
docfit/…. - Never deletes a page. The agent has no tool to remove files.
- Never changes a ticket's status. It posts one comment with the docs PR, and nothing else.
- Never reaches the network or runs shell commands from the agent. Its tools are scoped to your docs and DocFit's own checks.
Access only where you allow it
DocFit is a GitHub App, so access is per installation and per repository. You choose which repositories it can see, and every repository stays off until you turn it on.
| Permission | Used for | Why this access |
|---|---|---|
| ContentsRead and write | Reading the merged change and docs; committing to docfit/ branches | GitHub requires Contents: Write to create a branch, and every docs PR needs its own docfit/* branch. Read alone could not open one. |
| Pull requestsRead and write | Reading the merged PR; opening and updating docs PRs | Write is what lets DocFit open a docs PR and push fixes to it. It never merges one. |
| IssuesRead and write | GitHub Issues as ticket context; one comment back | Write is needed to post PR comments and issue backlinks: one “DocFit: docs PR … opened” note on at most two linked tickets. |
| ChecksWrite | The docs impact check on open PRs | Posting a check result on a PR needs write access. |
| MetadataRead | Repository names and settings | GitHub grants it to every app, read-only. |
Hard-coded guardrails
Enforced in DocFit's code, whatever the permissions above would allow.
DocFit can never push to
main.Every commit goes to a DocFit-named branch:
docfit/<repo>-pr-<n>,docfit/…-batch,docfit/starter-docsordocfit/config.It never touches files outside the configured docs folder.
An edit outside the docs target fails the run, so nothing outside your docs reaches a branch.
It posts zero comments and creates zero branches during the initial 5-PR setup dry run.
Dry runs write nothing to GitHub. You see what DocFit would have changed in the DocFit dashboard.
Jira Cloud connects with OAuth and only read:jira-work, write:jira-work and offline_access, limited to the projects you allow. Slack only posts to the channels you pick. Every webhook DocFit receives, from GitHub, Slack or payments, is signature-checked and de-duplicated.
Prompt-injection defence
Diffs, code comments, PR descriptions, tickets and docs are treated as untrusted input. DocFit fences them so they can't pose as instructions, gives the agent only docs-scoped tools with no shell and no network, and checks the final diff. A hostile instruction can at worst produce a docs PR that a human then reviews.
Secrets and isolation
- Tokens and API keys are never stored in plain text: they're encrypted with AES-256-GCM using a key held in Google Secret Manager.
- Tokens, keys and private keys are never written to logs.
- One workspace can never read another's data: every query goes through a layer that refuses to run without your workspace id.
- Nothing travels unencrypted: all traffic uses TLS.
Leave any time, and nothing stays
- Uninstall the GitHub App and DocFit's access stops immediately.
- Delete your workspace from Settings and everything is purged within 30 days; you can change your mind until then.
- Remove a repository, a rule or an integration whenever you like.
Report a vulnerability
Email contact@docfit.dev with the details and steps to reproduce. You'll hear back within two business days. Please give us reasonable time to fix an issue before you publish it, and don't access data that isn't yours while testing.