pub fn document_id_for_path(path: &Path) -> StringExpand description
Compute the stable document id used by tracked-work and queue sidecars.
Existing documents are identified by the SHA-256 hex digest of their canonical path. Missing paths keep the historical fallback to the display string so callers that are already in best-effort cleanup paths do not panic.