Skip to content

id(web): file-list deduplication key excludes origin — same-content files from different nodes collapse before the origin filter (PR #5191) #5382

Closed

Description

@dezren39

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:

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.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 4, 2026
  2. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  3. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    and removed on Nov 4, 2026
  4. removed
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 4, 2026
  5. 6 remaining items

  6. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    Triage verdict: confirmed live on current main

    Task 9350 verified the finding against main commit 8a8d509f87fc499c9ff3963fca345c060c58c0b2 on 2026-11-04. In pkgs/id/src/web/routes.rs, get_file_list populates origin_node, then deduplicates using only hash, display name, and user tags. get_file_list_page applies 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_fix packet under the standard fix-family key repo-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.

  7. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    Triage complete — confirmed live

    Revalidated against current main commit 18f0aa1a68d83d3df127cca8523f578f4adb33a3 at 2026-11-04T17:41Z: get_file_list still deduplicates on hash, display name, and user tags after origin_node is populated, while get_file_list_page applies 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 in repo-health-code-shadow; an explicit enqueue request for repo-health-code-pilot deduped 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

  8. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 4, 2026
  9. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  10. added a commit that references this issue on Nov 4, 2026
  11. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-comment-reviewFiled by the pr-comment-review jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions