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(feed): isFleetFeed never checks subscriptions — one null row crashes /quota · Issue #2446 · developing-today/code

aggregator(feed): isFleetFeed never checks subscriptions — one null row crashes /quota #2446

New issue
Copy link
New issue
Copy link
Closed
#3432
Closed
aggregator(feed): isFleetFeed never checks subscriptions — one null row crashes /quota#2446
#3432
Copy link
Assignees
dezren39
Labels
app/aggregatorPackage/app: aggregator (pm-stack in this repo)effort/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 jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Problem

isFleetFeed (pm-stack/aggregator/src/feed.ts:207-219) never validates
the optional subscriptions section at all — it checks only version,
generatedAt, quota.pools being an array, and attention being an
array. But the live source serves feed.subscriptions verbatim as the
usage view's flat-subscription rows, and the /quota renderer
dereferences every row unguarded, so one malformed row in a feed that
passes the gate crashes the whole Usage & billing page.

Evidence (verified this run, main 5a34fa70)

  • feed.ts:53-54: FleetFeed.subscriptions?: { name: string; plan: string; renewsAt: string | null }[] (same shape at model.ts:1280).
  • feed.ts:207-219: isFleetFeed contains no subscriptions check of
    any kind — not array-ness, not entry shape.
  • sources/live.ts:808-815: in usage()'s feed branch (taken whenever
    feed.saas is non-empty), the section is passed through verbatim:
    subscriptions: feed.subscriptions ?? [] — no filter or per-entry
    guard, unlike the registry / projects / snapshots consumers in the
    same file, which validate or filter first.
  • render.ts:1816-1826: the subscriptions strip maps rows with
    esc(s.name) / esc(s.plan) / s.renewsAt — a null row throws on
    s.name; a non-array string subscriptions throws on .map.
  • server.ts:486-487: /quota awaits source.usage() and calls
    renderQuota(...) with no catch, so the throw becomes a 500 for the
    entire usage hub page — not just a missing subscriptions strip.
    /api/quota.json (server.ts:656-665) does not crash, but serializes
    the malformed rows verbatim to API consumers.

Laptop Bun probe (~/git/fleet/probe-2026-10-29-laneA-feedcharges/, real
feed.ts + render.ts from main 5a34fa70, md5-identical, Bun 1.4.2;
usage view assembled exactly as live.ts:811-815 assembles it):

subscriptions isFleetFeed renderQuota (the real /quota render)
valid entry (control) true OK — row renders
[null] true throws TypeError: null is not an object (evaluating 's.name')
entry missing name true OK — renders with an empty name (no crash, silently degraded)
"oops" (non-array string) true throws TypeError: usage.subscriptions.map is not a function
[valid, null] mixed true throws — the valid row never renders

Why it matters

subscriptions is the hub's flat/renewal-only strip (Q5): the collector
emits these rows from the subscription records, so a single drifted or
hand-edited feed row takes down /quota entirely instead of dropping
one row, and the JSON twin silently serves the garbage onward. This is
the same failure class as #2427 (attention entries), #2429 (quota
pools), #2439 (chargesAttention) and #2445 (charges) at the same gate —
the fix should stay consistent with whatever layer those pin. This
issue is the subscriptions field specifically, with its own consumer
in renderQuota.

Acceptance criteria

  • A feed passing isFleetFeed can no longer crash /quota: either the
    gate validates subscriptions (array of entries with string
    name/plan and renewsAt string-or-null), or the live source
    filters/defaults malformed entries before the view is built — the
    layer pinned consistently with the aggregator(feed): isFleetFeed never checks attention entries — one null entry crashes /attention + /today, entries without a string sessionId silently collapse into one #2427/aggregator(feed): isFleetFeed checks only that quota.pools is an array — burn/choices, pool entries and windows unvalidated, one malformed pool crashes /quota #2429/aggregator(feed): isFleetFeed never checks chargesAttention — one malformed entry crashes usage() and takes down /quota + the quota JSON twins #2439/aggregator(feed): isFleetFeed never checks charges — one malformed row crashes /quota, a non-array object silently empties the charges strip #2445 rulings.
  • Malformed entries are dropped individually; well-formed entries in
    the same array still render.
  • Regression tests cover: [null] entry, non-array subscriptions,
    [valid, null] mixed — each rendering the valid remainder, never
    throwing; a well-formed feed unchanged, and the collector still
    accepts its own emitted feed.

Dedup

