Stop threading cancel_event through the progress reporter as a shared-state bag. Instead, pass it explicitly through the parameter chain: sync_run closure → download_book() → download_m4b()/download_zip_part() (which already accept it). Remove the cancel_event attribute from both reporter classes.
Acceptance criteria
cancel_event is removed from PlainTextReporter and ProgressReporter
reporter.cancel_event = ... assignment is removed from sync_run.py
download_book() accepts and forwards cancel_event to its streaming calls
All existing cooperative cancellation tests pass (orchestrator Ctrl+C drain tests)
Full test suite passes
The progress reporter's public interface no longer includes any cancellation-related attributes
Blocked by
None - can start immediately
## Parent
#36 — PRD-003: Deepen Codebase Architecture
## What to build
Stop threading `cancel_event` through the progress reporter as a shared-state bag. Instead, pass it explicitly through the parameter chain: sync_run closure → download_book() → download_m4b()/download_zip_part() (which already accept it). Remove the `cancel_event` attribute from both reporter classes.
## Acceptance criteria
- [ ] `cancel_event` is removed from `PlainTextReporter` and `ProgressReporter`
- [ ] `reporter.cancel_event = ...` assignment is removed from `sync_run.py`
- [ ] `download_book()` accepts and forwards `cancel_event` to its streaming calls
- [ ] All existing cooperative cancellation tests pass (orchestrator Ctrl+C drain tests)
- [ ] Full test suite passes
- [ ] The progress reporter's public interface no longer includes any cancellation-related attributes
## Blocked by
None - can start immediately
✅Issue #39 Complete — removed from both reporter classes, now threaded explicitly through parameter chain ( → download_book() → streaming calls). 429 tests (+5 net), all pass. 6/6 AC met.
✅ **Issue #39 Complete** — removed from both reporter classes, now threaded explicitly through parameter chain ( → `download_book()` → streaming calls). 429 tests (+5 net), all pass. 6/6 AC met.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Parent
#36 — PRD-003: Deepen Codebase Architecture
What to build
Stop threading
cancel_eventthrough the progress reporter as a shared-state bag. Instead, pass it explicitly through the parameter chain: sync_run closure → download_book() → download_m4b()/download_zip_part() (which already accept it). Remove thecancel_eventattribute from both reporter classes.Acceptance criteria
cancel_eventis removed fromPlainTextReporterandProgressReporterreporter.cancel_event = ...assignment is removed fromsync_run.pydownload_book()accepts and forwardscancel_eventto its streaming callsBlocked by
None - can start immediately
✅ Issue #39 Complete — removed from both reporter classes, now threaded explicitly through parameter chain ( →
download_book()→ streaming calls). 429 tests (+5 net), all pass. 6/6 AC met.