Marmot-TS
    Preparing search index...

    Class IngestionPool<TEnvelope>

    A persistent pool of incoming events that could not yet be decrypted against any tried state (Marmot v2 protocol-core/inbound-processing.md "deferred").

    Transport delivers events roughly chronologically, so a message from a newer epoch routinely arrives before the commit that unlocks its epoch key — and a fork/old-epoch message may arrive long after. Rather than dropping these as terminally unreadable, the engine holds them here and retries as the history tree grows (a new commit reaches their epoch, or a retained fork state is tried). Bounded by size and epoch-age so genuinely-undecryptable garbage (foreign or spam kind-445 events) cannot grow it without limit.

    Type Parameters

    • TEnvelope
    Index
    • Remember a verified receiver binding; never synthesize unknown epochs.

      Parameters

      Returns void

    • Retire tag memo entries only after checkpoint membership becomes authoritative.

      Parameters

      • retainedTags: Iterable<string>

      Returns void

    • Drops authenticated deferred commits only once their source epoch is strictly beyond the rollback horizon. Opaque wrappers have no trustworthy epoch and remain capacity-bounded until they authenticate or are removed.

      Parameters

      • currentEpoch: number

      Returns PooledEntry<TEnvelope>[]

    • Whether an entry with this id is pooled.

      Parameters

      • id: string

      Returns boolean

    • Removes an entry (it was read, or is being given up).

      Parameters

      • id: string

      Returns void

    • Clears every entry's tried-tag memo so the next tree sweep re-peels all pooled events against all node states. Called after a convergence branch switch: the canonical path changed, so a fork message previously held on a losing branch may now decrypt on the canonical one and be delivered.

      Returns void

    • Authenticated source epochs whose parent states remain active dependencies.

      Returns number[]