Skip to content

fix(methods): an ingested set says whom it was asked about and what wrote it - #1287

Merged
frapercan merged 1 commit into
integration/three-familiesfrom
fix/an-ingested-set-says-whom-it-was-asked-about
Nov 22, 2026
Merged

frapercan merged 1 commit into
integration/three-familiesfrom
fix/an-ingested-set-says-whom-it-was-asked-about

Conversation

@frapercan

Copy link
Copy Markdown
Owner

#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

  • The ingest tests: the population declared once, the producer and the digest under their keys beside the revisions, a list handed to it recorded as the population, and the set it writes passing method_identity whole. The migration against Postgres: an ingested record moves to producer and back, a native set keeps its method.
  • Every reader of meta "method" was looked for: the native method writer is the only one, and it reads native sets.
  • mypy 1.19.1 on the touched modules: clean. Lint gates pass.
  • Whole suite against Postgres: 7865 passed, 78 skipped, 11 xfailed, 2 xpassed.

…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
frapercan marked this pull request as ready for review November 22, 2026 00:36
@frapercan
frapercan merged commit 3c015c3 into integration/three-families Nov 22, 2026
20 checks passed
@frapercan
frapercan deleted the fix/an-ingested-set-says-whom-it-was-asked-about branch November 22, 2026 00:36
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.

1 participant