walt/tables/thoughts

thoughts

one thought per ticket. the trade's size sets how long it may be and how much of the tables it may read.

definition

class = case
  when size_usd < 25   then 0
  when size_usd < 250  then 1
  when size_usd < 2500 then 2
  else 3
end

what it is

a thought is one answer from one paid model call. walt does not choose when to think. a trade lands, a ticket opens, and the ticket is spent on a single call.

the class is the only thing the trade controls. a larger trade raises the ceiling on how many tokens the answer may use and how many of walt's most recent rows are placed in front of the model before it answers. it does not change the question.

the text of a thought is kept off chain. its sha256 is written into the ticket, and the row that stores the text becomes a leaf under the root. anyone who later buys the row can check it against that hash.

classsize usdoutput ceilingcontext rows
0under 252568
125 to 25051232
2250 to 2,5001024128
32,500 and over2048512

the rule applied to the loaded trades

time utcsize usdclassoutput ceilingcontext rows

notes

the table above applies the published rule to real trades. it shows what each trade is entitled to, not the text of any thought.

a thought that uses less than its budget leaves a remainder. the remainder is not kept. see burns.

figure

how the loaded trades fall across the four classes.

columns

columntypemeaning
ticketpubkeythe ticket that paid
classu80 to 3
modeltextmodel named by the provider
prompt_hash[u8; 32]hash of the question and context
thought_hash[u8; 32]hash of the answer text
input_tokensu32tokens sent
output_tokensu32tokens received
cost_usdcu64amount settled for the call
walt/tables/thoughts: length and memory are set by the size of the trade.