Skip to content

Preserve verified catalog rows during bounded refreshes - #30

Merged
sarthakagrawal927 merged 1 commit into
mainfrom
agent/preserve-truncated-sources
Aug 8, 2026
Merged

Preserve verified catalog rows during bounded refreshes#30
sarthakagrawal927 merged 1 commit into
mainfrom
agent/preserve-truncated-sources

Conversation

@sarthakagrawal927

Copy link
Copy Markdown
Member

What changed

  • refresh only the bounded recent YouTube window plus incomplete legacy cache rows
  • merge refreshed metadata into the complete verified cache
  • remove cached rows when a discovered video is now private or non-embeddable
  • retain the existing fail-safe when live rows produce no qualifying replacement
  • cover a verified 1,000-row cache against the 500-row discovery ceiling

Why

The incremental API path truncated cached IDs to its recent-discovery limit. That converted SNL from 1,000 curated videos to 487 and correctly tripped the catalog audit even though the source itself had not suffered that drop.

Validation

  • focused YouTube/fetch tests (31 passed)
  • pnpm test (231 passed)
  • pnpm typecheck
  • pnpm lint
  • git diff --check

Closes #29

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Preview: https://pr-30.looptv.pages.dev

@sarthakagrawal927
sarthakagrawal927 marked this pull request as ready for review August 8, 2026 11:31
@sarthakagrawal927
sarthakagrawal927 merged commit b72cade into main Aug 8, 2026
3 checks passed
@sarthakagrawal927
sarthakagrawal927 deleted the agent/preserve-truncated-sources branch August 8, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preserve verified catalog rows during bounded YouTube refreshes

1 participant