Skip to content

Match physical work before folding logical sessions - #6998

Merged
Sinity merged 4 commits into
masterfrom
fix/logical-sessions-by-default
Nov 18, 2026
Merged

Sinity merged 4 commits into
masterfrom
fix/logical-sessions-by-default

Conversation

@Sinity

@Sinity Sinity commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

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 why conditions 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 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
🔒 Security Review ✅ Completed 2026-11-18T00:03:46.288383Z e73724c 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
Sinity merged commit 5057ebd into master Nov 18, 2026
1 of 2 checks passed
@Sinity
Sinity deleted the fix/logical-sessions-by-default branch November 18, 2026 01: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