---
sidebar_position: 5
---

# Repo Management

Manage per-repo fullsend installations at scale using a declarative
`repos.yaml` manifest. The `fullsend repos` command group provides bulk
install, status checking, drift detection, configuration sync, and
version upgrades across multiple repos, GitHub orgs, and GitLab groups.

**Target audience:** Platform administrators (SRE/DevOps) managing
fullsend across an organization. For a single repository, GitHub owners
should use `fullsend github setup` (see [Configuring GitHub](configuring-github.md));
GitLab project owners declare the project in `repos.yaml` and run
`fullsend repos install` (see [Configuring GitLab](configuring-gitlab.md)).
To move an existing `github setup` installation, or scripts that pass
configuration flags to `repos install`, see
[Migrating to manifest-driven `repos install`](migrating-from-github-setup.md).

## Prerequisites

- **fullsend CLI** installed (see [releases](https://github.com/fullsend-ai/fullsend/releases),
  or run [`fullsend self-update`](../../cli/self-update.md) on v0.55.0 or later)

The remaining prerequisites are forge-specific:

**GitHub:**

- **GitHub access** — admin or write access to the target repositories
- **`gh` CLI** authenticated with the required OAuth scopes (see [OAuth scope reference](../infrastructure/advanced-setup.md#oauth-scope-reference))
- **Vertex prerequisites** — if any agent will use Vertex, complete GCP WIF provisioning (`fullsend inference provision`) separately. For self-managed mints, mint enrollment (`fullsend mint enroll`) is also required. The hosted community mint needs no enrollment — install the shared Apps and use the CLI defaults. When multiple repos share the same GCP project, existing inference secrets are reused automatically. See [Mint administration](../infrastructure/mint-administration.md) and [Advanced setup](../infrastructure/advanced-setup.md).

An OpenAI-only repository can be installed without GCP inference inputs. Each
agent's provider is selected when it runs; see
[OpenAI Workload Identity](../infrastructure/openai-workload-identity.md).

**GitLab:**

GitLab does not use `gh` or mint enrollment.
`fullsend inference provision --forge gitlab` is optional; it creates a
per-project Vertex WIF provider. See [Configuring GitLab § Prerequisites](configuring-gitlab.md#prerequisites)
for the GitLab token and runner requirements. A GCP inference project is
needed only for Vertex agents.

## Getting started

### Creating a manifest from scratch

`repos.yaml` is the single source of persistent, non-secret install
settings and of the repositories fullsend manages. Create it and declare
repositories with [`repos set`](#editing-the-manifest-from-the-command-line),
or write the YAML by hand:

```bash
fullsend repos set defaults.inference.auth vertex-wif
fullsend repos set 'github.repos["acme/api"]' '{}'
fullsend repos set 'github.repos["acme/web"]' '{}'
fullsend repos install --direct --vertex-project "<gcp-project>"
```

The first `repos set` creates `repos.yaml` (or the path given by `-f`)
with `version: 1`. `repos install` does not create the manifest or add
entries: a missing manifest is an error, and positional arguments only
select repositories that are already declared.

### Multi-forge manifests

Each platform (`github`, `gitlab`) is a top-level key containing its
infrastructure config and repos list. Repos are grouped under their
platform — no per-entry forge selector is needed. Forgejo repositories
are declared separately under `forgejo.instances`; see
[Forgejo instances](#forgejo-instances) below.

```yaml
version: 1
defaults:
  inference:
    auth: vertex-wif
github:
  mint_url: https://mint.example.com
  fullsend_ref: v2.5.0
  repos:
    - name: acme/api-server
    - name: acme/web-frontend

gitlab:
  url: https://gitlab.example.com
  fullsend_ref: v2.5.0
  repos:
    - name: gitlab-group/project
    - name: gitlab-group/subgroup/nested-project
```

GitHub repos use a token mint for authentication. The
`github.mint_mode` field controls the default mint URL:
`public` (default) uses `https://mint.fullsend.sh` when no explicit
`mint_url` is set; `private` requires a mint URL, which can come from
`mint_url` (in the `github` section or an entry), `config.mint_url`, or a
`config_base` preset. Both
`mint_mode` and `mint_url` can be overridden per-repo. A `mint_url`
declared in the managed configuration (`config.mint_url`) or the preset
takes precedence for the `FULLSEND_MINT_URL` variable. When it differs
from an explicit manifest `mint_url`, install and status report a
conflict for that repository; see
[Effective infrastructure values](../../cli/repos.md#effective-infrastructure-values).

#### Forgejo instances

Repositories on one or more Forgejo instances are declared under
`forgejo.instances`. Each instance has an `alias`, its base `url`, and
its `repos` as `owner/repo` paths relative to that URL. The same path can
be declared on several instances because a repository is identified by
its alias plus its path:

```yaml
forgejo:
  instances:
    - alias: home
      url: https://git.example.com/forgejo
      repos:
        - name: org/app
    - alias: codeberg
      url: https://codeberg.org
      repos:
        - name: org/app
```

- **Credentials.** Each instance reads its API token from
  `FULLSEND_FORGEJO_<NORMALIZED_ALIAS>_TOKEN` (the alias uppercased, with
  each run of non-alphanumeric characters replaced by one underscore, so
  `code-berg` reads `FULLSEND_FORGEJO_CODE_BERG_TOKEN`). Tokens are never
  stored in `repos.yaml`. When the variable is unset and the instance sets
  `oauth.client_id` (the client ID of a public OAuth application
  registered on it), an interactive command asks you to log in through
  your browser. It does this only for the selected instances that need
  it, and caches the token in your operating-system keyring. Forgejo does
  not implement OAuth scopes, so that token carries your full Forgejo
  user permissions; a scoped access token is preferred. See
  [Forgejo credentials](../../cli/repos.md#forgejo-credentials).
- **Selectors.** `forgejo:<alias>/<owner>/<repo>` selects a repository on
  one instance (the `<owner>/<repo>` part may be a glob). A bare
  `owner/repo` selects a Forgejo repository only when it is declared on
  exactly one instance and no `github`/`gitlab` declaration also matches;
  otherwise the command fails and lists the qualified choices.
- **Workflow host.** Fullsend's Forgejo workflows come from the same
  instance. Mark one repository per instance with `workflow_host: true`:
  `repos install` publishes the versioned workflow bundle there, and the
  other repositories on that instance pin their shim to the bundle's
  tagged commit. A repository with `vendor: true` carries its own copy
  and needs no host. Without either, install fails before any write and
  names the instance. `repos uninstall` refuses to remove the host while
  consumers declared in `repos.yaml` still depend on it.
- **Uninstall confirmation.** A selection that spans several repositories
  is confirmed once, as a whole, before anything is torn down.
- **Compatibility.** `forgejo` is a new key in `repos.yaml`, and the
  manifest parser rejects unknown keys. A fullsend binary from before
  Forgejo support fails to load a manifest that contains `forgejo:`, so
  upgrade every machine and CI job that reads the manifest before adding
  the section. Manifests without it are unaffected.

See [Forgejo instances](../../cli/repos.md#forgejo-instances) in the CLI
reference for the full lifecycle and selector rules.

`github.app_set` names the GitHub App set (apps named `{app-set}-{role}`)
and is persisted as the `FULLSEND_APP_SET` repository variable, mirroring
`fullsend github setup --app-set`. It is GitHub-only: setting `app_set`
under `gitlab` or on a GitLab repo entry is a validation error. The value
must be lowercase alphanumeric with optional hyphens (max 23 characters).
When omitted, repos get the built-in default `fullsend-ai`. Like other
scalar fields it can be set at the platform level and overridden per-repo
(for example `fullsend repos set github.app_set acme`). Reruns and
convergence preserve an existing custom `FULLSEND_APP_SET`
rather than reverting it to the built-in default, and repair the variable
when it has drifted (when `app_set` is declared) or is missing (older
installs). The implementation does not weaken exact bot-identity matching.

For GitLab repos, set the `GITLAB_TOKEN` environment variable or pass
`--gitlab-token` to `fullsend repos` subcommands. Manifest-driven commands
(`repos install` and `repos status`) require `gitlab.url` whenever GitLab
repos are present, including gitlab.com; there is no manifest default. Set
it with `fullsend repos set gitlab.url <url>` before declaring the first
GitLab repository.

`fullsend run` does not read the manifest. It reads the GitLab URL from
the first one set of `FULLSEND_GITLAB_URL`, `GITLAB_API_URL` and
`CI_SERVER_URL`. These variables never override `gitlab.url` in
manifest validation. `fullsend run` limits `GITLAB_TOKEN` in the
sandbox to that URL's host and port. It stops before setup if the URL
is invalid. With the stock GitLab agents, it also stops if no URL is
set. For a local run, set it:

```bash
export FULLSEND_GITLAB_URL=https://gitlab.example.com
```

For each stop and its fix, see [Self-Hosted GitLab Instances](configuring-gitlab.md#self-hosted-gitlab-instances).

Self-hosted instances that use a private CA need runner `tls-ca-file`
plus separate sandbox-host trust — see [Private CA (self-hosted GitLab)](operations.md#private-ca-self-hosted-gitlab).

Per-repo fields inherit from the platform-level default when omitted.
To explicitly stop a field from inheriting, set it to the literal value
`none`. For example, `fullsend_ref: none` prevents the repo from
inheriting the platform-level `fullsend_ref`:

```yaml
github:
  fullsend_ref: v2.5.0
  repos:
    - name: acme/api
    - name: acme/legacy
      fullsend_ref: none  # does not inherit v2.5.0
```

The `none` sentinel works for string fields (`fullsend_ref`,
`mint_url`, `mint_mode`, `config_base.source`, `config_base.sha256`). Fields
inside `config`, such as `allowed_remote_resources`, follow their own merge
rules instead; see [Managed configuration](#managed-configuration). For `app_set`, `none` resets the effective
value to the built-in default `fullsend-ai` rather than disabling the
field (an app set is always required to resolve App slugs).

### Inference authentication

Every repo must resolve an explicit inference authentication method,
`inference.auth`: `vertex-wif` (Vertex AI through GCP Workload Identity
Federation), `openai-api-key`, or `openai-wif` (OpenAI through Workload
Identity Federation, GitHub only). There is no implicit default. A
repo with no selection is reported as a configuration error by
`repos install` and `repos status`, before any forge change is made for
that repo. The exception is a repo whose effective configuration (for
example `defaults.config.inference.gateway`, or the `config_base`
preset) declares a complete `inference.gateway` block. The gateway
authenticates on its own, so such a repo needs no `inference.auth` and
install provisions no provider credentials for it (see
[Inference gateway route](../../cli/repos.md#inference-gateway-route)).
Uninstall does not need the setting: it removes every fullsend-managed
inference credential whether `inference.auth` is set, valid, or
missing.

The selection can be set under `defaults`, in each forge section, and on
repo or glob entries. It resolves entry → forge section → `defaults`
using the normal entry matching rules (an explicit entry wins over a glob),
so a repo-level value never affects its siblings:

```yaml
version: 1
defaults:
  inference:
    auth: vertex-wif
github:
  repos:
    - name: acme/api
    - name: acme/openai-*
      inference:
        auth: openai-api-key
gitlab:
  url: https://gitlab.example.com
  inference:
    auth: openai-api-key
  repos:
    - name: group/project
```

Only the selection is stored under the manifest-level `inference` key, and
`none` is not a valid value. Secrets are supplied on the command line
(`--openai-api-key` for `openai-api-key`). Vertex values come from
`--vertex-project` / `--vertex-wif-provider` or from `inference.project` /
`inference.wif_provider` declared in the managed configuration. A declared
`config.inference.region` makes `FULLSEND_GCP_REGION` managed; without one,
install keeps an existing variable and writes `global` only where it is
missing. `repos install`
provisions only the credentials of each repo's selected method; see
[Inference credentials](../../cli/repos.md#inference-credentials) and
[Effective infrastructure values](../../cli/repos.md#effective-infrastructure-values).

`openai-wif` needs no fullsend-managed secret. Instead, each repo needs a
complete set of OpenAI WIF identifiers: the `FULLSEND_OPENAI_*` repository
variables, or `inference.openai` in its layered `.fullsend/config.yaml`
(see [OpenAI Workload Identity](../infrastructure/openai-workload-identity.md#4-tell-fullsend-the-three-identifiers)).
`repos install` fails before any write when the identifiers are missing
or partial. GCP secrets are optional and kept for Vertex sub-agents.
GitLab repos cannot select `openai-wif`.

A repo that needs credentials from more than one method lists them, for
example `auth: [openai-api-key, vertex-wif]` for an OpenAI API key
parent with Vertex sub-agents. Install provisions and keeps the
credentials of every listed method, and deletes only the fullsend-managed
secrets that no listed method uses. With `repos set`, pass the list as a
comma-separated value (`openai-api-key,vertex-wif`); fullsend writes a mix
in that form. The order is ignored. A mix needs a fullsend CLI at or above
the release that ships mixed selections, because older CLIs reject such a
manifest. See
[fullsend repos § Inference credentials](../../cli/repos.md#inference-credentials).

Set the selection with `repos set` at the level you want:
`defaults.inference.auth`, `github.inference.auth`,
`gitlab.inference.auth`, or a single entry such as
`'github.repos["acme/api"].inference.auth'`. `repos install` has no flag
for it. See
[fullsend repos § Inference authentication selection](../../cli/repos.md#inference-authentication-selection)
for the full precedence rules, and for why install requires a selection
when `github setup` does not.

**Upgrading:** manifests written before `inference.auth` existed are not
treated as Vertex. Add the selection your repos actually use before
upgrading. For example, to keep the previous Vertex WIF behaviour
everywhere:

```bash
fullsend repos set defaults.inference.auth vertex-wif
```

**Shared manifests:** older CLI versions reject unknown manifest fields, so
a `repos.yaml` that contains `inference.auth` cannot be parsed by a CLI
that predates the key. When several people or pipelines share one
manifest, upgrade every consumer's CLI before committing the manifest edit
that adds `inference.auth`.

### Configuration presets

`repos.yaml` can declare a configuration preset so fleet installs
reproduce `github setup --config`. The preset is a local file or HTTPS
URL written byte-for-byte as `.fullsend/config.base.yaml`.
`.fullsend/config.yaml` remains the repository-local overlay and is not
merged with the preset.

```yaml
version: 1
defaults:
  config_base:
    source: https://example.com/presets/org.yaml
    sha256: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
github:
  repos:
    - name: acme/api          # inherits the fleet preset
    - name: acme/special
      config_base:
        source: ./special.yaml  # per-repo override (path is relative to repos.yaml's directory)
        sha256: none            # do not apply the fleet hash to this source
    - name: acme/legacy
      config_base:
        source: none            # disable inheritance; desired state is no base file
```

`config_base.sha256` is optional. When set, it must be a 64-character SHA-256
hex digest of the fetched content, matching `github setup --config-hash`.
A per-repo `config_base.source` override still inherits
`defaults.config_base.sha256` unless you set `config_base.sha256` on that
entry (`none` skips validation). A hash mismatch or invalid source fails
before any files are written. Remote presets without a hash are accepted,
but content integrity is not verified. Local preset paths are resolved
relative to the directory containing `repos.yaml`, not the process working
directory, and must stay within that directory (`../` paths that escape it
are rejected). A manifest loaded from an HTTPS URL must declare preset
sources as HTTPS URLs; local preset paths are not allowed in that case.

Changing the declared preset replaces the complete base file. Repeated
installs are idempotent when the desired bytes already match. If no
preset resolves for a repository (none is declared, or `source: none`
disables inheritance), the desired state is no
`.fullsend/config.base.yaml`. An existing base file is then drift, not
an unmanaged file to keep: `repos status` reports it for every manifest
repository (including one with no fullsend components yet), and fresh and
repeat installs, including `--dry-run`, stop for that repository before
any writes. A zero-byte base file counts as existing. To resolve it,
declare a `config_base` source (and optional `sha256`) that matches the
file you want, or remove the file from the repository. Install never
deletes it automatically. Leaving `config_base` out needs no `none`
marker. The same path applies to GitHub and GitLab.

With a declared preset, install first validates that an existing base is a
well-formed per-repo configuration (a malformed or non-per-repo file is an
error, never silently replaced), compares its bytes with the preset, and
shows the replacement in `--dry-run`. Before replacing the base, install
compares the current effective configuration (installed overlay over
installed base) with the proposed one (proposed overlay over the declared
preset). If the replacement would implicitly relax a restriction the
overlay does not declare — `kill_switch`, `roles`,
`allowed_remote_resources`, agent suppressions,
`tracker.<provider>.allowed_targets`, `inference.gateway.url`,
`inference.gateway.audience`, `artifacts.content`,
`artifacts.by_source.<source>`, `progress.verbosity`, or
`progress.by_source.<source>` — that repository fails before any write and
the output names the keys. Changing a preset source alone is not an
explicit declaration of a less-restrictive setting.

Agent roles follow the same layering: declare `config.roles` only when a
repository must keep a list that differs from the preset (or from the code
default `triage,coder,review,fix,retro,prioritize` when there is no
preset). An undeclared `roles` key is not written to the overlay, so the
preset's own roles take effect.

A preset can also declare infrastructure values. Its `mint_url` and
`inference.region` / `inference.project` / `inference.wif_provider`
feed `FULLSEND_MINT_URL`, `FULLSEND_GCP_REGION`, and the GCP secrets
unless the managed configuration overrides them. For GitLab `vertex-wif`
repositories it can also supply `inference.wif_audience` and
`inference.service_account`; see
[Effective infrastructure values](../../cli/repos.md#effective-infrastructure-values).

### Managed configuration

`repos.yaml` also declares the contents of each repository's
`.fullsend/config.yaml`. Set values in `defaults.config` (all repositories),
`github.config` or `gitlab.config` (repositories of that forge only), and each
repository entry's `config`. Every section uses the same fields as a per-repo
`config.yaml` (see the [Config Reference](../../reference/config-reference.md)),
including `runtime` and `allowed_remote_resources`. Only a concrete repository
entry accepts `trace_context`. Declare only the values you want to set.

```yaml
version: 1
defaults:
  config:
    runtime: pi
    kill_switch: false
    inference:
      region: us-east1
github:
  config:
    allowed_remote_resources:     # GitHub repositories only
      - https://example.com/agents/
  repos:
    - name: acme/api              # inherits defaults.config, then github.config
    - name: acme/special
      config:
        kill_switch: true         # repository values win
        allowed_remote_resources: []   # explicit empty list: deny all
    - name: acme/plain            # no config key: still managed (sparse, marker only)
gitlab:
  url: https://gitlab.example.com
  config:
    runtime: claude               # GitLab repositories only
  repos:
    - name: group/project
```

The more specific section wins: a repository entry's `config` over the forge
section, and the forge section over `defaults.config`. Values you leave out
come from the `config_base` preset (see
[Configuration presets](#configuration-presets)) and then the code defaults.
Most fields follow the normal layered merge rules described in the
[Layered Configuration Reference](../infrastructure/layered-config-reference.md).
Manifest validation rejects unknown fields and invalid values, naming the
section that holds them.

Install writes a `.fullsend/config.yaml` to every repository in the manifest,
even one with no `config` key. The file starts with an ownership marker and
contains only the values you declared:

```yaml
# This file is managed by 'fullsend repos': repos-config-v1
# Do not edit this file directly; changes will be overwritten.
kill_switch: true
runtime: pi
inference:
  region: us-east1
```

Do not edit this file in the repository. Change `repos.yaml`, or use
[`fullsend repos set`](#editing-the-manifest-from-the-command-line), and run
install again.

On a first install, install may add a `config.tracker` default to the
repository's manifest entry. If the manifest cannot be written, for example
because it is an HTTPS URL, install stops and prints the edit to make.

If a repository already has a `.fullsend/config.yaml` without the ownership
marker, `repos status` reports `managed configuration (adoption required)` and
install skips that repository. The status output shows a proposed `repos.yaml`
entry with the file's current settings. To adopt the file:

1. Copy the settings you want to keep into the repository's `repos.yaml` entry.
2. Replace the file with the managed version, or add the ownership marker to
   it.
3. Run `fullsend repos install` again.

Install refuses to make a repository's configuration less restrictive, for
example by enabling more roles or allowing more remote resources, unless the
manifest declares that change explicitly. The output names the affected keys.

```bash
fullsend repos status -f repos.yaml --json   # whole-file managed drift
fullsend repos install -f repos.yaml --dry-run
fullsend repos install -f repos.yaml         # rewrite the managed file
```

Manifests that still set `runtime` or `allowed_remote_resources` directly under
`defaults` or a repository entry fail to load. Move them under `config`; see
[`runtime` and `allowed_remote_resources` moved into `config`](../../cli/repos.md#runtime-and-allowed_remote_resources-moved-into-config-breaking).

For the complete rules, including validation of layered lists and `harness:`
blocks, the `# Source manifest:` comment line, adoption details, the pre-write
safety gate and read-only manifests, see
[`fullsend repos` — Managed configuration](../../cli/repos.md#managed-configuration).

### Editing the manifest from the command line

`fullsend repos set <path> <value>` edits any field in `repos.yaml`
without opening an editor. The path names the field with dot-separated
keys, and a quoted selector picks a repository entry by its exact name.
Every edit is checked against the manifest schema and validated as a
whole before it is written, so a rejected edit leaves the file
unchanged. Comments and unrelated content are kept.

```bash
# Set a value at defaults, forge, or repository scope
fullsend repos set defaults.config.runtime pi
fullsend repos set gitlab.agent_runner_tags '[fullsend-agent]'
fullsend repos set 'github.repos["acme/api"].config.runtime' claude

# Add a repository entry (or replace an existing one)
fullsend repos set 'github.repos["acme/new-service"]' '{"inference": {"auth": "vertex-wif"}}'

# Delete a key
fullsend repos set --unset 'github.repos["acme/api"].config.runtime'
```

Setting a field under a repository entry that does not exist fails, so a
typo cannot enroll a new repository; set the whole entry to add one. An
empty value never deletes a key: use `--unset`. See
[`repos set`](../../cli/repos.md#repos-set) for the path syntax, value
types, and migration from the removed `repos set-default`.

### Manifest paths and URLs

The `-f`/`--manifest` flag accepts either a local file path or an HTTPS URL.
Most `repos` subcommands support this — see the
[CLI reference](../../cli/repos.md) for details. Remote manifests are fetched
with a 30-second timeout. A manifest, local or remote, can be at most 1 MB.

```bash
fullsend repos status -f https://example.com/manifests/repos.yaml
```

### Concurrency

Most `repos` subcommands accept a `--concurrency` flag to control the
number of parallel API calls or operations. Defaults vary by command
(typically 4 for write operations, 8 for read-only operations). See the
[CLI reference](../../cli/repos.md) for per-command defaults and limits.

### Installing and converging repos

Install and converge repos defined in the manifest:

```bash
fullsend repos install -f repos.yaml
```

Install runs in two phases:

1. **Selection** — install picks the repositories to converge from the
   entries declared in the manifest. Positional arguments filter them and
   never add entries; a selector that matches no declared entry fails
   before any write. See
   [Selecting repositories](../../cli/repos.md#selecting-repositories).
2. **Convergence** — every repo flows through a single probe → diff →
   apply pipeline. Repos whose shim workflow is not yet on the default
   branch are treated as new and fully provisioned (scaffold files,
   variables, secrets) onto the initialization branch. That includes a
   re-run while the initialization PR/MR is still open: variables and
   secrets may already exist from the first run, but the installer
   still updates the same initialization PR/MR rather than opening a
   separate upgrade PR. Repos whose workflow is already on the default
   branch are checked for component drift (workflow, thin callers,
   variables, secrets, pipeline schedules, GitLab poller protected-ref
   pipeline access, GitLab pipeline-variable override-role inspection —
   typed dispatch activation fails closed without `no_one_allowed`;
   runnable typed templates require that setting to be verified before
   delivery, even when enforcement is requested; legacy variable-based
   wrappers are refused), scaffold content drift, managed `.fullsend/config.yaml`
   drift, scaffold ref drift, and declared configuration-preset drift against
   `.fullsend/config.base.yaml`. When a GitHub repo resolves `vendor: false`,
   stale assets from an earlier vendored install are reported as
   `vendored-assets` drift and removed (see
   [Turning vendoring off](../../cli/repos.md#turning-vendoring-off)). Missing
   or drifted components are repaired
   automatically; ref updates are committed as PRs (or direct pushes with
   `--direct`).

> **GitHub prerequisite:** GCP WIF provisioning
> (`fullsend inference provision`) must be completed before running install.
> For self-managed mints, also run `fullsend mint enroll`. The hosted
> community mint needs no enrollment. For GitLab prerequisites and inference
> setup, see [Configuring GitLab](configuring-gitlab.md#prerequisites).

> **Note:** When your token does not have direct push access to a target
> repository, the install command creates a fork and submits the scaffold
> PR from the fork. To avoid fork-based delivery, ensure you have write
> (or admin) access to the target repositories before running install.
> GitHub App installation tokens never fork: they push a branch and open the
> scaffold PR in the target repository. Install the App on each target
> repository with Contents, Pull requests and Workflows read and write
> permissions. See
> [Scaffold PR delivery](../../cli/repos.md#scaffold-pr-delivery).

Preview what would change without making modifications:

```bash
fullsend repos install -f repos.yaml --dry-run
```

Glob patterns are supported:

```bash
fullsend repos install "acme/*" --direct --concurrency 8
```

A filtered install requires credentials only for the selected
repositories' forges. With both GitHub and GitLab entries in the
manifest, `fullsend repos install gallen/integration-service` needs
`GITLAB_TOKEN` but not `GH_TOKEN`. Installing the whole manifest still
requires credentials for every forge that has repos.

Install a subset of agent roles (defaults to
`triage,coder,review,fix,retro,prioritize`) by declaring `config.roles`:

```bash
fullsend repos set defaults.config.roles '[triage, coder, review]'
fullsend repos install -f repos.yaml
```

For repositories that enforce DCO, set `signoff: true` under `defaults`,
a forge section, or a repo entry. Install then adds a `Signed-off-by`
trailer for the authenticated installing user to every scaffold commit,
on GitHub and GitLab, whether delivered directly or by PR/MR. A repo entry
overrides its forge section, which overrides `defaults`, and an explicit
`false` disables an inherited `true`. Install fails before committing
anything if the token's user identity cannot be resolved. See
[DCO sign-off](../../cli/repos.md#dco-sign-off).

```bash
fullsend repos set defaults.signoff true
fullsend repos install -f repos.yaml
```

Scaffold commits are also [signed](../../glossary.md#signed-commit),
independently of the DCO trailer. On GitHub the install asks GitHub to
create each commit on your behalf, so GitHub signs it, it shows as
**Verified**, and it passes rulesets that require signed commits —
whichever token type you use. The exception is a vendored install
(`vendor: true`): its binary is uploaded through an API that GitHub does
not sign for user tokens, so it cannot target a repository that requires
signed commits. On GitLab the commit is signed only where web-based
commit signing is set up: the group or project setting on GitLab.com,
the instance's signing key on Self-Managed and Dedicated. See
[Signed commits](../../cli/repos.md#signed-commits) for details.

#### GitLab trigger-only service account

For GitLab repos, install also converges a dedicated trigger-only service
account that owns a push-capable deploy key on the default branch's
exact-name protected-branch rule and a pipeline trigger token. It uses only
project-scoped authority, so it works on GitLab.com Free. Once the trigger
dispatch activation is recorded, the managed webhook posts to its published
trigger token instead of the Poller-owned one. The managed polling schedules
move to that account, so a scheduled poll runs as it, only when the account
also has merge permission on the protected default branch. Otherwise the
schedules stay installer-owned on the Poller route while the webhook route is
active. Details are in
[Configuring GitLab](configuring-gitlab.md) and the
[`repos install` reference](../../cli/repos.md).

- **Install and recovery:** re-run `repos install`. Every install first runs a
  containment-only recovery that revokes an unfinished bootstrap token and
  restores Developer access for the account, before the configuration
  preflights and every later stage. The same early pass removes an already
  published token variable and revokes the owned triggers across the current
  and retired generations when the override role is weakened or unreadable or
  the variable is unsafe, even when a later install stage fails. Deletion and
  revocation are attempted independently. A repo whose containment fails is reported
  as failed and takes no scaffold, configuration, or role change in that run.
  A glob that cannot be expanded does not stop containment of explicitly
  listed repos or of repos another glob resolved.
- **Deferral:** install defers, and polling stays the dispatch path, when the
  default branch has no exact-name protection rule, when project service
  accounts are unavailable, when the pipeline-variable override role is not
  `no_one_allowed`, or when the recorded branch differs from the
  default branch. A deferral is not a failure. Before it returns, an unsafe
  published token variable is removed and its trigger revoked. A deferral also
  hands any managed polling schedule the account owns back to the installer.
- **Rotation:** `fullsend repos install --rotate-gitlab-trigger-account`
  replaces the account, deploy key, push entry, and trigger token with a fresh
  generation. The previous account is first confirmed at Developer access, and
  rotation stops without replacing anything when that cannot be verified. When
  the new account's activation is recorded in the same run, the previous
  generation's managed polling schedules move straight to the new account.
  Otherwise they are handed back to the installer and move to the new account
  once its activation is recorded.
- **Uninstall:** `repos uninstall` deletes the managed polling schedules the
  account owns, along with the account.
- **Breaking change:** the ledger now records `trigger_token_digest` (the
  trigger token digest) and `publication_pending` (the replacement-publication
  marker). Older strict CLIs reject either key before they read the ledger
  version, so they cannot decode it and fail `repos install`, `repos status`,
  and `repos uninstall` regardless of schedule ownership. Once the account
  owns the managed polling schedules, older CLIs also treat them as foreign
  and refuse cleanup. Upgrade the CLI first and do not delete the schedules by hand; see the
  [CLI reference](../../cli/repos.md#trigger-only-service-account).
- **Branch change:** run `repos uninstall`, then `repos install`.

## Day-2 operations

### Checking installation status

Compare the manifest against actual repo state:

```bash
fullsend repos status -f repos.yaml
```

Filter to specific repos:

```bash
fullsend repos status --repo acme/api --repo acme/web
```

The command reports per-repo status (installed, not installed, error) and
any configuration drift. Returns a non-zero exit code when drift or
errors exist, making it suitable for CI checks.

Inference credentials are checked against each repo's own
`inference.auth`. A missing credential of the selected method and a
leftover fullsend-managed secret of the other method are both reported as
drift, by name only. See
[`repos status` output](../../cli/repos.md#output).

For GitLab repos, status also reports the trigger-only service account as
`not-installed`, `ready`, `drifted`, `deferred`, `in-progress`,
`cleanup-pending`, or `unreadable`, with the reason and resource IDs and never
a token value. Every state except `not-installed`, `deferred`, and `ready` is
drift. The managed `FULLSEND_TRIGGER_TOKEN` and `FULLSEND_WEBHOOK_SECRET`
variables and the reserved `FULLSEND_TRACE_SIGNING_KEY` are not reported as
orphans; any other unrecognised `FULLSEND_` variable still is.

For repos with a managed `.fullsend/config.yaml` and an explicitly pinned
`fullsend_ref`, status also checks the installed file against the
configuration schema that ref reads. It reports
`config compatibility (fullsend_ref <ref>)` as `incompatible` when the ref
cannot read the installed file, or as `unknown` (and the file as drift
rather than current) when the schema cannot be determined. `--json` output
carries `config_compatibility`, `config_compatibility_reason` and
`config_schema_ref`. See [`repos status` output](../../cli/repos.md#output).

For GitLab repos, status also reports the webhook fast path as a
`gitlab_webhook` object with a `state`, the booleans `webhook_present`,
`webhook_configured`, `trigger_token_ready` and `webhook_secret_ready`, and the
reasons, never a token, secret or webhook URL. The states are `ready`,
`missing` (no managed webhook yet), `drifted` (misconfigured, or an unmet safety
or readiness contract), `deferred` (nothing provisioned and the pipeline
wrapper does not include the dispatcher yet), and `unreadable`. Every state
except `ready` and `deferred` is `gitlab-webhook` drift, so it makes the command
exit non-zero. See [`repos status` output](../../cli/repos.md#output) for what
each state means. Once the scaffold is merged to a protected default branch and
the poller is deployed, the poller is the dispatch backstop, so a fast path that
is not `ready` delays dispatch by up to one poll interval instead of stopping
it. A fresh install whose scaffold merge request is still open, or whose default
branch is unprotected, dispatches nothing on either path until then.

For installed GitLab repos, status also scans the default-branch CI
configuration for unrelated CI work across trigger, agent child
(`source=pipeline`) and scheduled (`source=schedule`) pipelines, whatever the
trigger account state. Results appear as a warning section in table output and
as `gitlab_unrelated_ci_work` in `--json` output, and they add no drift. See
[`repos status` output](../../cli/repos.md#output).

Use `--json` for machine-readable output:

```bash
fullsend repos status -f repos.yaml --json
```

### Detecting and reconciling configuration drift

Run `repos install` to detect and fix component drift (workflow, thin
callers, variables, secrets, pipeline schedules, GitLab poller
protected-ref pipeline access, the GitLab webhook fast path — a pipeline
trigger token, webhook secret, and project webhook, deferred until the
dispatcher and the scripts it sources, transitively, are on the default branch, the
default branch is protected, and `no_one_allowed` is verified —
GitLab pipeline-variable override-role
inspection — typed dispatch activation fails closed without
`no_one_allowed` before runnable template delivery, even when enforcement
is requested; legacy variable-based wrappers are refused), scaffold ref drift,
scaffold content drift, declared configuration-preset drift, managed
`.fullsend/config.yaml` drift, and stale vendored assets left by an earlier
vendored install (`vendored-assets`, removed when a GitHub repo resolves
`vendor: false`; see [Turning vendoring off](../../cli/repos.md#turning-vendoring-off))
across all manifest repos:

```bash
fullsend repos install -f repos.yaml
```

Preview what would change without modifying anything:

```bash
fullsend repos install -f repos.yaml --dry-run
```

The convergence phase checks all components (workflow, thin callers,
variables, secrets, pipeline schedules, GitLab poller protected-ref
pipeline access, GitLab webhook fast-path provisioning and repair (the
trigger token, webhook secret, and project webhook are created or repaired
only once the readiness gates are met, otherwise deferred without changes;
a trigger token owned above Developer, or whose owner cannot be verified, is
revoked with its webhook and the fast path stays disabled — install-time
Maintainer access is never kept as a runtime credential; hooks fullsend
does not own are left untouched) — a disabled GitLab schedule is
reported as drift and reactivated only when `--reactivate-schedules` is
passed; GitLab pipeline-variable override-role inspection — typed
dispatch activation fails closed without `no_one_allowed`;
runnable typed templates require the setting to be verified before delivery,
even when enforcement is requested; legacy variable-based wrappers are refused), scaffold content drift (including structural rewrites of
`.gitlab/ci/fullsend-pipeline.yml` at an unchanged template ref),
declared configuration-preset drift, managed `.fullsend/config.yaml` drift,
stale vendored assets (`vendored-assets` drift when a GitHub repo resolves
`vendor: false`; see [Turning vendoring off](../../cli/repos.md#turning-vendoring-off)),
and scaffold workflow refs against the manifest. Missing or drifted
components are repaired automatically (disabled pipeline schedules are the
exception — see above); a changed preset replaces only
`.fullsend/config.base.yaml` and leaves the managed configuration intact. A
drifted managed configuration file is rewritten wholesale, unless the
existing file predates managed-configuration adoption (missing the
ownership marker) — that case is reported as adoption required and left
untouched instead of rewritten, and it stops that repository's install or
convergence before any writes until the file is adopted; the other
repositories still converge. Ref
updates are committed as PRs (or direct pushes with `--direct`).

Use `repos status` for a read-only drift report (no changes applied). For
GitLab repos, status also reports `protected-ref-pipeline` drift when the
poller loses merge access to create pipelines on the protected default
branch:

```bash
fullsend repos status -f repos.yaml --json
```

### Adding repos

Declare the repo in the manifest, then install it:

```bash
fullsend repos set 'github.repos["acme/new-api"]' '{}'
fullsend repos install acme/new-api --direct
```

The new entry inherits `inference.auth` from its forge section or
`defaults`. When neither selects a method, set it on the entry:

```bash
fullsend repos set 'github.repos["acme/new-api"]' '{"inference": {"auth": "openai-api-key"}}'
fullsend repos install acme/new-api --openai-api-key "$OPENAI_API_KEY"
```

Add multiple repos, then preview them:

```bash
fullsend repos set 'github.repos["acme/new-api"]' '{}'
fullsend repos set 'github.repos["acme/new-web"]' '{}'
fullsend repos install acme/new-api acme/new-web --dry-run
```

To cover every repository in an org, declare a glob entry such as
`fullsend repos set 'github.repos["acme/*"]' '{}'`. Naming a concrete
repository the glob covers (`fullsend repos install acme/new-api`)
installs it with the glob's settings. Naming it adds no explicit entry. Any
install, whether it names the repository, passes `"acme/*"` or selects the
whole manifest, gives a glob-covered repository its own entry, copied from the
glob, when it writes that repository's first-install `tracker` default or, on
GitHub, its `trace_context` block
([Trace signing keys](../../cli/repos.md#trace-signing-keys)) to `repos.yaml`.
Edits to the glob entry apply only to repositories that have no entry of their
own.

Per-repo settings live on the entry, never in install flags:
`fullsend_ref`, `mint_url`, `app_set`, `inference.auth`, `vendor`,
`signoff`, `config_base`, and every per-repo config field under `config`
(for example `config.roles`, `config.runtime`, or
`config.inference.region`). For example:

```bash
fullsend repos set 'github.repos["acme/new-api"].config.roles' '[triage, coder, review]'
fullsend repos set 'github.repos["acme/new-api"].fullsend_ref' v2.5.0
```

See [Managed configuration](#managed-configuration) and the
[removed-flag table](../../cli/repos.md#removed-configuration-flags-breaking).

### Removing repos

Remove a repo from the manifest and tear down its installation. File deletions open a PR by default (variables and secrets are deleted immediately via the API). For GitLab repos, uninstall also deletes the `fullsend-poll-state-slash` and `fullsend-poll-state-events` branches, deletes the fullsend-owned webhook fast-path project webhook, revokes its managed Poller-owned pipeline trigger token, and deletes the `FULLSEND_TRIGGER_TOKEN` and `FULLSEND_WEBHOOK_SECRET` variables (on the trigger-account route the account's trigger is revoked by the trigger-account removal below, and `FULLSEND_TRIGGER_TOKEN` was already deleted at install); if that cleanup fails, the scaffold is not removed and the manifest entry is kept for retry. After the webhook fast path is removed and before role cleanup, GitLab uninstall removes the trigger-only service account: the published `FULLSEND_GITLAB_TRIGGER_ACCOUNT_TOKEN` variable, the trigger token, the protected-branch push entry, the deploy key, the managed polling schedules the account owns (deleted without an installer-owned copy), the service account, and finally the `FULLSEND_GITLAB_TRIGGER_ACCOUNT` ledger. When a ledger exists, uninstall requires the dedicated trigger-account removal capability, and it keeps the ledger until cleanup succeeds, so a failed uninstall stops, keeps the manifest entry, and a retry resumes. Generic role-variable cleanup never deletes the ledger or the token variable. Before deleting anything, GitLab uninstall reads the `FULLSEND_GITLAB_ROLE_ROTATION` ownership variable and stops if it is unreadable or malformed. It then revokes role project access tokens and deletes verified fullsend-managed service accounts, leaving administrator-supplied accounts and their credentials in place. The rotation variable is removed last, or kept as an exclusions-only document when it records administrator-supplied service accounts. Pass `--direct` to push file deletions to the default branch:

```bash
fullsend repos uninstall acme/old-api
fullsend repos uninstall acme/old-api --direct
```

When targeting multiple repos (via globs or bulk lists), the command
prompts for confirmation:

```bash
fullsend repos uninstall "acme/*"
```

In non-interactive environments (CI, piped stdin), pass `--yes` to skip
the confirmation prompt:

```bash
fullsend repos uninstall "acme/*" --yes
```

Remove from manifest only (skip teardown — useful when the repo is
already deleted):

```bash
fullsend repos uninstall acme/old-api --manifest-only
```

Tear down without removing from manifest (temporary teardown):

```bash
fullsend repos uninstall acme/old-api --uninstall-only
```

### Rolling out a new fullsend version

To upgrade the scaffold workflow ref across all manifest repos:

1. Update `github.fullsend_ref` (or `gitlab.fullsend_ref` for
   GitLab repos) in `repos.yaml` to the new version.

2. Run install to converge:

   ```bash
   fullsend repos install -f repos.yaml
   ```

3. Review and merge the scaffold PRs in each repo.

Preview what would change without modifying repos:

```bash
fullsend repos install -f repos.yaml --dry-run
```

Push the upgrade directly to the default branch instead of creating a PR:

```bash
fullsend repos install -f repos.yaml --direct
```

Repos that are already SHA-pinned (`@<sha>  # <ref>`) preserve their
pinning style during upgrades when the target ref is a semver tag — the
tag is resolved to a commit SHA and written as `@<sha>  # <ref>`. When
the target ref is a branch name (e.g., `main`), the branch name is
written directly (`@main`) to ensure idempotent convergence. Non-SHA-pinned
repos keep their string ref format (e.g., `@v2.3.0`).
Repos installed with one space before `#` are not rewritten when the
ref and tag are unchanged; they pick up two spaces on the next ref change.

Downgrades are blocked unless `--force` is set. When both the current
and target refs are semver tags, the guard uses version comparison. When
either ref is a SHA (or a mix of SHA and tag), the guard resolves both
to commit SHAs and uses git ancestry checking via the forge API to
detect downgrades. If the ancestry check fails (e.g., API error), the
upgrade proceeds rather than blocking — graceful degradation.

### Required upgrade: shim moves from `pull_request_target` to `pull_request`

GitHub blocks `pull_request_target` by default in public repositories from
December 2, 2026. Repositories whose `.github/workflows/fullsend.yaml` still
triggers on it lose automatic review and retro from that date. Triage,
`/fs-*` commands (including `/fs-review`) and the fix loop keep working.

Upgrade every public repository before that date. Use the route that matches
how the repository was set up:

- **Repositories declared in a manifest:** run `fullsend repos install`,
  using the steps in
  [Rolling out a new fullsend version](#rolling-out-a-new-fullsend-version).
  It rewrites the trigger and the workflow pin in one commit. If it cannot
  fetch the templates of the new version, it upgrades only the pin and prints
  `template fetch at the target ref failed: delivering the pin upgrade only;
  run install again to deliver template changes`. Run it again once the
  fetch works to deliver the trigger.
- **Single repositories set up with `fullsend github setup`** and no manifest:
  upgrade the CLI, re-run `fullsend github setup "$OWNER/$REPO"` with no
  flags, and merge the setup PR it opens. Follow
  [Upgrading a single repository](operations.md#upgrading-a-single-repository):
  the re-run writes repository variables before the PR merges.

Private and internal repositories are not blocked, and a shim that is not
upgraded keeps working there (the warning appears only in public
repositories). Any upgrade to a fullsend version with the new shim installs
the same `pull_request` shim, with the effects below. After the upgrade:

- **Same-repo PRs** are reviewed automatically, as before, except while the
  PR has a merge conflict: GitHub does not run `pull_request` workflows until
  the conflict is resolved. Comment `/fs-review` or `/fs-retro` meanwhile.
- **Fork PRs** (GitHub) are reviewed and retro'd automatically again from
  the release that adds `.github/workflows/fullsend-fork-pr.yaml`; see
  [Fork pull requests](#fork-pull-requests). On an older release, someone
  with triage or higher access (or an OWNERS approver or reviewer, when the
  `owners_file` provider is on) comments `/fs-review` on the PR.
- **Dependabot PRs**: events Dependabot itself triggers (opening the PR,
  its own pushes and closes) are not routed, because GitHub gives those
  `pull_request` runs only Dependabot secrets. A maintainer's push, merge or
  close is routed as usual. Someone with triage access or higher comments
  `/fs-review` on the PR to review it.
- **Private repositories:** before upgrading, check **Settings → Actions →
  General → Fork pull request workflows** and keep "Send write tokens to
  workflows from pull requests" and "Send secrets to workflows from pull
  requests" turned off; `fullsend repos install` does not check them yet
  ([#9630](https://github.com/fullsend-ai/fullsend/issues/9630)). For vendored
  installs (`vendor: true`) it is the only control, because a fork PR runs
  its own copy of the vendored workflows.

Until a repository upgrades, the dispatch still accepts `pull_request_target`
and logs a warning on each such run (see
[Troubleshooting](#shim-still-triggers-on-pull_request_target)).

### Fork pull requests

On GitHub, `fullsend repos install` adds a second managed workflow,
`.github/workflows/fullsend-fork-pr.yaml`, next to the shim. You do not
edit or configure it. Upgrading to a release that has it adds it in the
same install run; `fullsend repos uninstall` removes it.

What it does:

1. A fork PR is opened, pushed to, marked ready for review, or closed.
   GitHub runs `fullsend-fork-pr.yaml` for
   the event. It has no permissions and no secrets and does nothing. It
   always runs on a GitHub-hosted runner (`ubuntu-latest`), never on your
   configured runner, because the fork controls the copy that runs. If your
   organization disables GitHub-hosted runners, fork PRs need `/fs-review`.
2. When that run finishes, GitHub starts the shim (`fullsend.yaml`) from the
   default branch, with the repository's secrets, the same way a maintainer's
   `/fs-review` comment does.
3. The shim looks the PR up by its commit and applies the usual checks:

   | Event | Runs | Who must be authorized |
   |---|---|---|
   | Opened, pushed to, marked ready | Review | The PR author: triage access or higher, or an OWNERS approver or reviewer. A bot author is checked the same way (on a same-repo PR a bot author is trusted) |
   | Closed or merged | Retro | Whoever closed or merged it: write access |

For any other fork PR, such as an outside contributor's, someone with
triage access or higher comments `/fs-review`. The `ready-for-review`
label does not start a fork PR review: nothing GitHub records ties a
label to the commit it was added on.

The shim never runs the fork's code or reads anything the fork's run
produced: the fork controls its own copy of `fullsend-fork-pr.yaml`. It
skips a run when:

- the run did not succeed, or came from another workflow file;
- the PR has new commits since the run (the newer push has its own run);
- the close happened more than five minutes before the run (the run log
  shows a warning, so a missed retro is visible).

If your repository requires approval for fork PR workflows (**Settings →
Actions → General**), the review starts after a maintainer approves the
fork's run. GitLab and Forgejo work as before: fork merge requests are not
reviewed automatically.

## Troubleshooting

### Errors that say "server error text withheld"

By default, `fullsend repos` reports a failed credential-bearing API call
without the server's response, for example:

```
GitLab Poller membership reconciliation failed: resolving the GitLab Poller identity: request failed (server error text withheld)
```

Re-run the command with `--verbose` to see the scrubbed HTTP status and
server message, and a stderr log line for each GitLab API request
(method, path and status). This shows which call failed. Known credentials
and token-shaped values are redacted; see
[Verbose output](../../cli/repos.md#verbose-output) for what is shown and
what is redacted.

### Shim still triggers on pull_request_target

The dispatch run shows:

```
This repository's fullsend shim still triggers on pull_request_target, which GitHub blocks by default in public repositories from its announced enforcement date. Re-run 'fullsend repos install' to move the shim to pull_request.
```

The repository runs an old shim. Upgrade it as described in
[Required upgrade: shim moves from `pull_request_target` to `pull_request`](#required-upgrade-shim-moves-from-pull_request_target-to-pull_request).

### Unknown field errors in repos.yaml

The manifest parser strictly validates field names in all sections
(`defaults`, `github`, `gitlab`, `forgejo`, and top-level). A `forgejo:`
section needs a `fullsend` CLI version that includes Forgejo support; an
older binary rejects it as an unknown top-level field.
Unrecognized fields are rejected with an error naming the offending key:

```
parsing manifest YAML: line 8: field fullsend_ref not found in type repos.Defaults
```

Common causes:

- **Typos** — e.g., `mint_ulr` instead of `mint_url`.
- **Deprecated or unsupported fields** — fields that were never part of the
  manifest schema (such as the legacy `mint:` key) are rejected.
- **Wrong nesting level** — e.g., placing `fullsend_ref` under `defaults`
  instead of under `github` or `gitlab`.
- **Renamed fields** — the old flat `config` / `config_hash` *preset*
  keys (a scalar URL or path) were replaced by a nested `config_base`
  object; a scalar `config:` value now fails with "must be a YAML
  mapping" rather than an unknown-field error. Rewrite `config:` as
  `config_base: {source: <value>}` and `config_hash:` as
  `config_base: {sha256: <value>}`, for both `defaults` and per-repo
  entries. A mapping-shaped `config:` block is separate and still
  valid — that is the [managed configuration](#managed-configuration)
  syntax, not the old preset key:

  ```yaml
  # Before
  defaults:
    config: presets/base.yaml
    config_hash: <sha256>

  # After
  defaults:
    config_base:
      source: presets/base.yaml
      sha256: <sha256>
  ```

To fix, correct the field name or remove the unrecognized entry and re-run
the command.

### No inference authentication selected

```
no inference authentication selected for acme/api: set inference.auth (vertex-wif or openai-api-key or openai-wif) on the repository entry, in the github section, or under defaults in repos.yaml (for example: fullsend repos set defaults.inference.auth vertex-wif)
```

The repo resolves no `inference.auth` from its entry, its forge section,
or `defaults`, and its effective configuration declares no complete
`inference.gateway` block. If the message says the gateway is partial
or invalid, complete or fix the block instead. This is expected after
upgrading from a release without the setting. Add the selection at the appropriate level (see
[Inference authentication](#inference-authentication)) and re-run.
`fullsend repos set defaults.inference.auth vertex-wif` restores
the previous Vertex WIF behaviour for every repo. An unrecognised value
(for example `vertex`) fails manifest validation and names the offending
key.

### Partial secret state

Both GCP inference secrets may be absent. If only one exists, `repos status`
reports drift. Supply the project (and, if it cannot be derived, the WIF
provider) with `--vertex-project` / `--vertex-wif-provider` or by declaring
`inference.project` / `inference.wif_provider` in the managed
configuration, so `repos install` rewrites both secrets, or add the
missing one manually; until then a Vertex run fails its early credential
check. An OpenAI run does not use the GCP pair.

### Removed install flags

An install that fails immediately with an error naming a `repos.yaml` key
and a `fullsend repos set` example means the command still passes a
configuration flag that `repos install` no longer accepts, such as
`--roles` or `--vertex-region`. Nothing was read or written. Declare the
value in `repos.yaml` and drop the flag; see the
[removed-flag table](../../cli/repos.md#removed-configuration-flags-breaking)
and [Migrating to manifest-driven `repos install`](migrating-from-github-setup.md).

### Undeclared repository selectors

A positional argument that matches no declared repository fails the whole run
before any write, even when other arguments match, and the error lists each
unmatched selector. This includes a glob such as `other/*` next to a declared
`acme/*`. Add the entry, for example
`fullsend repos set 'github.repos["acme/api"]' '{}'`, then re-run. Dry run and
`repos status` select the same way.

## Tearing down

### Removing individual repos

Remove a repo from the manifest and tear down its fullsend installation.
Scaffold file deletions open a PR by default (repository variables and
secrets are still removed immediately via the API). Pass `--direct` to push
file deletions to the default branch instead:

```bash
fullsend repos uninstall acme/old-api
fullsend repos uninstall acme/old-api --direct
```

Tear down without modifying the manifest (temporary teardown):

```bash
fullsend repos uninstall acme/old-api --uninstall-only
```

When targeting multiple repos, a confirmation prompt appears. In
non-interactive environments (CI, piped stdin), pass `--yes`:

```bash
fullsend repos uninstall "acme/*" --yes
```

### Full teardown

To completely remove fullsend from all manifest repos and GCP
infrastructure, coordinate between roles:

| Step | Role | Command |
|------|------|---------|
| 1 | Platform Admin | `fullsend repos uninstall "org/*" --yes` (forge-side cleanup + manifest removal) |
| 2 | GCP Admin (Inference) | GitHub: `fullsend inference deprovision <org>` (WIF cleanup). GitLab: `inference deprovision` does not cover the shared `gitlab-oidc` provider — see [Operations § Per-repo teardown](operations.md#per-repo-teardown) step 6 to revoke each repo's WIF trust instead. |
| 3 | GCP Admin (Mint) | `fullsend mint unenroll <owner/repo>` for each enrolled repository, adding `--delete-provider` to permanently delete its dedicated WIF provider (self-hosted mints only; not needed for the hosted community mint). Org entries left by the removed per-org enrollment need manual cleanup — see [Cleaning up legacy per-org mint state](../infrastructure/mint-administration.md#cleaning-up-legacy-per-org-mint-state). |

Each `fullsend` command that prompts for confirmation accepts a skip
flag: `--yes` for `repos` commands, `--yolo` for `github` and `mint`
commands.

## See also

- [Configuring GitLab](configuring-gitlab.md) — GitLab-specific getting-started guide
- [Operations](operations.md) — Day-2 per-repo administration and standalone commands
- [CLI Reference: fullsend repos](../../cli/repos.md) — Full flag and subcommand reference
- [Mint administration](../infrastructure/mint-administration.md) — Token mint deployment and management
