Repo scan and patch contract
Implementedv0.0.0
include/core/repo.hpp
This header models repo scanning as a first-class diagnostic. It exposes `Issue`, `ScanResult`, and `AutoFixResult`, plus the scan and auto-fix entrypoints that `doctor` relies on.
Reference
Public APIcpp
struct Issue { std::filesystem::path file; std::size_t line; std::string description; std::string snippet; };
struct ScanResult { Probe probe; std::vector<Issue> issues; };
struct AutoFixResult { Probe probe; std::vector<std::filesystem::path> changed_files; };
ScanResult scan(const std::filesystem::path& cwd);
AutoFixResult apply_fixes(const std::filesystem::path& cwd);Related files
Core implementation
src/core/repo.cpp
Scans build manifests for known 32-bit CUDA compatibility problems and can rewrite those patterns automatically.
Command implementation
src/commands/doctor.cpp
Extends `check` with repo scanning, optional auto-configuration, auto-fix behavior, and next-step generation.