feat(generate): render long-form video digest + collapsible raw evidence#77
Merged
Merged
Conversation
…script
Adds the `digest` field to the `x_video` content source and reshapes the note's
`## Video digest` section: when a `digest` is present it renders as the readable
headline of the section, and the raw transcript + frame embeds are demoted into a
collapsible `<details>` below (evidence kept, the 40-frame wall of noise hidden).
When `digest` is empty (every existing record — the default), the section renders
the raw transcript + frames inline exactly as before, so this ships safely before
any digest exists.
- `models.ContentSourceSuccess.digest: str = ""` — additive, loads legacy stores.
- i18n `video_evidence_header` ("Frames + transcript" / "Frames y transcripción"),
localised via the configured output language.
- `generate._video_digest_lines`: digest headline + collapsible raw evidence, with
a fallback path for the no-digest case.
PR-A of the long-form-digest plan (see zz-support-files/.../video-longform-digest.md).
Gate green: 1111 tests, 95% cov.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jul 6, 2026
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.
PR-A of the long-form video digest (plan).
What
Reshape the note's
## Video digestsection so a readable digest is the headline and the raw transcript + 40-frame gallery become collapsible evidence.ContentSourceSuccess.digest: str = ""— additive, legacy stores load unchanged.digestis present → it's the section body; the raw transcript + frame embeds go inside a<details><summary>{evidence label}</summary>…</details>. Whendigestis empty (the default, every current record) → raw transcript + frames render inline exactly as today.video_evidence_headerlocalised (EN "Frames + transcript" / ES "Frames y transcripción").Why safe to ship first
Empty
digest= current behaviour (fallback), so this render change lands before PR-B produces any digest. No data migration.Tests
digest prose rendered as headline · raw transcript + frame embed demoted inside
<details>· digest-above-details ordering · no-digest fallback (no<details>) · localised evidence label · i18n field-set guard updated.Gate
✅ 1111 tests · 95% cov · ruff/format/mypy/radon/bandit/vulture/interrogate/deptry green.
🤖 Generated with Claude Code