@@ -173,8 +173,9 @@ func SearchRepositories(t translations.TranslationHelperFunc) inventory.ServerTo
173173// every matched repository and attaches the result to callResult when IFC
174174// labels are enabled. Visibility is read directly from the search response —
175175// no extra API call. The join math is shared with search_issues via
176- // ifc.LabelSearchIssues: integrity is always untrusted; confidentiality is
177- // private if any matched repository is private, otherwise public. The
176+ // ifc.LabelSearchIssues: public-only results stay public-untrusted,
177+ // mixed-visibility results become private-untrusted, and all-private results
178+ // become private-trusted. The
178179// feature-flag check is centralized here (mirroring the attach* helpers in
179180// ifc_labels.go) so the handler can call this unconditionally.
180181func attachSearchRepositoriesIFCLabel (ctx context.Context , deps ToolDependencies , repos []* github.Repository , callResult * mcp.CallToolResult ) {
@@ -302,9 +303,9 @@ func SearchCode(t translations.TranslationHelperFunc) inventory.ServerTool {
302303 }
303304
304305 callResult := utils .NewToolResultText (string (r ))
305- // Code search spans repositories and exposes file contents
306- // (untrusted). Confidentiality is the IFC join across every matched
307- // repository's visibility, read directly from the search response.
306+ // Code search spans repositories; the IFC label is the conservative
307+ // join across every matched repository's visibility, read directly
308+ // from the search response.
308309 visibilities := make ([]bool , 0 , len (result .CodeResults ))
309310 for _ , code := range result .CodeResults {
310311 if code .Repository != nil {
@@ -593,9 +594,9 @@ func SearchCommits(t translations.TranslationHelperFunc) inventory.ServerTool {
593594 }
594595
595596 callResult := utils .NewToolResultText (string (r ))
596- // Commit search spans repositories and exposes commit content
597- // (untrusted). Confidentiality is the IFC join across every matched
598- // repository's visibility, read directly from the search response.
597+ // Commit search spans repositories; the IFC label is the conservative
598+ // join across every matched repository's visibility, read directly
599+ // from the search response.
599600 visibilities := make ([]bool , 0 , len (result .Commits ))
600601 for _ , commit := range result .Commits {
601602 if commit .Repository != nil {
0 commit comments