Class DoctorRepairAiService

java.lang.Object
com.shaft.doctor.repair.DoctorRepairAiService

public final class DoctorRepairAiService extends Object
Generates optional schema-constrained file patches through the shared AI boundary.
  • Constructor Details

    • DoctorRepairAiService

      public DoctorRepairAiService()
      Creates a service using the configured shared provider registry.
  • Method Details

    • generate

      public DoctorRepairPatchResult generate(Path repositoryRoot, Diagnosis diagnosis, List<String> allowedPaths, DoctorRepairAiRequest request)
      Requests structured file patches without applying them or executing provider commands.
      Parameters:
      repositoryRoot - approved repository root
      diagnosis - deterministic Doctor diagnosis
      allowedPaths - exact approved source file paths
      request - explicit provider policy
      Returns:
      validated patches or an empty safe fallback