You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor: group agent launch and workspace hook owners - #37612
Agent launch trust/preflight rules and workspace setup/archive hooks currently share the main-process root with unrelated services. Group 39 source/test files under agent-launch, workspace-hooks and their existing concrete owners, and retarget callers and mocks atomically.
Moved code imports Git command operations, WSL paths and agent contracts from their defining modules. Remove the hooks parser forwarding export and import the shared YAML parser directly; preserve the existing hoisted mock identities.
Validation: 75 focused test files (2,472 assertions passed, five skipped), six CI scope-routing assertions, node typecheck, path-literal ratchet and the 154-gate reliability-manifest check passed. Two independent exact-head source/boundary audits passed, then both approved the rebase. On the final head, pnpm check:changed --maxWorkers=2 --timeout=2 passed all 40 non-unit checks; the broad related-test selection exceeded the declared two-minute limit. Its unit gate is not reported as green. Focused test evidence remains applicable because post-rebase code/mocks are byte-identical. CI must pass before merge.
Retarget the trust CI scope prefix and active reliability paths; preserve original historical command fields and link their current command.
Follows merged #37606 and is rebased onto its main merge. This batch reduces direct main-root files from 369 to 330.
No actionable comments were generated in the recent review.
Walkthrough
The changes update imports, test mocks, and CI and configuration references to match relocated agent-launch, workspace-hooks, Codex configuration, provider-account, and runtime modules. The workspace-hooks module no longer re-exports parseOrcaYaml; tests and mocks now import it from shared/orca-yaml. The described runtime logic and tracked counts remain unchanged.
Merge Risk: Minimal · up to 4873a
The relocation has no established merge-blocking defect; CI should pass before merging.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description covers the main sections a reviewer needs. It has a summary of the file moves, the reasons (the main-process root holds unrelated services), validation evidence, and notes on the CI sc…
Add the missing template sections: an ELI5 explanation in plain language; a What Changed section that states the before and after behavior and the mechanism; a Why section that explains why this grouping beats the alternatives; a Linked Iss…
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title "refactor: group agent launch and workspace hook owners" matches the main change. The PR moves 39 source and test files into src/main/agent-launch/ and src/main/workspace-hooks/ and retarget…
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "refactor: group agent launch and workspace hook owners" matches the main change. The PR moves 39 source and test files into src/main/agent-launch/ and src/main/workspace-hooks/ and retargets their imports and mocks. The title is short, single-sentence, and specific. It does not mention the parser export removal or the CI and reliability config updates, which is acceptable because the title need not cover every detail.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 50 files. (75 skipped: 6 unsupported, 69 over the file limit.)
Full details: Description check
Explanation
The description covers the main sections a reviewer needs. It has a summary of the file moves, the reasons (the main-process root holds unrelated services), validation evidence, and notes on the CI scope prefix and reliability path updates. It also reports a partial validation: the broad related-test selection exceeded the time limit and the unit gate is not reported green. The template sections ELI5, Visual Proof, Linked Issue, Risk level, Testing checkboxes, and Checklist are missing or unfilled. There is no 'Fixes #' issue link, no risk level, and no explicit statement about the user-facing before and after. The template asks for these. The description is mostly complete on substance but lacks several required template sections.
Resolution
Add the missing template sections: an ELI5 explanation in plain language; a What Changed section that states the before and after behavior and the mechanism; a Why section that explains why this grouping beats the alternatives; a Linked Issue entry (replace the empty 'Fixes #' with a real issue, or note that none applies if the PR is by a maintainer); a Visual Proof entry, which can be 'N/A' with a short reason since this is a structural refactor; a Testing section that lists the platforms actually tested and ticks the manual or automated test checkboxes; a Risk section with a Level (Low, Medium, or High), the riskiest part of the move, and how to back it out with a revert; and the Review, Agent skill upstream boundary, and Checklist sections. Also state whether the 'pnpm test' unit gate was run, since the description says it is not reported green.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Some tools did not complete. Review the errors below.
ast-grep (0.51.1)
ast-grep could not parse rule config: /ast-grep-rules/ast-grep-essentials/rules/ruby/security/insecure-randomness-token-rand-ruby.yml
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
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
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.
Agent launch trust/preflight rules and workspace setup/archive hooks currently share the main-process root with unrelated services. Group 39 source/test files under agent-launch, workspace-hooks and their existing concrete owners, and retarget callers and mocks atomically.
Moved code imports Git command operations, WSL paths and agent contracts from their defining modules. Remove the hooks parser forwarding export and import the shared YAML parser directly; preserve the existing hoisted mock identities.
Validation: 75 focused test files (2,472 assertions passed, five skipped), six CI scope-routing assertions, node typecheck, path-literal ratchet and the 154-gate reliability-manifest check passed. Two independent exact-head source/boundary audits passed, then both approved the rebase. On the final head,
pnpm check:changed --maxWorkers=2 --timeout=2passed all 40 non-unit checks; the broad related-test selection exceeded the declared two-minute limit. Its unit gate is not reported as green. Focused test evidence remains applicable because post-rebase code/mocks are byte-identical. CI must pass before merge.Retarget the trust CI scope prefix and active reliability paths; preserve original historical command fields and link their current command.
Follows merged #37606 and is rebased onto its main merge. This batch reduces direct main-root files from 369 to 330.