Score L2 Order Books (v2 contract)
kirk_score_l2_bookScore a sequence of full L2 order books as one chain and return per-book entropies plus engine attestation.
Purpose: Score complete books — prices, sizes and order counts — rather than prices alone. This is the v2 book contract; it carries information the price-only contract cannot.
STATE POLICY, and it matters: the books are scored IN ORDER as a single fresh chain. The model starts from its locked initial state at the first book and carries state forward across the rest, so a book's value depends on the books before it. State is never carried between calls. Sending the same books in a different order is a different measurement and will return different values; scoring N books one-per-call is NOT equivalent to one call of N books.
Use when: You are validating Kirk on full L2 snapshots. For the price-only v1 contract use kirk_score_book — the two are different envelopes and are not interchangeable.
Do not use when: You are looping this tool from an LLM. Call kirk_bulk_howto for bulk work; its v2 mode wraps this same call.
Cost: 1 IU per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| books | Yes | 1..500 books, scored in the order given. Each book is an object with exactly eight fields: bid_px and ask_px (10 values each, level 1 = best quote, running outward), bid_quantity, ask_quantity, bid_num_orders, ask_num_orders (8 values each, same ordering), and bid_level_count, ask_level_count (scalars). Every value must be a finite JSON number; this contract does not impute or tolerate gaps. | |
| model_id | No | A v2-contract model id. Defaults to kirk-l2-thermo-v2-e32-v1. | kirk-l2-thermo-v2-e32-v1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||