Skip to content

fix(pm-aggregator): type the mobile-views fixture cast with the real fact/state types (#17111) - #17112

Merged
dezren39 merged 1 commit into
mainfrom
xaltha/2347-f-17111-tsc-fix
Nov 30, 2026
Merged

dezren39 merged 1 commit into
mainfrom
xaltha/2347-f-17111-tsc-fix

Conversation

@dezren39

@dezren39 dezren39 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Closes #17111.

The pm-aggregator typecheck is red on main: bunx tsc --noEmit fails at test/work-mobile-views.test.ts(495,17) with TS2769 — the reference-filter test casts the JSON fixture's undecided entries to plain string fields, while mobileView's result carries the narrower MobileFactKey / UndecidedState types, and bun:test's toEqual overloads reject the widening. The bun suite itself passes; only the typecheck is broken, and it blocks any lane chaining typecheck into verification (found by lane 2347-R-F while verifying PR #17101: runs 46365690637 and, against main, 46366858857, identical error).

Fix: annotate the fixture cast with the real types imported from src/work-mobile-views.ts. Test-only, no production code.

Verification: fleet-run dispatch against this head — bunx tsc --noEmit && bun test test/work-mobile-views.test.ts in pm-stack/aggregator (run linked in the PR comments when it lands; CI is not a merge gate).

agent=xaltha lane=2347-R-F

{
  "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:37:42Z",
    "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)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…fact/state types (#17111)

tsc --noEmit on main failed at work-mobile-views.test.ts(495,17)
with TS2769: the reference-filter test cast the JSON fixture's
undecided entries to plain string fields, while mobileView's
result carries MobileFactKey / UndecidedState, and bun:test's
toEqual overloads reject the widening. Annotate the cast with
the real types. Test-only change; the bun suite was already
green, only the typecheck was red.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 18 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2b194fc0-b50f-4b6c-9a1e-b866367552cb
Commits

Reviewing files that changed from the base of the PR and between 56de73d and c1c7550.

Files selected for processing: 1

  • pm-stack/aggregator/test/work-mobile-views.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant