Guides

Code Governance

Coding agents (Cursor, Copilot, Devin, Claude Code, Codex) now raise real pull requests. Code Governance puts a human-approved, fully-audited gate in front of those changes: SyftOS reviews the diff, and you approve, request changes or reject, without SyftOS ever running your code.

What it's for

SyftOS connects to your repository as a governance app. When an AI-authored pull request appears, it ingests the change, works out which agent wrote it, checks it against your policy, and holds it behind a required status check until a distinct human signs it off. The result is an auditable record of who approved what an AI wrote — the control regulated teams need but native version control doesn't fully give.

Code Governance is available on plans that include it. It's separate from the GitHub integration, which gives your agents repository tools. Here SyftOS governs changes rather than acting in the repo.

Connect a repository

Under Govern → Repositories:

  1. Click Connect GitHub and authorise SyftOS.
  2. Pick a repository from the list. You only see ones you can administer, and any already connected are marked.
  3. That's it. SyftOS provisions the webhook and the required status check for you, with sensible defaults (which coding agents are allowed, which branches are protected). You never paste a token or a secret; they're generated and stored encrypted, never shown in the app, logs or events.

The review loop

When an AI-authored pull request is opened or updated, SyftOS automatically:

Reviewers work in Govern → Reviews. Each review shows the pull request and branch, the authoring agent, who opened or triggered it, the CI result, the policy verdict with any flags, and a clear merge-readiness checklist: a distinct human has approved, CI is green for the exact commit, and policy has passed.

Approve, request changes, reject

Deciding needs the merge-approval permission (held by Admins and Owners), and you must be someone other than the change's author or triggerer — always, no exceptions.

When an approved change is merged, SyftOS writes an immutable attestation into the append-only audit chain: the diff fingerprint, the authoring agent, the named human who approved, and the CI verdict. That's your evidence trail.

Disconnecting

Disconnect a repository any time. If it has governance history, SyftOS keeps that history intact, revokes the live access immediately, stops ingesting new pull requests and frees the slot. The record of past decisions is never deleted. Reconnecting later picks up cleanly with a fresh secret.

What it never does

Code Governance reads a diff and writes a status check — nothing more. It never runs your tests or build, never executes your CI (it reads the verdict your CI produces), and never executes any of your repository's code.

Next steps