# Concepts

> Organizations, roles, repositories and packages, how databases, skills and environment variables link to packages, scopes and precedence, lifecycle, revisions and read-only mode.

Source: https://docs.architure.dev/docs/concepts

The ideas that every other page relies on. Each section is short; the resource pages have the details.

## Organization

An organization is a workspace, not a company. It holds the repositories and their packages, the databases, the column definitions, the tech stack, the skills, the environment variables, the deployments, the members, the API keys and one subscription. One organization may hold the work of several companies or ventures; companies are not modelled.

Its **Address** (the slug, 3 to 48 lowercase letters, digits and hyphens) starts every link to its pages, and nothing is shared between organizations. A person may belong to several and switch between them in the sidebar. An API key or an OAuth connection belongs to one organization.

## Members and roles

Each member has one role. Owners and admins invite teammates by email and change roles in **Settings**, **Members**.

| What | Owner | Admin | Member | Viewer |
| --- | --- | --- | --- | --- |
| Databases and column definitions | Read and write | Read and write | Read and write | Read |
| Tech stack, skills and repositories (Connect GitHub, import, refresh, remove) | Read and write | Read and write | Read and write | Read |
| Environment variables (values included) and database connections | Read and write | Read and write | Read and write | None |
| Deployments | Everything | Everything | Read and **Sync** | None |
| Skills install links | Create and revoke | Create and revoke | None | None |
| API keys | Create and revoke | Create and revoke | None | None |
| Billing | Manage | Manage | See the status | See the status |
| Members | Manage, including owners | Manage, except owners | None | None |

"Everything" on deployments means connecting a Vercel team, importing projects and their variables, setting a project's package by hand, removing a project and syncing. A viewer has no **Environment variables** and no **Deployments** in the sidebar. Only an owner can delete the organization.

Agents act with less than people:

- An API key is **Read** or **Read and write**. Read covers the databases, the column definitions, the tech stack, the skills, the repositories and their packages, and the environment variable names. Read and write also writes the databases: tables, columns, relationships, indexes, areas and descriptions.
- An OAuth connection acts within your role: a viewer's agent reads but never writes.
- No agent creates, archives or deletes a database or a column definition, writes the tech stack, the skills or the environment variables, or reads a value. See [MCP tools](/docs/mcp-tools).

## Repositories and packages

A **repository** is a GitHub repository imported through the GitHub App (**Connect GitHub**, then **Import repositories**). A **package** is a folder of a repository that runs with its own environment, such as `apps/web` or `packages/email`, named by its `package.json`.

Architure detects packages from the workspace globs: `pnpm-workspace.yaml`, `workspaces` in `package.json` and `lerna.json`. A repository without them, or whose globs match nothing, is one package at its root, `.`. **Refresh** on a repository's page reads them again; packages that stay keep their links. See [Repositories](/docs/repositories).

An agent names a package by its repository and a folder: `owner/name` (from `git remote get-url origin`, case does not matter) and the path from the repository's root. The folder may be inside a package: Architure answers for the deepest package that holds it, and for the root package when no other does; a folder that no package holds is refused.

## Linked or available to all packages

Databases, skills and environment variables are each either:

- **Available to all packages**: every package of every repository uses it. This is the default for a new one.
- **Linked** to chosen packages: only those packages use it. Turn off **Available to all packages** in **Packages…** and tick them.

Linked to no package and not available to all means used by no package: agents asking for a package do not get it, and the install link does not serve it. The tech stack and the column definitions are organization-wide: they are not linked to packages. A Vercel project is matched to one package, the one it deploys.

A repository's page shows what each package uses, and the **Package** filter of **Environment variables** shows what one package reads.

## Scopes and precedence

An environment variable holds one encrypted value per scope:

| Scope | Used for |
| --- | --- |
| `all` | Every environment that has no value of its own |
| `production` | Vercel's Production target |
| `preview` | Vercel's Preview target |
| `development` | Vercel's Development target |

Two rules decide what a package reads for one name:

1. **The package's own variable beats the shared one, scope by scope.** When a variable linked to the package and one available to all packages have the same name, each scope the linked one sets comes from it; the scopes it leaves empty come from the shared one. The **Package** filter marks the shared value **Overridden**.
2. **An environment's own value overrides `all`.** Production reads its `production` value, else its `all` value. A sync to Vercel writes `all` to each target that has no value of its own.

For example, `REDIS_URL` available to all packages sets `all`, and a `REDIS_URL` linked to `apps/worker` sets only `production`. In production, `apps/worker` reads its own value; in preview and development it reads the shared `all`. Every other package reads the shared value everywhere.

Two variables at the same level that set the same name and scope for a package are refused when you save. See [Environment variables](/docs/environment-variables).

## Lifecycle

What happens when you remove something depends on the resource:

| Resource | How it goes | Can it come back? |
| --- | --- | --- |
| Database | **Archive** hides it; **Move to trash**; **Delete forever** from the trash, with its history | From the archive or the trash, yes; after Delete forever, no |
| Skill | **Archive**, **Move to trash**, then **Delete forever** from the trash | From the archive or the trash, yes; agents and install links get live skills only |
| Column definition | **Archive** (linked columns keep reading it); **Delete** | Archived, yes; Delete is final and is refused while columns link to it |
| Tech stack item, environment variable, database connection | **Delete** | No: a hard delete, with the variable's values and links |
| Repository | **Remove**: its packages, their links and its install link go | Import it again; the links are gone |
| Vercel project | **Remove**: Architure forgets it; its variables in Vercel stay | Import it again |
| Install link | **Revoke**, or **New link**, which revokes the previous one | No: create a new link |
| API key | **Revoke** | No: create a new key |

## Revisions and operations

Every change to a database goes through one path. Dragging a table, editing the text view, a schema sync and an agent's tool call all send a list of **operations** (such as `table.create` or `column.update`) based on the database's **revision**, a counter that grows with each change.

When the revision sent is the current one, the operations apply together and the revision moves on. When someone changed the database in between, the write is refused with a **Conflict** that carries the changes it missed: the canvas applies them and replays its own edits on top, and an agent reads the database again and retries. Every applied change is kept with its author: a member, an agent named after its API key or OAuth client, or the system. The open canvas shows other writers' changes within seconds.

Other resources (the tech stack, skills, environment variables) are saved one by one, without revisions.

## Read-only after the trial

An organization writes while its subscription is trialing, active or past due. Otherwise, after a trial that ended without payment or a cancelled plan, it is read-only: every page and every MCP read tool keeps working, install links keep serving skills, and databases still export, but every write is refused, from the app and from agents (`PlanRequired`), until an owner or admin subscribes. Nothing is deleted. See [Billing and trial](/docs/billing).
