feat(doctor): add multi-repo custom types discovery (bd-62g22)
Adds a diagnostic check that discovers and reports custom types used by child repos in multi-repo setups. This is the 'discover' part of the 'trust + discover' pattern for federation. The check: - Lists custom types found in each child repo's config/DB - Warns about hydrated issues using types not found anywhere - Is informational only (doesn't fail overall doctor check) Part of epic: bd-9ji4z Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
committed by
Steve Yegge
parent
576a517c59
commit
d452d32644
@@ -342,7 +342,12 @@ func runDiagnostics(path string) doctorResult {
|
||||
result.Checks = append(result.Checks, configValuesCheck)
|
||||
// Don't fail overall check for config value warnings, just warn
|
||||
|
||||
// Check 7b: JSONL integrity (malformed lines, missing IDs)
|
||||
// Check 7b: Multi-repo custom types discovery (bd-9ji4z)
|
||||
multiRepoTypesCheck := convertWithCategory(doctor.CheckMultiRepoTypes(path), doctor.CategoryData)
|
||||
result.Checks = append(result.Checks, multiRepoTypesCheck)
|
||||
// Don't fail overall check for multi-repo types, just informational
|
||||
|
||||
// Check 7c: JSONL integrity (malformed lines, missing IDs)
|
||||
jsonlIntegrityCheck := convertWithCategory(doctor.CheckJSONLIntegrity(path), doctor.CategoryData)
|
||||
result.Checks = append(result.Checks, jsonlIntegrityCheck)
|
||||
if jsonlIntegrityCheck.Status == statusWarning || jsonlIntegrityCheck.Status == statusError {
|
||||
|
||||
Reference in New Issue
Block a user