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(projects): isProjectPoolItem never checks labels — a string or non-string-element labels entry passes the feed gate and crashes executionStrip on every board/item render · Issue #2418 · developing-today/code

aggregator(projects): isProjectPoolItem never checks labels — a string or non-string-element labels entry passes the feed gate and crashes executionStrip on every board/item render #2418

New issue
Copy link
New issue
Copy link
Closed
#4181
Closed
aggregator(projects): isProjectPoolItem never checks labels — a string or non-string-element labels entry passes the feed gate and crashes executionStrip on every board/item render#2418
#4181
Copy link
Assignees
dezren39
Labels
app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Oct 29, 2026
Issue body actions

Problem

The fleet feed's Project-pool gate never checks labels (or several other fields its consumers treat as typed), so one malformed pool entry passes validation, is converted verbatim into a GhItem, and crashes the board/item renders that call .some/.toLowerCase on its labels.

  • ProjectPoolItem (pm-stack/aggregator/src/model.ts:55-82) declares labels?: string[], required url/projectUrl/contentKind, and status/area/horizon/kind as string | null.
  • isProjectPoolItem (pm-stack/aggregator/src/projects.ts:182-195) — the only filter applied to the feed's projects array, at src/sources/live.ts:703 (items()) and :742 (projects()) — checks only id, ref, repo, number, issueUrl, title, and state. It never checks labels, url, projectUrl, contentKind, status/area/horizon/kind, author, or updatedAt.
  • poolItemToGhItem (projects.ts:197-215) passes the unchecked values through verbatim: labels: p.labels ?? [] (:205) only replaces null/undefined, so a string, number, or non-string-element array survives as a GhItem.labels that is not a string[].
  • Consumers dereference labels as a string array: executionStrip does item.labels.some((l) => IMPLEMENTING_LABELS.has(l.toLowerCase())) (src/derive.ts:48) and derive.ts:776 does i.labels.some((l) => /blocked/i.test(l)); executionStrip is called on the board and item-render paths (src/render.ts:1334 stripHtml, :1568 renderItem, which also does i.labels.join(", ") at :1573).

Evidence (verified this run on main 5a34fa70)

Laptop Bun probe at ~/git/fleet/probe-2026-10-29-laneB-poolgate/ importing the real src/projects.ts, src/program.ts, and src/derive.ts (projects.ts md5 55c76253fa2fced0858e115f97cc8155, identical to main):

  • Control: a well-formed pool item passes isProjectPoolItem and executionStrip returns it as queued (1).
  • labels: "blocked" (string) → isProjectPoolItem returns true; poolItemToGhItem keeps the string; real executionStrip throws TypeError: item.labels.some is not a function.
  • labels: [42] → gate returns true; real executionStrip throws TypeError: l.toLowerCase is not a function.
  • An entry with url, projectUrl, and contentKind deleted entirely → gate still returns true; poolItemToGhItem(...).kind is undefined (broken badge/link rendering, silently).
  • updatedAt: 12345 (number) → gate returns true and the resulting GhItem.updatedAt is a number, despite the string contract every date consumer assumes.

Why it matters

The pool is carried in the fleet feed — a file written by a separate collector on another host — and isProjectPoolItem is the single line of defence between that file and the dashboard's item resolution (items() feeds the board, roadmap, program, and item pages). The collector's own parser (projects.ts:130) carefully filters labels to strings, which shows the intended contract; the feed-side gate is the one that must enforce it when the feed is older, hand-edited, partially written, or produced by a different version. Today one bad entry does not degrade that entry — it throws inside shared render helpers and takes down every view that resolves that ref.

Acceptance criteria

  • isProjectPoolItem rejects an entry whose labels is present but not an array of strings (string/number/object labels, or an array containing non-string elements), and rejects entries missing the required string fields it currently skips (url, projectUrl, contentKind checked against its GhKind values).
  • status/area/horizon/kind are checked as string-or-null and updatedAt/author, when present, as strings — or the triage explicitly pins a narrower set with the consumer that is safe for each unchecked field.
  • A rejected entry is dropped by the live source's existing filter (other pool entries still resolve and render); it never reaches poolItemToGhItem/executionStrip.
  • Regression tests (aggregator projects/live coverage) pin: labels:"blocked", labels:[42], and missing-url entries fail the gate; a well-formed entry (including one with labels absent) still passes unchanged.

Dedup

  • Searched open+closed issues for isProjectPoolItem and ProjectPoolItem: no hits. aggregator(orchestration): section gate never checks tier/goal array elements — a [null] tier item or goal task passes validation and crashes buildAttention/todayFromSection #2417 (OPEN) is the orchestration section gate's tier/goal elements — different file, different section; the derived-state helper in projects.ts only reads a pool item's ref/status there.
  • aggregator(registry): non-string lastSeenAt passes isSessionRecord and crashes mergeRecords sort — /sessions and /api/registry.json fail once the registry grows #2376/aggregator(registry): non-array taskRefs passes isSessionRecord and crashes mergeRecords' spread — a string one silently splits into single-character refs #2408 (registry record gate) and aggregator(comments+actions): a store record that passes the load filter but lacks a string createdAt crashes every comments/actions read — and persist() re-writes it forever #2347 (comments/actions load filter) are the same pattern in different modules with different fields and consumers.

