---
url: /guilds/pinning.md
---
# Pinning and approving

A remote member runs only once `pandra-guild.lock` pins it and you have approved its package. Whoever adds a member pins it and commits the lockfile, and each teammate fetches and approves the packages it pins.

## Pinning the members

`pandra guild lock` pins every remote member to one package in `pandra-guild.lock`, beside the guild file:

```sh
pandra guild lock
```

It prints what each package contains:

```text
implementer is a local project
  Path:  /home/me/app/agents/implementer

Pinned reviewer
  Reference:             ghcr.io/acme/reviewer:1.2.0@sha256:f4fa007adf9e...
  Description:           Reviews pull requests
  ...

Needs approval:
  To approve:
    pandra agent trust ghcr.io/acme/reviewer@sha256:f4fa007adf9e...
...
```

Commit both files:

```sh
git add pandra-guild.toml pandra-guild.lock
git commit -m "Add the repository's agents"
```

`guild lock` keeps every existing pin and pins only what is new or changed in the guild file. `pandra guild add` and `pandra guild remove` update the lockfile the same way. To move pins:

* `pandra guild lock --upgrade` resolves every member's tag or branch again, and `--upgrade NAME` one member's; a digest never moves.
* `pandra guild lock --check` changes nothing and needs no network: it fails when the lockfile is out of date, for CI.

A [`path` member](/guilds/members.md#kinds-of-member) has nothing to pin: its own `pandra.lock` pins what it depends on. The [`pandra-guild.lock` reference](/reference/guild-lockfile.md) shows what the lockfile records.

## Fetching and approving

After you clone the repository, or after a teammate moves a pin, fetch the pinned packages and approve them:

```sh
pandra guild pull
pandra guild trust
```

`guild pull` fetches what your store lacks and approves nothing. `guild trust` shows each member that needs approval and asks one question for all of them:

```text
implementer is a local project, which needs no approval

reviewer is approved already
  Reference:  ghcr.io/acme/reviewer:1.2.0@sha256:f4fa007adf9e...

security-reviewer is a local project, which needs no approval

release-notes needs approval
  Reference:             github.com/acme/agents//release-notes@2361c0c3c457...
  Digest:                sha256:7f7f593f8303...
  Description:           Writes release notes
  ...

Approving also covers later revisions of these sources that add no MCP server,
change none, and pre-approve no new tool.
? Approve release-notes? [y/N]
```

The samples on this page shorten the digests and leave lines out.

To approve only some members, name them: `pandra guild trust reviewer`. [Trusting agents](/run/trust.md#what-to-check) says what to look at in a summary.

Without a terminal, `guild trust` cannot ask. To approve without the question, such as in a setup script, add `--yes`.

::: security
`--yes` approves whatever a commit to `pandra-guild.lock` pins, so use it only in a repository whose commits you trust ([preparing for offline runs](/guilds/offline.md)).
:::

## Listing the members

`pandra guild list` shows every member with whether it is ready to run, and the guild's quests and profiles. It fetches nothing:

```sh
pandra guild list
```

Here a teammate has not pulled `release-notes` yet:

```text
MEMBER             AGENT                                  DESCRIPTION                    READY  BLOCKERS
implementer        /home/me/app/agents/implementer        Implements a change            ?      -
reviewer           ghcr.io/acme/reviewer                  Reviews pull requests          yes    -
security-reviewer  /home/me/app/agents/security-reviewer  Reviews a change for security  ?      -
release-notes      github.com/acme/agents//release-notes  -                              no     agent_not_found
?: a local project is built only when it runs; to check it now:
  pandra guild run NAME --dry-run

QUEST   STEPS                    DESCRIPTION
change  implement, release-note  Implement a change, reviewed for code and security, and write its release note.

PROFILE       MEMBERS
cross-review  reviewer
deep          implementer
```

The `BLOCKERS` column names what stops a member from running. The commands on this page clear the common ones: `guild lock` pins a member, `guild pull` fetches its package, and `guild trust` approves it. [A guild member is not ready](/reference/troubleshooting.md#a-guild-member-is-not-ready) gives the command for the common blockers, and [issue codes](/reference/errors.md#issue-codes) lists every one.
