# Core concepts

> Workspaces, apps, entities and records, lifecycles, the spec store, changesets and agents.

Source: https://docs.ligament.ai/get-started/concepts/

These are the words the rest of the docs use. Each section is short; follow the links when you need the detail.

## Workspace

A workspace is your organisation’s space in Ligament: its members and roles, its apps, its data and its settings. Everything you build or install lives in one workspace and is invisible to every other workspace. A large organisation can have [subsidiary workspaces](https://docs.ligament.ai/guides/workspaces/subsidiaries/index.md) under a parent.

The examples in these docs use a workspace called Northwind Group.

## Apps

An app is a named bundle of record types, pages and automation that belongs together, such as IT Service Management or CRM. There are two kinds:

-   **Installed apps** come from the App Store. Their author publishes numbered versions; you install one and later upgrade to a newer one. Your changes to what an installed app ships are kept across upgrades (see [Upgrades and your customisations](https://docs.ligament.ai/guides/building-apps/upgrades/index.md)).
-   **Your own apps** are the ones you create in **Build › Apps**, or write as a manifest and publish with the CLI (see [App manifests](https://docs.ligament.ai/developers/app-spec/index.md)).

Each app has a key (`itsm`, `crm`, `equipment_loans`) that stays the same for its whole life.

## Entities and records

An entity is a record type: Incident, Account, Equipment loan. A record is one row of it: incident INC0000042, or the loan of a Dell XPS 13 laptop to Tomás Ortega. Every record has a page at `/r/<entity>/<id>` and every entity has a list at `/r/<entity>`.

Entities are defined in **Build › Data**, where you also see how they reference each other.

## Fields

A field is one value on a record. When you add a field you pick its key (machine name, such as `due_back`), its label and its type:

| Type | Holds |
| --- | --- |
| `string` | Text |
| `number`, `currency` | Numbers and amounts |
| `boolean` | Yes or no |
| `date` | A date |
| `url`, `email`, `image_url` | Links, email addresses, image links |
| `file` | An attached file |
| `enum` | One of a fixed list of values, each with a colour |
| `reference` | Another record, for example a person or an account |

A field can be required and can have a default value.

## Lifecycles

A lifecycle is the set of states a record moves through and the transitions allowed between them. A loan might go Requested → On loan → Returned. One state is the initial state for new records, terminal states end the lifecycle, and each transition has an action label (“Hand over”), can require a role and can run a workflow. On a record page the transitions appear as buttons and the states as a stepper.

## The spec store

The spec store holds an app’s definitions as versioned JSON documents called **artefacts**. Today it holds pages and the access artefacts (roles, permission sets, restrictions, group mappings, hierarchies and shares). Entities, fields and lifecycles are edited directly in **Build › Data** and saved as you go.

Every artefact has:

-   an **address** of the form `<app>/<type>/<key>`, for example `crm/page/crm_home` or `__tenant__/page/loans_desk` (`__tenant__` means the workspace’s own artefacts that belong to no app);
-   a **layer**: `base` for what an installed app ships, `custom` for your edit of it, `source` for artefacts the workspace owns;
-   a **hash**, a short fingerprint of its content such as `7b4300da2d088767`. When you send a change you also send the hash you started from, so a change made since by someone else is merged, never silently overwritten.

Every editor (the page builder, the JSON tab, the REST API, the CLI and MCP) changes artefacts the same way: validate, plan, apply. Each apply writes a new version with who made it. See [The spec store](https://docs.ligament.ai/guides/building-apps/index.md).

## Changesets

A changeset is a named draft of one or more artefact changes that someone reviews and then applies together, all or nothing. Anyone with access to Build can propose a changeset; applying it needs the build permission for every item in it. Changesets live in **Build › Changes**. See [Changesets](https://docs.ligament.ai/guides/building-apps/changesets/index.md).

## Agents

An agent is anything that changes your workspace with an API key: an AI assistant connected over MCP, a script, or the CLI in a pipeline. Agents use the same spec store and changesets as people. A workspace setting decides which of their changes go live by themselves and which wait for a person to apply them. See [Agents propose, people approve](https://docs.ligament.ai/guides/building-apps/agents-propose/index.md).
