Skip to content

refactor(shared): organize session contracts and projections - #36979

Merged
nwparker merged 5 commits into
mainfrom
module-organization/pr59-pr60-pr61-pr63-session-contracts
Nov 1, 2026
Merged

nwparker merged 5 commits into
mainfrom
module-organization/pr59-pr60-pr61-pr63-session-contracts

Conversation

@nwparker

@nwparker nwparker commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • 570 focused root tests, 47 cross-version tests, and 13 mobile tests passed. After integrating current main, 30 focused root image tests, 17 mobile image tests, node/renderer/mobile app/test typechecks, and composed-file lint/format passed again.
  • Node, renderer/web, CLI, and mobile app/test typechecks and the required E2E typecheck ratchet passed. The raw E2E helper's eight imported cloud/mobile diagnostics match a pristine-base control.
  • Formatting, lint, import boundaries, path/max-lines ratchets, test discovery, reliability manifest, and changed-code quality passed. Global formatting passed across 40,884 files.
  • Independent source audits checked bodies, imports, runtime identities, and every mechanical residue occurrence. Current-main caller compositions preserve its added behavior. No forwarding shims or barrel exports added.

@nwparker
nwparker merged commit 89f9ce0 into main Nov 1, 2026
134 of 136 checks passed
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.
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