agrag.ingestion.resolved_entities.rebuild_resolved_entities
rebuild_resolved_entities(seed_ids:list[UUID], *, graph_store:GraphStore, schema:GraphSchema, tracer:Tracer | None = None) -> list[RebuildResult]
Rebuild the resolved entity of each committed component from its seeds.
The matches already exist, so no match decision is written or changed.
The resolved nodes and their RESOLVED_AS memberships are rebuilt,
each membership carrying the newest committed match time when one
exists. Each component is read as it stands now, replacing whatever
resolved entities its members belonged to. A seed whose entity is
gone, or whose component has fewer than two members, is skipped:
nothing is left to rebuild for it. Safe to run again on the same
seeds.
Parameters:
- seed_ids (
list[UUID]) – One member id per component to rebuild. Seeds that share a component rebuild it once. - graph_store (
GraphStore) – Where the components are read and rewritten. - schema (
GraphSchema) – The schema the members belong to. - tracer (
Tracer | None) – Passed to description summarization.
Returns:
list[RebuildResult]– One result per rebuilt component, in seed order.