Harden LLM refresh against invented ids; group on teasers #35

Manually merged
marvin8 merged 2 commits from fix/issue-34-refresh-robustness into main 2026-09-12 23:41:36 +00:00
Collaborator

Two follow-ups from the post-#23 A/B experiment:

  1. Refresh robustness — the model can hallucinate aggregate ids in a refresh() response; _apply_topics then updated just-deleted aggregates and swallowed the foreign-key errors, producing an empty grouping with a success log. Non-existent ids now degrade to creating a new aggregate, and skipped article links are logged instead of passed silently.
  2. Grouping input reverted to feed teasers — the A/B (recorded on #23) showed full-text prompts fragment clusters with no grouping gain. Grouping runs on teasers again (_CONTENT_PREVIEW_MAX = 300); full text stays in the summarizer teasers and article display.

Closes #34

Two follow-ups from the post-#23 A/B experiment: 1. **Refresh robustness** — the model can hallucinate aggregate ids in a `refresh()` response; `_apply_topics` then updated just-deleted aggregates and swallowed the foreign-key errors, producing an empty grouping with a success log. Non-existent ids now degrade to creating a new aggregate, and skipped article links are logged instead of passed silently. 2. **Grouping input reverted to feed teasers** — the A/B (recorded on #23) showed full-text prompts fragment clusters with no grouping gain. Grouping runs on teasers again (`_CONTENT_PREVIEW_MAX = 300`); full text stays in the summarizer teasers and article display. - [Issue #34 findings + plan comment](https://forge.marvin8.zone/marvin8/yunjin/issues/34) - [A/B results and decision comment on #23](https://forge.marvin8.zone/marvin8/yunjin/issues/23) Closes #34
Group on feed teasers instead of full text
All checks were successful
/ gitleaks (pull_request) Successful in 23s
/ checks (pull_request) Successful in 1m42s
/ pr-review (pull_request) Successful in 2m43s
10b3a49eff
agent-pi closed this pull request 2026-09-12 23:29:05 +00:00
agent-pi reopened this pull request 2026-09-12 23:29:49 +00:00
agent-pi changed target branch from feat/issue-23-full-text to main 2026-09-12 23:29:50 +00:00
marvin8 approved these changes 2026-09-12 23:38:28 +00:00
marvin8 manually merged commit e471b34454 into main 2026-09-12 23:41:36 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
marvin8/yunjin!35
No description provided.