Repository navigation
refactor: group shared journal and request contracts - #36882
Merged
nwparker merged 1 commit intoNov 1, 2026
Merged
Conversation
nwparker
force-pushed
the
module-organization/pr54-pr55-session-journal-requests
branch
from
November 1, 2026 04:03
d6dd84b to
1421ab2
Compare
nwparker
force-pushed
the
module-organization/pr54-pr55-session-journal-requests
branch
from
November 1, 2026 04:28
1421ab2 to
fd8d8a3
Compare
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.
ELI5
Organize shared chat journal and request contracts into their owning folders. Preserve the same queue, send, and journal behavior.
What Changed
Move 34 existing files into
src/shared/agent-session/journal/andsrc/shared/agent-session/requests/, updating desktop, server, CLI, mobile, tests and validation scripts atomically. Import concrete defining owners, removing existing forwarding exports. No barrels, forwarding shims or convenience aliases added.Preserve runtime bodies, wire/storage values, namespace identity, mock targets, five timing values and historical released-source paths. Keep all active CI routing after the moves. Add the existing reliability schema’s
currentCommandfield to map the relocated test command while preserving its historical executed command and result. Remove an obsolete type-only import and the journal-store error forwarder, directing its sole test consumer to the defining owner. Move the complete projection turn-verdict test group to its own discovered test file so import growth stays within the existing line budget.Why
Make related contracts easier to locate and review in one coherent ownership batch. This continues the maintainer-requested module organization sequence with larger PRs.
Linked Issue
Maintainer-requested cleanup sequence; no separate issue linked.
Visual Proof
N/A — module organization preserves rendered behavior and interactions.
Testing
The rebase retains the 31 suites deleted upstream by #36877 and its edits to retained tests; no deleted suite is recreated. Existing tests move with their owners; no behavior change needs new assertions. One original settlement helper test was deliberately deleted upstream in #33778 and remains absent. Its reviewed retirement receives zero move credit; detailed evidence remains local.
AI Disclosure
Internal contributor; section not applicable under the repository template.
Review
Two independent full source audits and bounded reviews of each main advance pass. All nine hosted PR workflows pass. The actual squash matches the independently reviewed parent and tree, and the unmodified merge-preservation gate passes. CodeRabbit skips this 1,191-file change because its limit is 300 files; both native audits cover the full scope. Later upstream test cleanups remain preserved, including the 39 suites deleted by #36901.
Agent skill upstream boundary
Notes
Desktop, mobile, remote and mixed-version behavior retained. No platform-specific behavior changes. Existing feature and history holds remain. Local evidence and planning files are excluded from the commit.
Checklist