# The induced note round

Can a short note learned from failures replace written definitions? The page is `../induced-note.html`.

## What is here

- `protocol.json`: the arms, scoring, decision rule and predictions, fixed before any test run. The design file is not
  in the download.
- `note.md`: the frozen note. `induction-log.json`: every revision, with its score on the training questions.
- `note-freeze.json`: the hashes recorded when the note and the test questions froze.
- `restore.json` and `restore-outcome.json`: a fourth model restored after the other three models' results were seen,
  then stopped before any of its answers was scored. `score.py` later scores its 15 stored answers with the rest (none
  usable: 12 hold several answers in one reply, 3 are route failures), and every result leaves them out, since only
  whole runs count.
- `reread.json`: two readings decided after the results were seen, declared before their code: an exact bound on the
  documentation's lead over the note, and a count of the test questions that say what to count. `reread.py` computes
  both into `results/reread-summary.json`. Neither changes a result or a verdict of the rule fixed in advance. The
  question patterns were tried on the test questions before the file was written, so the counts describe the questions
  and test nothing.
- `reread2.json`: two more readings decided after the results, declared before their code: the word "posted" added to
  that count, and the points that names-only requests for clarification cost each model, beside the note's line against
  asking. `reread2.py` computes both into `results/reread2-summary.json`. Its pattern, too, was tried on the questions
  first, and nothing in it changes a result or a verdict.
- `reread3.json`: further readings, decided after the results, declared
  before their code: a fourth loose rule match and the two questions that break a total down by organization, a
  narrower reason for the "posted" count, the clarification figures read as an upper bound, and the test size the
  page's copy-paste prompt advises. `reread3.py` computes the counts into `results/reread3-summary.json`. Its patterns
  were tried on the note and the questions first, and nothing in it changes a result or a verdict.
- `reread4.json`: one more reading, decided after the results and declared before the page code that applies it:
  prediction 1 read against the interval of its gap as well as the mean. It makes no new count; `page.py` checks it
  against the results files, and nothing in it changes a result or a verdict.
- `questions-test.json`: the 40 test questions and their keys.
- `results/answers.jsonl`: every stored answer. `results/outcomes.csv`: each answer scored. `results/summary.json`: the
  per-model results and intervals. `results/key-rows.json`: the rows each key returns. `results/page-numbers.json`: every
  number the page shows and its source.
- The folder holding `aieval/` and `banking/`: part 3's bank tables, documentation, questions and SQL sandbox, copied
  unchanged. `tests/pinned.json` records each copy's hash beside the one part 3's own export lists.
- `prompts.py`, `score.py`, `analyze.py`, `page.py`, `check_numbers.py`, `tests/`: the code that rebuilds every result
  and the page from the stored answers.

## Re-score the stored answers

No key and no network are needed. With Python 3.12, duckdb 1.5, sqlglot 30 and pytest 9, from the folder that holds
`induced/` and `induced-note.html`:

    python -B induced/score.py
    python -B induced/analyze.py
    python -B induced/reread.py
    python -B induced/reread2.py
    python -B induced/reread3.py
    python -B induced/page.py
    python -B induced/check_numbers.py induced/build/induced-note.html
    python -B -m pytest induced/tests -q -p no:cacheprovider

`score.py` builds the bank database from part 3's copied tables, runs each stored answer in the read-only sandbox and writes
`results/outcomes.csv`. `analyze.py` writes `results/summary.json`, `reread.py` writes `results/reread-summary.json`,
`reread2.py` writes `results/reread2-summary.json` and `reread3.py` writes `results/reread3-summary.json`. The tests
check that all five match the published files.

## What cannot be re-run from here

The model calls themselves, the refining step that wrote the note and the writing of the test questions. The code
that called the models stays private, so these steps can't be repeated from the download alone.
