Repository navigation
fix(methods): an ingested set says whom it was asked about and what wrote it - #1287
Merged
frapercan merged 1 commit intoNov 22, 2026
Conversation
…rote it #1283 let a retrieval and a native method's set say whom they were asked about and which code and libraries wrote them, so the method seal can compare them. An ingested set (ingest_method_predictions) said neither, and the seal refused it by name for a third reason: its source key was classified neither as identity nor as execution. The ranked own annotations reach the platform this way and could not be compared with anything. An ingested set now records, as any set does, the code and libraries that wrote its rows (code_revision, dependency_revisions) and the population it was asked about: a query set, or, new in the payload, the list of accessions (query_accessions, at most one of the two), recorded as its count and digest. Two keys name the method: the producer's own record (name, commit, shas, models) moves from meta "method", which a native set uses for its short name and the seal reads as a label, to meta "producer", which the seal reads as identity; and the digest of the file it published gets a key of its own, predictions_sha256, also identity. "source" keeps where the file was read from and what its scan counted, classified as execution: a location and counts that follow from the bytes. Migration 3b9d4e2a7f15 moves the record of the sets ingested before and copies the digest they kept in source. Their revisions were never recorded, so the seal still refuses them until they are ingested again; the downgrade moves the record back.
frapercan
marked this pull request as ready for review
November 22, 2026 00:36
frapercan
deleted the
fix/an-ingested-set-says-whom-it-was-asked-about
branch
November 22, 2026 00:36
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.
#1283 let a retrieval and a native method's set say whom they were asked
about and which code and libraries wrote them, so the method seal can
compare them. An ingested set (ingest_method_predictions) said neither,
and the seal refused it by name for a third reason: its source key was
classified neither as identity nor as execution. The ranked own
annotations reach the platform this way and could not be compared with
anything.
An ingested set now records, as any set does, the code and libraries
that wrote its rows (code_revision, dependency_revisions) and the
population it was asked about: a query set, or, new in the payload, the
list of accessions (query_accessions, at most one of the two), recorded
as its count and digest. Two keys name the method: the producer's own
record (name, commit, shas, models) moves from meta "method", which a
native set uses for its short name and the seal reads as a label, to
meta "producer", which the seal reads as identity; and the digest of the
file it published gets a key of its own, predictions_sha256, also
identity. "source" keeps where the file was read from and what its scan
counted, classified as execution: a location and counts that follow from
the bytes.
Migration 3b9d4e2a7f15 moves the record of the sets ingested before and
copies the digest they kept in source. Their revisions were never
recorded, so the seal still refuses them until they are ingested again;
the downgrade moves the record back.
Checks
method_identitywhole. The migration against Postgres: an ingested record moves toproducerand back, a native set keeps itsmethod.