Creating Interchangeable Live and Static Test Layers with ExecutionPlan in Effect Typescript

Hello. I would like to describe a service for which each Effect provided follows an ExecutionPlan. That is, I would like a set of "live" layers which can be used interchangeably (
A
&
B
) and a static Test layer.

This is my first attempt (https://effect.website/play/#5f50632d901c), but this solution, on top of abusing tags, only leverages the ExecutionPlan during layer creation.

Is there an idiomatic way to achieve this?
Was this page helpful?