> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Leadership

> Interface exported by @botmesh/core/spi.

Defined in: [coordination/types.ts:125](https://github.com/andresayac/botmesh/blob/main/packages/core/src/coordination/types.ts#L125)

A renewed lease on a named singleton (see [Coordinator.lead](https://botmesh.afaya.com.co/api/core/interfaces/Coordinator.md#lead)).

## Properties

### name

```ts theme={null}
readonly name: string;
```

Defined in: [coordination/types.ts:126](https://github.com/andresayac/botmesh/blob/main/packages/core/src/coordination/types.ts#L126)

***

### fence

```ts theme={null}
readonly fence: number;
```

Defined in: [coordination/types.ts:128](https://github.com/andresayac/botmesh/blob/main/packages/core/src/coordination/types.ts#L128)

Term number: strictly increasing every time the leadership changes hands.

***

### signal

```ts theme={null}
readonly signal: AbortSignal;
```

Defined in: [coordination/types.ts:130](https://github.com/andresayac/botmesh/blob/main/packages/core/src/coordination/types.ts#L130)

Aborts once the leadership is lost (expired, coordinator unreachable, stopped).

## Methods

### release()

```ts theme={null}
release(): Promise<void>;
```

Defined in: [coordination/types.ts:132](https://github.com/andresayac/botmesh/blob/main/packages/core/src/coordination/types.ts#L132)

Step down (idempotent).

#### Returns

`Promise`\<`void`>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.