Package com.tnsai.spi

Interface FeatureFlag

All Known Implementing Classes:
EnvFeatureFlag

public interface FeatureFlag
SPI for gradual feature rollout (TAN-3392).

Embedders back this with env, a file, or their own store. The bundled default is EnvFeatureFlag. There is no SaaS flag vendor.

New flags default off when unset. Document the default next to the flag name. First consumer: GOAP.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Planner auto-discovery / GOAP selection.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isEnabled(String flag, FlagContext context)
     
  • Field Details

    • GOAP

      static final String GOAP
      Planner auto-discovery / GOAP selection. Default off for new selection. Existing classpath auto-discover stays on until this env var is set — TNSAI_FLAG_GOAP=off turns it off.
      See Also:
  • Method Details

    • isEnabled

      boolean isEnabled(String flag, FlagContext context)
      Parameters:
      flag - flag name; compared case-insensitively
      context - tenant/agent identity; never null (use FlagContext.empty())
      Returns:
      true if the flag is on for this context