Share downstream readiness checks across invocations

This commit is contained in:
2026-11-30 15:16:00 +00:00
parent 1f494c285a
commit 61e2a85842
7 changed files with 162 additions and 96 deletions

View File

@@ -235,7 +235,12 @@ func inspectSessionValidation(ctx context.Context, cfg *config.Config, deps comm
}
}
}
checked, checkErr := preflight.CheckDownstream(ctx, inspector, checker, targets, request)
checked, checkErr := preflight.Check(ctx, inspector, targets.Scriptorium)
if targets.Polish && ctx.Err() == nil {
auditaResult, auditaErr := preflight.CheckAudita(ctx, checker, request)
checked.Findings = append(checked.Findings, auditaResult.Findings...)
checkErr = errors.Join(checkErr, auditaErr)
}
if targets.Notarius && ctx.Err() == nil {
nativeResult, nativeErr := preflight.CheckNotarius(ctx, native, probe.Request)
checked.Findings = append(checked.Findings, nativeResult.Findings...)