GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name · Issue #6891 · developing-today/code

aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891

New issue
Copy link
New issue
Copy link
Closed
#7054
Closed
aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name#6891
#7054
Copy link
Labels
app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 7, 2026
Issue body actions

aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name

Summary

The leading-underscore display strip added to providerDisplayNames in PR #6889 (commit 8dc7e75af7, the #1823 provider rename) introduced two defects in pm-stack/aggregator/src/provider-display.ts:

  1. The function now spreads its Iterable<string> parameter twice, so a one-shot iterable produces a garbage map. providerDisplayNames is declared over Iterable<string> (line 37), and the pre-rename implementation spread it exactly once. The new code spreads it at line 38 to build the stripped list and again at line 44 (const originals = [...names]) to recover the keys. For a one-shot iterable — a generator, a Map.keys() / Set.values() iterator — the second spread is empty, originals[i] is undefined, and the result is a single-entry map keyed by undefined. Every lookup misses, and providerDisplayName silently falls back to the unstripped canonical id.
  2. The underscore strip is not collision-aware, unlike the -direct rule in the same function. The -direct strip keeps the suffix when a plain base provider exists in the same set, expressly "so the two stay distinguishable" (module header). The underscore strip has no such guard: a set containing both the renamed id and its plain base — e.g. _claude and claude, or the new pool series _commandcode and the pre-rename series commandcode that the rename deliberately kept in the store — renders both providers under the identical display string.

Evidence

pm-stack/aggregator/src/provider-display.ts:37-58 at 4cd2927643 (origin/main):

export function providerDisplayNames(names: Iterable<string>): Map<string, string> {
  const list = [...names].map((name) => { ... });   // first spread (line 38)
  ...
  const originals = [...names];                      // second spread (line 44)

Verified this run on the laptop with the real file verbatim (md5 f16c0bdb00963613ca7b19399f667520, probe ~/git/fleet/probe-provider-display, bun 1.4.4):

Input Result
["_claude", "_antigravity.gemini", "meta"] (array, control) correct map, underscore stripped
generator yielding "_claude", "meta", "_antigravity.gemini" Map { undefined: "claude" } — size 1, get("_claude") and get("meta") both undefined
Map.keys() iterator over _claude/meta same single undefined-keyed entry
providerDisplayName("_claude", generator) returns "_claude" (fallback, unstripped)
["_claude", "claude"] both display "claude"
["_commandcode", "commandcode"] both display "commandcode"
["_antigravity.gemini", "antigravity.gemini"] both display "antigravity.gemini"
["openai", "openai-direct"] (contrast) -direct correctly kept: the existing rule is collision-aware

Control: the shipped suite pm-stack/aggregator/test/provider-display.test.ts passes 11/11 on the same tree (run via git archive origin/main) — it only ever passes arrays, and has no renamed+plain pair case.

All current call sites (render.ts:2167, render.ts:3364, render.ts:3714) pass arrays, so defect 1 is latent today — but the exported signature promises Iterable<string>, and the singular helper providerDisplayName(name, names) invites exactly the iterator inputs that break.

Why it matters

This module is the dashboard's one display-name rule, and its header states the contract: display strings change, ids/keys never do, and names that would collide stay distinguishable. Defect 1 breaks the type contract silently (no throw — wrong markup), and defect 2 makes two different providers/series indistinguishable on the quota board precisely in the migration window the rename created, where old and new ids coexist in the store by design.

Acceptance criteria

  • providerDisplayNames reads its input exactly once: a generator or Map.keys() iterator yields the same map as the equivalent array, keyed by the exact input strings.
  • When stripping the leading underscore would make a name's display equal to another distinct input's display in the same set (renamed + plain base both present, plain or dotted), the renamed name keeps a distinguishable display (mirroring the -direct rule's keep-on-collision behaviour); when there is no collision, the underscore is stripped as today.
  • New regression tests in pm-stack/aggregator/test/provider-display.test.ts cover: a one-shot iterable input, and a renamed+plain pair (_claude + claude and/or _commandcode + commandcode).
  • bun test test/provider-display.test.ts passes (existing 11 tests unchanged in behaviour).

Related: #1823 / PR #6889 (the rename that introduced the strip); #6125 (the original -direct display rule).

Activity

Next
  1. developing-today commented on Nov 7, 2026

    @developing-today
    developing-todayBot
    on Nov 7, 2026 – with developing.today
    Contributor
    More actions

    CODE-2153

  2. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    app/aggregatorPackage/app: aggregator (pm-stack in this repo)
    effort/sSmall: expected under 2 hours of work
    on Nov 7, 2026
  3. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (new-issue-creator-code-b)
    • Session / ID: cron new-issue-creator-code-b run 2026-11-07T14:20Z
    • Found via: filed this run
    • Task: Fix providerDisplayNames so it reads its Iterable input once and keeps renamed+plain providers distinguishable on display collision (evidence and probe in the issue body).
    • Expectation: effort/s — done when one-shot iterables yield the array-equivalent map, collision pairs stay distinguishable, and new regression tests pin both cases.
    • Links: probe ~/git/fleet/probe-provider-display (laptop); queue packet enqueued to repo-health-code-pilot this run
  4. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: repo-worker-code-o (lane code-o)
    • Task: task 11288 (small_fix, issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891 — providerDisplayNames one-shot iterable + underscore collision) — execution-lane assignment is opencode (§1b); handed off to the claimant. Issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891 OPEN, no hard-stop labels (fresh check this shift).
    • Next: claimant session implements the single-read + collision-aware strip with regression tests in pm-stack/aggregator/test/provider-display.test.ts.
  5. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane c8b9355e-319a-4640-8096-7ad19480d151
    • Session / ID: OpenChamber scheduled lane run 2026-11-07; task 11288
    • Found via: queue claim
    • Task: small_fix for providerDisplayNames iterable handling and underscore-display collisions. Revalidating issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891 and live PR/branch ownership before resuming.
    • Expectation: Implement only the packet scope, add regression tests, and open a PR if no canonical owner already exists.
    • Links: task 11288 · issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891
  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 8, 2026
  7. 49 remaining items

  8. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off to opencode claimant

    • Agent: queue worker (repo-worker-code), lane code-p
    • Session / ID: task 11288, repo-queue-worker-shift-p 2026-11-10 run
    • Task: task 11288 (small_fix) for issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891: providerDisplayNames iterable + underscore collision. Attempts 1/4.
    • Fresh check: issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels, no status/needs-triage. Execution lane row 3634 = opencode.
    • Handoff reason (Queue/lane design rules: no by-id blocking by default, optional platform selector, triage separate from fixes #8097 Rule 4): scheduled shift is time-bounded; claimant is the persistent execution session.
    • Expectation: claimant launches the bound opencode session for task 11288; this lane does not work issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891 directly. Checkpointed handed_off, parked 1200s.
  9. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    Lane code-l picked up task 11288 (issue #6891) — handed off to opencode claimant.

    • Fresh check: issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent), no status/needs-triage.
    • Execution lane: opencode, assignment row 3634, session_id null at handoff.
    • Handoff reason: scheduled shift is time-bounded; claimant is the persistent execution session.
    • Next: claimant launches the bound opencode session; task parked 1200s in the meantime.
  10. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off (task 11288, lane code-u)

    • Queue task 11288 (kind small_fix, issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891) assigned to the opencode execution lane by the queue (lane row 3634). Handed off to the laptop opencode claimant — scheduled shift is time-bounded; the claimant is the persistent execution session.
    • Fresh revalidation: issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels, no status/needs-triage.
    • Parked 1200s for the claimant.
  11. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-w
    • Session / ID: task 11288
    • Found via: queue claim
    • Task: task 11288 (small_fix) for issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891 — aggregator provider-display underscore strip bug. Claimed and revalidated fresh (issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels, no status/needs-triage), then handed off to the opencode claimant (lane row 3634). Handoff reason: this scheduled shift is time-bounded and the claimant is the persistent execution session.
    • Expectation: claimant launches the bound opencode session for task 11288; this lane does not work issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891 directly.
    • Links: issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891
  12. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-v (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-v run 2026-11-10 05:09 CST; task 11288
    • Found via: claimed task 11288 this shift; execution-lane assignment returned opencode (row 3634)
    • Task: Revalidated issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891 fresh: OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit), no status/needs-triage. Handed off to the opencode claimant — scheduled shift is time-bounded; the claimant is the persistent execution session. Parking 1200s for the claimant.
    • Expectation: claimant session drives task 11288 to a terminal state.
    • Links: task 11288 · issue aggregator(provider-display): underscore strip breaks one-shot iterables and collapses renamed+plain providers to one display name #6891
  13. dezren39
    added
    priority/lowNice to have; do when convenient
    and removed
    priority/normalOrdinary priority (the default)
    on Nov 11, 2026
  14. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Agent note — task 13338 DONE (lane code-d): PR #7054 merged under Drew's #7297 per-item ruling

    The recorded blocker was the authorship hard stop, overturned 2026-11-11 (dezren39 = fleet identity; held is a label; PR #7054 has no labels at all, let alone hard-stop ones). Fresh verification on head c333f08: small TypeScript fix (+37/-4) in pm-stack/aggregator provider-display with its test file; no Codex threads or findings on the PR. Local run on the head in the existing clean worktree: bun test test/provider-display.test.ts — 14 pass, 0 fail. The scripts-test CI failures are stale Nov 8-9 stall runs in the Python suite, which this TypeScript change cannot affect. Merging per the per-item rule.

  15. dezren39
    closed this as completedin #7054on Nov 11, 2026
  16. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 11, 2026
  17. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 11, 2026
  18. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    state: done
    task: 11288
    lane: code-d
    worker: repo-worker-code
    outcome: already_done

    Verified already fixed: PR #7054 merged (merge commit dcdf212; fix commit c333f08 "fix(aggregator): preserve distinct provider display names"). On current main, pm-stack/aggregator/src/provider-display.ts reads the iterable exactly once (const originals = [...names] at line 39, with the collision-aware handling built on that single read) — both acceptance defects (double-spread of one-shot iterables, underscore-strip collision) are addressed by the merged change. Issue #6891 closed COMPLETED 2026-11-11T08:04:18Z. Task 11288 completes as already_done.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.