hai: what long-term use looks like toy

This runs the real hai engine (the same rules as the CLI and the demo) over a simulated month of use. The user is scripted, not a prediction of real people. Change the sliders and watch what the rules do over time.

1. The knobs

Grades: 0 bad, 1 good, 2 to 4 better. The daily cap (10) and one grade per reply are the real rules; the slider can't go past them.

2. How the weights move (each line is one concept; 0.5 is where every concept starts)

3. What the user sees: the first option, day by day

When hai does not know a phrase, it offers the top three concepts by weight. Watch the first option change as the rules learn.

4. Example: the same question on day 1 and on the last day

Run the month to see it.

5. How it works, in order

  1. Reply. A word matches a concept (the one with the most matching words wins). Ties go to the higher weight.
  2. Grade. The user grades the last reply. A grade adds reward or punish counts from rules (grade 0 = one punish, grade 1 = one reward, grade 2 to 4 = more reward).
  3. Weight. Each concept's weight is (reward+1)/(reward+punish+2). It starts at 0.5, moves up with good grades and down with bad ones, and never reaches 0 or 1.
  4. Options. When nothing matches, the bot lists the top three concepts by weight. So learning changes what it offers, not what the replies say.
  5. Limits. Replies never change, so learning cannot invent new answers. The daily cap stops one person from forcing a result in one day.
  6. Memory. Everything above is replayed from the ledger, so a restart gives the same weights.

6. What long-term use means, in three steps (the vision)

The toy only shows the first step. The rest is design and is labelled as such everywhere.