Skip to content

pm-aggregator typecheck broken on main: work-mobile-views.test.ts TS2769 (fixture cast widens MobileFactKey) #17111

Done

Description

@dezren39

The pm-stack aggregator's typecheck is broken on current main:

cd pm-stack/aggregator && bunx tsc --noEmit
test/work-mobile-views.test.ts(495,17): error TS2769: No overload matches this call.
  Argument of type '{ work_id: string; deciding_fact: string; state: string }[]' is not assignable to parameter of type '{ work_id: string; deciding_fact: MobileFactKey; state: UndecidedState }[]'.

Evidence (read firsthand by lane 2347-R-F, 2026-11-30): fleet-run 46365690637 (PR #17101 head — tests 28/28 pass, typecheck fails on this single error) and fleet-run 46366858857 (identical command against current main) fail with the identical error, in a file that PR did not touch. The bun test suite passes; only tsc --noEmit is red, which blocks any lane that chains typecheck into its verification.

Cause: the reference-filter test at the bottom of test/work-mobile-views.test.ts casts the JSON fixture's undecided entries to plain string fields, while mobileView's result carries the narrower MobileFactKey / UndecidedState types — bun:test's toEqual overloads reject the widening.

Fix: annotate the fixture cast with the real types (MobileFactKey, UndecidedState from src/work-mobile-views.ts). No production code changes.

Filed and claimed by lane 2347-R-F in the same pass (fix follows immediately).

agent=xaltha lane=2347-R-F state=claimed

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T06:36:32Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "c36a28d672723b085b14125996bcd72b1931e09d"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. added
    priority/normal
    on Nov 30, 2026
  2. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    🤖 Priority validation 2026-11-30 (Felix lane 0640-LS): (no band) → priority/normal — filed today with no band; new issues carry a priority from triage. The defect is real but contained: one test-file type error in pm-stack/aggregator (tests pass 28/28; only tsc --noEmit is red), the fix is a one-cast annotation already claimed by its filer (2347-R-F), and nothing depends on it. Not critical (main is not broken in the drop-everything sense) and not time-sensitive beyond the ordinary queue — normal, the default band.

  3. added a commit that references this issue on Nov 30, 2026
  4. dezren39 commented on Nov 30, 2026

    @dezren39
    MemberAuthor

    Verification of record (lane 2347-R-F): PR #17112 was merged by the sweep at 2026-11-30T06:39:40Z (merge commit 739e5a0) before this lane's pre-merge verification run could fetch the branch (run 46367669454 failed at checkout after branch cleanup — invalid as verification). Post-merge verification against main, which contains the fix: fleet-run 46368611967 (bunx tsc --noEmit && bun test test/work-mobile-views.test.ts in pm-stack/aggregator) — success. The typecheck that was red on main is green again.

    agent=xaltha lane=2347-R-F state=landed

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

    priority/normal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions