feat(metadocs): make update-before-add explicit in the distiller prompt - #29
Merged
Conversation
The model always receives the complete current documents, so it CAN check what exists; now the prompt demands it: before adding anything, search for an existing entry about the same story and extend it — a twin entry is the failure mode. Requested by Maxim for the all-projects rollout. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…moved Maxim's call: «давал бы ему обновления по сессии — он сам разберётся». He was right — the 40K run budget treated a symptom. The timeout it was added for came from PACKING several sessions into one call, not from session size; the session is the natural narrative unit and the watermark was per-session already. Now: one call per session (its unseen tail, oldest session first). A failed session halts its project for the run — later sessions continue earlier stories, and distilling them out of order would write the ending before the beginning. Each changed project gets its own commit. No spillover concept: one run digests the whole backlog and is safely interruptible, since marks advance chapter by chapter. The only size threshold left lives at the level of ONE call: a marathon session splits into sequential chapters (MAX_CALL_CHARS, 60K), later chapters seeing the documents earlier ones updated. Suite: 298 passed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The model always receives the complete current documents, so it CAN check
what exists; now the prompt demands it: before adding anything, search for
an existing entry about the same story and extend it — a twin entry is the
failure mode. Requested by Maxim for the all-projects rollout.
Co-Authored-By: Claude Opus 5 noreply@anthropic.com