docs/internals/effect-services.md says consumers import a service module as a namespace (import * as Foo from "./Foo.ts", then Foo.layer) and never import { layer as fooLayer }. Three files in apps/server/src/orchestration-v2 still used aliased imports.
This switches them to namespace imports and updates every use site:
runtimeLayer.ts: 39 aliased imports from 37 modules → namespace imports (layer, plus layerFromStores, layerFromApplicationReceipts, layerFromOrchestrationEventStore, layerFromProviderInstanceRegistry, layerWithLegacyImporter, executorLayer, pruneWorkerLive, workerLive).
Orchestrator.ts: ThreadCommandExecutor + layer as threadCommandExecutorLayer → import * as ThreadCommandExecutor (ThreadCommandExecutor.ThreadCommandExecutor, ThreadCommandExecutor.layer).
CheckpointRestoreSafety.test.ts: layer as rollbackLayer and layer as idAllocatorLayer → CheckpointRollbackService.layer, IdAllocator.layer.
Behavior-neutral: same layers, same composition order, only the import style and identifiers change.
Verified:
vp run typecheck in apps/server: passes
vp test run src/orchestration-v2/CheckpointRestoreSafety.test.ts src/orchestration-v2/runtimeLayer.test.ts: 81/81 pass
vp lint / vp fmt on the changed files: clean (one pre-existing unused-var warning on layerUnavailable in Orchestrator.ts, untouched)
- Grep for
layer… as / make as aliases across apps, packages, infra: only comments, type casts, and third-party @effect imports remain
🤖 Generated with Claude Code
Approvability#
Verdict: Approved at
97f83a7Macroscope's review found this PR approvable — This is a mechanical import normalization: production layer wiring and the test continue to use the same service, layer, and worker exports as before. No product defaults or runtime behavior are changed.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).