Start an interrupted enrich over instead of resuming it #57

Open
opened 2026-11-13 13:41:02 +00:00 by chris-kreidl · 0 comments
chris-kreidl commented 2026-11-13 13:41:02 +00:00 (Migrated from github.com)

🤖 Claude: An interrupted or failed enrich starts over instead of resuming, so every ranking uses prices from a single run.

Decided in the M2 retro (#50), answering the open question in #55 about an age limit on reused quotes. A resumed enrich reuses checkpointed quotes however old they are, so one ranking can mix prices from different days, and "no quote" answers stay unpriced even after Yahoo starts quoting the ticker. Since #13, all of enrich takes about 17 s, so resuming saves only a few seconds. Sector lookups are cached in sector_cache as they happen, so a run that starts over keeps them anyway.

This changes a #15 criterion ("enrich skips companies already priced in that job").

Acceptance criteria

Proposed. To be agreed in backlog refinement.

  • An interrupted enrich starts over, as analyze does: it fetches every quote again and saves no quotes to job_checkpoint.
  • Sectors already in sector_cache are not looked up again after an interrupted run.
  • The CLI no longer offers to resume enrich: no resume prompt and no "quotes from the interrupted run" note. --restart help and the menu hints mention only refresh.
  • Enrich's checkpoint code is removed (reusedQuotes and the quote:<SYMBOL> entries), and its resume tests are replaced by a test showing a re-run after an interruption fetches every quote.
  • CLAUDE.md says only refresh resumes.

Definition of Done

  • Acceptance criteria met and demonstrated
  • bun test passes; new logic has tests
  • bun check is clean and bun fmt --check passes
  • Runs end to end on real data (not just fixtures)
  • Committed with Closes #<this issue>
🤖 **Claude:** An interrupted or failed enrich starts over instead of resuming, so every ranking uses prices from a single run. Decided in the M2 retro (#50), answering the open question in #55 about an age limit on reused quotes. A resumed enrich reuses checkpointed quotes however old they are, so one ranking can mix prices from different days, and "no quote" answers stay unpriced even after Yahoo starts quoting the ticker. Since #13, all of enrich takes about 17 s, so resuming saves only a few seconds. Sector lookups are cached in `sector_cache` as they happen, so a run that starts over keeps them anyway. This changes a #15 criterion ("enrich skips companies already priced in that job"). ### Acceptance criteria *Proposed. To be agreed in backlog refinement.* - [ ] An interrupted enrich starts over, as `analyze` does: it fetches every quote again and saves no quotes to `job_checkpoint`. - [ ] Sectors already in `sector_cache` are not looked up again after an interrupted run. - [ ] The CLI no longer offers to resume enrich: no resume prompt and no "quotes from the interrupted run" note. `--restart` help and the menu hints mention only refresh. - [ ] Enrich's checkpoint code is removed (`reusedQuotes` and the `quote:<SYMBOL>` entries), and its resume tests are replaced by a test showing a re-run after an interruption fetches every quote. - [ ] `CLAUDE.md` says only refresh resumes. ### Definition of Done - [ ] Acceptance criteria met and demonstrated - [ ] `bun test` passes; new logic has tests - [ ] `bun check` is clean and `bun fmt --check` passes - [ ] Runs end to end on real data (not just fixtures) - [ ] Committed with `Closes #<this issue>`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/screener#57
No description provided.