---
title: "Concepts: ModernCI docs"
description: "PRs, targets, the merge queue, checks, runs, regions and processes, in plain words."
url: https://modernci.dev/docs/concepts/
---

# Concepts

The words ModernCI uses, in the terms you already know. The status of each piece today is
noted where it is not built yet.

## Code flow

- **PR**: a proposed change to a target branch. It is a pull or merge request on a forge, or a branch
  pushed under `mci/` on a plain git remote. A PR pushed with no known author is *unclaimed* until
  someone claims it (`mci prs claim`) or submits it (`mci prs done`).
- **Target**: a branch that receives landings, for example `dev` or `main`. Each target has its own
  merge queue and its own `.ci/<target>.yaml`.
- **Merge queue**: ModernCI re-checks PRs against the current target tip, in batches, and lands the
  ones that pass. A pre-check on the PR itself is advice; the queue is the judge.
- **Landed**: the target branch now contains the PR's checked commit. A landing is a fast-forward by
  the landing process; it never rewrites history.
- **Promotion**: a fast-forward of one target to a checked commit of another, for example
  `dev -> qa -> main`, configured with `promotes` in `.ci/` (see [config](/docs/config.md#promotion-targets)).
- **Release**: a versioned, signed set of build outputs made from a landed `main` commit. See
  [Build & Release](/build/).

## Checks and results

- **Check**: a named command in `.ci/<target>.yaml`. It passes when it exits 0.
- **Class**: `gate` checks block landing, `after` checks run on landed commits, `release` steps build
  and publish. A gate check can be `required` (default) or advisory.
- **Job**: one execution of a check on one machine. **Run**: the record of one execution, with its log.
- **Red**: a failed check with evidence (log excerpt, how to reproduce). **Infra failure**: the
  machine or network failed, not the code; it is never reported as a red.
- **Reuse**: if a check's inputs (the files it reads, its command, its tools) are unchanged, ModernCI
  reuses the earlier result instead of running it again. `inputs:` narrows what a check reads.
- **Baseline**: the tests already failing on the target. A PR is not blamed for a failure that
  was already there.
- **Wait reason**: the one sentence on every open PR saying what it waits for, who acts and by when.
  The UI, the CLI, MCP and webhooks show the same text.
- **Work item**: a task someone owns: fix a red, resolve a conflict, give an approval. Work items
  escalate from the owner to a person if left (see [agents](/docs/agents.md)).

## Guarded changes and approvals

- **Gate change**: a PR that changes what blocks landing (a gate check, `setup`, `toolchain`, ...).
  It needs a person's approval and lands alone ([config](/docs/config.md#gate-changes)).
- **Approval**: a person's decision on a guarded change, made with a **passkey**. The signature is
  bound to the PR's exact head commit and the guarded files, so a later push invalidates it.
- **Settings**: budgets, who may approve, which forge and compute are allowed. They are set by people
  in ModernCI, never read from a file in the repo. Each setting has a value, a source level and
  possibly a lock.

## Tenancy

- **Operator**: whoever runs the install (ModernCI, for the hosted service and for Enterprise self-installs).
- **Tenant**: one customer organisation. **Project**: a group of repos with shared members and
  budgets. **Repo**: one git repository.
- **Identity**: a person or an agent in a tenant, with a role (tenant admin, project member, agent,
  approver, ...). An API token belongs to one identity and is shown once when created.
- **Region** and **residency zone**: where your project's data lives, and the jurisdiction it stays in.
  **Global layer**: sign-in and the console; it holds no repo data.
- **Support access**: a tenant admin can let the operator in for a limited time, and revoke it.


## Compute

- **Compute**: where jobs run. Today: SSH hosts and compute ModernCI manages for you.
  EC2, GCP, Azure and bring-your-own runners are coming.
- **Runner**: the job-side agent that runs the command and reports the result. `mci runner up`
  (register your own machine) is coming.
