Class HealingLocatorProposalService
java.lang.Object
com.shaft.doctor.repair.HealingLocatorProposalService
Creates reviewable locator patch proposals from verified SHAFT Heal reports.
This service never edits source. Its structured patch is intended for a
separate explicitly invoked DoctorRepairService proposal.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSourceCurrent(Path repositoryRoot, HealingLocatorProposal proposal) Verifies that the mapped source has not changed since proposal creation.propose(HealingLocatorProposalRequest request) Creates and persists a proposal-only artifact.
-
Constructor Details
-
HealingLocatorProposalService
public HealingLocatorProposalService()
-
-
Method Details
-
propose
Creates and persists a proposal-only artifact.- Parameters:
request- explicit proposal request- Returns:
- reviewable proposal and structured Doctor patch
-
isSourceCurrent
Verifies that the mapped source has not changed since proposal creation.- Parameters:
repositoryRoot- approved repository rootproposal- persisted proposal- Returns:
trueonly when the source checksum still matches
-