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): overview front door throws on a lined-up task with a non-GitHub ref — reconciledInProgress reaches refUrl unguarded · Issue #6205 · developing-today/code

pm-stack(aggregator): overview front door throws on a lined-up task with a non-GitHub ref — reconciledInProgress reaches refUrl unguarded #6205

New issue
Copy link
New issue
Copy link
Closed
#6207
Closed
pm-stack(aggregator): overview front door throws on a lined-up task with a non-GitHub ref — reconciledInProgress reaches refUrl unguarded#6205
#6207
Copy link
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 jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Problem

The aggregator's overview — the front door at /, served via /frag/overview and /api/overview.json — throws (500 / dead fragment) whenever the orchestration section contains a goal with an in-progress lined-up task whose ref is not a GitHub owner/repo#N ref, or whose title mentions owner/repo#<number> with a number too large to be a safe integer.

Lined-up tasks legitimately carry non-GitHub refs in the real feed (goal ids, bare numbers — the same data reality behind #6174 and #6195), and the feed gate does not check the field: isLinedUpElement (pm-stack/aggregator/src/feed.ts:223-232) validates title/horizon/status/horizonWhy only. LinedUpTask.ref is typed RefKey (pm-stack/aggregator/src/model.ts:640-642) but nothing enforces that promise at the boundary.

Evidence (verified this run, laptop primary @ 36b346f399)

reconciledInProgress (pm-stack/aggregator/src/render.ts:3552, called by deriveOverview at render.ts:3703) walks orchestration.goals[].linedUp:

  • render.ts:3592-3593 — if (task.ref) { signal(task.ref, "active-session", task.title); continue; } — no validity check.
  • signal → ensure (render.ts:3574) falls back to url: project?.issueUrl ?? item?.url ?? url ?? refUrl(ref) whenever the ref is absent from the pool and the items map (always true for a non-GitHub ref). refUrl → parseRef (model.ts:454-460) throws on anything that is not owner/repo#<safe integer>.
  • Second vector, same function: the no-ref title path first routes through refsInText (render.ts:3596), which correctly filters with isValidRef (model.ts:467-484, the shared pm-stack(aggregator): validateNewComment/validateNewAction accept ref keys parseRef rejects (GH_REF number unbounded) #4952 rule) — then the very next loop (render.ts:3597-3599) re-scrapes the title with a raw matchAll(/([\w.-]+\/[\w.-]+)#(\d+)/g) and signals every match without the safe-integer check, re-admitting exactly what refsInText refused.

Call sites have no guard around the throw: server.ts:1329 (/frag/overview), server.ts:1781 (/api/overview.json), and renderOverview (render.ts:3771, the /?full=1 no-JS path).

Probe (bun, real deriveOverview imported from the tree, ~/git/fleet/probe-overview-ref/probe.ts):

case result
no orchestration section OK, inProgress=[]
lined-up in-progress, ref developing-today/code#42 OK, row url https://github.com/developing-today/code/issues/42
lined-up in-progress, ref goal_a243772844c3 THREW not a repo-qualified ref: goal_a243772844c3
lined-up in-progress, ref 812 THREW not a repo-qualified ref: 812
lined-up in-progress, no ref, title Work on developing-today/code#99999999999999999999 next THREW ref number is not a safe integer: developing-today/code#99999999999999999999
lined-up in-progress, no ref, title Work on developing-today/code#42 next OK
lined-up queued (not in-progress), ref goal_a243772844c3 OK (status gate at render.ts:3591 skips it)

Why it matters

The overview is the aggregator's front door — the first page every viewer (and the dashboard's own refresh fragment) loads. One in-progress lined-up task with a goal-id or numeric ref takes the whole overview down for everyone until the orchestrator's next run happens to change the lined-up set; it does not degrade to a missing row. This is a different surface and failure mode from its siblings: #6174 (/today objectives, render.ts:3368), #6195 (board in-flight lane swallowed by a catch, sources/live.ts:634), #4316 (lined-up blockedBy gate → todayFromSection). Same root family: consumers reaching parseRef/refUrl without routing through the shared isValidRef rule (#4952).

Acceptance criteria

  • deriveOverview never throws for a feed-valid orchestration section: a lined-up in-progress task with a non-GitHub ref (goal_…, bare number, any other string) produces no in-progress row for that ref (or a row with no GitHub URL), and the rest of the overview renders normally.
  • The title-scrape path applies the same validity rule as refsInText (isValidRef, including the safe-integer check) — e.g. by dropping the duplicate raw matchAll loop or guarding its matches — so owner/repo#<unsafe integer> in a title cannot throw either.
  • Valid refs behave exactly as today: a lined-up in-progress task referencing a real owner/repo#N (in pool/items or not) still yields an in-progress row with the correct GitHub URL, from both the ref field and a title mention.
  • Pinning tests in pm-stack/aggregator/test/overview.test.ts (or a sibling suite) cover: goal-id ref, numeric ref, unsafe-integer title mention, and the valid-ref controls; the aggregator test suite passes.
  • Related but out of scope: the feed-gate question (should isLinedUpElement validate ref when present?) is 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's layer — do not change gate semantics here beyond what the overview fix needs. Cross-ref pm-stack(aggregator): /board, /api/board.json, /api/overview.json + /frag/overview die with empty replies at ~12s; /program HTML regrown to 1.16MB #5082 (same endpoints, different failure mode: ~12s empty replies) in the fix PR if it touches these handlers.

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-1809

  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 (lane B, new-issue-creator-code-b)
    • Session / ID: cron new-issue-creator-code-b, run 2026-11-05T11:20Z
    • Found via: filed this run
    • Task: Filed after verification on the laptop primary @36b346f399 — probe ~/git/fleet/probe-overview-ref (bun, real deriveOverview): lined-up in-progress tasks with ref goal_a243772844c3 / 812 and a title-carried unsafe-integer ref all throw out of reconciledInProgress; valid-ref and queued controls pass. Sibling surfaces are 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) and 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 (board lane); this is the overview front door.
    • Expectation: effort s — guard the refUrl fallback / title scrape in reconciledInProgress with the shared isValidRef rule (pm-stack(aggregator): validateNewComment/validateNewAction accept ref keys parseRef rejects (GH_REF number unbounded) #4952) and pin with overview tests; see the issue's acceptance criteria.
    • Links: issue pm-stack(aggregator): overview front door throws on a lined-up task with a non-GitHub ref — reconciledInProgress reaches refUrl unguarded #6205; probe ~/git/fleet/probe-overview-ref/probe.ts (laptop)
  5. 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
  6. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · claimed

    • Agent: queue worker (repo-worker-code), lane code-f
    • Session / ID: task 10016
    • Found via: queue claim · repo-health-code-pilot
    • Task: task 10016 (triage, issue pm-stack(aggregator): overview front door throws on a lined-up task with a non-GitHub ref — reconciledInProgress reaches refUrl unguarded #6205 — reconciledInProgress unguarded refUrl)
    • Next: re-verify the flagged anchors against current main, then route the scoped fix packet (or implement-route per packet acceptance) and record the verdict here.
  7. 2 remaining items

  8. dezren39
    added
    queue/queuedHas a queued queue task
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
  9. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-y
    • Session / ID: task 10020
    • Found via: queue claim
    • Task: implementing the scoped fix for issue pm-stack(aggregator): overview front door throws on a lined-up task with a non-GitHub ref — reconciledInProgress reaches refUrl unguarded #6205 — guard reconciledInProgress in pm-stack/aggregator/src/render.ts with the shared isValidRef rule on both the task.ref path and the raw title matchAll path, plus pinning tests in pm-stack/aggregator/test/overview.test.ts (goal-id ref, bare numeric ref, unsafe-integer title mention, valid-ref controls).
    • Expectation: effort s/m; done = branch + PR for issue pm-stack(aggregator): overview front door throws on a lined-up task with a non-GitHub ref — reconciledInProgress reaches refUrl unguarded #6205 with the aggregator bun suite passing on the laptop.
    • Links: task 10020 (repo-health-code-pilot queue)
  10. developing-today
    added
    status:in-review
    on Nov 5, 2026
  11. dezren39
    added
    queue/needs-reviewQueue task finished and is awaiting review
    status/needs-reviewReady for review
    on Nov 5, 2026
  12. dezren39
    added a commit that references this issue on Nov 5, 2026

    Merge pull request #6207 from developing-today/queue/10020-6205-guard…

    38d8d1e
  13. dezren39
    closed this as completedin #6207on Nov 5, 2026
  14. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 5, 2026
  15. dezren39
    removed
    status/needs-reviewReady for review
    queue/queuedHas a queued queue task
    queue/needs-reviewQueue task finished and is awaiting review
    on Nov 5, 2026
  16. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-y
    • Session / ID: task 10020
    • Found via: queue claim
    • Task: fixed issue pm-stack(aggregator): overview front door throws on a lined-up task with a non-GitHub ref — reconciledInProgress reaches refUrl unguarded #6205 — reconciledInProgress can no longer throw on a non-GitHub lined-up ref. PR pm-stack(aggregator): guard reconciledInProgress against non-GitHub lined-up refs (#6205) #6207 merged (merge commit 38d8d1e); this issue closed via Fixes #6205.
    • Expectation: done — the task.ref path and the raw title matchAll path both apply the shared isValidRef rule; valid refs via either path still produce in-progress rows with correct GitHub URLs. Tests: overview.test.ts 19/19 on the laptop (6 new pinning tests); the full aggregator suite shows no new failures vs clean main fc2e707b (its named failures are pre-existing in the 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/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 areas). Codex review: completed, no findings.
    • Links: PR pm-stack(aggregator): guard reconciledInProgress against non-GitHub lined-up refs (#6205) #6207 · branch queue/10020-6205-guard-reconciled-refs · task 10020 (repo-health-code-pilot queue)
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/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 jobstatus:donetask/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

      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.