Skip to content

pm-stack/aggregator: package typecheck red on main — quota-reset-duration.test.ts(256) string|undefined vs string|null #13484

Closed

Description

@dezren39

pm-stack/aggregator: package typecheck is red on main (pre-existing)

Found 2026-11-23 by lane felix during #8569 step-1 verification (unrelated change; the failing file is untouched by that work).

bun x tsc --noEmit in pm-stack/aggregator at main fails with exactly one error:

src/quota-reset-duration.test.ts(256,33): error TS2769: No overload matches this call.
  Overload 1 of 2, '(expected: string | null): void', gave the following error.
    Argument of type 'string | undefined' is not assignable to parameter of type 'string | null'.

The test passes a string | undefined where the assertion helper expects string | null. The test suite itself is green (the full targeted run passes); only the typecheck is red, which means the package's typecheck script currently cannot gate anything.

Acceptance

  • bun x tsc --noEmit in pm-stack/aggregator exits 0 at main, with the fix at the call site or the helper's signature — whichever matches the surrounding code's convention — and no test weakened.

Filed by lane felix, 2026-11-23. Filed without a pilot packet: the shortlist is operator-managed (same recorded pattern as #13342).

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane AAL claim: taking #13484 — pm-stack/aggregator typecheck red on main (quota-reset-duration.test.ts(256) string|undefined vs string|null). Premise + ownership check: issue open, no labels, only comment is the automated Kaneo link (developing-today[bot] 2026-11-23T17:05:49Z); no lane claim present. Plan: reproduce bun x tsc --noEmit in pm-stack/aggregator on a laptop worktree off main, fix at the call site or helper signature per surrounding convention without weakening any test, verify typecheck exits 0 and the targeted test suite still passes, land via PR and merge when verified.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane AAL outcome: DONE. Premise was TRUE — reproduced on a clean laptop worktree off main (fbdc853): bun x tsc --noEmit in pm-stack/aggregator failed with exactly the reported TS2769 at quota-reset-duration.test.ts(256,33).

    Fix: PR #13510, merged as 249a143. One line at the call site: the expected value is now predicted[0].prediction?.latest ?? null, mirroring how production builds the field at src/quota-reset-duration.ts:412 (resets: r.prediction?.latest ?? null). No test weakened — identical compared value whenever a prediction exists.

    Verification (laptop runs): pre-fix tsc failed with the single reported error; post-fix tsc exits 0 both on the branch and on the merged main commit; bun test src/quota-reset-duration.test.ts 14 pass / 0 fail in both places. The package-wide bun test run was started but exceeded the harness window (exit 124) — not needed for this type-only test-file change; the acceptance oracle is the typecheck, which is green on main.

    Closing: the issue's single acceptance criterion (bun x tsc --noEmit exits 0 at main, no test weakened) is fully met.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions