Skip to content

Design: complete, bounded, or say so — one pagination contract for the repo's paged reads #6622

Closed
9 of 9 issues completed

Description

@dezren39

Design: 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:

The contract

A paged read is complete, bounded, or says so. Every paginated consumer owes three things at the read site:

  1. 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).
  2. 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.
  3. 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

Phased breakdown (sub-issues of this issue)

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

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.

Activity

  1. added
    epicMeta-issue grouping multiple items (org Project Type=Epic)
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    on Nov 6, 2026
  2. developing-today commented on Nov 6, 2026

    @developing-today
    Contributor
  3. added sub-issues on Nov 6, 2026
  4. dezren39 commented on Nov 6, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · design-architect pass 63 — design filed this pass

  5. 56 remaining items

  6. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note — task 13602 triage (verified against current main)

  7. dezren39 commented on Nov 12, 2026

    @dezren39
    MemberAuthor

    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.

  8. developing-today commented on Nov 12, 2026

    @developing-today
    Contributor

    state: closing-evidence
    task: 15331
    lane: any-a

    Phase 4 (#6623) closing evidence for this design, verified at origin/main 338c6cf:

  9. dezren39 commented on Nov 13, 2026

    @dezren39
    MemberAuthor

    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:

    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.

  10. added a commit that references this issue on Nov 13, 2026
  11. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    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.

  12. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

epicMeta-issue grouping multiple items (org Project Type=Epic)epic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingsource/design-architectFiled by the repo design architect jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions