Record Class HealingConfiguration

java.lang.Object
java.lang.Record
com.shaft.heal.HealingConfiguration
Record Components:
minimumConfidence - minimum accepted score
ambiguityMargin - required top-candidate separation
evidenceCategories - enabled deterministic evidence categories
testIdAttributes - configured test ID attributes
historyEnabled - whether local history is enabled
historyPath - local history path
historyMaxEntries - maximum history records
historyRetention - history retention
visualEnabled - whether optional visual evidence is enabled
aiEnabled - whether optional provider reranking is enabled
aiTrigger - when optional provider reranking may run
sourcePatchEnabled - whether reviewed source-patch proposals are permitted

public record HealingConfiguration(double minimumConfidence, double ambiguityMargin, Set<String> evidenceCategories, List<String> testIdAttributes, boolean historyEnabled, Path historyPath, int historyMaxEntries, Duration historyRetention, boolean visualEnabled, boolean aiEnabled, HealingConfiguration.AiTrigger aiTrigger, boolean sourcePatchEnabled) extends Record
Immutable current-thread SHAFT Heal configuration snapshot.
  • Constructor Details

    • HealingConfiguration

      public HealingConfiguration(double minimumConfidence, double ambiguityMargin, Set<String> evidenceCategories, List<String> testIdAttributes, boolean historyEnabled, Path historyPath, int historyMaxEntries, Duration historyRetention, boolean visualEnabled, boolean aiEnabled, boolean sourcePatchEnabled)
      Backward-compatible constructor with the default AI trigger.
    • HealingConfiguration

      public HealingConfiguration(double minimumConfidence, double ambiguityMargin, Set<String> evidenceCategories, List<String> testIdAttributes, boolean historyEnabled, Path historyPath, int historyMaxEntries, Duration historyRetention, boolean visualEnabled, boolean aiEnabled, HealingConfiguration.AiTrigger aiTrigger, boolean sourcePatchEnabled)
      Creates a normalized configuration.
  • Method Details

    • current

      public static HealingConfiguration current()
      Reads the effective current-thread configuration.
      Returns:
      configuration snapshot
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • minimumConfidence

      public double minimumConfidence()
      Returns the value of the minimumConfidence record component.
      Returns:
      the value of the minimumConfidence record component
    • ambiguityMargin

      public double ambiguityMargin()
      Returns the value of the ambiguityMargin record component.
      Returns:
      the value of the ambiguityMargin record component
    • evidenceCategories

      public Set<String> evidenceCategories()
      Returns the value of the evidenceCategories record component.
      Returns:
      the value of the evidenceCategories record component
    • testIdAttributes

      public List<String> testIdAttributes()
      Returns the value of the testIdAttributes record component.
      Returns:
      the value of the testIdAttributes record component
    • historyEnabled

      public boolean historyEnabled()
      Returns the value of the historyEnabled record component.
      Returns:
      the value of the historyEnabled record component
    • historyPath

      public Path historyPath()
      Returns the value of the historyPath record component.
      Returns:
      the value of the historyPath record component
    • historyMaxEntries

      public int historyMaxEntries()
      Returns the value of the historyMaxEntries record component.
      Returns:
      the value of the historyMaxEntries record component
    • historyRetention

      public Duration historyRetention()
      Returns the value of the historyRetention record component.
      Returns:
      the value of the historyRetention record component
    • visualEnabled

      public boolean visualEnabled()
      Returns the value of the visualEnabled record component.
      Returns:
      the value of the visualEnabled record component
    • aiEnabled

      public boolean aiEnabled()
      Returns the value of the aiEnabled record component.
      Returns:
      the value of the aiEnabled record component
    • aiTrigger

      public HealingConfiguration.AiTrigger aiTrigger()
      Returns the value of the aiTrigger record component.
      Returns:
      the value of the aiTrigger record component
    • sourcePatchEnabled

      public boolean sourcePatchEnabled()
      Returns the value of the sourcePatchEnabled record component.
      Returns:
      the value of the sourcePatchEnabled record component