Capture native execution facts and complete scoped debug evidence
This commit is contained in:
@@ -243,9 +243,16 @@ func runPipelineCommand(args []string, stdout, stderr io.Writer, opts Options) i
|
||||
debugPath := capture.Path()
|
||||
var debugRecorder pipeline.DebugRecorder = pipeline.NoopDebugRecorder()
|
||||
if capture.Enabled() {
|
||||
debugRecorder = capture
|
||||
debugRecorder = newRunEvidenceRecorder(capture, loaded.Result())
|
||||
}
|
||||
if err := capture.WriteJSON("context.json", map[string]any{"pipeline": pipelineID, "input_path": *inputPath, "config_path": loadedConfigPath, "run_id": runID, "started_at": startedAt}); err != nil {
|
||||
version, err := buildinfo.Version()
|
||||
if err != nil {
|
||||
return fail(err)
|
||||
}
|
||||
if err := capture.WriteJSON("context.json", map[string]any{"application_version": version, "pipeline": pipelineID, "input_path": *inputPath, "config_path": loadedConfigPath, "run_id": runID, "started_at": startedAt, "selected_lanes": only, "llm_profile": llmProfile.value, "llm_session_id": requestedSessionID.value, "execution_overrides": runtimeOverrides}); err != nil {
|
||||
return fail(err)
|
||||
}
|
||||
if err := captureRunConfiguration(capture, loaded.Result()); err != nil {
|
||||
return fail(err)
|
||||
}
|
||||
|
||||
@@ -299,7 +306,6 @@ func runPipelineCommand(args []string, stdout, stderr io.Writer, opts Options) i
|
||||
if err != nil {
|
||||
return fail(fmt.Errorf("create LLM client for profile %q: %w", factoryProfileID, err))
|
||||
}
|
||||
llmClient = pipeline.WithDebugLLMRecording(llmClient, debugRecorder)
|
||||
prepared, err := pipeline.Prepare(effective.ResolvedPipeline, registries, pipeline.ModuleDependencies{LLM: llmClient})
|
||||
if err != nil {
|
||||
return fail(fmt.Errorf("prepare pipeline %q: %w", pipelineID, err))
|
||||
|
||||
Reference in New Issue
Block a user