Repository navigation
feat(id): board view slice 4 — bounded paging, cursor, back-references (#13096) - #17385
Merged
Merged
Conversation
#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.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #13096 — slice 4 of 4 (bounded paging), following slices 1–3 (#14577, #15884, #17323).
What
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 rendersfolded(children withheld, never silently).BoardPageCursor): opaque continuation in theFeedCursorshape (version, scope, generation, position) over (topic seq, comment seq) positions — reused, not reinvented (design §3 decision 4). A cursor minted for another board isCursorMismatch; a position that no longer exists isCursorStale. Both are errors, never a silent restart.parent_refclosing 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.project_board_page_with_tokensissues the page's view + per-topic tokens via theattach_tokensfactored out ofproject_board_with_tokens.Acceptance fixtures (
tests/board_view_paging.rs)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-botwith what you need.