Activity

Next
  1. developing-today commented on Oct 29, 2026

    @developing-today
    developing-todayBot
    on Oct 29, 2026 – with developing.today
    Contributor
    More actions

    CODE-1236

  2. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    app/aggregatorPackage/app: aggregator (pm-stack in this repo)
    effort/xsTrivial: expected under 30 minutes of work
    on Oct 29, 2026
  3. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 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-10-29T20:20:00Z (15:20 CDT)
    • Found via: filed this run
    • Task: Triage the isProjectPoolItem gate gap: pin which unchecked ProjectPoolItem fields must be validated (labels as string[] first) and route a small_fix packet.
    • Expectation: effort/xs triage — done looks like the gate rejecting malformed labels/required-field entries with regression tests, well-formed pool entries unchanged.
    • Links: queue packet packet-2418-triage.json (repo-health-code-pilot)
  4. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 1, 2026
  6. 21 remaining items

  7. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    on Nov 2, 2026
  8. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1 — picked up
    Agent: repo-worker-code (OpenChamber scheduled lane)
    Task: repo-health-code-pilot task 5327 (small_fix)
    At: 2026-11-02T05:43:37Z
    State: Reclaimed from the awaiting_ci checkpoint with origin=openchamber-scheduled-lane. Fresh metadata confirms #2418 OPEN and task-bound PR #4181 OPEN at 6995c97. The required test is QUEUED; Codex review is COMMENTED. No PR/worktree changes.
    Next: park 20 minutes; resume by checking current CI/review state fresh.

  9. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1 — parked
    Agent: repo-worker-code (OpenChamber scheduled lane)
    Task: repo-health-code-pilot task 5327 (small_fix)
    At: 2026-11-02T05:44:02Z
    Reason: Required test on PR #4181 remains QUEUED. Parked 20 minutes; per protocol, ending this launch rather than waiting on CI. No PR/worktree changes.
    Resume: re-read PR/check/review state fresh; merge only when required checks and targeted verification are complete. Labels: queue/parked, status/parked, work/assigned.

  10. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 2, 2026
  11. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), Lane E shift
    • Session / ID: task 5327 (resumed claim)
    • Found via: queue claim
    • Task: Resuming task 5327 for issue aggregator(projects): isProjectPoolItem never checks labels — a string or non-string-element labels entry passes the feed gate and crashes executionStrip on every board/item render #2418 — canonical PR fix(aggregator): validate ProjectPoolItem feed entries structurally (#2418) #4181 implements the ProjectPoolItem structural validation, but its Codex review left one unresolved P2 finding (comment 4439074460): the GraphQL ProjectV2Item databaseId is nullable, and a null now fails the new guard and drops a valid item. Fixing by normalizing null to undefined in parseProjectItems, with a regression test, then re-checking Codex and merging.
    • Expectation: effort/xs — done = Codex finding dispositioned/fixed, tests pass, PR fix(aggregator): validate ProjectPoolItem feed entries structurally (#2418) #4181 merged, issue aggregator(projects): isProjectPoolItem never checks labels — a string or non-string-element labels entry passes the feed gate and crashes executionStrip on every board/item render #2418 closed.
    • Links: PR fix(aggregator): validate ProjectPoolItem feed entries structurally (#2418) #4181 fix(aggregator): validate ProjectPoolItem feed entries structurally (#2418) #4181 · branch queue/5327-2418-project-pool-item-validation
  12. dezren39
    added 2 commits that reference this issue on Nov 2, 2026

    fix(aggregator): normalize nullable GraphQL databaseId in parseProjec…

    b383712

    Merge pull request #4181 from developing-today/queue/5327-2418-projec…

    6be48a6
  13. dezren39
    closed this as completedin #4181on Nov 2, 2026
  14. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 2, 2026
  15. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), Lane E shift
    • Session / ID: task 5327
    • Found via: queue claim (resume of the prior attempt's work)
    • Task: Done — canonical PR fix(aggregator): validate ProjectPoolItem feed entries structurally (#2418) #4181 merged (merge 6be48a6). The structural ProjectPoolItem validation landed, and the one unresolved Codex P2 was fixed in b383712: parseProjectItems normalizes the nullable GraphQL databaseId to absent, with a regression test; Codex re-review at b383712 completed with no findings and the thread is resolved.
    • Expectation: met — issue aggregator(projects): isProjectPoolItem never checks labels — a string or non-string-element labels entry passes the feed gate and crashes executionStrip on every board/item render #2418 closed by the merge.
    • Links: PR fix(aggregator): validate ProjectPoolItem feed entries structurally (#2418) #4181 fix(aggregator): validate ProjectPoolItem feed entries structurally (#2418) #4181 · verification: bun test test/feed.test.ts test/projects.test.ts test/render.test.ts 74/74 pass on the laptop; bun run typecheck could not run in the fleet worktrees (bun type definitions not installed there — fails identically on an untouched worktree), so CI is the typecheck gate; the PR's CI test check was QUEUED (Actions backlog) at merge, merged on local verification under the standing merge authority.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/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.