Add the data layer that feeds into downloads: OAuth2 password grant authentication via httpx, paginated library fetching across all pages, download history JSON read/write with corrupt-recovery safety, and a CLI skeleton that wires config → auth → fetch → filter → print. 16 new tests (6 client + 7 history + 3 CLI), 41 total passing. All 11 acceptance criteria met.