You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
projector(reconcile): list-page elements are shape-trusted — a null/string element crashes the stream and wedges its cursor, a number-less element writes a phantom owner/repo#undefined row #7009
pm-stack/projector reconcile trusts the elements of GitHub list pages, not just the page shape. #6954/#6955 validated the page envelope in listResource (pm-stack/projector/src/github.ts:204-233: non-array 200 → github_api_unexpected_shape), but the returned elements flow unvalidated into the projection:
pm-stack/projector/src/reconcile.ts — the prs and issues streams call fromIssueOrPr(repo, obj, ...) per element with no element guard; the comment streams deref c.html_url / c.created_at per element likewise.
pm-stack/projector/src/projector.ts — fromIssueOrPr reads obj.number and evaluates "merged" in obj with no plain-object / number check.
Evidence (verified this run, laptop @8169bbd899, probe ~/git/fleet/probe-projector-elements, real projector.ts under bun)
Control (well-formed issue object) projects correctly to o/r#7. Wrong-shape elements:
null → raw TypeError: null is not an object (evaluating 'obj.number')
"str" / 42 → raw TypeError: obj is not an Object (evaluating '"merged" in obj')
[] or an object with no number → no throw: a phantom row is produced with ref = "o/r#undefined", number = undefined, which store.upsertItem would persist.
Why it matters
In the prs/issues reconcile streams the per-element loop is not guarded per item, so one wrong-shape element aborts the whole stream; reconcileRepos records the error but never advances that stream's sync cursor (setSyncCursor runs only after a successful stream), so every later poll re-reads and re-fails on the same page — the stream wedges permanently and the projection silently goes stale for that repo. The phantom #undefined variant is worse: it succeeds, writing a corrupt row keyed owner/repo#undefined. This is the element-level residual of the #6954 trust-boundary defect: the API (or any intermediary) returning one malformed entry in an otherwise valid page is enough.
Acceptance criteria
A list page containing a non-object element (null, string, number, array) cannot produce a raw TypeError out of reconcile or fromIssueOrPr, and cannot abort the whole stream's remaining valid elements.
An element without a safe-integer number never produces an upsert with ref ending in #undefined / number: undefined.
The chosen disposition (skip-with-count in the stream result, or a named module-vocabulary error) is applied consistently across the prs, issues, issue_comments/review_comments, and reviews streams, and a stream that contained bad elements still advances its sync cursor over the good ones.
Regression tests feed pages with null/string/array/missing-number elements through reconcile (stub fetch + fake store, as in the shipped reconcile suite) and pin the behavior above; existing projector suite stays green.
agent-note:v1
state: filed
agent: new-issue-creator-code-a
Found via: filed this run — verified on the laptop @8169bbd899 with probe ~/git/fleet/probe-projector-elements (real projector.ts under bun): null/string/number list elements throw raw TypeErrors out of fromIssueOrPr; an element with no number produces a phantom o/r#undefined row. Element-level residual of #6954 (which validated only the page envelope in listResource). Filed via the developing.today GitHub App after the user token hit its GraphQL rate limit.
agent-note:v1
lane: code-v
task: 13683
issue: #7009
stage: handed_off
Lane code-v claimed task 13683. Fresh check: issue #7009 is OPEN, labels kind/bug, task/small-fix, status/parked, queue/parked, work/assigned, app/projector — no held / user/owned / do-not-merge / do-not-auto-edit labels, and no status/needs-triage label. Execution lane assignment is opencode (lane row 5809). Handing off to the opencode claimant: scheduled shift is time-bounded; claimant is the persistent execution session. Parked 1200s for claimant launch.
next: claimant launches the bound opencode session
Implemented direct (lane assignment returned direct). PR #8704: projector list-page elements are now validated before projection — isProjectableItem (plain object + safe-integer number) guards the prs/issues streams and the reviews PR list, isPlainObject guards the comment streams and review elements, all with one consistent skip-with-count disposition (skipped in the stream result); fromIssueOrPr itself refuses an unprojectable element with a named projector error instead of a raw TypeError or a phantom repo#undefined upsert. Good elements in a bad page are still stored and cursors still advance. Verification on the laptop against the PR head: full projector suite 132 passed / 0 failed (14 files), including the new wrong-shape suite pinning per-stream skipped counts (issues 2, prs 3, issue_comments 2, review_comments 1, reviews 4).
Activity
developing-today commentedon Nov 8, 2026
agent-note:v1
state: filed
agent: new-issue-creator-code-a
Found via: filed this run — verified on the laptop @8169bbd899 with probe ~/git/fleet/probe-projector-elements (real projector.ts under bun): null/string/number list elements throw raw TypeErrors out of fromIssueOrPr; an element with no number produces a phantom o/r#undefined row. Element-level residual of #6954 (which validated only the page envelope in listResource). Filed via the developing.today GitHub App after the user token hit its GraphQL rate limit.
dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off
4 remaining items
dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off to opencode claimant — Agent: queue worker (repo-worker-code), lane code-t — Session/ID: task 13683, repo-queue-worker-shift-t 2026-11-10 run. Task 13683 (triage) for issue #7009: projector(reconcile) list-page elements are shape-trusted. Fresh check: issue #7009 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels, no status/needs-triage (issue already carries task/small-fix). Attempts 2/6. Execution lane row 5809 = opencode. Handoff reason (#8097 Rule 4): scheduled shift is time-bounded; claimant is the persistent execution session. Checkpointed handed_off; parking task 13683 for 20 minutes for the claimant window.
dezren39 commentedon Nov 10, 2026
agent-note:v1
lane: code-v
task: 13683
issue: #7009
stage: handed_off
Lane code-v claimed task 13683. Fresh check: issue #7009 is OPEN, labels kind/bug, task/small-fix, status/parked, queue/parked, work/assigned, app/projector — no held / user/owned / do-not-merge / do-not-auto-edit labels, and no status/needs-triage label. Execution lane assignment is opencode (lane row 5809). Handing off to the opencode claimant: scheduled shift is time-bounded; claimant is the persistent execution session. Parked 1200s for claimant launch.
next: claimant launches the bound opencode session
dezren39 commentedon Nov 10, 2026
agent-note:v1
lane: code-e
task: 11423
issue: #7009
state: handed_off
execution_lane: opencode
handoff_reason: scheduled shift is time-bounded; claimant is the persistent execution session
next: claimant launches the bound opencode session
Merge pull request #8704 from developing-today/queue/11423-7009-proje…
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done (fixed_merged)
Implemented direct (lane assignment returned
direct). PR #8704: projector list-page elements are now validated before projection —isProjectableItem(plain object + safe-integer number) guards the prs/issues streams and the reviews PR list,isPlainObjectguards the comment streams and review elements, all with one consistent skip-with-count disposition (skippedin the stream result);fromIssueOrPritself refuses an unprojectable element with a named projector error instead of a raw TypeError or a phantom repo#undefined upsert. Good elements in a bad page are still stored and cursors still advance. Verification on the laptop against the PR head: full projector suite 132 passed / 0 failed (14 files), including the new wrong-shape suite pinning per-stream skipped counts (issues 2, prs 3, issue_comments 2, review_comments 1, reviews 4).