contextsfragile
contextsfragile is a term used in software engineering to describe systems whose correct behavior depends on the precise propagation of contextual information across boundaries such as function calls, thread switches, or asynchronous tasks. In a contextsfragile design, small changes to how context is carried or captured can change outcomes, enable security weaknesses, or break invariants.
Contexts commonly involved include ambient contexts, thread-local storage, request-scoped data, and execution context flowing across asynchronous
A typical example is a web service that relies on a user identity stored in thread-local context.
Mitigation approaches emphasize explicit context propagation and isolation. Practices include threading of a context object through
See also: context propagation, ambient context, execution context, thread-local storage, async local, continuation-local storage.