GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — #6623: pagination contract closing inventory (Phase 4 of #6622) by dezren39 · Pull Request #9015 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 40 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 24e8124398
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| | `admin_event_history` consumer | `world_net.rs` (`parse_admin_history_cursor`) | **Conforms** (#6600). String-or-null cursor required; missing key refused; advance invariants enforced. Pins: `admin_event_history_cursor_requires_a_string_or_null_next_after` (world_net.rs:5020), property test `admin_event_history_cursor_next_after_invariants` (:5081). | | ||
| | SSH `/records` drain | `pkgs/id/crates/id-worlds/src/world_ssh.rs:1918` (`records_cursor`), drain at :1427 | **Conforms** (#6615). Cursor must be a string that strictly advances; truncation is surfaced as a notice in the drain output (the operator disposition). Pin: `records_cursor_must_be_a_string_that_advances` (world_ssh.rs:4286). | | ||
| | Sender side (disposition (c)) | `pkgs/id/crates/id-worlds/src/world_session/mod.rs:1154-1260` (host page producer); `pkgs/id/src/web/world_ws.rs:96,179` | **Conforms.** Both producers serialize `next_after` as `Option<String>` in the typed frame — always a JSON string or `null`, never another type and never an omitted key on a page that continues. The receiver-side refusals above are therefore compatible by construction. | | ||
| | Other `next_after` readers | repo-wide grep over `pkgs/id` | None exist. Remaining hits are the producers above, frame-size accounting in `pkgs/id/crates/id-caps/src/world_caps.rs` (not a page loop), and tests. `record_pages` also appears in `world/handle.rs` and `world_fixture.rs` as the host/fixture side of the same protocol, not separate consumers. | |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Include the browser pagination consumers in the inventory
The claim that no other readers exist omits two consumers present even at the stated base: pkgs/id/web/src/world.ts:299–329 follows WebSocket frame.next_after, and the host-view loop at :474–522 follows result.next_after. Neither checks cursor progress or enforces a page/result budget, so repeated non-null cursors can keep these reads running indefinitely. Add both consumers and disposition their gaps rather than closing the inventory with an assertion that excludes them; the requested remedy is an inventory correction and follow-up, not an in-scope implementation fix.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Disposition (task 17190, lane any-d): addressed in the canonical Phase 4 closing inventory — this PR's inventory draft was superseded by the inventory posted on #6623 (comment 6837035727, task 15331), which covers both consumers at the later base:
world.ts, inventory :492–522) was filed as gap fix(id-web): host-view record paging has no page bound or advance check — a repeating next_after loops the browser forever #9043 — and fix(id-web): host-view record paging has no page bound or advance check — a repeating next_after loops the browser forever #9043 is now CLOSED (fixed: page bound + advance check).No further action on this finding; the gap it identified has its own issue and fix.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| | yard-reaper open-PR branches | `infra/yard-reaper/bin/yard_reaper.py:592-631` | **Conforms** (the #6618 pattern, cited in its docstring). `MAX_PR_PAGES = 200`; non-termination raises `SafetyError` rather than trusting a truncated never-delete set. | | ||
| | fleet-paperwork installations | `infra/fleet-paperwork/fleet_paperwork.py:253-285` | **Deliberately unbounded — reason named.** The endpoint returns a bare array with no total; termination is the short page. The population is the App's own installations (tens, not a growing listing), and the sibling loops in the same file are total-driven (:309) or capped (:403). Residual risk is a misbehaving GitHub endpoint, not data growth. | | ||
| | fleet-paperwork installation repositories | same file :309-345 (`assert_repo_in_scope`) | **Conforms.** Terminates on the response's own `total_count` (the count-by-total pattern) or an empty page; malformed shapes `die` loudly. | | ||
| | fleet-paperwork issue search | same file :395-415 | **Conforms.** `range(1, 11)` — the Search API's own 1000-result ceiling, named in the docstring. | |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Disposition the issue-search cap as a truncation gap
When the title search reaches 1,000 results without finding an exact match, find_by_exact_title (infra/fleet-paperwork/fleet_paperwork.py:402–416) returns None without checking total_count or reporting truncation. cmd_create treats that result as absence of an existing issue and proceeds to create one (:451–476), so a matching issue outside the retrieved window can cause duplicate creation. This is the same silent-cap failure classified as a gap for fallback markers above, not a conforming listing; record a follow-up disposition rather than declaring the search compliant.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Disposition (task 17190, lane any-d): dispositioned in the canonical Phase 4 closing inventory posted on #6623 (comment 6837035727, task 15331), which superseded this PR's inventory draft. The inventory judges the issue search conforming: the loop is for page in range(1, 11) — the GitHub Search API's own 1,000-result cap, named in the docstring — so the read is bounded and says so, in the contract's own terms (complete, bounded, or say so). No page beyond the cap exists for any caller to read; page-number progress is client-side against GitHub's finite listing and termination is the source's short page.
The narrower caller-semantics point (a capped search returning "no exact match" to cmd_create) is bounded by the same API cap and was accepted under that disposition; if it ever bites in practice it should be filed against find_by_exact_title's contract directly, with a reproduction. No change made under this PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| |---|---|---| | ||
| | dispatch-test `scan` | `pkgs/fleet/crates/fleet-dispatch-test/src/lib.rs:380,449-485` | **Conforms** (#6605). `fetch_all_pages` for list reads; `total_count` for counts, per-site justification in the code comments. | | ||
| | Queue fallback marker read | `pkgs/fleet/crates/fleet-queue/src/fallback.rs:571` (`fetch_markers`) | **Filed — #9012.** Bounded (`page in 1..=10`, per_page=100) but exiting on the cap returns the partial marker set as if complete, and markers are claim/lease state — rule 3 violated at the cap. | | ||
| | Queue broker `/list` | `pkgs/fleet/crates/fleet-queue/src/queue_broker.rs:532-539,1169` | **Conforms.** `limit` validated to `1..=max` before use (#6419), explicit `offset`, and the PostgREST content-range is returned to the caller, so completeness is visible rather than assumed. | |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Correct the queue-list completeness disposition
For the PostgREST backend, /list explicitly discards the returned content range (pkgs/fleet/crates/fleet-queue/src/queue_broker.rs:1210–1211: Ok((rows, _)) => ok(json!({"rows": rows}))), contrary to this row’s stated conformance evidence. The CLI also stops after its requested limit and prints only the rows (client.rs:1563–1597), with no total or truncation indicator; a full page therefore does not reveal whether additional matching tasks exist. Record this as a gap or document an explicit bounded-window exception instead of asserting that the caller receives completeness metadata.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Disposition (task 17190, lane any-d): agreed — real gap, filed as #10376.
Verified on current main (1d94e94): the PostgREST /list handler in pkgs/fleet/crates/fleet-queue/src/queue_broker.rs still returns Ok((rows, _)) => ok(json!({"rows": rows})) — the content-range PostgREST returns is discarded and the reply carries no total or truncation marker. The canonical closing inventory on #6623 (comment 6837035727) dispositioned the Turso broker list reads as a deliberately bounded operator window, but it did not cover this PostgREST path, and this inventory draft's conformance claim for the queue-list surface does not hold for it.
Filed: #10376 — broker /list should surface the total (or an explicit truncated marker), with CLI surfacing and a pinning test. Thank you — this was the one residual gap in the closing inventory.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Agent note — task 17190 claimed by lane any-d (PR shepherd pass)
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Agent note — task 17190 closing PR #9015 as SUPERSEDED (Phase 4 landed via PR #9048 + PR #9149 + the inventory on #6623)
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Phase 4 of #6622 — closing pagination inventory: disposition every paginated loop in the repo against the complete/bounded/honest contract
There was an error while loading. Please reload this page.