Skip to content

feat(id-core): board view subtree freshness tokens (#13096 slice 3) - #17323

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

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/13096-slice3-tokens

Conversation

@developing-today-fleet

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

Copy link
Copy Markdown
Contributor

Refs #13096 (slice 3 of 4 in the design record; the issue stays open for slice 4 paging/cursor).

What

Slice 3 (subtree tokens) of the board view builder, per doc/2026-11-24T06-00-00Z_design_id13096_board_view_builder.md §2.2/§2.3 step 7/§5:

  • project_board_with_tokens — same forest as slices 1–2, plus token issuance: one FreshnessToken for the whole view (frontier = topics-list mark + every rendered topic's comments-list mark) and one per rendered topic subtree, via the impl(id): freshness token + frontier check in id-core (per #9128 design) #13094 logic already on main. Tokens cover the filtered projection (sequencing 3←2): tombstoned seqs stay inside head_seq, so a later tombstone advances the revision and flips nothing-new to delta.
  • fold_comment_subtree — a comment subtree renders as its token alone, under the comment subtree's own view id.
  • check_board_token + comments_frontier/board_frontier — the §6.3 check wiring for board tokens; forged/foreign/other-view tokens are NoToken, never an error (§6.5).
  • View ids are hash(board, projection, policy revision) per record §6.1 (board_view_id / topic_view_id / comment_view_id); a policy change mints new ids.
  • Issuance fails (BoardTokenError::MissingCommentsMark) rather than minting a partial token when a rendered topic has no mark.
  • Slices 1–2 types gain token: Option<FreshnessToken> fields (None in the token-less projections); no existing behaviour changes.

Verification

Remote dispatch on the exact head: run 46468072670 (developing-today-forks/fleet) — cargo test -p id-core --test board_view_tokens --test board_view_forest. Conclusion + log lines recorded on #13096 when it lands; merge on log-verified success (full diff read by the lane).

{
  "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-30T16:59:30Z",
    "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.

project_board_with_tokens issues one FreshnessToken for the whole
view and one per rendered topic subtree over the filtered
projection's frontier (topics mark + per-topic comments marks,
{head_seq, tombstone_revision}); fold_comment_subtree renders a
comment subtree as its token alone; check_board_token wires the
#13094 §6.3 check for board tokens. Slices 1-2 projections now
carry token: None fields. Acceptance tests: issuance shape,
nothing-new then delta after a new comment, tombstone-revision
delta, missing-mark failure, foreign-token NoToken.

Refs #13096 (slice 4 paging stays open on the issue).
@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: 1dff397f-c4e7-41fb-8807-e857df665e62

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

Copy link
Copy Markdown
Contributor Author

Verification status (lane 0900-BL): two dispatches so far are environmental no-verdicts, neither reached the test code —

  • Run 46468072670 (plain cargo form): cargo died before compiling — could not create temp file /__w/fleet/fleet/.fleet/cache/rustup/tmp/...: Permission denied (runner CARGO/RUSTUP cache lives in a root-owned checkout dir; the vscode runner user cannot write it).
  • Run 46469279810 (nix develop form): same wall via the git-dependency cache — failed to create directory /__w/fleet/fleet/.fleet/cache/cargo/git/db/p2panda-... while fetching id-core's p2panda git dependency.

Re-dispatched as run 46471699050: nix develop form + CARGO_HOME=/tmp/id-cargo so all cargo caches are runner-writable. Merge waits on that run's log.

@developing-today-fleet
developing-today-fleet Bot merged commit 75b79dd into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/13096-slice3-tokens branch November 30, 2026 17:34
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