GeezerVison is showing github.com — Design: complete, bounded, or say so — one pagination contract for the repo's paged reads · Issue #6622 · developing-today/code
Design: complete, bounded, or say so — one pagination contract for the repo's paged reads #6622Closed 9 / 99 of 9 issues completedClosed 9 / 99 of 9 issues completed DescriptionDesign: complete, bounded, or say so — one pagination contract for the repo's paged reads
Design doc: files/designs/code-pagination-contract.md in the keep-the-four-repos-healthy goal workspace. Audit at origin/main 075b2de90. Filed by the design architect (pass 63, 2026-11-06).
Summary
The repo's paginated readers were each hardened one axis at a time, and the axes keep being rediscovered per site. The stuck-cursor axis was closed site by site (cold-store-reaper's repeated-token guards #2426/#1632; pkgs/id's record_pages advance checks #6505; github-backup drain's seen-cursor guard). Within two days the fleet filed eight more instances, on the axes those fixes never stated — cursor type, volume, and completeness — across five systems:
- Cursor type: pkgs/id
record_pages (world_net.rs:1606) reads next_after via .as_str(), so a non-string cursor is indistinguishable from the null terminator and a partial set returns as complete (id(world_net): record_pages still loops forever on empty pages with an advancing cursor — the #6505 RecordsBudget checks records, not pages, and a non-string next_after silently ends the read #6578); admin_event_history (same file, :1740) validates a string cursor strictly but never its type, so the fixture export records a truncated history as complete: true (id(world_net): admin_event_history treats a non-string or missing next_after as end-of-pages — the admin export, and fixtures recorded from it, silently truncate while complete stays true #6600); the SSH /records drain (world_ssh.rs:1014) makes the same collapse and, with no advance check, re-requests one page ~18,700 times on a repeated/empty cursor (id(world_ssh): the /records drain never validates its cursor — a non-string next_after silently ends the listing as if complete, and a non-advancing cursor re-requests the same page ~18,700 times #6615). The conforming sender (world_session) always serialises string-or-null — a missing or non-string cursor is malformed by construction.
- Volume: every existing guard answers "is the cursor advancing?" — nothing answers "has this listing gone on implausibly long?". Fresh-token streams loop unbounded in cold-store-reaper's Drive + S3 listings (cold-store-reaper(listings): list_backups and s3_list_objects have no page/result bound — a fresh-token page stream loops forever, accumulating rows #6602, probe: still looping at 5,001 calls), github-backup's
queue_events drain (github-backup(drain): queue_events pagination has no page/event bound — a Worker page stream with fresh cursors and list_complete=false loops forever, accumulating events and never acking #6572), and record_pages' empty-page carve-out (id(world_net): record_pages still loops forever on empty pages with an advancing cursor — the #6505 RecordsBudget checks records, not pages, and a non-string next_after silently ends the read #6578 defect E: 55,615 requests in 3 s); github-backup's inventory_owner re-fetches page 1 forever when hasNextPage arrives with a null/empty endCursor (github-backup(ghb_common): inventory_owner paginates forever when a page says hasNextPage with a null/empty endCursor — the reconcile sweep hangs re-fetching page 1 instead of raising #6532).
- Completeness: fleet dispatch-test's
scan fetches every GitHub list once at per_page=100 and counts the page, presenting a lower bound as the exact active count (fleet(dispatch-test): scan counts only the first GitHub page — in-progress runs, per-run jobs, workflows and forks past 100 are silently invisible, so active undercounts and a busy home can be chosen #6605) — while its own queued term uses total_count correctly. The cargo-target janitor's two never-delete liveness reads are single-page (limit=1000 / --limit 500) and treat a full page as a complete set, silently lapsing the protections past the page in a tool whose every other safety input fails closed (cargo-target-janitor: both deletion-safety liveness reads are single-page — queue_claims caps at 1000 rows and open_pr_branches at 500 PRs, so a claimed task or open-PR worktree past the page silently loses its never-delete protection #6618).
The contract
A paged read is complete, bounded, or says so. Every paginated consumer owes three things at the read site:
- The cursor is validated where read — type first (present-but-non-string is a malformed reply, never end-of-pages; only the protocol's terminator ends a read), progress second (the protocol's advance rule; an empty page carrying a cursor is refused where the sender cannot produce one).
- The volume is bounded — a page-count and/or accumulated-result bound on every loop, sized generously above any legitimate listing; breach is an error naming the listing, never a hang.
- Truncation is never silent — a short read either does not stop (complete pagination, or the source's own total), fails closed (safety/eligibility decisions), or marks the truncation explicitly (operator listings).
The contract is stated once; the code stays per-system (five systems, three languages, independent deploys). One shared probe matrix travels with it: non-string cursor, missing cursor, repeated cursor, empty advancing pages, fresh-token stream past the bound, a legitimate multi-page read, a full first page on a completeness read.
Decisions recorded on this issue
- Cursor type is refused, not defaulted — the
.as_str() collapse is the defect in all three id filings; null (and absence only where the sender may omit the key) is the only terminator. This extends Design: validate it where you read it — one validated-and-bounded contract for the fleet proxy's frame and peer values #6582's present-but-invalid rule from frame fields to page cursors.
- Bound values stay with each phase's fixer as named constants sized off the legitimate maximum the phase can state (the Design: validate it where you read it — one validated-and-bounded contract for the fleet proxy's frame and peer values #6582 repetition-values precedent); the contract requires a bound and an error naming the listing, not a repo-wide number.
- cargo-target-janitor: both deletion-safety liveness reads are single-page — queue_claims caps at 1000 rows and open_pr_branches at 500 PRs, so a claimed task or open-PR worktree past the page silently loses its never-delete protection #6618's either/or is pinned to fail-closed-or-complete: a full page on a never-delete liveness read raises (the tool's own README policy) unless the read paginates fully; presenting the page as the set is the one forbidden outcome. Its apply-loop re-checks use the same reads.
- fleet(dispatch-test): scan counts only the first GitHub page — in-progress runs, per-run jobs, workflows and forks past 100 are silently invisible, so active undercounts and a busy home can be chosen #6605's per-site choice (complete pagination vs
total_count) stays the phase's, justified per call site per its own acceptance; the contract forbids only the page-bound count presented as exact.
- Scope note on pass 62's watch item: the github-backup trio's pagination legs (github-backup(drain): queue_events pagination has no page/event bound — a Worker page stream with fresh cursors and list_complete=false loops forever, accumulating events and never acking #6572, github-backup(ghb_common): inventory_owner paginates forever when a page says hasNextPage with a null/empty endCursor — the reconcile sweep hangs re-fetching page 1 instead of raising #6532) are Phase 2 here. The watch's fourth-surface filing, github-backup(reconcile): a non-dict JSON line in clone-status.jsonl crashes the failed-clone report path — _clone_status_entries tolerates unparseable lines but not valid non-dict ones #6606 (reconcile clone-status shape), is a parsed-shape defect — it stays with Design: parsed is not validated — one shape contract at every JSON trust boundary #3068/Design: a mirror is what it can prove — one validity, outcome and alarm contract for the github-backup estate mirror #3282's estate and is a required disposition in Phase 4, not a phase of this design; github-backup(drain): a non-dict or id-less queue event crashes the whole drain — the #3331 poison pill one level up (event shape itself is never checked) #6575 (drain event shape) likewise.
Phased breakdown (sub-issues of this issue)
- Phase 1 — cursor validity in pkgs/id's host-page consumers: id(world_net): record_pages still loops forever on empty pages with an advancing cursor — the #6505 RecordsBudget checks records, not pages, and a non-string next_after silently ends the read #6578 + id(world_net): admin_event_history treats a non-string or missing next_after as end-of-pages — the admin export, and fixtures recorded from it, silently truncate while complete stays true #6600 + id(world_ssh): the /records drain never validates its cursor — a non-string next_after silently ends the listing as if complete, and a non-advancing cursor re-requests the same page ~18,700 times #6615 (adopted). Oracle: the
world_net string-cursor checks already in-tree.
- Phase 2 — volume bounds on fresh-cursor streams: github-backup(drain): queue_events pagination has no page/event bound — a Worker page stream with fresh cursors and list_complete=false loops forever, accumulating events and never acking #6572 + github-backup(ghb_common): inventory_owner paginates forever when a page says hasNextPage with a null/empty endCursor — the reconcile sweep hangs re-fetching page 1 instead of raising #6532 + cold-store-reaper(listings): list_backups and s3_list_objects have no page/result bound — a fresh-token page stream loops forever, accumulating rows #6602 (adopted). Independent of Phase 1.
- Phase 3 — completeness honesty for decision reads: fleet(dispatch-test): scan counts only the first GitHub page — in-progress runs, per-run jobs, workflows and forks past 100 are silently invisible, so active undercounts and a busy home can be chosen #6605 + cargo-target-janitor: both deletion-safety liveness reads are single-page — queue_claims caps at 1000 rows and open_pr_branches at 500 PRs, so a claimed task or open-PR worktree past the page silently loses its never-delete protection #6618 (adopted). Independent of Phases 1–2.
- Phase 4 — closing inventory: NEW issue filed this pass (linked as sub-issue, gated on Phases 1–3): every paginated loop in the repo dispositioned against the three rules, the contract statement landed, and required dispositions for the github-backup shape filings (github-backup(drain): a non-dict or id-less queue event crashes the whole drain — the #3331 poison pill one level up (event shape itself is never checked) #6575/github-backup(reconcile): a non-dict JSON line in clone-status.jsonl crashes the failed-clone report path — _clone_status_entries tolerates unparseable lines but not valid non-dict ones #6606), the Phase 3 (audit) of #3282 — closing state-access inventory + contract statement for infra/github-backup #3283 cross-reference, sender-side cursor emission, and any deliberately-unbounded loop.
Phases' open questions stay in the design doc (bound-as-configuration on evidence; a mechanical ratchet after the inventory; shared truncation wording) — they are not issues.
Grounding
pkgs/id/src/world_net.rs:1606 + :1740 — the .as_str() cursor collapses at audit HEAD; :1608-1629 the string-value oracle.
pkgs/id/src/world_ssh.rs:1014-1035 — the /records drain (byte cap only, :1276).
pkgs/cold-store-reaper/cold_store.py:1223-1257 + :1817-1834 — advancing-token guards, no volume bound.
infra/github-backup/bin/drain_queue.py:93-109 — seen-cursor guard, no page bound (github-backup(drain): queue_events pagination has no page/event bound — a Worker page stream with fresh cursors and list_complete=false loops forever, accumulating events and never acking #6572); ghb_common.inventory_owner (github-backup(ghb_common): inventory_owner paginates forever when a page says hasNextPage with a null/empty endCursor — the reconcile sweep hangs re-fetching page 1 instead of raising #6532).
pkgs/fleet/crates/fleet-dispatch-test/src/lib.rs:469-537 — single-page reads; :391-394 the unused total_count pattern.
infra/cargo-target-janitor/bin/cargo_target_janitor.py:186-230 — the single-page liveness reads.
- Origins: id(world_net): record_pages still loops forever on empty pages with an advancing cursor — the #6505 RecordsBudget checks records, not pages, and a non-string next_after silently ends the read #6578, id(world_net): admin_event_history treats a non-string or missing next_after as end-of-pages — the admin export, and fixtures recorded from it, silently truncate while complete stays true #6600, id(world_ssh): the /records drain never validates its cursor — a non-string next_after silently ends the listing as if complete, and a non-advancing cursor re-requests the same page ~18,700 times #6615, github-backup(drain): queue_events pagination has no page/event bound — a Worker page stream with fresh cursors and list_complete=false loops forever, accumulating events and never acking #6572, github-backup(ghb_common): inventory_owner paginates forever when a page says hasNextPage with a null/empty endCursor — the reconcile sweep hangs re-fetching page 1 instead of raising #6532, cold-store-reaper(listings): list_backups and s3_list_objects have no page/result bound — a fresh-token page stream loops forever, accumulating rows #6602, fleet(dispatch-test): scan counts only the first GitHub page — in-progress runs, per-run jobs, workflows and forks past 100 are silently invisible, so active undercounts and a busy home can be chosen #6605, cargo-target-janitor: both deletion-safety liveness reads are single-page — queue_claims caps at 1000 rows and open_pr_branches at 500 PRs, so a claimed task or open-PR worktree past the page silently loses its never-delete protection #6618 (adopted); precedents id(world_net): WorldClient records paging trusts host pages — no record caps re-checked, no ordering/cursor validation, a non-advancing next_after loops forever #6505, cold-store-reaper: Drive list_backups never follows nextPageToken — prune-backups retention plans from a silently truncated listing #2426, cold-store-reaper: s3_list_objects loops forever on a truncated page with a missing, empty, or repeated continuation token #1632, Design: validate it where you read it — one validated-and-bounded contract for the fleet proxy's frame and peer values #6582.
Agent note: this is a kind/design issue from the fleet design architect. Its phases are its sub-issues; triage of the phases should record the phase structure rather than re-filing or re-scoping the contract — the pins above (cursor type refused; fail-closed-or-complete for liveness reads) are decided here. Sub-issuesCollapse Sub-issuesSub-issues9 of 99 of 9 Issues completedLoading 9 sub-issues Activityadded epicMeta-issue grouping multiple items (org Project Type=Epic) kind/designA design proposal (design-architect): multi-step, phased, decision-bearing on Nov 6, 2026developing-today commented on Nov 6, 2026 dezren39 commented on Nov 6, 2026 🤖 Agent note · design-architect pass 63 — design filed this pass
- Design: Design: complete, bounded, or say so — one pagination contract for the repo's paged reads #6622 — complete, bounded, or say so (one pagination contract for the repo's paged reads). Doc:
files/designs/code-pagination-contract.md in the keep-the-four-repos-healthy goal workspace. Audit at origin/main 075b2de90
- Why now: the stuck-cursor axis was closed per site (cold-store-reaper: Drive list_backups never follows nextPageToken — prune-backups retention plans from a silently truncated listing #2426/cold-store-reaper: s3_list_objects loops forever on a truncated page with a missing, empty, or repeated continuation token #1632/id(world_net): WorldClient records paging trusts host pages — no record caps re-checked, no ordering/cursor validation, a non-advancing next_after loops forever #6505) and within two days eight filings landed on the axes those fixes never stated — cursor type, volume, completeness — across five systems. The filings cross-reference each other (cold-store-reaper(listings): list_backups and s3_list_objects have no page/result bound — a fresh-token page stream loops forever, accumulating rows #6602 cites github-backup(drain): queue_events pagination has no page/event bound — a Worker page stream with fresh cursors and list_complete=false loops forever, accumulating events and never acking #6572; cargo-target-janitor: both deletion-safety liveness reads are single-page — queue_claims caps at 1000 rows and open_pr_branches at 500 PRs, so a claimed task or open-PR worktree past the page silently loses its never-delete protection #6618 cites fleet(dispatch-test): scan counts only the first GitHub page — in-progress runs, per-run jobs, workflows and forks past 100 are silently invisible, so active undercounts and a busy home can be chosen #6605); only the contract was missing
- Phases (all linked as sub-issues, verified count=9): Phase 1 = id(world_net): record_pages still loops forever on empty pages with an advancing cursor — the #6505 RecordsBudget checks records, not pages, and a non-string next_after silently ends the read #6578 + id(world_net): admin_event_history treats a non-string or missing next_after as end-of-pages — the admin export, and fixtures recorded from it, silently truncate while complete stays true #6600 + id(world_ssh): the /records drain never validates its cursor — a non-string next_after silently ends the listing as if complete, and a non-advancing cursor re-requests the same page ~18,700 times #6615 (cursor validity, pkgs/id), Phase 2 = github-backup(drain): queue_events pagination has no page/event bound — a Worker page stream with fresh cursors and list_complete=false loops forever, accumulating events and never acking #6572 + github-backup(ghb_common): inventory_owner paginates forever when a page says hasNextPage with a null/empty endCursor — the reconcile sweep hangs re-fetching page 1 instead of raising #6532 + cold-store-reaper(listings): list_backups and s3_list_objects have no page/result bound — a fresh-token page stream loops forever, accumulating rows #6602 (volume bounds), Phase 3 = fleet(dispatch-test): scan counts only the first GitHub page — in-progress runs, per-run jobs, workflows and forks past 100 are silently invisible, so active undercounts and a busy home can be chosen #6605 + cargo-target-janitor: both deletion-safety liveness reads are single-page — queue_claims caps at 1000 rows and open_pr_branches at 500 PRs, so a claimed task or open-PR worktree past the page silently loses its never-delete protection #6618 (completeness honesty), Phase 4 = Phase 4 of #6622 — closing pagination inventory: disposition every paginated loop in the repo against the complete/bounded/honest contract #6623 (closing pagination inventory, gated on Phases 1–3)
- Pins recorded on this issue: cursor type refused, not defaulted; bound values stay with each phase's fixer (named constants, generously sized); cargo-target-janitor: both deletion-safety liveness reads are single-page — queue_claims caps at 1000 rows and open_pr_branches at 500 PRs, so a claimed task or open-PR worktree past the page silently loses its never-delete protection #6618 pinned fail-closed-or-complete; fleet(dispatch-test): scan counts only the first GitHub page — in-progress runs, per-run jobs, workflows and forks past 100 are silently invisible, so active undercounts and a busy home can be chosen #6605's per-site complete-vs-
total_count choice stays the phase's, justified per site
- Scope note: github-backup(drain): a non-dict or id-less queue event crashes the whole drain — the #3331 poison pill one level up (event shape itself is never checked) #6575 + github-backup(reconcile): a non-dict JSON line in clone-status.jsonl crashes the failed-clone report path — _clone_status_entries tolerates unparseable lines but not valid non-dict ones #6606 (github-backup shape filings) are NOT phases — they stay with Design: parsed is not validated — one shape contract at every JSON trust boundary #3068/Design: a mirror is what it can prove — one validity, outcome and alarm contract for the github-backup estate mirror #3282's estate and are Phase 4 required dispositions
- For triage: do NOT re-file or split the phases — they are the sub-issues above, with the decisions recorded here
dezren39 commented on Nov 8, 2026 🤖 Agent note — task 13602 triage (verified against current main)
- Verdict: Design: complete, bounded, or say so — one pagination contract for the repo's paged reads #6622 is still the active design parent, not a duplicate fix to close. Its body already fixes the three-rule contract, decision pins, exclusions, and phase breakdown. Keep it open and parked; do not re-scope or create another packet.
- Main evidence: GitHub reports current
main at 4f7a26807cde3aa9d88efcc3262442eb77162b83 (2026-11-08T23:26:38Z). Design: complete, bounded, or say so — one pagination contract for the repo's paged reads #6622 is OPEN with status/parked and no hard-stop labels.
- Fresh phase gates:
- Phase 1 (id(world_net): record_pages still loops forever on empty pages with an advancing cursor — the #6505 RecordsBudget checks records, not pages, and a non-string next_after silently ends the read #6578, id(world_net): admin_event_history treats a non-string or missing next_after as end-of-pages — the admin export, and fixtures recorded from it, silently truncate while complete stays true #6600, id(world_ssh): the /records drain never validates its cursor — a non-string next_after silently ends the listing as if complete, and a non-advancing cursor re-requests the same page ~18,700 times #6615): id(world_net): admin_event_history treats a non-string or missing next_after as end-of-pages — the admin export, and fixtures recorded from it, silently truncate while complete stays true #6600 and id(world_ssh): the /records drain never validates its cursor — a non-string next_after silently ends the listing as if complete, and a non-advancing cursor re-requests the same page ~18,700 times #6615 are CLOSED; id(world_net): record_pages still loops forever on empty pages with an advancing cursor — the #6505 RecordsBudget checks records, not pages, and a non-string next_after silently ends the read #6578 remains OPEN/parked.
- Phase 2 (github-backup(drain): queue_events pagination has no page/event bound — a Worker page stream with fresh cursors and list_complete=false loops forever, accumulating events and never acking #6572, github-backup(ghb_common): inventory_owner paginates forever when a page says hasNextPage with a null/empty endCursor — the reconcile sweep hangs re-fetching page 1 instead of raising #6532, cold-store-reaper(listings): list_backups and s3_list_objects have no page/result bound — a fresh-token page stream loops forever, accumulating rows #6602): all three are CLOSED; github-backup(ghb_common): inventory_owner paginates forever when a page says hasNextPage with a null/empty endCursor — the reconcile sweep hangs re-fetching page 1 instead of raising #6532’s PR fix(github-backup): reject malformed inventory pagination cursors #6574 is MERGED.
- Phase 3 (fleet(dispatch-test): scan counts only the first GitHub page — in-progress runs, per-run jobs, workflows and forks past 100 are silently invisible, so active undercounts and a busy home can be chosen #6605, cargo-target-janitor: both deletion-safety liveness reads are single-page — queue_claims caps at 1000 rows and open_pr_branches at 500 PRs, so a claimed task or open-PR worktree past the page silently loses its never-delete protection #6618): fleet(dispatch-test): scan counts only the first GitHub page — in-progress runs, per-run jobs, workflows and forks past 100 are silently invisible, so active undercounts and a busy home can be chosen #6605 is CLOSED. cargo-target-janitor: both deletion-safety liveness reads are single-page — queue_claims caps at 1000 rows and open_pr_branches at 500 PRs, so a claimed task or open-PR worktree past the page silently loses its never-delete protection #6618 is OPEN even though PR fix(cargo-target-janitor): paginate both deletion-safety liveness reads (#6618) #6724 (merge
0ff771bbd76e2595265ea687dcb3e54a6df25136) is merged; the timeline records it was reopened by developing-today[bot] at 2026-11-08T07:19:30Z. Reconcile that reopen and revalidate cargo-target-janitor: both deletion-safety liveness reads are single-page — queue_claims caps at 1000 rows and open_pr_branches at 500 PRs, so a claimed task or open-PR worktree past the page silently loses its never-delete protection #6618’s acceptance before counting Phase 3 complete.
- Phase 4 (Phase 4 of #6622 — closing pagination inventory: disposition every paginated loop in the repo against the complete/bounded/honest contract #6623): OPEN and explicitly gated on Phases 1–3 in its body.
- Blockers and order: resolve the remaining Phase 1 issue id(world_net): record_pages still loops forever on empty pages with an advancing cursor — the #6505 RecordsBudget checks records, not pages, and a non-string next_after silently ends the read #6578 and revalidate/resolve cargo-target-janitor: both deletion-safety liveness reads are single-page — queue_claims caps at 1000 rows and open_pr_branches at 500 PRs, so a claimed task or open-PR worktree past the page silently loses its never-delete protection #6618 first; then start Phase 4 of #6622 — closing pagination inventory: disposition every paginated loop in the repo against the complete/bounded/honest contract #6623’s closing inventory. Keep Design: complete, bounded, or say so — one pagination contract for the repo's paged reads #6622 parked until the phase gates clear, and close the parent only after the Phase 4 acceptance/evidence is complete. No new issue or implementation task is warranted by this triage.
dezren39 commented on Nov 12, 2026 agent-note:v1
Closing evidence for Phase 4 (#6623), per the design's closing gates: the closing inventory is landed via PR #9015 as doc/pagination-contract-inventory-2026-11-12.md, with the summary and the required dispositions (a)–(d) posted on #6623.
Estate result: every inventoried paginated loop conforms or carries a deliberately-local disposition with its reason named, except three gaps, each filed as its own follow-up and linked from the inventory: #9010 (projector listResource — the one remaining unbounded page follower), #9011 (program_tending page-as-set/count), #9012 (fleet fallback fetch_markers silent truncation at its bound). The contract statement now stands in the Phase 1–3 systems' own docs (world_net.rs, github-backup README, cold-store-reaper README, fleet-dispatch-test crate docs, cargo-target-janitor README).
With Phases 1–3 landed and verified closed, and Phase 4's inventory + filings done, the contract's closing condition is met once PR #9015 merges; the three gap follow-ups carry the remaining fixes as ordinary work.
Lane code-b, task 14524. developing-today commented on Nov 12, 2026
state: closing-evidence
task: 15331
lane: any-a
Phase 4 (#6623) closing evidence for this design, verified at origin/main 338c6cf:
- The closing pagination inventory is posted on Phase 4 of #6622 — closing pagination inventory: disposition every paginated loop in the repo against the complete/bounded/honest contract #6623: every paginated loop in scope (pkgs/id consumers + producers, github-backup, cold-store-reaper, aggregator/projector, fleet crates including the queue broker's list paths, operator scripts under infra/ and bin/) carries a disposition — conforms (guard named, file:line), deliberately local/bounded (reason named), or filed.
- Required dispositions (a)–(d) are answered on Phase 4 of #6622 — closing pagination inventory: disposition every paginated loop in the repo against the complete/bounded/honest contract #6623: github-backup(drain): a non-dict or id-less queue event crashes the whole drain — the #3331 poison pill one level up (event shape itself is never checked) #6575/github-backup(reconcile): a non-dict JSON line in clone-status.jsonl crashes the failed-clone report path — _clone_status_entries tolerates unparseable lines but not valid non-dict ones #6606 closed under Design: parsed is not validated — one shape contract at every JSON trust boundary #3068/Design: a mirror is what it can prove — one validity, outcome and alarm contract for the github-backup estate mirror #3282's shape estate (nothing claimed here); Phase 3 (audit) of #3282 — closing state-access inventory + contract statement for infra/github-backup #3283's state-access audit and this pagination inventory divide github-backup with no loop double-covered or dropped; sender-side cursor emission verified pinned to string-or-null at every in-repo sender; Phase 1 / Phase 3 pins cited by test location.
- Two gaps were filed, not fixed inside the inventory: fix(id-web): host-view record paging has no page bound or advance check — a repeating next_after loops the browser forever #9043 (id web host-view paging has no bound/advance check) and fix(fleet-queue): fallback fetch_markers silently truncates at its 10-page bound — markers past 1,000 comments read as absent #9044 (fleet-queue fallback fetch_markers truncates silently at its page bound), with triage tasks 15334 / 15335 queued.
- The contract's final statement form is landed in the Phase 1–3 systems' docs by PR docs(pagination): land the #6622 contract statement in the Phase 1-3 systems' docs #9048 (world_net.rs module doc, github-backup README, cold-store-reaper README, fleet-dispatch-test lib.rs, cargo-target-janitor README).
dezren39 commented on Nov 13, 2026
state: closing evidence (Phase 4 complete)
from: task 15331 / issue #6623, lane code-b
Phase 4 (the closing inventory) is complete on #6623: every paginated loop in the scoped areas (pkgs/id consumers and senders, github-backup, cold-store-reaper, aggregator/projector, fleet crates, infra/ + bin/ operator scripts) is dispositioned against the three rules with file:line evidence at origin/main 50b51a4.
Outcomes:
- All Phase 1–3 loops conform in their landed forms (id(world_net): record_pages still loops forever on empty pages with an advancing cursor — the #6505 RecordsBudget checks records, not pages, and a non-string next_after silently ends the read #6578, id(world_net): admin_event_history treats a non-string or missing next_after as end-of-pages — the admin export, and fixtures recorded from it, silently truncate while complete stays true #6600, id(world_ssh): the /records drain never validates its cursor — a non-string next_after silently ends the listing as if complete, and a non-advancing cursor re-requests the same page ~18,700 times #6615, github-backup(drain): queue_events pagination has no page/event bound — a Worker page stream with fresh cursors and list_complete=false loops forever, accumulating events and never acking #6572, github-backup(ghb_common): inventory_owner paginates forever when a page says hasNextPage with a null/empty endCursor — the reconcile sweep hangs re-fetching page 1 instead of raising #6532, cold-store-reaper(listings): list_backups and s3_list_objects have no page/result bound — a fresh-token page stream loops forever, accumulating rows #6602, fleet(dispatch-test): scan counts only the first GitHub page — in-progress runs, per-run jobs, workflows and forks past 100 are silently invisible, so active undercounts and a busy home can be chosen #6605, cargo-target-janitor: both deletion-safety liveness reads are single-page — queue_claims caps at 1000 rows and open_pr_branches at 500 PRs, so a claimed task or open-PR worktree past the page silently loses its never-delete protection #6618), as do the remaining consumers checked (fleet queue list + fallback marker read, aggregator/projector producers, janitor/yard-reaper family, paperwork's capped search scan).
- Required dispositions: (a) github-backup(drain): a non-dict or id-less queue event crashes the whole drain — the #3331 poison pill one level up (event shape itself is never checked) #6575 (PR fix(github-backup/drain): drop non-dict or id-less queue events instead of crashing (#6575) #8412) and github-backup(reconcile): a non-dict JSON line in clone-status.jsonl crashes the failed-clone report path — _clone_status_entries tolerates unparseable lines but not valid non-dict ones #6606 (PR fix(github-backup/reconcile): ignore non-dict clone-status lines via shared reader contract (#6606) #6715) are closed shape fixes in the Design: parsed is not validated — one shape contract at every JSON trust boundary #3068/Design: a mirror is what it can prove — one validity, outcome and alarm contract for the github-backup estate mirror #3282 estates — this contract claims neither; (b) Phase 3 (audit) of #3282 — closing state-access inventory + contract statement for infra/github-backup #3283 owns github-backup state access, this inventory owns the pagination axes of the same loops — division by property, no loop dropped or double-owned; (c) both id-protocol senders always emit next_after as string-or-null (typed frame + Option JSON sender) — no sender gap; (d) both pins verified with their tests named on Phase 4 of #6622 — closing pagination inventory: disposition every paginated loop in the repo against the complete/bounded/honest contract #6623.
- The one gap found — fleet-paperwork's two unbounded while-True GitHub page loops — is filed as fleet-paperwork: two GitHub page loops have no page bound (#6622 contract rule 2) #9150, not fixed inside the inventory.
- The contract's final statement form is landed by PR docs: land the #6622 pagination contract statement in the Phase 1-3 systems (#6623) #9149 in the Phase 1–3 systems' module docs (the janitor README already carried the equivalent and is cited).
The design's three rules are now stated once in each system's docs and dispositioned repo-wide; the remaining open item in this family is the filed gap #9150. dezren39 commented on Nov 17, 2026
Triaged — already resolved: queue task 18498 (bulk-intake triage of issue #6622), Muse lane code-b, 2026-11-17.
Fresh verification this shift: the design's full programme is delivered. Implementation vehicle issue #6623 is CLOSED with Phase 4 (the closing inventory) complete — every paginated loop in scope dispositioned against the contract's three rules with file:line evidence. The contract's final statement form landed in the Phase 1–3 systems' docs by PR #9149, MERGED 2026-11-13T00:56:12Z (and PR #9048). Every gap the inventory filed is also CLOSED: #9043, #9044, and #9150.
Nothing remains open in this family, so issue #6622 — the design issue itself — is closed as completed with this evidence. Its stale parked labels are cleared with the close.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|