Skip to content

impl(id): board view builder — topic/comment tree projection (per #9128 design) #13096

Done

Description

@dezren39

Parent: #9128 (social app reference model design, §5 + §9). Program #9106, epic #9107. Builds on #9127 (append-list protocol) and #9130 (moderation/tombstones).

Implement the board view builder in pkgs/id: given a board object, project its topics append-list and each topic's comments append-list into the thread tree view:

Acceptance: tests over fixture append-lists — nested comments render in append order at each level; a tombstoned comment hides without disturbing sibling order or sequences; a folded subtree's token checks nothing-new against unchanged lists and delta after a new comment lands. Oracle: §5 board semantics in the design record.

Acceptance criteria

  • Delivered: Impl(id): board view builder — topic/comment tree projection (per design(id): social app reference model — feeds, profiles, bulletin boards, freshness token #9128 design) — the outcome named in the title is demonstrably in place.
  • The implementation matches the scope, design record, and constraints stated in this issue body; no stated scope is silently dropped.
  • Verification evidence is recorded on this issue (tests run, commands executed, or measurement output), naming what was checked.
  • Any follow-on gaps found during the work are filed as their own issues and linked from this issue.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Claiming this slice for the xaltha lane — building the board view builder (topic/comment tree projection per #9128 §5/§6/§7) in pkgs/id. PR to follow.

  3. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Design record posted: doc/2026-11-24T06-00-00Z_design_id13096_board_view_builder.md via PR #14108 (branch design-13096-board-view-builder). Covers all 9 sufficient-design points (§§1–9 + §10 conformance map): parent_ref tree + append-seq order, pending structurally absent, tombstone filtering without renumbering, per-subtree freshness tokens, §7-bounded paging with FeedCursor-shape continuation; 4 dependency-ordered build slices (2←1, 3←2, 4←1+3) with acceptance criteria; 5 open questions with named deciders.

  4. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Triage verdict (oc-code-02, 2026-11-24): design record merged via #14108. Implementation not yet started (4 build slices in the design: 2←1, 3←2, 4←1+3). Not resolved in substance. Routing the first build slice as a scoped follow-on; this issue stays open until slices land. Tracking: #14158.

  5. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Second-pass verify-and-route (queue task 23135, lane oc-code-01, 2026-11-24). Fresh state:

    • Issue OPEN, no hold labels. Design record merged via PR docs(13096): board view builder tree-projection design #14108 (2026-11-24T08:37:48Z): doc/2026-11-24T06-00-00Z_design_id13096_board_view_builder.md, 4 dependency-ordered build slices.
    • Slice-1 entry criteria met on origin/main: impl(id): freshness token + frontier check in id-core (per #9128 design) #13094 CLOSED; SocialObject topic/comment types present (pkgs/id/crates/id-core/src/graph/social.rs); no board_view.rs module yet; no open PR refs; no live task covers the issue (the 10:36Z triage follow-on never materialized as a live packet).
    • Verdict: not resolved in substance — implementation not started. Routed scoped follow-on: queue task 23444 (feature_slice, slice-2 key; slice-1 key held by done design task 21666) implementing design build-slice 1 (forest projection core + fixture tests). Slices 2-4 route after slice 1 lands (2<-1, 4<-1; 3<-2).
  6. added a commit that references this issue on Nov 24, 2026
  7. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Slice 1 (forest projection core) is in PR #14577 (branch oc-code-08/13096-slice1, commit de73253bde5), not closing this issue.

    • board_view.rs: project_board projects accepted topics + per-topic comments into the thread forest (parent_ref assembly, sibling accept-seq order, pending structurally absent via AcceptedEntry).
    • Unresolvable parents (absent, self, cross-topic, cyclic) attach at the topic root with orphaned = true; cycles and deep nesting cannot hang or overflow the stack.
    • tests/board_view_forest.rs: 5 fixture tests green (nested append order per level, orphans, cycles, duplicates, topic order).
    • cargo test -p id-core: 906 passed, 0 failed.
    • Doctest step not run: system rustdoc is 1.99.0 against 1.99.1 deps (environment drift). Clippy errors remaining on the branch are in id-caps/id-events, not in this change.

    Slices 2 (tombstones), 3 (subtree tokens) and 4 (paging) stay open under this issue.

  8. added a commit that references this issue on Nov 26, 2026
  9. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Slice 1 landed: PR #14577 merged (merge commit cfee3d4, 2026-11-26T15:50:07Z) via queue task 24050 (lane XT shepherd).

    Shepherd notes:

    • No review findings to answer: zero reviews, zero inline comments; the only PR comment was CodeRabbit's rate-limit notice.
    • Mergeability re-checked immediately before merging: MERGEABLE / clean at head 08f75ab (branch was 1 ahead, 1865 behind main dfee507; board_view.rs was absent on main — not superseded).
    • One fix was needed against current main: SocialObject gained target_ref on main (social_envelope, impl(id): social object envelope + profiles in id-core (per #9128 design) #13095) after the branch diverged, and the slice-1 test fixtures construct SocialObject literally, so they would not compile on main. Added target_ref: None to both fixture constructors in commit 08f75ab (Git API contents route). Other symbols used by the slice (EnvelopeId::from_content_id, HashProfile::RawBlake3_256, SocialObjectKind, traverse) verified still present on main.
    • Verification fallback (named): fleet Actions exec dispatch failed with a transport certificate error (UnknownIssuer), so no pre-merge exec run; per house doctrine CI runs on main — the merge push triggered main run 45852994777 (id docs) at 15:50:11Z, queued at check time. The PR's own recorded verification at authoring time was cargo test -p id-core: 906 passed including the 5 board_view_forest fixture tests.
    • This issue stays OPEN by design: PR used Refs (not Closes); slices 2 (tombstones), 3 (subtree tokens) and 4 (paging) remain.
  10. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Triage verdict — queue task 24601 (oc-code-03, 2026-11-26)

    Verdict: still live; slice 1 is landed, remaining design work needs implementation. Fresh readback confirms PR #14577 merged the forest projection core, while this tracker still requires tombstone filtering, per-subtree freshness tokens, and bounded cursor paging. The prior implementation task #23444 is done; no live task or open implementation PR covered the next slice.

    Routed the next dependency-ready slice (tombstone-aware projection, preserving append sequence and sibling order) as task #25120. Freshness-token and paging slices remain sequenced after this work per design #14108. This issue stays open as the tracker.

    🤖 Agent note · triage

    • Agent: OpenCode lane oc-code-03
    • Task: 24601
    • Outcome: routed to task #25120
  11. 8 remaining items

  12. added
    kind/feature
    on Nov 29, 2026
  13. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): recheck of this issue (body, all comments, labels, blocker edges).

    STRENGTHS: The projection semantics are pinned to the design record (§5 of #9128 as oracle) with the subtle cases in scope: pending entries never appear, tombstoned entries filter without renumbering, and each subtree carries its freshness token so collapsed views re-check via the nothing-new path instead of refetching. Acceptance is fixture-test-shaped with the oracle named.

    GAPS: None in labels (complete: kind/feature, priority/normal, status:in-review, queue/parked, epic/id-program).

    FIXES I APPLIED: None needed. Progress state for the picker-up: slice 1 (forest projection core) merged in PR #14577; slice 2 is open as PR #15884 (tombstoned topics/comments hidden, visible replies to tombstoned parents retained as flagged orphan roots, append order preserved) and PR #15935 is open stacked on it — both recorded mergeable at the 2026-11-27 recheck.

    REMAINS: Merge PRs #15884 and #15935 (in stack order), then the remaining acceptance tests (freshness-token nothing-new/delta behaviour, cursor paging per §7 defaults).

  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Audited live on 2026-11-29 against the house label taxonomy: details, labels, blockers, priority.

    Gaps found: no ## Acceptance criteria section in the body
    Strengths found: detailed body with scope and context a picker-up can start from; links a parent issue and/or design record; active discussion: 12 recent comment(s) skimmed
    Actions taken by the census: appended ## Acceptance criteria section to the body (original text unchanged).

    Priority checked: the current priority label matches the census priority bands; no reprioritization made.

  15. added
    effort/l
    and removed on Nov 29, 2026
  16. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Claim — lane 0900-BL (xaltha, wave 0900, 2026-11-30): slice 3 (subtree tokens) of #13096.

    Premise checked firsthand: body + all 13 comments + the design record (doc/2026-11-24T06-00-00Z_design_id13096_board_view_builder.md §5). Slice 1 (forest core, PR #14577) and slice 2 (tombstone filtering, PR #15884) are MERGED (verified via API this lane). Entry criteria for slice 3 are in place: #13094 token logic is on main (crates/id-core/src/freshness.rs: FreshnessToken::issue, check_freshness, Frontier/InputFrontier::list) and #13095 types landed. No live claim on the issue (latest activity is the 2026-11-29 census).

    Slice taken: per-topic + view token issuance in graph/board_view.rs — frontier built from the topics list mark plus each rendered topic's comments-list mark ({head_seq, tombstone_revision} per design §2.2, over the filtered projection per §5 sequencing 3←2), tokens issued via #13094, a folded-subtree render (a comment subtree replaced by its token alone), and the §6.3 check wiring (check_freshness over a subtree token). Acceptance = the issue's test 3: a folded subtree's token checks nothing-new against unchanged lists, and delta after a new comment lands. Slice 4 (paging/cursor) stays open on this issue.

  17. added 2 commits that reference this issue on Nov 30, 2026
  18. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Slice 3 landed — lane 0900-BL (2026-11-30).

    PR #17323 MERGED (merge commit 75b79dd, head 1f4fa96): project_board_with_tokens issues one FreshnessToken for the whole view plus one per rendered topic subtree over the filtered projection's frontier; fold_comment_subtree renders a comment subtree as its token alone; check_board_token wires the #13094 §6.3 check. View ids = hash(board, projection, policy revision) per record §6.1.

    Verification (log-read, not labels): run 46471699050 (developing-today-forks/fleet, nix develop form + CARGO_HOME=/tmp) on exact head — cargo test -p id-core --test board_view_tokens --test board_view_forest: 6 passed / 0 failed in each suite, including the issue's acceptance test 3 (folded_subtree_token_checks_nothing_new_then_delta_after_new_comment) and the slice-1/2 forest suite unchanged. Two earlier dispatches (46468072670, 46469279810) were environmental no-verdicts — the runner's cargo/rustup caches live in a root-owned checkout dir the vscode user cannot write; recorded on PR #17323 (comment 7286053376).

    Remaining on #13096: slice 4 only — bounded paging (depth/node/byte budgets, opaque FeedCursor continuation, back-reference rendering for cycles; acceptance: 2,001-node fixture pages with cursor, 33-deep fixture folds at 32, cyclic fixture renders back-references). Claim released.

  19. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Claim — lane 0900-CH (xaltha, wave 0900, 2026-11-30): slice 4 (bounded paging) of #13096.

    Premise checked firsthand: body + all comments read; true latest comment is lane 0900-BL's slice-3 resolution (7286548047, 2026-11-30T17:35:32Z) — no slice-4 claim exists. Slices 1–3 merged (#14577, #15884, #17323 @ 75b79dd). Slice 4 per design record §5: depth/node/byte budgets, opaque cursor continuation (FeedCursor shape), back-reference cycles, orphan/cross-topic rules; acceptance fixtures: 2,001-node fixture pages with cursor; 33-deep fixture folds at 32; cyclic fixture renders back-references. Implementing in a worktree following the established slice pattern; verification by remote dispatch with counts read firsthand.

  20. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Slice 4 landed — lane 0900-CH (2026-11-30). #13096 is now complete: all four design slices are merged.

    PR #17385 MERGED (merge commit 10c5b94, head 8474ed8): project_board_page bounds one page by depth/node/byte budgets (§7 defaults 32 / 2,000 / 8 MiB; a node at the depth cap renders folded), continuation is the opaque BoardPageCursor in the FeedCursor shape over (topic seq, comment seq) positions — foreign cursors are CursorMismatch, vanished positions CursorStale, never a silent restart; parent cycles render the closing edge as a back-reference node (back_reference); project_board_page_with_tokens joins tokens per page (4←3) via the factored attach_tokens.

    Verification (log-read firsthand, not labels): dispatch run 46483851761 on the merge commit — board_view_paging 6/6, board_view_tokens 6/6, board_view_forest 6/6, all test result: ok. The acceptance fixtures named in the design record §5 slice 4 all pass: 2,001-node fixture pages with cursor, 33-deep fixture folds at 32, cyclic fixture renders back-references.

    Transparency on the path here: PR #17385 was merged at 18:02Z by a sweep while this lane's pre-merge verification dispatches were dying environmentally (runs 46476787124/46478375850: cargo could not fetch the p2panda-auth git dependency — no test executed, no verdict; runs 46480522611/46481681514/46482596048 then failed target checkout because the branch was already merged and deleted). The post-merge run 46483851761 above is the firsthand verdict on the exact merged head, and it is green — no fix-forward needed.

    Closing as completed: slices 1–4 (#14577, #15884, #17323, #17385) deliver the board view builder per the #9128 §5 oracle — tree projection, tombstone filtering without renumbering, per-subtree freshness tokens, bounded cursor paging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lepic/id-programkind/featureprimary-parent/id-programpriority/normalqueue/parkedstatus/in-reviewstray-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions