Record Class HealingReport
java.lang.Object
java.lang.Record
com.shaft.heal.model.HealingReport
- Record Components:
schemaVersion- report schema versionattemptId- safe correlation identifiertimestamp- UTC timestamporiginalLocator- original failed locatorfailureCategory- normalized failure categorypageKey- query-free page identitycontext- frame and shadow contextcontextMetadata- platform and execution context metadatacandidates- ranked deterministic candidatesdecision- final decisionprovider- provider and fallback metadataprivacy- minimization and redaction metadataaction- action and post-action metadata
public record HealingReport(String schemaVersion, String attemptId, String timestamp, String originalLocator, String failureCategory, String pageKey, String context, HealingContext contextMetadata, List<HealingCandidate> candidates, HealingDecision decision, HealingReport.ProviderMetadata provider, HealingReport.PrivacyMetadata privacy, HealingReport.ActionMetadata action)
extends Record
Structured, explainable SHAFT Heal attempt report.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordAction metadata.static final recordPrivacy metadata.static final recordOptional provider metadata. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHealingReport(String schemaVersion, String attemptId, String timestamp, String originalLocator, String failureCategory, String pageKey, String context, HealingContext contextMetadata, List<HealingCandidate> candidates, HealingDecision decision, HealingReport.ProviderMetadata provider, HealingReport.PrivacyMetadata privacy, HealingReport.ActionMetadata action) Creates an immutable report.HealingReport(String schemaVersion, String attemptId, String timestamp, String originalLocator, String failureCategory, String pageKey, String context, List<HealingCandidate> candidates, HealingDecision decision, HealingReport.ProviderMetadata provider, HealingReport.PrivacyMetadata privacy, HealingReport.ActionMetadata action) Creates a backward-compatible report without structured context metadata. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theattemptIdrecord component.Returns the value of thecandidatesrecord component.context()Returns the value of thecontextrecord component.Returns the value of thecontextMetadatarecord component.decision()Returns the value of thedecisionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailureCategoryrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoriginalLocatorrecord component.pageKey()Returns the value of thepageKeyrecord component.privacy()Returns the value of theprivacyrecord component.provider()Returns the value of theproviderrecord component.Returns the value of theschemaVersionrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CURRENT_SCHEMA_VERSION
- See Also:
-
-
Constructor Details
-
HealingReport
public HealingReport(String schemaVersion, String attemptId, String timestamp, String originalLocator, String failureCategory, String pageKey, String context, List<HealingCandidate> candidates, HealingDecision decision, HealingReport.ProviderMetadata provider, HealingReport.PrivacyMetadata privacy, HealingReport.ActionMetadata action) Creates a backward-compatible report without structured context metadata. -
HealingReport
public HealingReport(String schemaVersion, String attemptId, String timestamp, String originalLocator, String failureCategory, String pageKey, String context, HealingContext contextMetadata, List<HealingCandidate> candidates, HealingDecision decision, HealingReport.ProviderMetadata provider, HealingReport.PrivacyMetadata privacy, HealingReport.ActionMetadata action) Creates an immutable report.
-
-
Method Details
-
toString
-
hashCode
-
equals
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. All components in this record class are compared withObjects::equals(Object,Object). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
attemptId
-
timestamp
-
originalLocator
Returns the value of theoriginalLocatorrecord component.- Returns:
- the value of the
originalLocatorrecord component
-
failureCategory
Returns the value of thefailureCategoryrecord component.- Returns:
- the value of the
failureCategoryrecord component
-
pageKey
-
context
-
contextMetadata
Returns the value of thecontextMetadatarecord component.- Returns:
- the value of the
contextMetadatarecord component
-
candidates
Returns the value of thecandidatesrecord component.- Returns:
- the value of the
candidatesrecord component
-
decision
-
provider
-
privacy
-
action
-