Skip to content

refactor: group shared agent and skill contract owners - #42620

Merged
nwparker merged 2 commits into
mainfrom
module-layout-v2/shared-agent-contracts-d5a90c0d
Nov 15, 2026
Merged

nwparker merged 2 commits into
mainfrom
module-layout-v2/shared-agent-contracts-d5a90c0d

Conversation

@nwparker

@nwparker nwparker commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Group shared agent/session, launch, hook, status and skill contracts beside their concrete owners so the shared root is easier to navigate.

Files Added Deleted Net
Test 141 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​319 $\color{#cf222e}{\Huge{\mathbf{−}}}$​817 $\color{#cf222e}{\Huge{\mathbf{−}}}$​498
Prod 865 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1311 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1216 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​95

What Changed

  • Move 183 whole source/test programs and the canonical bundled-skill rename JSON. Update 1,322 module requests across 1,000 surviving files.
  • Replace borrowed bindings with direct defining-owner imports and retire forwarding statements. Preserve implementation bodies, resource paths, module identity and initialization order.
  • Apply repository test policy: remove 18 authored registrations/28 finite potential cases across two whole suites and seven partial programs, plus two orphan support/resources. This removes coverage without replacement. Keep upstream test deletions and restorations intact.

Why

Continue the larger folder cleanup after #42528. Direct shared-root files decrease from 916 to 729 against pinned main af82fa86; the broader shared-root review remains open.

Testing and review

  • Independent source, effects and test-policy audits passed for HEAD 099b599e. All 184 moves and 27 source decisions remain intact; the sole rebase conflict preserves main's deletion of SkillsPage.test.tsx.
  • All current-head hosted checks passed: 88 successful/15 skipped. Full PR workflow 43697865256 passed with 38 successful/10 skipped jobs, including the required aggregate.
  • Hosted CI tested merge tree 74848620 with earlier main fbeb88d6. Latest main af82fa86 merges cleanly into 528d9113. Separate final source/effects/test reviews preserve all 127 incoming paths, including 27 deletions, with no overlapping cleanup changes.
  • Fresh focused HEAD validation passed 75 files/368 cases, with four skipped and zero failed. Fresh latest-tree validation separately passed three plugin-validation suites/12 cases and four typecheck projects. Earlier prospective browser-startup validation passed eight suites/26 cases on its pinned tree; the intervening 17-file delta preserves those owners unchanged.
  • Final mandatory ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=4 --timeout=5: 48/49 passed; all non-unit checks passed. Broad units reached the five-minute cap and listed two process-host rebuild failures. Dated matched main/candidate controls also failed those cases; this local broad gate remains a failure, with no broad-suite or flaky claim.
  • Mocked unit checks do not establish native input, clipboard or rendered-theme behavior. No new tests or assertion rewrites. Detailed evidence and tracker remain local.

Risk

Medium: import/resource fanout spans desktop, CLI, mobile, remote hosts and WSL. No persisted-data migration.

Visual Proof

N/A: module ownership/import paths, with no intended visual or interaction change.

Linked Issue

Internal module-layout cleanup; no separate issue.

Agent skill upstream boundary

  • Not applicable: no upstream skill-installer material is copied or translated.

Checklist

  • Larger cohesive ownership scope; direct defining-owner imports
  • Independent actual-head audits passed
  • Local checks, limitations and coverage losses documented
  • Hosted final-head checks and full workflow aggregate passed

@nwparker
nwparker force-pushed the module-layout-v2/shared-agent-contracts-d5a90c0d branch from f35fe8f to 2ff59fd Compare November 15, 2026 06:32
@nwparker
nwparker force-pushed the module-layout-v2/shared-agent-contracts-d5a90c0d branch 4 times, most recently from c7435a9 to b92bae8 Compare November 15, 2026 08:32
@nwparker
nwparker force-pushed the module-layout-v2/shared-agent-contracts-d5a90c0d branch from b92bae8 to 099b599 Compare November 15, 2026 09:09
@nwparker
nwparker merged commit 7f38c5d into main Nov 15, 2026
103 checks passed
@nwparker
nwparker deleted the module-layout-v2/shared-agent-contracts-d5a90c0d branch November 15, 2026 10:00
Jinwoo-H added a commit that referenced this pull request Nov 15, 2026
…#42818)

Point journal-sql-status-items at the moved codex-async-question-input module (#42620 moved it before #42459 landed with the old path) and inline a one-use callId so structured-agent-session-projection.ts is back under the 300-line limit. No behavior change.
brennanb2025 added a commit that referenced this pull request Nov 16, 2026
…2835)

* fix(native-chat): import the moved Codex async question contract

#42459 imported codex-async-question-input from its pre-#42620 path, which
breaks the orcad template build on main.

* fix(native-chat): keep the status projection within its line limit

#42459's awaitsAnswer field took structured-agent-session-projection.ts to
301 lines; fold the attention early return into the status ternary.
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