Skip to content

Projection failure list and retry accept any limit #1031

Closed

Description

@zlareb1

Component

Background workers

Describe what's wrong

ops.projection_failures.list and ops.projection_failures.retry accept any integer as limit.

ProjectionFailureListInput.limit is int = 100 and ProjectionFailureRetryInput.limit is int = 50. Neither sets ge or le. On commit 5fbc62c, both models accepted -1, 0, 50000000 and 4294967295. insights.query rejects a limit above 10000.

list_projection_failures binds that integer as LIMIT {lim:UInt32} and returns the payload column. Retry lists that many active failures and retries each one. Both ops require ORG_ADMIN.

The queries were not sent to ClickHouse. The models accepting those integers was.

Does it reproduce on the latest release or main?

Yes

How to reproduce

Auth on, with a token that holds org_admin. LOOM_STORAGE_AUTHORITY does not matter.

POST /v1/ops.projection_failures.list
{"org": "example", "limit": 4294967295}
POST /v1/ops.projection_failures.retry
{"org": "example", "limit": 4294967295}

A sibling read, insights.query, returns 422 for "limit": 50000000.

Expected behavior

Both limits are bounded the way the other insights reads are: insights.query uses ge=1, le=10000, and the admin list models use ge=1, le=1000. A limit outside that range is a validation error, not a LIMIT of four billion rows or a retry of that many failures.

Environment

Source: ClickHouse/loom main, commit 5fbc62c21a, package version 1.3.0
Python: 3.14.6
Platform: macOS arm64
LOOM_STORAGE_AUTHORITY: clickhouse (the default)
ClickHouse: not queried

How this was found

An AI tool found it, and I have not reproduced it myself

Additional context

Pydantic validation was run in process. No request was sent to a server, so there is no X-Request-Id and no system.query_log row.

Redaction

  • I removed tokens, keys, passwords and personal or customer data from everything above.

Activity

  1. added
    bug
    on Nov 20, 2026
  2. self-assigned this
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions