Skip to content

shutdown/close doesn't fully reset API state #1374

@toddbaert

Description

@toddbaert

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, close() only shuts down providers but doesn't clear or reset them. clearProviders() resets providers to no-op but doesn't touch hooks, event handlers, evaluation context, or transaction context propagators. Neither function fully satisfies 1.6.2.

Found this while doing a cross-SDK audit for Python 1.0 readiness.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions