@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Interface ChaosAliasOptions

    The same human seen under several wire identities.

    interface ChaosAliasOptions {
        map: Record<UserId, UserId[]>;
        strategy?: "cycle" | "random";
        probability?: number;
        resolve?: (wireId: string) => string;
    }
    Index
    map: Record<UserId, UserId[]>

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

    strategy?: "cycle" | "random"

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

    probability?: number

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

    resolve?: (wireId: string) => string

    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.