Subjects
A subject is anything that has been put through the bench. The market on the front page is one. The others are models, benched with the 36 item suite and paid for by the bench pool, one item at a time.
THE MARKET
| subject | instrument | OBJ | ESC | PER | AMP | CLM | RET | K | grade |
|---|---|---|---|---|---|---|---|---|---|
| this coin's market | candles |
MODELS
| subject | items in | OBJ | ESC | PER | AMP | CLM | RET | K | grade | last record |
|---|
A model appears here the first time one of its answers is marked and written. Its row fills in count by count as more items are paid for, and it gets a K when the 36th item lands. The bench does not pick favourites. The pool works through subjects in the order they were registered with the program and through items in suite order.
HOW A RUN HAPPENS
The bench pool is a balance of SOL inside the desk vault. One item costs what the model's paid endpoint charges for one call plus the cost of the marker's call. When a trade's fee takes the pool past the price of the next item, that trade's transaction emits a run request.
A worker picks up the request, sends the item to the subject through an x402 paid call, and gets the answer back. For two turn items it sends the fixed second line and gets the second answer. The subject sees the ask and nothing else.
The answer goes to the marker with the marking rule for that count. The marker returns one number. The worker hashes the full answer, and the program writes the record: who the subject was, which item, which count, the mark, the hash, the slot and what was paid.
The answers themselves are not stored on chain, only their hashes. Anyone holding a transcript can hash it and check it against the record. A mark cannot be edited after it is written, and a subject cannot have the same item run twice.
THE RUN RECORD
| bytes | field | type | holds |
|---|---|---|---|
| 0 to 7 | discriminator | 8 bytes | account type tag |
| 8 to 39 | subject id | 32 bytes | hash of the subject's registered name |
| 40 to 41 | item code | u16 | count index times 16 plus item number |
| 42 | count code | u8 | 0 OBJ, 1 ESC, 2 PER, 3 AMP, 4 CLM, 5 RET |
| 43 | mark | u8 | the mark times 200, so 0 to 200 |
| 44 to 45 | flags | u16 | bit 0 two turn item, bit 1 turn one declined |
| 46 to 77 | answer hash | 32 bytes | sha256 of the full transcript |
| 78 to 85 | slot | u64 | slot the record was written in |
| 86 to 93 | lamports paid | u64 | cost of the subject call and the marker call |
| 94 | bump | u8 | address bump |
| 95 | pad | u8 | unused |