GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — atlas-search + fleet-search: results-paging cursor guard catches only an immediate repeat — a cycling cursor (A→B→A) spins the no-sleep paging loop until the 330s deadline · Issue #5654 · developing-today/code

atlas-search + fleet-search: results-paging cursor guard catches only an immediate repeat — a cycling cursor (A→B→A) spins the no-sleep paging loop until the 330s deadline #5654

New issue
Copy link
New issue
Copy link
Closed
#5655
Closed
atlas-search + fleet-search: results-paging cursor guard catches only an immediate repeat — a cycling cursor (A→B→A) spins the no-sleep paging loop until the 330s deadline#5654
#5655
Copy link
Labels
app/atlas-searchpkgs/atlas-search (Atlas search service + atlas-embed)app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:done

Description

@dezren39
dezren39
opened on Nov 4, 2026
Issue body actions

atlas-search + fleet-search: results-paging cursor guard catches only an immediate repeat — a cycling cursor (A→B→A) spins the no-sleep paging loop until the 330s deadline

Summary

The via-service results-paging loop in both client copies guards against a
non-advancing cursor only by comparing next_cursor with the cursor
immediately before it (#5424). A service (buggy or malicious) that cycles
cursors with period ≥ 2 — A → B → A → B … — passes that check on every page.
The paging loop contains no sleep and no page/iteration cap, so the client
hammers the service's results endpoint at full loopback speed until the
330-second client deadline expires, accumulating duplicate results the whole
time (for a large --k, the results.len() >= k break does not save it).
Only then does the loud standalone fallback engage.

Evidence

  • pkgs/atlas-search/crates/atlas-search/src/service.rs, search_with_token,
    paging loop (~lines 190–252): the only progress checks are
    page.next_cursor.is_none(), empty-page-with-cursor, and
    cursor.as_deref() == Some(next_cursor.as_str()) (immediate repeat).
    No seen-cursor set, no page cap, no sleep between pages (the poll loop
    sleeps 100 ms; the paging loop does not).
  • pkgs/fleet/crates/fleet-search/src/client.rs, search_with_token,
    paging loop (~lines 300–390): the fleet-step-5 port carries the identical
    loop and the identical guard ("The cursor guards from code#5424 ride
    along unchanged").
  • Verified this run on the laptop with a stub service (fleet-search test
    harness, StubMode::CyclingCursor added in probe worktree
    ~/git/fleet/wt-probe-cycle): the stub alternates cursor-A/cursor-B
    with one result per page and k = 100_000. After 10 s the client was
    still paging and the stub had received 2,307 results-endpoint hits
    (~230 req/s). The existing repeating-cursor stub (period 1) is rejected
    promptly by contrast (search_repeating_cursor_returns_err_promptly).

Why it matters

#5424's stated contract is that a non-advancing page stream "is a malformed
response and an error — never a loop". A period-2 cycle is exactly a
non-advancing page stream: the ranking never progresses, yet the client
burns up to 330 s and thousands of requests against the service before
falling back, and the spliced result list fills with duplicated pages.
The fleet-search port (#5433) doubles the exposed surface.

Acceptance criteria

  • Both copies (atlas-search/src/service.rs, fleet-search/src/client.rs)
    reject any next_cursor already seen during this paging session (e.g. a
    HashSet of used cursors), returning the same style of malformed-page
    error as the existing guards so the caller falls back to standalone loudly.
  • A regression test in each crate with a cycling-cursor stub (period ≥ 2)
    returns Err promptly (comparable to the repeating-cursor test), and the
    existing happy-path / repeating-cursor / empty-page tests still pass.
  • Behaviour for a well-behaved service is unchanged: distinct, advancing
    cursors page exactly as before.

Activity

  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    on Nov 4, 2026
  2. developing-today commented on Nov 4, 2026

    @developing-today
    developing-todayBot
    on Nov 4, 2026 – with developing.today
    Contributor
    More actions

    CODE-1410

  3. dezren39
    added
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/atlas-searchpkgs/atlas-search (Atlas search service + atlas-embed)
    on Nov 4, 2026
  4. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: new-issue-creator job (new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a, run 2026-11-04 ~15:05 CST
    • Found via: filed this run
    • Task: self-solving under the guarded trivial-fix rule (lifecycle §4): track seen cursors in both paging loops (atlas-search service.rs, fleet-search client.rs), reject any repeat as a malformed page, add cycling-cursor regression tests to both crates
    • Expectation: effort xs; done = PR merged with both crates' tests green on the laptop, issue closed
    • Links: probe worktree ~/git/fleet/wt-probe-cycle (laptop): cycling stub returned 2,307 results hits in 10s and was still paging
  5. dezren39
    added
    work/self-assignedAn agent grabbed this item directly, outside the queue
    status/in-progressQueue worker lifecycle state
    app/fleetpkgs/fleet multicall binary + platform crates
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 4, 2026
  6. developing-today
    added
    status:in-review
    on Nov 4, 2026
  7. dezren39
    added a commit that references this issue on Nov 4, 2026

    fix(search): reject cycling paging cursors in both via-service clients (

    2db40a3
  8. dezren39
    closed this as completedin #5655on Nov 4, 2026
  9. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 4, 2026
  10. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: new-issue-creator job (new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a, run 2026-11-04 ~15:05 CST
    • Found via: filed this run
    • Task: self-solved under the guarded trivial-fix rule (lifecycle §4): seen-cursor set in both paging loops + cycling-cursor regression tests
    • Expectation: met — PR fix(search): reject cycling paging cursors in both via-service clients (#5654) #5655 squash-merged (2db40a3); cargo test -p fleet-search 19 passed and cargo test -p atlas-search service:: 4 passed on the laptop; pre-fix probe: 2,307 results hits in 10s and still paging
    • Links: PR fix(search): reject cycling paging cursors in both via-service clients (#5654) #5655; probe worktree ~/git/fleet/wt-probe-cycle (laptop, removed after the run)
  11. dezren39
    removed
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    status/in-progressQueue worker lifecycle state
    work/self-assignedAn agent grabbed this item directly, outside the queue
    on Nov 4, 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

    app/atlas-searchpkgs/atlas-search (Atlas search service + atlas-embed)app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.