Skip to content

Derive explicit session roots and depth through one current store reader - #6905

Merged
Sinity merged 10 commits into
masterfrom
feat/logical-session-lineage-20261112
Nov 12, 2026
Merged

Sinity merged 10 commits into
masterfrom
feat/logical-session-lineage-20261112

Conversation

@Sinity

@Sinity Sinity commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 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-12T15:51:02.036782Z 9a54ce9 Manual request
🔒 Security Review ✅ Completed 2026-11-12T15:53:08.737968Z 9a54ce9 PR opened
ℹ️ 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.

Sinity commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

@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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 9a54ce9ceb

ℹ️ 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".

@Sinity
Sinity merged commit 4063188 into master Nov 12, 2026
1 check passed
@Sinity
Sinity deleted the feat/logical-session-lineage-20261112 branch November 12, 2026 15:58
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