Repository navigation
refactor(shared): organize session contracts and projections - #36979
Merged
nwparker merged 5 commits intoNov 1, 2026
Merged
Conversation
nwparker
added a commit
that referenced
this pull request
Nov 2, 2026
…fines them v1.4.246 is the first release cut after #36909, #36979, #37036 and #37070 moved the agent-session modules, so suites that imported the old paths from the newest release failed with ERR_MODULE_NOT_FOUND for every PR running cross-version wire. importReleaseCheckoutModule now resolves a moved module to the path the checked-out release ships, from one table of current and earlier locations, so both the rolling baseline and older pinned refs load. The released-chat writers drop their own per-module existsSync fallbacks for it. v1.4.246 also ships outcome storage, so it reads chats this build writes and closes its own rows with the outcomes marker. The downgrade test pins its refusing window to the two releases before outcome storage, and the upgrade test leaves the marker to the outcome reader, which restoreJournal checks.
nwparker
added a commit
that referenced
this pull request
Nov 2, 2026
…fines them (#37297) * test(cross-version): load moved modules from wherever each release defines them v1.4.246 is the first release cut after #36909, #36979, #37036 and #37070 moved the agent-session modules, so suites that imported the old paths from the newest release failed with ERR_MODULE_NOT_FOUND for every PR running cross-version wire. importReleaseCheckoutModule now resolves a moved module to the path the checked-out release ships, from one table of current and earlier locations, so both the rolling baseline and older pinned refs load. The released-chat writers drop their own per-module existsSync fallbacks for it. v1.4.246 also ships outcome storage, so it reads chats this build writes and closes its own rows with the outcomes marker. The downgrade test pins its refusing window to the two releases before outcome storage, and the upgrade test leaves the marker to the outcome reader, which restoreJournal checks. * test(cross-version): find a moved module by name in the release instead of a path table A table of earlier paths is a list of stale src literals the path-literal ratchet rightly refuses, and needs an entry for every future move. The release checkout itself says where it ships each module: the one file with that name under the same source root. Prunes the three released-chat-writers entries the ratchet baseline grandfathered. * test(cross-version): pin the chat-upgrade writers to the releases before outcome storage v1.4.246 keeps a chat in outcome tables, so its rows hold only the marker and there is no row upgrade to carry on; the newest release stays the reader this build must match.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 2, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
pushed a commit
to audichuang/orca
that referenced
this pull request
Nov 2, 2026
…fines them (stablyai#37297) * test(cross-version): load moved modules from wherever each release defines them v1.4.246 is the first release cut after stablyai#36909, stablyai#36979, stablyai#37036 and stablyai#37070 moved the agent-session modules, so suites that imported the old paths from the newest release failed with ERR_MODULE_NOT_FOUND for every PR running cross-version wire. importReleaseCheckoutModule now resolves a moved module to the path the checked-out release ships, from one table of current and earlier locations, so both the rolling baseline and older pinned refs load. The released-chat writers drop their own per-module existsSync fallbacks for it. v1.4.246 also ships outcome storage, so it reads chats this build writes and closes its own rows with the outcomes marker. The downgrade test pins its refusing window to the two releases before outcome storage, and the upgrade test leaves the marker to the outcome reader, which restoreJournal checks. * test(cross-version): find a moved module by name in the release instead of a path table A table of earlier paths is a list of stale src literals the path-literal ratchet rightly refuses, and needs an entry for every future move. The release checkout itself says where it ships each module: the one file with that name under the same source root. Prunes the three released-chat-writers entries the ratchet baseline grandfathered. * test(cross-version): pin the chat-upgrade writers to the releases before outcome storage v1.4.246 keeps a chat in outcome tables, so its rows hold only the marker and there is no row upgrade to carry on; the newest release stays the reader this build must match. (cherry picked from commit bdd997f)
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 3, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 4, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 5, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 5, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 6, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 7, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 8, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 8, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 10, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 10, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 12, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 13, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 14, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 16, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 18, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 18, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 19, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 20, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 20, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 20, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
audichuang
added a commit
to audichuang/orca
that referenced
this pull request
Nov 21, 2026
Upstream stablyai#36979 moved the structured agent session capability constants under src/shared/agent-session/, and stablyai#36577 replaced DiffSectionBody's diffEditorFontSize with typography. The two context-menu fork tests type their hoisted item list instead of asserting it, which the v1.4.246 casting gate flags.
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.
Move 79 shared session contract, capability, approval/context, and view/projection files into
src/shared/agent-session/, updating callers, mocks, dynamic readers, and active tooling references together.Remove 11 forwarding export declarations covering 55 bindings. Consumers import concrete defining owners directly. Preserve function bodies, runtime identities, wire names, and the upstream-deleted draft hand-off test's absence.
Retarget stale CI routing prefixes and tighten one existing flaky-pattern allowance from two occurrences to one.
Validation: