Repository navigation
Derive explicit session roots and depth through one current store reader - #6905
Conversation
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. |
|
@codex review Please focus on descendant invalidation after link retraction or endpoint arrival, and parity between cached and current root/depth reads when derivation overlaps those changes. The remaining logical-listing and message-composition callers are outside this finite structural slice. |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Root and depth queries currently walk only spawn links and silently stop at depth 1,000. This change derives them from explicit spawn, fork, continuation and resume ancestry through one indexed store-owned traversal, shared by the stored product, current reader and query fields.
Missing or stub parents return unknown root/depth with root_pending; conflicting parent identities and cycles return typed issues without choosing a parent or cycle root. Different anchors to one parent remain recorded alternatives and have the same structural depth. References and physical copied-prefix facts do not create ancestry. Transactional marks invalidate only affected descendants, and reads compute the current value through the same traversal while derivation is behind.
The product declaration, generated reference and owning session/measure docs are updated together. The stale Morrow example now keeps copy-only session #4 separate from provider ancestry. Default logical listings, family/successor consumers, shared message composition and assertion target-state behavior remain subsequent parts of the existing lineage task.
Validation: required43251136233/job131296919373 passed on exact9a54ce9ceb469fb276e56a1a9d18a3a65cb4edfb:3231 passed,0 failed,0 flaky,5 baseline skips; strict Clippy both configurations/all targets. The check took680.0s (test build150.8s/tests450.9s); the hosted job took12m32s. Focused187/polylogue-focused-140c2ec8 passed78/78 lineage, derivation and existing unknown-value controls (build76.5s/tests4.0s). Exact-head code and security reviews completed with no code findings or finding comments. This changes the derived index schema. Runtime adoption is separate from this source change.