Add internal debug bundle collaborators

This commit is contained in:
2026-07-18 04:57:50 +00:00
parent 5bd0ba7a72
commit a9250206d5
11 changed files with 336 additions and 28 deletions

View File

@@ -43,7 +43,7 @@ type RetentionDecisionInput struct {
}
type RedactedEffectiveConfigPayload interface {
RedactedDiagnosticsPayload() any
RedactedSummaryPayload() any
}
// InvocationMetadata captures non-secret invocation details for diagnostics.
@@ -144,7 +144,7 @@ func (r *RunDirectory) WriteRedactedEffectiveConfig(payload RedactedEffectiveCon
if payload == nil {
return fmt.Errorf("redacted effective config payload must not be nil")
}
return r.WriteJSONArtifact(ArtifactEffectiveConfig, payload.RedactedDiagnosticsPayload())
return r.WriteJSONArtifact(ArtifactEffectiveConfig, payload.RedactedSummaryPayload())
}
func (r *RunDirectory) WriteResolvedPipeline(payload any) error {

View File

@@ -378,6 +378,6 @@ type fakeRedactedEffectiveConfig struct {
payload any
}
func (f fakeRedactedEffectiveConfig) RedactedDiagnosticsPayload() any {
func (f fakeRedactedEffectiveConfig) RedactedSummaryPayload() any {
return f.payload
}