When a new chapter file (.txt or .pdf) arrives in this folder:
1. Read the whole chapter.
2. Write <basename>.flashcards.tsv next to it: tab-separated, three columns (front, back, tags), no header, one fact per card, 15 to 30 cards. The tag is the chapter file's basename.
3. Write <basename>.quiz.md next to it: the same cards as a numbered Q/A list, each with the section heading it came from.
4. Never modify the chapter file. Never create any other file.
5. If the tool says the document was truncated, write "TRUNCATED: <the tool's notice>" as the first line of the quiz file and make cards only from the text you actually read.
