# GitLab Binding ## Core principle Translate the controller's decisions into verified GitLab operations. Select the tracker and code host independently under [Delivery bindings](provider-bindings.md). Each role uses its own verified project and account. Binding selection grants no authority to claim, write, merge or close. ## Configuration Use the existing sections of the controller’s trusted `docs/agents/deliver-tasks.md`. Add these fields to the existing sections for a GitLab code host, keeping every other field (including the `Merge Policy` Done automation fields a GitHub Project board needs): ```markdown ## Tracker - Provider: `github` - Repository: `/` ## Code host - Provider: `gitlab` ## Repository - Host: `` - Repository: `` - Project ID: `` - Credential: ` or env:>` - Default branch: `` - Base branch: `` ## Merge Policy - Method: `` - Squash: `` - Issue closure: `close-after-merge` - Pipelines must succeed: `` - Discussions must be resolved: `` - Merge trains: `` - Required approvals: `` ``` - Resolve a GitHub tracker repository from the [shared tracker guide or delivery binding](provider-bindings.md#shared-repository-configuration). The GitLab checkout origin cannot identify it. - `Project ID` is operator-supplied; setup may propose it from a read. Keep names beside IDs: the same Project ID under a new path is repairable drift (`configuration-blocked` for the whole run until setup reconciles the path); a path or ID that now resolves to a different project is `stop-preserve`: stop all work and preserve it. - `Credential` names the source, never the value. `glab:` uses the GitLab CLI login for that host. `env:` reads that variable at call time. - `Squash` must be permitted by the project's `squash_option` (`always` requires `true`, `never` requires `false`). Omitted, use `true` for `default_on` and `false` for `default_off`. - Select `closing-keyword` only for the eligible pair and base in [Link and close](#link-and-close). Use `close-after-merge` for mixed roles, different projects or non-default bases. For a GitLab tracker, set the existing `Tracker` section independently: ```markdown ## Tracker - Provider: `gitlab` - Host: `` - Repository: `` - Project ID: `` - Credential: ` or env:>` ## Scope - Type: `