Repository navigation
Description
Problem
isProjectPoolItem (pm-stack/aggregator/src/projects.ts:236-252) — the shared per-item gate for the feed's GitHub Project pool (the collector parses against it, poolFromFeed in feed.ts:266-271 filters with it) — checks the issue/PR number with a bare type test at projects.ts:243:
typeof p.number === "number" &&Every real number comes from the GitHub GraphQL API (projects.ts:37-38, mapped at :135-149), where number is always a positive integer. The gate admits values no producer can emit: fractional, negative, zero, NaN, and Infinity (the last two arrive via hand/corrupt feed JSON as null-adjacent spellings or via a JS producer bug — typeof NaN === "number").
Consumers trust the gate: the pool renders the number verbatim in link text — render.ts:5132, :5402, :5415 interpolate ${esc(p.repo)}#${p.number} — so a poisoned item renders as developing-today/code#NaN, …#1.5, or …#-3, a fabricated cross-reference that matches no real issue (and a ref/number pair that can disagree with each other, since neither is checked against the other).
Verified this run (laptop probe, real code)
Probe: ~/git/fleet/probe-2026-11-01-laneB-subsdate/probe2.ts on the laptop — verbatim copy of pm-stack/aggregator at main 5abd39a (feed.ts sha256 cf7ea03d…, validate.ts sha256 1f72539a…, matched to the sandbox clone). Output (probe2.log), base item valid in every other field:
- control
number: 12→isProjectPoolItem = true(correct) number: 1.5→ truenumber: -3→ truenumber: 0→ truenumber: NaN→ truenumber: Infinity→ true
Why it matters
The pool section is the dashboard's cross-project work view; its items are rendered as repo#number links throughout /projects and the board cards. A gate that admits impossible numbers lets one corrupt feed item fabricate references and pollute derived state keyed off the pool, instead of dropping just that item — the per-item drop is the gate's documented contract (feed.ts:239-248).
Acceptance criteria
isProjectPoolItemrequiresnumberto be a positive integer (Number.isInteger(n) && n > 0):1.5,-3,0,NaN, andInfinityitems fail the gate and drop individually inpoolFromFeed(the section itself survives).- Valid positive-integer items pass unchanged.
- Regression tests cover the five rejected values plus the valid control, following the existing projects/feed gate test pattern.
Dedup
Searched open + closed for isProjectPoolItem / pool number: #2418 (open) covers the same function's unchecked labels field — a different field with a different failure (render crash); this filing is the number field only. #2453 (closed) was the non-array projects crash. No issue covers the number's value domain.
Activity
developing-today commentedon Nov 1, 2026
CODE-1348
dezren39 commentedon Nov 1, 2026
🤖 Agent note · filed
18 remaining items
dezren39 commentedon Nov 2, 2026
agent-note:v1
state: parked
task: 6137
lane: c29174f1-48e0-4b13-b4ff-9b73ab67e9ab (openchamber-scheduled-lane)
note: Parked 20 minutes after the CI poll window expired with PR #4478's basic guard still pending. Resume by checking PR/merge-queue state fresh; local targeted tests are green (74 pass), and the full-suite failures reproduced on clean origin/main were unrelated. Branch queue/6137-3514-project-pool-number @ 639d849.
links: #4478
dezren39 commentedon Nov 2, 2026
Verification clarification for task 6137 / PR #4478: targeted feed/projects tests pass (74/74). The full aggregator suite reported a failure and a missing package import error; the brief-surfaces failure reproduces on clean origin/main, while the package error was not independently checked there. PR #4478 remains parked pending CI.
dezren39 commentedon Nov 2, 2026
Verification correction for task 6137 / PR #4478: targeted feed/projects tests pass (74/74). The full aggregator suite reported a brief-surfaces test failure and an import error for missing package web-push. The brief-surfaces failure reproduces on clean origin/main; the package error was not independently verified there. Both are unrelated to this diff. PR #4478 remains parked pending CI.
dezren39 commentedon Nov 2, 2026
agent-note:v1
state: picked-up
task: 6137
lane: 9aca43b4-5439-4939-9f71-323f5d32521b (openchamber-scheduled-lane, repo-worker-code)
note: Resumed the parked task and revalidated issue OPEN and PR #4478 OPEN on the canonical branch queue/6137-3514-project-pool-number @ 639d849; no held/Drew-owned restriction or competing PR. Checking fresh CI/merge readiness before taking the verified terminal action.
links: #4478
Merge pull request #4478 from developing-today/queue/6137-3514-projec…
dezren39 commentedon Nov 2, 2026
agent-note:v1
state: done
task: 6137
lane: 9aca43b4-5439-4939-9f71-323f5d32521b (openchamber-scheduled-lane, repo-worker-code)
note: Fixed and merged PR #4478 at merge SHA 381fecb. The positive-integer number gate and regression cases are in; focused tests pass 74/74 and the available basic config guard passed. Full bun test reported 1171 pass, 2 fail, 1 import error; the brief-surfaces failure and local missing-web-push import failure were reproduced on clean origin/main. Coverage gap: PR did not run proxy-fallback or aggregator-test checks because nix-ci.yml and pm-aggregator-tests.yml are push-to-main only; focused tests were run locally.
links: #4478