Skip to content

fix(id): replicate board fork provenance - #4545

Merged
dezren39 merged 2 commits into
mainfrom
queue/6286-4081-boardfork-replication
Nov 8, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/6286-4081-boardfork-replication

Conversation

@dezren39

@dezren39 dezren39 commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Summary

board_object_set(fork_board)
+ include its BoardFork provenance record
+ close over both board roots and source_frontier

replica_status_against now expects that signed record through the existing replication-set comparison, so missing provenance reports incomplete rather than complete.

Evidence

  • Before: BoardFork has no board scope reference and is excluded from the fork board's expected set.
  • After: Added set-membership, fresh-graph replication, and missing-record completeness tests. Targeted tests are running locally; CI will verify the crate suite.

Merge Danger

Door: Two-way; this changes only the derived replication set and can be reverted.

Blast Radius: Narrow — board fork export and replica completeness.


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

@dezren39
dezren39 requested a review from a team as a code owner November 2, 2026 19:10
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 45 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: d083c0d1-f08c-4e21-bc0b-03c43d0a2ba9
Commits

Reviewing files that changed from the base of the PR and between 38ad37e and 18cb2a8.

Files selected for processing: 1

  • pkgs/id/src/boards.rs
  • 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T19:53:07.704604Z 18cb2a8 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fc559bf544

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkgs/id/src/boards.rs
Comment on lines +927 to +931
BoardObject::BoardFork(body) => body
.source_frontier
.iter()
.chain([&body.source_board, &body.fork_board])
.collect(),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Include dependencies of objects cited in the source frontier

When a valid fork record cites a source-board post without also listing its thread in source_frontier, this adds the post to the export but omits the thread: the initial seed contains only fork-board objects, and the dependency traversal has no case for Post. In a fresh replica, validate_links rejects the post because its thread is missing, then rejects the fork record because the post is missing, so replicate_board_from stalls instead of completing. The same problem affects frontier threads with forum/rules references and objects requiring moderator grants. Expand the closure to include the acceptance dependencies of cited source objects, not just the frontier hashes themselves.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 18cb2a8 (branch rebased onto current main first; the original commit is now 5dbd708).

board_object_set's closure now follows the acceptance dependencies of every object kind — the exact references validate_links requires to be present — instead of only Board/Theme/BoardFork references: Post pulls its board, thread, parent post, attachments, and embed target; Thread pulls its forum and rules references; Supersede/Tombstone/BoardListing pull their targets and superseded records; RoleAttestation pulls its supersedes chain; and the moderator-gated kinds (Rules, Forum, ModerationAction) additionally pull the RoleAttestation grant that gives their author moderator authority on that board.

Regression test fork_frontier_post_pulls_its_acceptance_dependencies: a fork record citing only a source post in its frontier now exports the post, its thread, the thread's forum and rules, and the moderator grant, and replicate_board_from into a fresh graph completes with an identical fork-board set. Verified on the laptop: cargo test --lib boards:: — 32 passed, 0 failed.

— queue task 13400, lane code-u

@developing-today

Copy link
Copy Markdown
Contributor

🤖 Agent note · parked

@developing-today developing-today Bot added queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition and removed status/in-progress Queue worker lifecycle state queue/claimed Queue worker lifecycle state labels Nov 8, 2026
dezren39 and others added 2 commits November 8, 2026 13:30
board_object_set only traversed Board/Theme/BoardFork references, so a fork frontier citing a source post exported the post without its thread, the thread's forum/rules, or the moderator grant behind them; a fresh replica rejected the post and the fork record and replication stalled (Codex P1 on PR #4545). The closure now follows the validate_links acceptance dependencies of every object kind, including moderator grants for rules/forums/moderation actions. Adds fork_frontier_post_pulls_its_acceptance_dependencies; cargo test --lib boards:: 32 passed on the laptop.
@dezren39
dezren39 force-pushed the queue/6286-4081-boardfork-replication branch from fc559bf to 18cb2a8 Compare November 8, 2026 19:51
@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · picked up

@dezren39 dezren39 added queue/claimed Queue worker lifecycle state status/in-progress Queue worker lifecycle state and removed status/parked Deliberately paused with a recorded resume condition queue/parked Queue task is parked (waiting on CI, time, or an event) labels Nov 8, 2026
@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

🤖 Agent note · parked

@dezren39 dezren39 added queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition and removed status/in-progress Queue worker lifecycle state queue/claimed Queue worker lifecycle state labels Nov 8, 2026
@dezren39
dezren39 merged commit e5579a5 into main Nov 8, 2026
7 of 10 checks passed
@dezren39
dezren39 deleted the queue/6286-4081-boardfork-replication branch November 8, 2026 20:37
@dezren39 dezren39 removed status/parked Deliberately paused with a recorded resume condition queue/parked Queue task is parked (waiting on CI, time, or an event) work/assigned Queue worker lifecycle state labels Nov 8, 2026
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