Repository navigation
Closed
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)Ordinary priority (the default)source/pr-comment-reviewFiled by the pr-comment-review jobFiled by the pr-comment-review jobtask/triageQueue packet kind: verify, reproduce, and route this itemQueue packet kind: verify, reproduce, and route this item
Description
Finding (from PR review)
Codex (chatgpt-codex-connector[bot]) raised this P2 finding on merged PR #5191 in its second review round, and it was never fixed or replied to:
- PR: id: show file origin node + upload time in listings (#4973) #5191 — "id: show file origin node + upload time in listings (id: show file origin node + upload time in listings with sort/filter #4973)"
- Comment: id: show file origin node + upload time in listings (#4973) #5191 (comment) (2026-11-04T00:00:33Z, on
pkgs/id/src/web/routes.rs:1141) - Essence: "Include origin in the file-list deduplication key. When two separately named files contain identical bytes and have the same custom
namedisplay tag and user tags, but were uploaded by different nodes,get_file_listcollapses them before this origin filter runs: its deduplication key contains only hash, display name, and user tags (routes.rs:990–1000), and this change explicitly excludesoriginfrom user tags. Filtering by the discarded file's origin therefore returns no matching file even though it exists with that recorded origin. Include origin in the deduplication key, or apply the origin constraint before deduplication, so files with distinct displayed provenance remain discoverable."
No-response evidence
- The inline thread contains only the Codex comment (reviewThreads check 2026-11-04: thread unresolved, replies=1, sole author chatgpt-codex-connector[bot]).
- The second-round review posted at 2026-11-04T00:00:33Z, just after PR id: show file origin node + upload time in listings (#4973) #5191 merged at 2026-11-03T23:59:18Z — no reply or fix followed it, on the PR or (per the main check below) on main.
- Dedupe: open and closed issues searched by PR number (5191), file path, and keywords ("deduplication origin") on 2026-11-04 — no existing issue covers this finding.
Still live on current main (verified 2026-11-04 by gh api raw read)
pkgs/id/src/web/routes.rs on main:
- Lines 1167–1178: the deduplication block in
get_file_list—dedup_key = format!("{}|{}|{:?}", f.hash, f.display_name.as_deref().unwrap_or(&f.name), f.tags)— hash, display name, and user tags only;origin_node(populated per file at line 1145) is not part of the key. - Lines 1307–1319: the origin filter runs afterwards, on the already-deduplicated list, so a file collapsed away by deduplication can never match its own origin filter.
Acceptance criteria
- Two same-content files with the same display name and user tags but different recorded origins both survive deduplication, and filtering by either origin returns its file (origin in the dedup key, or the origin constraint applied before deduplication).
- A regression test covers the distinct-origin same-content case.
- Or: the finding is resolved on this issue by a documented decision, with the reasoning recorded.
Metadata
Metadata
Assignees
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)Ordinary priority (the default)source/pr-comment-reviewFiled by the pr-comment-review jobFiled by the pr-comment-review jobtask/triageQueue packet kind: verify, reproduce, and route this itemQueue packet kind: verify, reproduce, and route this item
Activity
dezren39 commentedon Nov 4, 2026
🤖 Agent note · filed
6 remaining items
dezren39 commentedon Nov 4, 2026
Triage verdict: confirmed live on current main
Task 9350 verified the finding against main commit
8a8d509f87fc499c9ff3963fca345c060c58c0b2on 2026-11-04. Inpkgs/id/src/web/routes.rs,get_file_listpopulatesorigin_node, then deduplicates using only hash, display name, and user tags.get_file_list_pageapplies the exact origin filter later, after this deduplication. Thus two same-content files with matching display name and user tags but different origins produce the same key; whichever row is discarded cannot be found by filtering for its origin. The Codex finding on merged PR #5191 is valid and remains live.The verification used the current-main source read required by the triage packet; no build/test was run for this read-only triage. No open PR for #5382 was found. I’m routing a scoped
small_fixpacket under the standard fix-family keyrepo-health:v1:fix:developing-today/code:issue:5382, covering origin-aware deduplication (or applying the origin constraint before deduplication) and a regression test for identical content/name/tags with distinct origins. The source PR review thread remains untouched.dezren39 commentedon Nov 4, 2026
Triage complete — confirmed live
Revalidated against current main commit
18f0aa1a68d83d3df127cca8523f578f4adb33a3at 2026-11-04T17:41Z:get_file_liststill deduplicates on hash, display name, and user tags afterorigin_nodeis populated, whileget_file_list_pageapplies the origin filter afterward. Same-content rows with identical display name/tags but distinct origins therefore collapse before either exact origin filter can find the discarded row. No matching open PR was found. No code was changed and no build/test was run; this triage used the requested current-main source reads.The scoped fix packet is queued as task 9691 with the standard key
repo-health:v1:fix:developing-today/code:issue:5382. Routing caveat: the helper placed task 9691 inrepo-health-code-shadow; an explicit enqueue request forrepo-health-code-pilotdeduped to that same shadow row, so task 9691 is not yet claimable by the pilot. It must be promoted before implementation; no duplicate task was created. #5382 remains open, and the source review thread on #5191 remains untouched.🤖 Agent note · done — triage verdict: confirmed
repo-worker-code)repo-health-code-shadow; promotion to the pilot is still needed)dezren39 commentedon Nov 4, 2026
🤖 Agent note · picked up
Merge pull request #5617 from developing-today/queue/9691-5382-file-l…
dezren39 commentedon Nov 4, 2026
🤖 Agent note · done
origin_nodeis now part of theget_file_listdeduplication key inpkgs/id/src/web/routes.rs, so same-content files with distinct recorded origins no longer collapse before the origin filter runs.file_list_dedup_preserves_same_content_files_with_distinct_originspasses and the fullsave_publication_testsmodule passes (4/4, laptop,--features web); Codex review on PR fix(id): include origin in file-list deduplication key (#5382) #5617 completed with no findings.