|
30 | 30 | "...applyForkSettingsPatch(current, forkPatch)," |
31 | 31 | ] |
32 | 32 | }, |
| 33 | + "apps/server/src/server.ts": { |
| 34 | + "why": "The fork's service layers are wired here in one place each, from fork/forkLayers.ts (#384), so this file keeps as few fork lines as it can. The ten lines in \"added\" were its pending lines (ceiling 10) when it moved here (#361). The announced line gives the runtime's workers upstream's orchestrator with one change: an idle compaction send to a thread whose handoff mode is \"handoff\" is skipped, so the handoff service alone owns that thread (fork/handoff, #361).", |
| 35 | + "added": [ |
| 36 | + "import * as ForkLayers from \"./fork/forkLayers.ts\";", |
| 37 | + "// Fork (waits): the `pr` judge reads through the same pull request service and its caches.", |
| 38 | + "Layer.provide(layerPullRequestService.pipe(Layer.provide(RuntimeLayer.layerProjectService))),", |
| 39 | + "ForkLayers.holdWorkAgentActivity(AgentAwarenessRelay.layer),", |
| 40 | + "ForkLayers.layerRuntimeServices,", |
| 41 | + "Layer.effectDiscard(ForkLayers.startRemoteDelegation),", |
| 42 | + "ForkLayers.layerRoutes,", |
| 43 | + "const layerWorkAdmission = yield* ForkLayers.makeWorkAdmissionLayer(config);", |
| 44 | + "Layer.provide(ForkLayers.holdWorkCloudLink(CloudLink.layer, ConnectReachability.layer)),", |
| 45 | + "Layer.provide(Layer.merge(layerActivation, layerWorkAdmission))," |
| 46 | + ], |
| 47 | + "announced": { |
| 48 | + "since": "2026-11-20", |
| 49 | + "added": [ |
| 50 | + "Layer.provide(ForkLayers.handoffThreadsSkipIdleCompaction), // Fork: one owner (fork/handoff)" |
| 51 | + ] |
| 52 | + } |
| 53 | + }, |
33 | 54 | "apps/server/src/serverSettings.ts": { |
34 | 55 | "why": "Every settings write goes through upstream's patch and write paths here. The fork swaps in its patch (fork/serverSettingsPatch.ts, under upstream's name, so a project's MCP profile a client left out is kept) and calls its save check (fork/serverSettingsWriteCheck.ts) once in each write path. The load decodes the file after fork/settingsFileRead.ts (old auto-update names renamed, an unusable interval left out so it reads as its default). The lines from \"import { renameRetiredAutoUpdateKeys }\" on predate this list and record main as it was when every upstream file began to count (#277); they are to move into apps/server/src/fork/ (follow-up), and the file cannot grow meanwhile.", |
35 | 56 | "added": [ |
|
216 | 237 | "apps/server/src/scheduling/DueHint.ts": 5, |
217 | 238 | "apps/server/src/scheduling/Scheduler.test.ts": 24, |
218 | 239 | "apps/server/src/scheduling/Scheduler.ts": 13, |
219 | | - "apps/server/src/server.ts": 10, |
220 | 240 | "apps/server/src/serverRuntimeStartup.ts": 54, |
221 | 241 | "apps/server/src/serverRuntimeState.test.ts": 21, |
222 | 242 | "apps/server/src/serverRuntimeState.ts": 4, |
|