Skip to content

Add key-value store for metadata about content types - #1618

Merged
ia0 merged 2 commits into
google:mainfrom
ia0:kvmeta
Nov 10, 2026
Merged

ia0 merged 2 commits into
google:mainfrom
ia0:kvmeta

Conversation

@ia0

@ia0 ia0 commented Nov 10, 2026

Copy link
Copy Markdown
Member

No description provided.

@ia0
ia0 requested a review from reyammer November 10, 2026 14:02
@reyammer
reyammer requested a review from corkamig November 10, 2026 14:39
@reyammer

Copy link
Copy Markdown
Collaborator

@corkamig thoughts? this would be the placeholder to have space for "metadata" / whatever additional information we want to return to the user in the future (with no semver guarantees).

@ia0
ia0 merged commit 8461733 into google:main Nov 10, 2026
29 checks passed
@ia0
ia0 deleted the kvmeta branch November 10, 2026 16:30
corkamig added a commit that referenced this pull request Nov 13, 2026
Populate RegularFileType::metadata for files identified by native resolvers
using the key-value store introduced in #1618:

- pronom_puid: UK National Archives PRONOM PUID (271 unique PUIDs)
- loc_fdd: US Library of Congress FDD identifier (132 unique FDDs)
- subformat: finer-grained variant already distinguished by existing verifiers
  (437 subformats across 129 content types, 183 with subformat-level PUID/FDD
  overrides)

No new parsing or matching logic is added; resolver ContentType decisions
remain identical.

Note on future optimization: subformats are currently stored as static string
descriptors for simplicity. If needed later, they can be represented internally
as a typed enum tree with optional/lazy string materialization so subformat
identification avoids any string handling when metadata is not requested.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants