TRAITS

keep-decoded-configuration-on-context

When an Effect context exposes decoded configuration, keep the configuration object on the context and read unchanged settings through it rather than copying individual settings into separate context fields. Keep derived runtime values, such as normalized paths and semaphores, as separate context fields.

Applies when
exposing decoded configuration and derived runtime values through an Effect context.
File types
  • TypeScript
  • TSX
ID
ca378e6f-c6fe-4b50-ade6-799c7c95d51b
Source
.agents/traits/keep-decoded-configuration-on-context-ca378e6f-c6fe-4b50-ade6-799c7c95d51b.md

Skipping this trait

Add this comment before any code to skip the trait for a whole file. A reason is required.

File header
// traits-ignore-file ca378e6f-c6fe-4b50-ade6-799c7c95d51b: <reason>