Skip to content

refactor: group worktree store state and fixtures by owner - #39485

Closed
nwparker wants to merge 1 commit into
module-layout-v2/store-agent-tabs-terminals-e4e5from
module-layout-v2/store-worktree-owners-main2380
Closed

nwparker wants to merge 1 commit into
module-layout-v2/store-agent-tabs-terminals-e4e5from
module-layout-v2/store-worktree-owners-main2380

Conversation

@nwparker

@nwparker nwparker commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Groups worktree store state, lifecycle actions, and test fixtures under their concrete feature owners. The generic first-row-by-id index lives in shared code; terminal reconnect retains its own physical-worktree index. Consumers import defining owners directly, and the transparent worktree lookup wrapper is retired.

Mixed worktree, terminal, browser, metadata, and account fixtures/tests are split by the behavior they own. Existing refusal, cancellation, setup-consent, persistence, and host-qualified removal coverage remains; copy and implementation-detail assertions are removed. Active reliability routes and measured test timings follow their owners without inventing timings for split suites.

Stacked on #39458. Current head 7ff2f079e850 is composed on stores 41468d9016a7, incorporating main 5dae65c4b4ef; tree d862cfc21246. This covers the full 73-module worktree-state batch; the broader layout tracker remains open.

Validation:

  • Original implementation: renderer typecheck, focused sensitive/policy/consumer suites, all 33 selected static gates and both independent implementation audits/root replays passed at their recorded original pins. Fixture-admission and static-order qualifications remain explicit.
  • Current root whole-entry/body/import-route/metadata composition checks passed; SOURCE carry audit passed. BOUNDARY carry audit and root replays remain before merge.
  • Current-head CI is newly running and is not yet a pass. Prior head's separate WSL idle-release job failed with an exited active process; failure was inspected and a failed-only retry requested. Cause is unproven.
  • Broad local unit selection timed out; the isolated backend recovery case reproduced on pristine main under the same conditions. No passing broad local unit result is claimed.
Files Added Deleted Net
Test 478 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3337 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2631 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​706
Prod 171 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​891 $\color{#cf222e}{\Huge{\mathbf{−}}}$​876 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​15

@nwparker
nwparker force-pushed the module-layout-v2/store-agent-tabs-terminals-e4e5 branch from 7380a59 to 8972f0d Compare November 7, 2026 12:24
@nwparker
nwparker force-pushed the module-layout-v2/store-worktree-owners-main2380 branch from 3d580f9 to a043d1f Compare November 7, 2026 12:27
@nwparker
nwparker force-pushed the module-layout-v2/store-agent-tabs-terminals-e4e5 branch from 8972f0d to 41468d9 Compare November 7, 2026 12:54
@nwparker
nwparker force-pushed the module-layout-v2/store-worktree-owners-main2380 branch from a043d1f to 7ff2f07 Compare November 7, 2026 12:55
@nwparker
nwparker force-pushed the module-layout-v2/store-agent-tabs-terminals-e4e5 branch from 41468d9 to 4bb8ded Compare November 7, 2026 13:44
@nwparker
nwparker force-pushed the module-layout-v2/store-worktree-owners-main2380 branch from 7ff2f07 to 2f4879c Compare November 7, 2026 13:45
@nwparker
nwparker force-pushed the module-layout-v2/store-agent-tabs-terminals-e4e5 branch from 4bb8ded to 8604717 Compare November 7, 2026 13:53
@nwparker
nwparker force-pushed the module-layout-v2/store-worktree-owners-main2380 branch from 2f4879c to b315a2b Compare November 7, 2026 13:54
@nwparker nwparker closed this Nov 7, 2026
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