models.dedup_key()

Returns the stable dedup key for parts.

Usage

Source

models.dedup_key(*parts)

Detectors key on session, kind, and the feedback content (plus its code location for review comments) rather than the transcript entry’s uuid or the absolute file path, so the same pushback recorded under two transcript entries collapses to one row, and the database stays portable and idempotent across moves.

Parameters

parts: str = ()
The content fragments that uniquely identify a candidate.

Returns

DedupKey
The SHA-256 hex digest of the parts joined by a null byte.