Record Class HealingLocatorProposal
java.lang.Object
java.lang.Record
com.shaft.doctor.repair.HealingLocatorProposal
- Record Components:
schemaVersion- proposal schema versionproposalId- proposal identifierhealingAttemptId- source healing attemptsourcePath- repository-relative source pathsourceLine- mapped source lineoriginalExpression- exact original Java locator expressionproposedExpression- proposed replacement Java locator expressionconfidence- verified healing confidenceevidence- bounded evidence referencessourceSha256- source checksum used for stale-source detectionproposedSourceSha256- complete proposed source checksumpatch- structured Doctor patch for an isolated proposalapprovalToken- review tokenmanifestPath- persisted proposal manifest
public record HealingLocatorProposal(String schemaVersion, String proposalId, String healingAttemptId, String sourcePath, int sourceLine, String originalExpression, String proposedExpression, double confidence, List<String> evidence, String sourceSha256, String proposedSourceSha256, DoctorRepairRequest.FilePatch patch, String approvalToken, String manifestPath)
extends Record
Proposal-only bridge from a verified SHAFT Heal report to the isolated
SHAFT Doctor repair workflow.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHealingLocatorProposal(String schemaVersion, String proposalId, String healingAttemptId, String sourcePath, int sourceLine, String originalExpression, String proposedExpression, double confidence, List<String> evidence, String sourceSha256, String proposedSourceSha256, DoctorRepairRequest.FilePatch patch, String approvalToken, String manifestPath) Creates an immutable proposal. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapprovalTokenrecord component.doubleReturns the value of theconfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehealingAttemptIdrecord component.Returns the value of themanifestPathrecord component.Returns the value of theoriginalExpressionrecord component.patch()Returns the value of thepatchrecord component.Returns the value of theproposalIdrecord component.Returns the value of theproposedExpressionrecord component.Returns the value of theproposedSourceSha256record component.Returns the value of theschemaVersionrecord component.intReturns the value of thesourceLinerecord component.Returns the value of thesourcePathrecord component.Returns the value of thesourceSha256record component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CURRENT_SCHEMA_VERSION
- See Also:
-
-
Constructor Details
-
HealingLocatorProposal
public HealingLocatorProposal(String schemaVersion, String proposalId, String healingAttemptId, String sourcePath, int sourceLine, String originalExpression, String proposedExpression, double confidence, List<String> evidence, String sourceSha256, String proposedSourceSha256, DoctorRepairRequest.FilePatch patch, String approvalToken, String manifestPath) Creates an immutable proposal.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
proposalId
Returns the value of theproposalIdrecord component.- Returns:
- the value of the
proposalIdrecord component
-
healingAttemptId
Returns the value of thehealingAttemptIdrecord component.- Returns:
- the value of the
healingAttemptIdrecord component
-
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
sourceLine
public int sourceLine()Returns the value of thesourceLinerecord component.- Returns:
- the value of the
sourceLinerecord component
-
originalExpression
Returns the value of theoriginalExpressionrecord component.- Returns:
- the value of the
originalExpressionrecord component
-
proposedExpression
Returns the value of theproposedExpressionrecord component.- Returns:
- the value of the
proposedExpressionrecord component
-
confidence
public double confidence()Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
evidence
-
sourceSha256
Returns the value of thesourceSha256record component.- Returns:
- the value of the
sourceSha256record component
-
proposedSourceSha256
Returns the value of theproposedSourceSha256record component.- Returns:
- the value of the
proposedSourceSha256record component
-
patch
-
approvalToken
Returns the value of theapprovalTokenrecord component.- Returns:
- the value of the
approvalTokenrecord component
-
manifestPath
Returns the value of themanifestPathrecord component.- Returns:
- the value of the
manifestPathrecord component
-