Repository navigation
Done
Labels
Description
Problem
rolling_pr never synthesizes. Since commit 7fe5976 (RenderDraftArticle), and after #297 (RenderThemeArticle), each run appends every new learning verbatim as a ## <id> section under the existing article. The result on the 2026-12-01 hub run:
- unbound-force#1305 (
issue-triage): 363 raw sections, about 400 KB. No reviewer can meaningfully vouch for it, so the human merge that feat: git is the source of record for page trust tiers #203/fix: regenerated compiled article keeps validated tier only on unchanged content #205 treat as validation becomes a rubber stamp. - unbound-force#1300 (
fail-fast): the existing prose says the push_state bug is "still live" while an appended learning says it was fixed in #821. The article now contradicts itself, and nothing in the PR flags it.
What was intended
Synthesis, consistently:
- feat: /dewey-distill — compile/curate/promote pipeline via the running MCP server with server-side OpenAI-compatible synthesis #133 / PR feat: distill knowledge through the running MCP server with OpenAI-compatible synthesis #145 built server-side LLM synthesis for
dewey compile(stampingcompiled_at/compiled_by). - feat: unattended weekly /dewey-distill with rolling per-theme review PRs #193 asked for rolling PRs "containing regenerated articles".
- Spec 018 FR-012: "Each rolling PR MUST contain regenerated compiled articles at
tier: draft".contracts/rolling-pr.mdassumes a synthesis prompt. - dewey-distill-auto: rolling_pr replaces validated articles with raw draft dumps of new learnings #295 (open) expects the article to "re-synthesize the body"; fix(distill): add to existing articles; name the PR head; create labels #297 fixed only the overwrite half.
Raw append was never decided in an issue, spec or review. It arrived in 7fe5976, justified only by determinism (SC-004: an unchanged render must not commit).
Proposal
- Synthesize inside
rolling_prusing the synthesizercompilealready has. Prompt: the base article plus this run's new learnings. The model revises the prose, marks superseded or contradicted claims, and cites learning IDs inline. - Keep the guards: the citation-superset check, plus a check that every new member ID is cited. If a check fails, fall back (step 5), never commit unverified prose.
- Cap per theme per run at a configurable N (default 30–50) new learnings; the rest stay in scope for the next run, the same way small themes are deferred.
- Redefine SC-004 as "no new members, no commit" (scope-based) instead of byte equality of the render, since LLM output isn't deterministic.
- Fallback when no synthesizer is configured or synthesis fails: write new learnings to a
<theme>.pending.mdsidecar for the interactive/dewey-distillcurator, instead of appending to the article. - PR body: list contradictions and supersessions the synthesis found, so the reviewer looks at those first.
- Spec: amend FR-012 from "regenerated" to "synthesized" and add the cap.
Alternatives considered: a "changes since" delta section only (never consolidates old prose); agent-side synthesis through MCP (brings the client timeouts back, and agent-side grouping uses tags rather than embeddings, so themes wouldn't match).
Related
- Supersedes the remaining half of dewey-distill-auto: rolling_pr replaces validated articles with raw draft dumps of new learnings #295 (close dewey-distill-auto: rolling_pr replaces validated articles with raw draft dumps of new learnings #295 when this lands).
- feat: extend #203 git-derived trust tiers to the .uf/dewey/ workspace layout (compiled/ and knowledge/) #210: merged articles in
compiled/still read asdraftbecause git-derived tiers don't cover that path. Synthesized articles need that fixed to ever show as validated.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
feat(distill): synthesize rolling-PR articles instead of appending ra…