Skip to content

feat(id): board view slice 4 — bounded paging, cursor, back-references (#13096) - #17385

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/13096-slice4-paging
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/13096-slice4-paging

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Refs #13096 — slice 4 of 4 (bounded paging), following slices 1–3 (#14577, #15884, #17323).

What

  • Budgets (BoardPageBudgets, design §7 defaults): depth 32, 2,000 visited nodes, 8 MiB estimated rendered bytes per page. A node at the depth cap with children renders folded (children withheld, never silently).
  • Cursor (BoardPageCursor): opaque continuation in the FeedCursor shape (version, scope, generation, position) over (topic seq, comment seq) positions — reused, not reinvented (design §3 decision 4). A cursor minted for another board is CursorMismatch; a position that no longer exists is CursorStale. Both are errors, never a silent restart.
  • Back-references: a parent_ref closing a cycle now renders a back-reference node (back_reference = Some(placed ancestor)) inside the subtree instead of dropping the closing edge (§2.4). Cycle members still surface flagged at the root; nothing is dropped.
  • Token-per-page join (sequencing 4←3): project_board_page_with_tokens issues the page's view + per-topic tokens via the attach_tokens factored out of project_board_with_tokens.

Acceptance fixtures (tests/board_view_paging.rs)

  • 2,001-node fixture pages with cursor (2,000 + 1, union in order, no duplicates)
  • 33-deep fixture folds at 32 (deepest rendered node folded, seq 32)
  • Cyclic fixture renders back-references
  • Byte-budget paging (500 B → 3/page, 4 pages, full coverage), cross-topic cursor continuation, foreign/garbage cursor mismatch

Verification: remote dispatch run on this head (link in the issue comment); counts read firsthand from the run log.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T17:45:42Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "1afb80aa405c56b71c8a63176670cb22ba449a92"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

#13096)

Depth/node/byte budgets bound one page (design §7 defaults 32 /
2,000 / 8 MiB); continuation is an opaque BoardPageCursor in the
FeedCursor shape over (topic seq, comment seq) positions; foreign
or stale cursors are errors, never silent restarts. Parent cycles
now render the closing edge as a back-reference node instead of
dropping it. Depth-cap nodes render folded. Token-per-page join:
project_board_page_with_tokens issues page-scoped tokens via the
attach_tokens factored out of project_board_with_tokens.

Acceptance fixtures (tests/board_view_paging.rs): 2,001-node
fixture pages with cursor; 33-deep fixture folds at 32; cyclic
fixture renders back-references; byte-budget and cross-topic
continuation; foreign-cursor mismatch.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 825300a6-8f91-4aa4-9925-ff12ae1089e9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@developing-today-fleet
developing-today-fleet Bot merged commit 10c5b94 into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/13096-slice4-paging branch November 30, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant