How to read the pit
The pit shows the chain's latest blocks as they land.
The block that was called last. Its slot number stands in the well.
One side of the pit holds one block. The pit keeps the last eight blocks that carried transactions to the book; the side called last is lit, and its slot stands on the floor behind it.
Cancels stand here, by the well: a transaction whose instructions to the book are all cancels.
Quotes stand here: a transaction whose instructions to the book are only cancels and post-only quotes, at least one quote.
Takes stand here: anything else that calls the book.
One transaction to the book. It stands on the step of its class, at its place in the line, and lights when it runs.
The lamps of a block light in the order the block ran them. Cancels, then post-only quotes, then everything else; ties by arrival slot, then signature hash.
The rule, exactly
Book transactions are scheduled by class, then by the slot in which the leader received them (earlier first), then by SHA-256 of the first signature (lowest first). Fee priority plays no part among them.
A take becomes schedulable 50 ms after the leader received it. A cancel or quote that reaches the leader no later than 50 ms after a take is executed before that take; one that arrives later can land after it, in the same block or a later one.
The rule orders transactions inside one block. Which block a transaction lands in is decided by the block builder, and every block builder is our validator.
The rule is enforced by the leader's block-building scheduler. Replay does not check the order; every validator here runs the patched build.
Transactions that reach the book only through another program are not book transactions for the rule.