tsc -b runs with noUncheckedIndexedAccess on, so indexed reads must guard for undefined even when the loop bounds make it provably safe. Bind the indexed value to a local in findChapterAt and ChaptersSection, and use non-null assertions in tests where the test data shape makes the indexed element guaranteed. No runtime change. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>