mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 02:03:55 -05:00
build_chains_with_gemini.py: prompt now asks Gemini to also surface missing-rung gaps — e.g., 'this bucket has L1 + L3 questions on the same scenario thread but no L2 to bridge them.' Gaps are captured to interviews/vault/gaps.proposed.json as a separate authoring backlog. This is a free signal: it costs no extra calls, identifies pedagogical holes the corpus doesn't yet fill, and feeds a future generation pass (with independent validation before any new question is committed). corpus.ts: getChainForQuestion now accepts an optional preferredChainId so multi-chain questions can disambiguate via URL (?chain=...). Adds getAllChainsForQuestion() returning every chain a qid belongs to. Default behavior unchanged when only one chain exists.