Write retrieve(scored, k, threshold) that returns the top-k
candidates, filtered by score >= threshold, deduped by
chunk_id (keep the highest-scoring occurrence). Order the
output by descending score.
Two cases run. Expected output:
['policy/p2', 'policy/p4', 'policy/p7']
[]