Repository navigation
feat(id): social graph traversal profile + unified feed ledger (#10252) - #13382
Merged
Merged
Conversation
|
Warning Review limit reachedYou'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 18 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 23, 2026
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.
Implements #10252 (design doc §7, statements S5.30–S5.36 and S5.40) in id-core, under Drew's batch approval of the flag holds (2026-11-23). Upstream #10237 is closed as completed; #10196 and #10222 were already closed.
What
pkgs/id/crates/id-core/src/graph/social.rs(new): the social object model over existing typed terms —SocialObject(topic / comment / reaction / feed-entry / profile kinds, author, parent and content references, schema version, succeeds link) — plus:traverse(): the traversal profile of S5.33–S5.36. Iterative DFS pre-order, children in version-DAG ref order, first-listing-wins dedupe, back-reference marks on cycles and repeated listings, depth / visited-node / byte budgets (defaults 32 / 2,000 / 8 MiB per §12) with truncation marks, and authorization as a hard boundary (an unauthorized object is neither returned nor traversed through).FeedLedger: the unified feed ledger of S5.40. Per-scope (server, tenant, query fingerprint) append-only projection sequences drawn from a high-water mark that never reuses a number across generation rotation or restart restore; exhaustion stops allocation instead of wrapping.FeedCursorpins the per-authority source frontiers it was issued at, sosince/beforepage in (sequence, entry) order inside one pinned snapshot; scope mismatch and generation mismatch are distinct errors.pkgs/id/crates/id-core/tests/social_graph_traversal.rs(new): the issue's named oracle. An independent recursive reference model in the test file implements the same documented rules; fixtures cover nested pre-order, cycle back-references, repeated-listing dedupe, depth/node/byte truncation, unauthorized exclusion, missing root, the §7 two-authorities-at-one-frontier example (distinct sequences for one source position), pinned-snapshot paging, rotation expiry, scope mismatch, and sequence exhaustion.pub mod social;ingraph/mod.rs; the test path registered in.github/test-suite-registry.json(id.rust.id-core.integration).Verification
Laptop route (pkgs/id dev shell, sccache bypassed — the shared sccache server was stalled at ~9 compiles/min during the landing wave):
cargo test -p id-core --test social_graph_traversal— 12 passed, 0 failed. rustfmt applied to both new files; no warnings from the new files. Remote dispatch was not used for this oracle after the #10237 dispatch attempt failed in the container's command step (the #13159-family environment gap).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.