Commit d997c63
milestone(fetch-metadata-preservation): fetch adds, never overwrites — Fixes #77
Fetch full content no longer clobbers the operator's metadata. Three layers:
- fetchSourceContent (content-ingest) now reads the operator's saved title
and bib from the source file and treats them as authoritative; Jina's
values are demoted to fallbacks that fill only empty fields. The existing
source_slug is preserved, so a re-fetch never renames the file. This also
fixes the resolver's applyBibToRegistry path, which just echoes the
preserved title back to the sources row.
- The client merge keeps the operator's title/authors/publisher/date and
takes only content + status from the fetch — and now surfaces
"fetch failed — could not read the URL" instead of silently resetting the
title to the URL (the old behavior that hid Jina failures).
Verified: rsbuild build (strategy-curator) + tsc --noEmit (content-ingest)
both green. Reaches augment.didi.sh on the next redeploy.
The local-write toggle from the operator's desired pipeline is NOT in this
commit — it's net-new behavior, tracked for a spec addendum.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018UYTYu4MAFZ7iyr2VTo2kq1 parent 29cd4fd commit d997c63
2 files changed
Lines changed: 25 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | | - | |
298 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
299 | 308 | | |
300 | 309 | | |
301 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
669 | 668 | | |
670 | 669 | | |
671 | | - | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
672 | 675 | | |
673 | 676 | | |
674 | 677 | | |
| |||
687 | 690 | | |
688 | 691 | | |
689 | 692 | | |
| 693 | + | |
690 | 694 | | |
691 | 695 | | |
692 | 696 | | |
693 | 697 | | |
694 | 698 | | |
695 | 699 | | |
| 700 | + | |
696 | 701 | | |
697 | 702 | | |
698 | 703 | | |
| |||
701 | 706 | | |
702 | 707 | | |
703 | 708 | | |
704 | | - | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
705 | 712 | | |
706 | | - | |
707 | | - | |
708 | | - | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
709 | 716 | | |
710 | 717 | | |
711 | 718 | | |
| |||
0 commit comments