Route producer diagnostics to run directories

This commit is contained in:
2026-11-30 01:32:56 +00:00
parent 16c3d7d643
commit c07d4f24a2
19 changed files with 150 additions and 240 deletions

View File

@@ -66,12 +66,8 @@ func (polishStage) Run(ctx context.Context, env *Env, m *manifest.Manifest) (*St
if !runLayout.Enabled {
processedPath = filepath.Join(paths.Root, "scratch", "polish", "polished.json")
}
logs := paths.LogsDir
debug := filepath.Join(paths.Root, "debug", "polish")
if runLayout.Enabled {
logs = runLayout.LogsDir
debug = filepath.Join(runLayout.Root, "debug")
}
logs := runLayout.LogsDir
debug := runLayout.DebugDir
req, evidence, err := BuildPolishRequest(paths, m, mergedPath, processedPath, logs, debug)
if err != nil {
return nil, fmt.Errorf("polish: %w", err)