Mediathek docs

Decisions

ADR-0017 — Summaries and similarity for every item

Status: Accepted · Date: 2026-11-07 · Concerns the edge and the cloud · Extends ADR-0016

Context

ADR-0016 gave office documents and other files a summary that the edge's chat drafts and a person checks. Photos and films had none, yet a film is the hardest item to find again: its name says nothing, and nobody watches an hour of home video to look for one scene.

Grouping is the other half. A family's photos and films arrive in folders that rarely match what happened: one holiday is spread over three cameras, and a school folder holds ten years. The chat can name a group and tag it, but first it has to know which items belong together.

Decision

A summary on every item. The same statements as ADR-0016:

They now hold for mt:Photo and mt:Video as well, through one SummaryShape on all three item classes.

Only a document has a type. mt:documentType stays on mt:Document, and the shapes refuse it on a photo or film. Saving a summary keeps the item's own class (setDocument, with itemClassOf(kind)), so a photo is never turned into a document.

What the agent sees:

Each is sent only when the person asks the chat to summarise, as before. Draft, then checked, is unchanged: only a person marks a summary checked, in the Library viewer (a Summary panel under photos and films) or on the edge. The Library's summary filter applies to every side.

Finding similar items is worked out on the PC. The edge ranks candidates for a selection by a weighted mix of three signals, each with its reason:

The preview shows the result as Similar to N selected:

The chat's find_similar reads the same ranking, and show_in_preview opens it on the page. Naming the group and tagging it are proposals, as always.

Diagrams

The summary flow and states are ADR-0016's diagrams; they now hold for photos and films too.

Consequences