Skip to content

pm-aggregator typecheck red on main: server.ts TS2339 'total' does not exist on cache stats type (2 sites) #16901

Done

Description

@dezren39

On current main, bunx tsc --noEmit in pm-stack/aggregator reports two errors, both in src/server.ts:

src/server.ts(1107,13): error TS2339: Property 'total' does not exist on type '{ cache: number; }'.
src/server.ts(1126,13): error TS2339: Property 'total' does not exist on type '{ cache: number; }'.

Evidence: fleet-run 46285445108 (2026-11-29, developing-today/code at b532eed, the #16881 branch — its diff touches only src/decisions.ts, so these errors are main's, surfaced now that the tsconfig baseUrl break #16835 is fixed on main and the decisions.ts duplicate #16856 is removed in that PR). In the same run the decisions test family passed 91/0 and no other tsc errors were reported, so these two are the whole standing typecheck debt of the aggregator.

Fix shape: reconcile the cache-stats type with its uses at server.ts:1107 and 1126 — either the stats object gains the total its readers expect, or the readers use the field the type actually carries; whichever matches the producer of the stats value. Not enqueued: filed from lane 0647-L11 during #16856 verification; the repo-queue claim path is available but this lane did not draw it up — recorded here per the file-and-enqueue rule (the filing lane's pickup order is queue-first and this issue is now visible to the next claim pass).

{
  "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-29T17:14:29Z",
    "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": "5f2b15b85c9743d14046c2c2de4981fd262cc68c"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Lane 0647-L11 claim (Xaltha seat, 2026-11-29). Taking #16901 (filed by this lane from run 46285445108's tsc output): reconcile the cache-stats type with its server.ts readers at 1107/1126 so the aggregator typecheck is clean on main. Queue claim retried first this round — broker proxy closed during CONNECT (transport down again from this seat), so pickup fell to self-search per the standing order.

  2. added a commit that references this issue on Nov 29, 2026
    5bd5606
  3. added a commit that references this issue on Nov 29, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions