Report audio, speaker, and artifact work progress

This commit is contained in:
2026-11-20 06:04:34 +00:00
parent c523def852
commit 7db626781e
8 changed files with 244 additions and 2 deletions

View File

@@ -140,6 +140,11 @@ func (analyzeStage) Run(ctx context.Context, env *Env, m *manifest.Manifest) (*S
return nil, fmt.Errorf("analyze: checkpoint reconciled artifact collection before execution: %w", err)
}
for _, item := range workPlan.ReusedCurrent {
env.Info("artifact reuse decision", "artifact", item.Key, "reason", item.Reason, "role", item.Role)
env.Progress("reusing artifact", "artifact", item.Key)
}
for _, item := range workPlan.ExecutionOrder {
if err := ctx.Err(); err != nil {
return nil, err

View File

@@ -103,6 +103,8 @@ func (state *analyzeExecutionState) acceptArtifact(
state.records = manifest.CloneAnalyzeArtifactCollection(state.committedRecords)
return fmt.Errorf("analyze: checkpoint artifact %q: %w", plan.Name, err)
}
state.execution.Env.Info("artifact output", "artifact", plan.Name, "source", sourceID, "path", result.Output.AbsolutePath)
state.execution.Env.Progress("artifact completed", "artifact", plan.Name)
return nil
}

View File

@@ -461,6 +461,7 @@ func materializeS3AudioInputs(ctx context.Context, env *Env, m *manifest.Manifes
spoolPath := filepath.Join(spoolAudioDir, base)
workPath := filepath.Join(workAudioDir, base)
result, err := audio.MaterializeS3Audio(ctx, audio.S3MaterializeRequest{
Reporter: env.Reporter,
Store: env.ObjectStore,
Object: obj,
Bucket: strings.TrimSpace(env.Config.Pipeline.Storage.S3.Bucket),

View File

@@ -59,6 +59,13 @@ func (transcribeStage) Run(ctx context.Context, env *Env, m *manifest.Manifest)
return nil, fmt.Errorf("transcribe: checkpoint reconciled speaker collection before execution: %w", err)
}
for _, job := range reconciliation.jobs {
if record, ok := reconciliation.current[job.speakerID]; ok {
env.Info("speaker transcription reuse decision", "speaker", job.speakerID, "output", record.Output.LocalPath)
env.Progress("reusing speaker transcription", "speaker", job.speakerID)
}
}
jobs := append([]transcribeReconciliationJob(nil), reconciliation.work...)
if len(jobs) > 0 && env.WhisperX == nil {
return nil, fmt.Errorf("transcribe: whisperx adapter is required")

View File

@@ -136,6 +136,8 @@ func (state *transcribeExecutionState) acceptSpeaker(
state.completed++
state.perFile[job.speakerID] = cloneStringAnyMap(metadata)
state.runOutputs[job.speakerID] = job.runOutputPath
state.env.Info("speaker transcription output", "speaker", job.speakerID, "path", job.canonicalOutputPath)
state.env.Progress("speaker transcription completed", "speaker", job.speakerID)
return nil
}