> ## 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.

# ChaosAliasOptions

> Interface exported by @botmesh/core/testing.

Defined in: [testing/chaos.ts:245](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/chaos.ts#L245)

The same human seen under several wire identities.

## Properties

### map

```ts theme={null}
map: Record<UserId, UserId[]>;
```

Defined in: [testing/chaos.ts:247](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/chaos.ts#L247)

Canonical user id → alias ids of the same human (e.g. `{ [pn]: [lid] }`).

***

### strategy?

```ts theme={null}
strategy?: "cycle" | "random";
```

Defined in: [testing/chaos.ts:249](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/chaos.ts#L249)

`'random'` (default): flip with `probability`. `'cycle'`: canonical, alias1, alias2, canonical, … per human.

***

### probability?

```ts theme={null}
probability?: number;
```

Defined in: [testing/chaos.ts:251](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/chaos.ts#L251)

Probability `[0, 1]` that a mapped human's event uses an alias (strategy `'random'`). Default `0.5`.

***

### resolve?

```ts theme={null}
resolve?: (wireId) => string;
```

Defined in: [testing/chaos.ts:257](https://github.com/andresayac/botmesh/blob/main/packages/core/src/testing/chaos.ts#L257)

Identity resolver under test, applied to the flipped wire id (e.g. a
provider's alias store). Omit it to simulate a provider that LEAKS aliases,
i.e. violates the identity stability contract.

#### Parameters

| Parameter | Type |
| - | - |
| `wireId` | `string` |

#### Returns

`string`


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