gh searches (open + closed) for subscriptions isFleetFeed and feed subscriptions validator returned no covering issue. Siblings at the
same gate: #2427 (attention), #2429 (quota pools), #2439
(chargesAttention), #2445 (charges — filed this run, distinct field and
consumer).

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

  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 (lane A, new-issue-creator-code-a)
    • Session / ID: new-issue-creator-code-a run 2026-10-29T22:16Z
    • Found via: filed this run
    • Task: Triage the unvalidated subscriptions section at the isFleetFeed gate — pin the validation layer (gate vs live-source filter, consistent with aggregator(feed): isFleetFeed never checks attention entries — one null entry crashes /attention + /today, entries without a string sessionId silently collapse into one #2427/aggregator(feed): isFleetFeed checks only that quota.pools is an array — burn/choices, pool entries and windows unvalidated, one malformed pool crashes /quota #2429/aggregator(feed): isFleetFeed never checks chargesAttention — one malformed entry crashes usage() and takes down /quota + the quota JSON twins #2439/aggregator(feed): isFleetFeed never checks charges — one malformed row crashes /quota, a non-array object silently empties the charges strip #2445), then route a small_fix packet.
    • Expectation: effort/xs triage; done = layer pinned and fix packet routed with the named regression tests.
    • Links: probe ~/git/fleet/probe-2026-10-29-laneA-feedcharges/ (laptop, real feed.ts + render.ts from main 5a34fa7, md5-identical)
  4. github-actions
    assigned
    dezren39
    on Oct 30, 2026
  5. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: repo-worker-code (lane A)
    • Session / ID: queue task 5326
    • Result: fixed_merged — PR aggregator(feed): loadFeed sanitizes feed subscriptions — drop invalid rows, count drops (#2446) #3432 merged (merge commit 2841b8d); aggregator(feed): isFleetFeed never checks subscriptions — one null row crashes /quota #2446 closed by the merge.
    • Verification: laptop Bun tests — feed.test.ts 23/23 (incl. the six new aggregator(feed): isFleetFeed never checks subscriptions — one null row crashes /quota #2446 cases), quota/quota-contract/usage suites 68/68; Codex review on head 9000a65 completed with no findings.
    • Links: aggregator(feed): loadFeed sanitizes feed subscriptions — drop invalid rows, count drops (#2446) #3432
  6. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 1, 2026
  7. 7 remaining items

  8. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (triage)

    • Agent: repo-worker-code (Lane D scheduled shift)
    • Session / ID: task 3661
    • Found via: atomic queue claim
    • Task: Triage complete. Pinned: the loadFeed sanitizer owns subscriptions — non-array dropped whole, invalid rows dropped with a count attached alongside quotaDropped (the aggregator(feed): isFleetFeed checks only that quota.pools is an array — burn/choices, pool entries and windows unvalidated, one malformed pool crashes /quota #2429 pattern in the same file); isFleetFeed unchanged because the section is optional and whole-feed rejection would be disproportionate.
    • Expectation: Follow-up small_fix enqueued as queue task 5326 (dedupe repo-health:v1:fix:developing-today/code:issue:2446).
    • Links: findings aggregator(feed): isFleetFeed never checks subscriptions — one null row crashes /quota #2446 (comment)
  9. dezren39
    added
    queue/queuedHas a queued queue task
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    queue/queuedHas a queued queue task
    on Nov 1, 2026
  10. developing-today
    added
    status:in-review
    on Nov 1, 2026
  11. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: repo-worker-code (lane A)
    • Session / ID: queue task 5326
    • Found via: queue claim (small_fix packet, queue repo-health-code-pilot); shape pinned by triage task 3661
    • Work: implemented sanitizeSubscriptions in loadFeed (feed.ts) per the pinned rule — rows kept only with string name/plan and string-or-null renewsAt; non-array section dropped whole; drops counted as subscriptionsDropped alongside quotaDropped. PR opened; laptop tests: feed.test.ts 23/23, quota/quota-contract/usage 68/68.
    • Links: PR aggregator(feed): loadFeed sanitizes feed subscriptions — drop invalid rows, count drops (#2446) #3432 (head 9000a65)
  12. dezren39
    added a commit that references this issue on Nov 1, 2026

    Merge pull request #3432 from developing-today/queue/5326-2446-feed-s…

    2841b8d
  13. dezren39
    closed this as completedin #3432on Nov 1, 2026
  14. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 1, 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/aggregatorPackage/app: aggregator (pm-stack in this repo)effort/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 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.