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

# StateSet Sequencer Architecture

> Core components and data flow for the Verifiable Event Sync (VES) sequencer.

# StateSet Sequencer Architecture

The StateSet Sequencer assigns deterministic sequence numbers to events, builds Merkle commitments, and batches events for proof generation and on-chain anchoring.

## Components

* **Event ingest**: HTTP/gRPC endpoints for agent events
* **Sequencing**: Deterministic ordering and receipt generation
* **Merkle trees**: Batch commitments for event inclusion proofs
* **Storage**: Durable event store for replay and verification

## Data Flow

1. Agents submit events via the sync CLI or API.
2. The sequencer validates signatures and assigns sequence numbers.
3. Events are added to a Merkle tree and batched.
4. Batch commitments are anchored on Set L2.

## Integration Points

* **Sync CLI** for agent event capture
* **STARK prover** for compliance proofs
* **Set L2** for anchoring commitments and proof metadata

## Related Documentation

* [Sequencer Overview](/stateset-sequencer)
* [Sequencer Quickstart](/stateset-sequencer-quickstart)
* [Set L2 Overview](/stateset-set-l2)
