Record Class DoctorRepairRequest

java.lang.Object
java.lang.Record
com.shaft.doctor.repair.DoctorRepairRequest
Record Components:
repositoryRoot - approved Git repository root
baseSha - exact commit used to create the isolated worktree
diagnosisPath - Doctor diagnosis or combined report JSON
evidenceBundlePath - optional Doctor evidence bundle JSON
issueReference - issue number, URL, or session identifier
allowedPaths - repository-relative files or directories that may change
patches - structured file patches; shell commands are not accepted
validationCommands - approved Maven validation commands
networkValidationApproved - whether Maven validation may use the network
outputDirectory - proposal manifests and temporary worktrees
maxPatchBytes - maximum aggregate UTF-8 patch content
commandTimeout - maximum duration for each validation command

public record DoctorRepairRequest(Path repositoryRoot, String baseSha, Path diagnosisPath, Path evidenceBundlePath, String issueReference, List<String> allowedPaths, List<DoctorRepairRequest.FilePatch> patches, List<DoctorRepairRequest.ValidationCommand> validationCommands, boolean networkValidationApproved, Path outputDirectory, long maxPatchBytes, Duration commandTimeout) extends Record
Explicit policy for creating an isolated Doctor repair proposal.
  • Field Details

    • DEFAULT_MAX_PATCH_BYTES

      public static final long DEFAULT_MAX_PATCH_BYTES
      Conservative default aggregate patch limit.
      See Also:
    • DEFAULT_COMMAND_TIMEOUT

      public static final Duration DEFAULT_COMMAND_TIMEOUT
      Conservative default validation timeout.
  • Constructor Details

  • Method Details

    • 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.
    • repositoryRoot

      public Path repositoryRoot()
      Returns the value of the repositoryRoot record component.
      Returns:
      the value of the repositoryRoot record component
    • baseSha

      public String baseSha()
      Returns the value of the baseSha record component.
      Returns:
      the value of the baseSha record component
    • diagnosisPath

      public Path diagnosisPath()
      Returns the value of the diagnosisPath record component.
      Returns:
      the value of the diagnosisPath record component
    • evidenceBundlePath

      public Path evidenceBundlePath()
      Returns the value of the evidenceBundlePath record component.
      Returns:
      the value of the evidenceBundlePath record component
    • issueReference

      public String issueReference()
      Returns the value of the issueReference record component.
      Returns:
      the value of the issueReference record component
    • allowedPaths

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

      Returns the value of the patches record component.
      Returns:
      the value of the patches record component
    • validationCommands

      public List<DoctorRepairRequest.ValidationCommand> validationCommands()
      Returns the value of the validationCommands record component.
      Returns:
      the value of the validationCommands record component
    • networkValidationApproved

      public boolean networkValidationApproved()
      Returns the value of the networkValidationApproved record component.
      Returns:
      the value of the networkValidationApproved record component
    • outputDirectory

      public Path outputDirectory()
      Returns the value of the outputDirectory record component.
      Returns:
      the value of the outputDirectory record component
    • maxPatchBytes

      public long maxPatchBytes()
      Returns the value of the maxPatchBytes record component.
      Returns:
      the value of the maxPatchBytes record component
    • commandTimeout

      public Duration commandTimeout()
      Returns the value of the commandTimeout record component.
      Returns:
      the value of the commandTimeout record component