GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — aggregator(feed): isFleetFeed never checks saas — one malformed service crashes usage() and /quota, a non-array silently switches the whole usage view to fallback · Issue #2451 · developing-today/code Closed 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/triageQueue packet kind: verify, reproduce, and route this item DescriptionProblem
Evidence (verified this run, main
|
saas |
isFleetFeed |
feed branch taken (live.ts:808) |
buildAttentionFlags (in usage()) |
renderQuota |
|---|---|---|---|---|
| valid entry (control) | true |
yes | OK | OK — card renders |
[null] |
true |
yes | throws TypeError: null is not an object (evaluating 'svc.metrics') |
throws on s.group |
"oops" (non-array string) |
true |
yes (.length 4) |
throws on svc.metrics (iterates chars) |
throws usage.services.filter is not a function |
{...} (non-array object) |
true |
no — .length undefined, usage() silently falls back to direct extraction and the feed section is ignored |
n/a on the live path | n/a on the live path |
entry missing metrics |
true |
yes | throws on svc.metrics |
throws on svc.metrics.filter |
entry missing conflicts (valid group) |
true |
yes | OK | throws TypeError: undefined is not an object (evaluating 'svc.conflicts.length') |
[valid, null] mixed |
true |
yes | throws on svc.metrics |
throws — the valid card never renders |
saas is the hub's core section (§2.3): the service cards are the
page, and this section is also the switch that selects the feed path
for the entire usage view — so a single drifted or hand-edited
collector entry doesn't just drop one card, it takes down /quota,
/quota/service/:id and /api/quota.json (and every other usage()
consumer), or — in the non-array-object case — silently discards the
feed's hub sections in favour of a stale direct read with no signal.
This is the same failure class as #2427 (attention), #2429 (quota
pools), #2439 (chargesAttention), #2445 (charges), #2446
(subscriptions) and #2450 (payg) at the same gate — the fix should
stay consistent with whatever layer those pin. This issue is the
saas field specifically, with its own consumers
(buildAttentionFlags + the service cards) and its branch-switch role.
isFleetFeed can no longer crash usage() or/quota via saas: either the gate validates saas (array ofid/name/plan, array metrics/conflicts,paygEstimate when non-null), or the live sourcesaas value no longer silently switches the whole[null] entry, non-array saas (stringmetrics, entry missing conflicts,[valid, null] mixed — each rendering the valid remainder, nevergh searches (open + closed) for payg, isFleetFeed, saas feed
and isFleetFeed never checks returned no covering issue for the feed
saas gate. #1119 is a contract-test request for the
/api/quota.json saas/payg schema — related, but it does not track
this verified crash at the feed gate. Siblings at the same gate:
#2427 (attention), #2429 (quota pools), #2439 (chargesAttention),
#2445 (charges), #2446 (subscriptions), #2450 (payg — filed this run)
— each a distinct field and consumer.
🤖 Agent note · filed
🤖 Agent note · picked up
🤖 Agent note · picked up
web-push dependency in the fresh worktree, resolved by bun install). bunx tsc --noEmit shows one error in test/overview.test.ts (HealthView conflicts) that is identical on clean origin/main — pre-existing, not from PR fix(aggregator): sanitize malformed SaaS feed rows #4192. Codex review of the previous head reported no findings.🤖 Agent note · picked up (resume)
2a2394c87 (matches checkpoint), MERGEABLE/CLEAN; branch already contains origin/main merge 75d3fe5e8; full aggregator suite on laptop 1418 pass / 0 fail (prior checkpoint); Codex code review completed on 2a2394c87 with no findings; regression tests in test/saas-feed-gate.test.ts cover null rows, non-array saas, and rows missing metrics. The Actions test check never registered on this head (only CodeRabbit) — merging under the standing verified-done merge authority rather than parking again on a stalled check.🤖 Agent note · done
541c35541dabe552db540ba87cfce37b9b778b38). The sanitizer now drops malformed SaaS feed rows (null rows, non-array saas, rows missing metrics/conflicts) at the feed boundary with a drop diagnostic instead of crashing usage()//quota or silently switching the whole view to fallback; regression coverage in pm-stack/aggregator/test/saas-feed-gate.test.ts (7 tests). Verification: full aggregator suite on laptop 1418 pass / 0 fail on head 2a2394c87 after merging origin/main; Codex review completed on that head with no findings; the Actions test check never registered on the head (infra stall — only CodeRabbit ran), merge proceeded under the standing verified-done authority.541c35541