/experiments/2_6_overgeneralize/

Section 2.6: a rule distilled from a single edit vs from a batch of past records, applied to work and life memos

Files in this folder

File / folderDescriptionSize
๐Ÿ“ ../Up one level-
๐Ÿ“„ CONTRACT.md1.9 KB
๐Ÿ“„ PILOT.md5.1 KB
๐Ÿ“„ README.md8.0 KB
๐Ÿ“„ pilot_homonym.py9.4 KB
๐Ÿ“„ pilot_results.json69.2 KB
๐Ÿ“„ results.json30.2 KB
๐Ÿ“„ run.py7.9 KB

README.md

2.6 Flow-back: a single edit overfits; batch history draws the boundary (English edition)

Twin of experiments/2_5_overgeneralize/, with the homonym shell in place of ่‹นๆžœ. PILOT.md explains the choice. The author writes the command-line sense of "shell" as "terminal", the word on his screen. Everyday senses stay "shell".

How to run

op run --env-file experiments/aib.env -- .venv/bin/python experiments_en/2_6_overgeneralize/run.py
op run --env-file experiments/aib.env -- .venv/bin/python experiments_en/2_6_overgeneralize/run.py --batch-only   # step 3 only
.venv/bin/python experiments_en/2_6_overgeneralize/run.py --rescore   # re-score step 2 from saved outputs, no API calls

The API is AI Builder Space, and the models are deepseek-v4.1-flash and gemini-3.8-flash. The input is ../corpus/transcripts_grok.json, and the names list is ../2_4_skill/names.md, which, like the Chinese list with Apple, includes "terminal" among the terms. Everything is in results.json:

Cost: $0.20 for 86 calls. The pilot (PILOT.md, pilot_homonym.py) cost a further $0.52.

Design (same run counts as the Chinese run)

  1. Single-edit distillation. The model sees only W06 before and after the one edit ("If you run intake from the shell instead of from the editor" โ†’ "โ€ฆfrom the terminalโ€ฆ"). It is asked to "Turn this edit into one rule for my cleanup rule file, so it is applied automatically whenever I clean up a transcript. Output only the rule, in one sentence." 5 runs per model, temperature 1.
  2. Downstream damage. Clean up 11 memos at temperature 0, with names.md plus one of three rules: - none; - global: Rule: in transcripts, always write "shell" as "terminal". - scoped: Rule: write "shell" as "terminal" only when it means the command line on a computer; in any everyday sense, keep "shell".

The memos are the work positives W03, W13 and W20 (3 command-line mentions, which should become "terminal") and the life negatives L01โ€“L08 (9 everyday mentions, which should stay "shell"). The 9 everyday mentions:

Each mention is located by the words around it ("stop at the ___", "that ___ pasta", and so on), so a model's commentary is never counted as a conversion.

  1. Batch-history distillation. All 12 memos in the 38-memo history that contain "shell" go to the model at once. That is 4 work memos (W03, W06, W13, W20), shown before and after the edit to "terminal", and 8 life memos (L01โ€“L08), shown unedited. The model is asked for one rule. 5 runs per model, temperature 1.

Rules are classified by hand:

Results (2026-10-14)

Step 1, single edit (verbatim, 5 runs each)

deepseek-v4.1-flash: 2 global, 1 over-narrow and 2 scoped.

  1. Replace the word "shell" with "terminal" when it refers to running a command from the command line. (scoped)
  2. Replace "shell" with "terminal" when referring to running intake. (over-narrow)
  3. Replace "shell" with "terminal". (global)
  4. Replace "shell" with "terminal". (global)
  5. Replace "shell" with "terminal" when it refers to running a command. (scoped)

gemini-3.8-flash: 1 global and 4 scoped.

  1. Replace "the shell" with "the terminal". (global)
  2. Replace "shell" with "terminal" when referring to the command-line environment.
  3. Replace "shell" with "terminal" when referring to the command-line interface.
  4. Replace the word "shell" with "terminal" when referring to the command line.
  5. Replace "shell" with "terminal" when referring to the command-line interface.

Step 2, downstream

rule model command-line "shell" โ†’ terminal everyday "shell" wrongly โ†’ terminal everyday "shell" kept
none deepseek 0/3 0/9 9/9
none gemini 0/3 0/9 9/9
global deepseek 3/3 9/9 0/9
global gemini 3/3 9/9 0/9
scoped deepseek 3/3 0/9 9/9
scoped gemini 3/3 0/9 9/9

Resisted: 0. Under the global rule, neither model left a single everyday mention alone. Deepseek even announced in L01 "per your rule, 'shell' โ†’ 'terminal.'" and then wrote "stop at the terminal and fill up". In the pilot, deepseek once refused to apply the rule; that did not happen at temperature 0 on this corpus.

Verbatim absurd outputs under the global rule, from gemini-3.8-flash. deepseek-v4.1-flash makes the same 9 conversions:

Other notes:

Step 3, batch history (verbatim, 5 runs each)

deepseek-v4.1-flash: 5/5 scoped, and all 5 also state what to leave alone.

  1. Replace "shell" with "terminal" only when it refers to a command-line interface, leaving all other senses of "shell" unchanged.
  2. Replace "shell" with "terminal" only when it refers to a command-line interface for running programs, not when it means a physical shell, gas station, food item, or other non-computing sense.
  3. Replace "shell" with "terminal" only when it refers to a command-line interface for running programs, but leave it unchanged when it means a gas station, seashell, eggshell, taco shell, pasta, nut shell, or animal shell.
  4. Replace "shell" with "terminal" only when it refers to a command-line environment for running programs or scripts; leave it unchanged when it means a gas station, seashell, eggshell, taco shell, pasta, nut shell, or physical shell.
  5. Keep "shell" when it means a physical shell (seashell, egg, taco, pasta, pistachio, crab) or the Shell gas station, but change it to "terminal" when it means the command-line environment.

gemini-3.8-flash: 5/5 scoped, with the positive condition only. The negative side is implied, not stated.

  1. Replace "shell" with "terminal" when referring to the command-line interface or computing environment.
  2. Replace "shell" with "terminal" when referring to the command-line interface.
  3. Same as 1.
  4. Same as 1.
  5. Replace "shell" with "terminal" when it refers to the command line or computing interface.

Summary

how the rule was distilled deepseek-v4.1-flash scoped to the command line gemini-3.8-flash scoped to the command line
one edit (W06), on the spot 2/5 (2 global, 1 over-narrow) 4/5 (1 global)
12 retrieved records (4 edited work + 8 untouched life) 5/5 (5/5 also name the exceptions) 5/5

Variance context: in the pilot, with a different W06 wording, the single-edit cell gave 2/5 global for deepseek and 0/5 for gemini (PILOT.md). Across the 10 runs, that is deepseek 4/10 global and gemini 1/10.