Repository navigation
Match physical work before folding logical sessions - #6998
Merged
Merged
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. |
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.
Session listings currently test the root session's directory and dates and omit work done by a related session elsewhere. Match visible physical sessions first, then return each current logical root once.
physical:true, structure fields and exact references keep the physical view. The fold uses the existing lineage owner, including unresolved and stale-root behavior.Follow spawn, fork, continuation and resume links consistently for measurement, search ranking and snippets; reference links remain separate. Measurement text prints in its logical-day zone while billing windows remain UTC. Failed-command data retains its array shape and gets its text zone from the existing resolved answer context.
The default count changes follow the logical-session design. The row-wise test fixture records spawn #2→#3, resume #2→#4 and fork #5→#6, yielding five logical roots from eight physical sessions. The separately imported example golden retains its actual resolved-edge population (six roots). Generated sessions have no link evidence and remain independent roots even when marked subagent. Physical Boolean/complement tests and the abstract shared-language adapter now declare their physical outer population explicitly; a new control proves that distinct physical matches can place one logical root in both a condition and its physical complement.
Keep the existing indexed physical-selection path for bound predicates, including cwd, similarity and the ranked FTS prefix. Bare default pages only compare each row to its current root, so they stop at the keyset boundary without scanning all matches or descendants. Both paths apply the same outer root visibility rules. No stored state or extra planner is added. Authenticated pre-change query cursors are refused through the existing compiler-version guard.
Individual
whyconditions count physical rows; the logical default reports its folded count through the existing counter. Hidden sessions remain included in measurement populations.Validation: pinned formatting and commit hooks pass. Native Store 841 passed all six existing controls: flat default page work (100→2,000 sessions), bounded ranked prefix, cwd index access without session scan, similarity work tied to the selected rows, page stability across a newly linked child, and one rank score per identity across differing sorts. Required exact-head check44214680614 attempt2 passed3564 tests/skipped10, formatting and both Clippy variants. The unchanged million-message brief passed70.525s after a120.018s timeout on attempt1; the timeout was unchanged. Not every new functional control was separately executed on predecessor/mutation source; the work regressions were measured with unchanged VM-step oracles. live query/day-zone and synthetic-session actions remain release-stage work. No native deployment acceptance is claimed.