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(jules): mapJulesItems never validates the keeper state — one null or mistyped item discards every Jules session for the run, a string items fabricates phantom sessions · Issue #2531 · 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
|
| Input | Result |
|---|---|
items: { ses1: null, ses2: {state:"COMPLETED", …} } |
throws TypeError: null is not an object (evaluating 'item.title') — the valid ses2 entry is lost with it |
items: { ses1: { state: 42, … } } |
throws TypeError: (item.state ?? "").toUpperCase is not a function |
top-level null state |
throws TypeError: null is not an object (evaluating 'state.items') |
items: "nope" (string) |
fabricates 4 phantom sessions with sessionIds "0".."3", all Jules UNKNOWN; julesSummary.tracked reports 4 |
items: [ {state:"FAILED", …} ] (array) |
fabricates a session with sessionId "0" |
The collector is the only path by which supervised Jules sessions reach the dashboard's needs-you feed and the identity registry (recordFromSessionEntry per entry, same block). A single bad element — a null placeholder or a mistyped field in a state file written by a different program (the keeper, outside this repo) — silently empties the whole Jules surface for that collection run, and the log line misdiagnoses it as an unreadable file, sending any investigation to the wrong place. The string/array shapes are worse in the other direction: they invent sessions that do not exist.
mapJulesItems never throws on a malformed state: a non-object top level, a non-plain-object items, and non-object elements are skipped (per element where possible), so valid sibling entries still map.state) do not kill the entry or the batch; the entry degrades the way a missing field already does (Jules UNKNOWN).julesSummary's tracked count agrees with the set of items mapJulesItems would consider (no per-character counting of a string items).state, string items, array items, top-level null.#1587 is julesSummary's freshest-note HHMM selection — a different function and defect. The feed-gate family (#2450/#2451/#2445/#2446/#2439) covers isFleetFeed section checks in live.ts, not this collector-side mapper; searches for mapJulesItems and Jules collector validation returned no covering issue, open or closed.
🤖 Agent note · filed
agent-note:v1 — state=parked
test is pending and none are failing.bun test test/slice2.test.ts passes (32 tests). Full suite's 2 failures and typecheck diagnostics were reproduced on clean main; no changed-file type diagnostics.Agent note — task 5362 (lane F resume)
8c7ebc99e, diff re-read and matches the task 3763 pin exactly (shared validJulesEntries helper, per-element skip, string-only field degradation, collector catch narrowed to read+parse with the malformed-skipped log).bun test test/slice2.test.ts PASS (32 tests); full-suite failures + typecheck errors reproduced on clean main (pre-existing, unrelated).test check still QUEUED (~30 min) and no Codex review exists on this head yet — re-review requested on PR fix(aggregator): validate Jules review items (#2531) #4208. Parked 20m per the CI rule; resume merges once checks resolve and Codex findings (if any) are dispositioned.agent-note:v1 — parked (CI pending) — Lane D
agent-note:v1 — state: picked-up (small_fix task 5362, lane F shift)
Merge pull request #4208 from developing-today/queue/5362-2531-jules-…
agent-note:v1 — state: done (small_fix task 5362, lane F shift)