Repository navigation
feat(evidence): put everything Lens found about a resource in its evidence PDF - #370
Merged
Merged
Conversation
…dence PDF After each resource's own file, an evidence PDF now has pages of what Lens holds about it: details, metadata and custom fields, tags, topics, the summary and analysis models wrote, sections, speakers, emotion and sounds (overall, by speaker, and marked on each transcript line), entities, keywords, what is seen in it, and the places and dates found in it. Shared notes, highlights and comments go in when picked; private notes never do. `include` picks the parts in the API, and the web app's Export menu and collection page open a picker. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cbw4LbcmWzn27B4ai6tX7C
Keep both changelog entries and both header imports, recompute the threat model's prose hash, and add a resource's NSFW classification (where it is on in its namespace) to the evidence report's details. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cbw4LbcmWzn27B4ai6tX7C
Keep both changelog entries and recompute the threat model's prose hash. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cbw4LbcmWzn27B4ai6tX7C
Keep both changelog entries and recompute the threat model's prose hash. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cbw4LbcmWzn27B4ai6tX7C
Merged
16 of 22 tasks
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.
Requested by Adeel · project thread
Description
Before: an evidence PDF held each resource's own file (and, for audio and video, its transcript) and a provenance page. Emotion, speakers, entities, tags, topics, metadata, the summary and every other enrichment were left out.
After: after each resource's file comes
<title> - what Lens found.txt, laid out by anytopdf as pages, with every part Lens holds:Alice: (Happy, Laughter) The invoice is paid.include(repeatable) picks the parts onGET /resources/{rid}/evidence.pdfandGET /collections/{cid}/evidence.pdf; without it every part butnotesgoes in.include=filegives the old PDF. In the web app, Export keeps one-click Evidence PDF and adds Choose what goes in it…; a collection's page gets the same picker beside its button. The picker remembers the last picks in the browser and Enter downloads.Motivation and Context
Adeel asked for the PDF export to include everything (emotion and the rest); it left all enrichments out.
How:
domain/evidence_report.pyreads what Lens already stored (player data, talk stats, metadata, topics, outputs, enrichment, NSFW classification, notes) into plain text, which anytopdf lays out the same way here and on a conversion node (it renders Markdown and HTML as text too).evidence.makeadds that file after each resource's own file and marks transcript lines whenemotionis picked. No model calls.Screenshots (if appropriate):
n/a; the report's text is asserted line by line in
tests/api/test_evidence.py.Types of changes
!in the title)Checklist:
make hookschecks it on commit).docs/accordingly.## UnreleasedinCHANGELOG.md.Done questions (AGENTS.md)
includeon both endpoints is a typed enum in OpenAPI, described part by part.docs/api.md#evidence-pdfs, CHANGELOG,make openapi.🤖 Generated with Claude Code
https://claude.ai/code/session_01Cbw4LbcmWzn27B4ai6tX7C