Skip to content

Transport CodeQL: resolve test-fixture missing-rate-limiting finding #2112

Closed

Description

@integry

Problem

Transport epic PR #2035 at exact head b3ce045 has a high-severity CodeQL js/missing-rate-limiting finding at packages/api/test/demoMode.test.ts:194 (check/job 101128142786). The location is an unchanged test-only Express fixture and may be newly attributed because the epic diff is large, but the CodeQL gate is red and must be resolved explicitly rather than ignored.

Required correction

Audit the fixture and query trace. Make the smallest correct change that eliminates the high finding while preserving the demo-mode test's semantics. Prefer a narrowly scoped test-fixture rate limiter or a precise, documented query suppression only if CodeQL's dataflow proves it is non-production and unreachable outside the ephemeral local test server. Do not add production behavior, external dependencies, network exposure, or broad exclusions. Do not touch Windows-specific work.

Add/adjust focused tests to prove requests used by the fixture still exercise the intended demo-mode paths and that the mitigation cannot affect production API behavior.

Acceptance

The exact CodeQL high finding is absent on fresh CI; API/demo-mode tests, full suite, transport validation, and Mac/Linux desktop lanes remain green.

Activity

  1. propr-dev commented on Sep 4, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 2112/gpt-5.6-sol-transport-codeql-resolve--20260904-1822-ynw
    • Base Branch: 1953-epic-desktop-transport-api
    • Worktree: issue-2112-20260904-1822-gpt-5.6-sol-ynw

    🔍 Track Task Execution

  2. added a commit that references this issue on Sep 4, 2026
  3. integry commented on Sep 4, 2026

    @integry
    OwnerAuthor

    Implemented by #2115, merged into 1953-epic-desktop-transport-api (98f3330). Closing the completed child issue during epic issue/PR reconciliation. Final desktop integration and delivery remain tracked by #1950 / #1970; this does not claim a main-branch release.

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

    AIAI-donebugllm-codex-gpt56-sol

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions