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 — pm-stack(aggregator): board render throws on a lined-up task whose title carries an unsafe-integer ref in a non-first link — titleRefs mints refs parseRef rejects, inFlightBoardItems validates only the first · Issue #6210 · developing-today/code

pm-stack(aggregator): board render throws on a lined-up task whose title carries an unsafe-integer ref in a non-first link — titleRefs mints refs parseRef rejects, inFlightBoardItems validates only the first #6210

New issue
Copy link
New issue
Copy link
Closed
#6475
Closed
pm-stack(aggregator): board render throws on a lined-up task whose title carries an unsafe-integer ref in a non-first link — titleRefs mints refs parseRef rejects, inFlightBoardItems validates only the first#6210
#6475
Copy link
Assignees
dezren39
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

pm-stack(aggregator): board page render throws when a lined-up task's title carries an unsafe-integer ref in a non-first link — titleRefs mints refs parseRef rejects, inFlightBoardItems validates only the first

Summary

A lined-up (in-flight) task whose own ref is a valid GitHub ref but whose title mentions a ref with a number above Number.MAX_SAFE_INTEGER (e.g. code #99999999999999999999) breaks the whole board page: renderBoard throws ref number is not a safe integer. Assembly survives because only the first link is ever validated; rendering validates every link and throws on the bad one.

Evidence (verified this run, laptop primary @ 04f7869)

  • pm-stack/aggregator/src/model.ts — parseRef throws ref number is not a safe integer: <key> for non-safe-integer numbers, and the shared rule (pm-stack(aggregator): validateNewComment/validateNewAction accept ref keys parseRef rejects (GH_REF number unbounded) #4952, comment above isValidRef) is that producers must route through isValidRef; refsInText does (model.ts:480 guards every candidate with isValidRef).
  • pm-stack/aggregator/src/sources/live.ts:538 titleRefs() scrapes refs from lined-up titles, but its two own regex paths add candidates unguarded: the explicit-ref matchAll at :545 and the alias-shorthand #(\d+) matchAll at :555. Neither checks isValidRef.
  • pm-stack/aggregator/src/sources/live.ts:634 — inFlightBoardItems calls parseRef(remainingRefs[0]) only to extract the repo of the first remaining ref; every remaining ref is then emitted as a link (links: remainingRefs.map(...)) with no further validation.
  • pm-stack/aggregator/src/render.ts:1506 — the orchestrator in-flight card renders every link with unguarded refUrl(l.ref), which throws via parseRef.

Probe (real sources via bun, ~/git/fleet/probe-board-render-ref/probe.ts, run in pm-stack/aggregator):

isValidRef huge explicit: false
titleRefs explicit huge: [ "developing-today/code#99999999999999999999" ]
titleRefs alias huge:    [ "developing-today/code#99999999999999999999" ]
inFlightBoardItems OK, links: [[{"ref":"developing-today/code#123","relation":"tracks"},{"ref":"developing-today/code#99999999999999999999","relation":"tracks"}]]
renderBoard THREW: Error: ref number is not a safe integer: developing-today/code#99999999999999999999
control renderBoard OK, len 20262

The probe section task has ref: "developing-today/code#123" (valid) and title Fix the thing, follow-up code #99999999999999999999.

Why this is distinct from the sibling filings

  • pm-stack(aggregator): one lined-up task with a non-GitHub ref silently deletes the board's whole in-flight lane — inFlightBoardItems parseRef throws into an unlogged catch #6195: a non-GitHub ref as the task's first/own ref throws at inFlightBoardItems's parseRef (live.ts:634) during assembly and the lane is silently dropped. Here the first ref is valid, assembly succeeds, and the failure lands later in page rendering, taking down the whole board response rather than one lane.
  • pm-stack(aggregator): /today render 500s on a lined-up task with a non-GitHub ref — objectives call refUrl unguarded and the section gate never checks linedUp ref #6174: /today objectives calling refUrl unguarded. Different page, different producer.
  • pm-stack(aggregator): overview front door throws on a lined-up task with a non-GitHub ref — reconciledInProgress reaches refUrl unguarded #6205 (fixed): overview's reconciledInProgress reaching refUrl unguarded. Different derive path.
  • Session records already show the house precedent for render-time defence: sessionRecordLine wraps refUrl in try/catch so one malformed ref omits only its own link.

Why it matters

Lined-up titles are free text republished by the orchestration pass every run; long digit strings (timestamps, snowflake-ish ids, exaggerated issue numbers in prose) are realistic title content. One such title on one lined-up task currently 500s/breaks the cross-repo WIP board for every viewer until the title scrolls off, and the throw gives no hint which task caused it.

Acceptance criteria

  • titleRefs never returns a ref parseRef rejects: both its explicit-ref and alias-shorthand paths filter through isValidRef (the pm-stack(aggregator): validateNewComment/validateNewAction accept ref keys parseRef rejects (GH_REF number unbounded) #4952 shared rule), with tests pinning the unsafe-integer forms.
  • A lined-up task with a valid first ref and an unsafe-integer ref later in its title renders on the board; the invalid ref is omitted (or rendered unlinked), the valid refs stay linked.
  • Board rendering cannot be taken down by any single link ref: either assembly guarantees every emitted link isValidRef, or the render site follows the sessionRecordLine try/catch precedent.
  • Regression tests in the aggregator suite (e.g. test/board-in-flight.test.ts) cover: unsafe refs via the explicit owner/repo#N title form, via the alias #N shorthand form, and in a non-first link position.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

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

    CODE-1811

  3. dezren39
    added
    queue/queuedHas a queued queue task
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (lane B, new-issue-creator-code-b)
    • Session / ID: cron new-issue-creator-code-b run 2026-11-05 05:50 CST
    • Found via: filed this run
    • Task: Filed after verifying on the laptop (probe ~/git/fleet/probe-board-render-ref, real aggregator sources via bun @04f78696ab): titleRefs mints unsafe-integer refs unguarded, inFlightBoardItems validates only the first link, renderBoard throws on the non-first bad link.
    • Expectation: effort s — triage via the enqueued repo-task/v1 packet; fix filters titleRefs through isValidRef and/or guards the render site per the sessionRecordLine precedent.
    • Links: queue packet hidden_files/packet-6210-triage.json (goal workspace)
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    Queue note: the enqueue command was run twice while capturing its task id (the first call's output was truncated before the id field). The returned task is task 10027 with dedupe key repo-health:v1:triage:developing-today/code:issue:6210; if a second task with the same dedupe key exists, the duplicate should be superseded by its claimant — the packet is identical (hidden_files/packet-6210-triage.json).

  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  7. 103 remaining items

  8. dezren39
    removed
    work/assignedQueue worker lifecycle state
    on Nov 6, 2026
  9. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (PR opened)

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane 8ac61616-3815-4e7b-b33d-840a3829154a
    • Session / ID: task 10030
    • Outcome: titleRefs now filters every candidate with isValidRef; PR fix(aggregator): filter invalid title refs #6475 is open and the issue remains open pending merge.
    • Verification: targeted unsafe-ref tests pass (2); git diff --check passes. The board-in-flight suite has four unrelated failures on clean origin/main (stale openchamber alias expectations; 9 pass / 4 fail), reproduced on this branch.
    • CI: PR fix(aggregator): filter invalid title refs #6475 has no active CI checks; only CodeRabbit is reported and it skipped. .github/workflows/pm-aggregator-tests.yml is configured with only workflow_dispatch, despite its comments describing PR path filtering.
    • Expectation: merge PR fix(aggregator): filter invalid title refs #6475 after checks/review; CI trigger coverage gap needs separate follow-up.
    • Links: fix(aggregator): filter invalid title refs #6475
  10. developing-today
    added
    status:in-review
    on Nov 6, 2026
  11. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    Partial verification — staying open (2026-11-07 done-task-only audit, tracking: #7016).

    Queue task(s) [10027, 10030] were marked done, and some work did land:

    • PR fix(pm-aggregator): tolerate invalid in-flight refs #6334 — fix(pm-aggregator): tolerate invalid in-flight refs (merged 2026-11-07T01:52:24Z): fix(pm-aggregator): tolerate invalid in-flight refs #6334

    No merged change closes this issue's full scope, so the done status is not treated as completion. Remainder re-queued as triage task 11764.

  12. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up — triage verdict for task 12493

    • Agent: queue worker (repo-worker-code), lane code-p
    • Session / ID: task 12493
    • Found via: queue claim (execution lane assigned direct; worked by this lane)
    • Task: Triage the remainder of issue pm-stack(aggregator): board render throws on a lined-up task whose title carries an unsafe-integer ref in a non-first link — titleRefs mints refs parseRef rejects, inFlightBoardItems validates only the first #6210 after the 2026-11-07 done-task-only audit (task 10027, task 10030 marked done; PR fix(pm-aggregator): tolerate invalid in-flight refs #6334 merged, PR fix(aggregator): filter invalid title refs #6475 left open).
    • Expectation: effort s; verdict below confirmed against fresh GitHub state and current main (16d4a724f0).

    Triage verdict — remainder is exactly one unmerged PR; every acceptance criterion is already covered

    Fresh checks this shift:

    • Issue pm-stack(aggregator): board render throws on a lined-up task whose title carries an unsafe-integer ref in a non-first link — titleRefs mints refs parseRef rejects, inFlightBoardItems validates only the first #6210 is OPEN, no hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit absent).
    • On current main, titleRefs in pm-stack/aggregator/src/sources/live.ts still adds explicit-ref and alias-shorthand candidates unguarded — the bug is live. The assembly-side guard from merged PR fix(pm-aggregator): tolerate invalid in-flight refs #6334 is present (inFlightBoardItems filters every ref through isValidRef and logs drops), so emitted links are safe, but titleRefs itself still violates the pm-stack(aggregator): validateNewComment/validateNewAction accept ref keys parseRef rejects (GH_REF number unbounded) #4952 shared rule this issue cites.
    • PR fix(aggregator): filter invalid title refs #6475 ("fix(aggregator): filter invalid title refs") is OPEN and unmerged: not a draft, no labels, mergeable clean, 2 files +18/−0, body carries Closes #6210. That is the whole remainder.
    • Codex gate (§5): Codex review on PR fix(aggregator): filter invalid title refs #6475 completed with has_any_findings: false, has_unresolved_findings: false; no inline Codex findings to disposition.
    • Acceptance mapping for PR fix(aggregator): filter invalid title refs #6475 (+ merged PR fix(pm-aggregator): tolerate invalid in-flight refs #6334):
      1. titleRefs never returns a ref parseRef rejects — the PR guards the single add() both scrape paths funnel through with isValidRef. ✓
      2. Valid first ref + unsafe later ref renders, invalid omitted, valid stays linked — PR's render test asserts exactly this. ✓
      3. Board cannot be taken down by a single link ref — satisfied via the assembly-guarantee branch: titleRefs guard (PR) plus inFlightBoardItems' isValidRef filter (PR fix(pm-aggregator): tolerate invalid in-flight refs #6334, on main). ✓
      4. Regression tests for the explicit owner/repo#N form, the alias #N shorthand form, and a non-first link position — PR's titleRefs test pins both forms; its renderBoard test pins the non-first position. ✓
    • PR verification on record: targeted tests pass (2); the board-in-flight file's four other failures are pre-existing on clean main (stale openchamber alias expectations, reproduced by the PR author on origin/main) — unrelated to this change.
    • The CI-trigger gap named in task 10030's note (.github/workflows/pm-aggregator-tests.yml is dispatch-only) is already filed as issue pm-aggregator-tests workflow: auto triggers BLOCKED on runner strategy (dispatch-only by Drew's ruling 2026-11-05) #6126 (blocked on runner strategy by Drew's 2026-11-05 ruling) — no duplicate follow-up is filed here.

    Action: merging PR #6475 under the standing merge criteria (verified diff matching intent, Codex clean, mergeable clean, targeted tests passed). Its Closes #6210 closes this issue on merge; this triage task then completes as triaged with the merge as the landed evidence.

  13. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
  14. dezren39
    closed this as completedin #6475on Nov 8, 2026
  15. developing-today commented on Nov 8, 2026

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

    🤖 Agent note · done (triaged — remainder merged)

    • Agent: queue worker (repo-worker-code), lane code-p
    • Session / ID: task 12493
    • Found via: queue claim (direct lane)
    • Task: Triage remainder of issue pm-stack(aggregator): board render throws on a lined-up task whose title carries an unsafe-integer ref in a non-first link — titleRefs mints refs parseRef rejects, inFlightBoardItems validates only the first #6210 (verdict note: pm-stack(aggregator): board render throws on a lined-up task whose title carries an unsafe-integer ref in a non-first link — titleRefs mints refs parseRef rejects, inFlightBoardItems validates only the first #6210 (comment)).
    • Outcome: PR fix(aggregator): filter invalid title refs #6475 merged — merge commit 99f326a055989ae3fed5ef0e6f73b95682d19f0c at 2026-11-08T05:35:12Z; the isValidRef guard in titleRefs verified present on main after merge; PR fix(aggregator): filter invalid title refs #6475's Closes #6210 closed this issue at 2026-11-08T05:35:14Z. All four acceptance criteria are covered by PR fix(aggregator): filter invalid title refs #6475 + merged PR fix(pm-aggregator): tolerate invalid in-flight refs #6334; the dispatch-only CI workflow gap remains owned by issue pm-aggregator-tests workflow: auto triggers BLOCKED on runner strategy (dispatch-only by Drew's ruling 2026-11-05) #6126.
    • Links: PR fix(aggregator): filter invalid title refs #6475 (merged); PR fix(pm-aggregator): tolerate invalid in-flight refs #6334 (merged); task 12493 completing as triaged, issue_state closed.
  16. developing-today
    removed
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 8, 2026
  17. dezren39
    removed
    status:in-review
    on Nov 8, 2026
  18. developing-today
    added
    status:done
    on Nov 8, 2026
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/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect 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.