Skip to content

Code review polish: 4 small items from #474 #480

Closed

Description

@neuromechanist

Context

Round of small items from PR #474 release review that aren't release blockers but should land in v0.8.15.

Items

1. broadcastRequestSchema integration test gap (code-reviewer)

The Zod refinement Boolean(value.to) !== Boolean(value.user) is correct, but no live API call exercises POST /admin/notify with neither field. Schema unit tests cover it; HTTP layer doesn't.

2. getDatasetS3Stats JSDoc clarification (code-reviewer)

When maxPages=20 cap fires, the returned totalSize is partial (first 20 pages only). The only capped caller discards totalSize, so no bug today, but JSDoc should warn future callers.

3. shouldSyncToNemarAfterVersionDoi JSDoc tracking decay (comment-analyzer)

The function's JSDoc references "tracked in CLAUDE.md" as a stable pointer. CLAUDE.md is an evolving developer guide, not an issue tracker. Replace with the specific issue link or remove.

4. detectImportMarker JSDoc self-reference (comment-analyzer)

The function references #460 (the issue it closes) as a future-tracking note. Misleading; should either remove or convert to a forward-looking limitation note.

5. Drop self-referencing TODO without issue link

test/tree-batched-commit.test.ts has // TODO: 429 (rate-limit) is handled by githubFetchWithRetry internally — not a real TODO; remove or rephrase as a plain comment.

6. Type-design suggestions (type-design-analyzer)

  • PublishProgressInfo: refactor to tagged union so s3LockResumed is unreachable on non-lock events
  • Variables.authAttempted: narrow from boolean | undefined to true | undefined (false state is unused)
  • DB recipient_group LIKE 'user:%': TS-side could use template literal type \user:${string}``

None are release blockers; all add quality.

Activity

  1. added
    enhancement
    on May 14, 2026
  2. neuromechanist commented on May 14, 2026

    @neuromechanist
    ContributorAuthor

    Merged via PR #486 (5/6 items + 2/3 type tweaks landed; PublishProgressInfo tagged-union refactor deferred per agent recommendation due to test-suite breadth).

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions