The spec (requirement 1.6.2) says shutdown MUST reset all API state, removing hooks, event handlers, and providers. There's also a pending clarification to explicitly include evaluation context and transaction context propagators (open-feature/spec#375).
Right now, OpenFeatureAPI.shutdown() resets providers and event handlers, but leaves apiHooks, evaluationContext, and the transaction context propagator intact. Those should be cleared too.
Found this while doing a cross-SDK audit for Python 1.0 readiness.
The spec (requirement 1.6.2) says shutdown MUST reset all API state, removing hooks, event handlers, and providers. There's also a pending clarification to explicitly include evaluation context and transaction context propagators (open-feature/spec#375).
Right now,
OpenFeatureAPI.shutdown()resets providers and event handlers, but leavesapiHooks,evaluationContext, and the transaction context propagator intact. Those should be cleared too.Found this while doing a cross-SDK audit for Python 1.0 readiness.