Tell the next stage what failed when an error edge leads onward

A failed visit was recorded on its step only, so a landing gate that sent
the run back to implement gave the implementer nothing about which checks
failed. The diagnostic (bounded) is now the next stage's previous output
and a memory entry.
This commit is contained in:
2026-11-11 00:39:36 +00:00
parent c7fa38439e
commit c2b992542b
3 changed files with 70 additions and 0 deletions
+4
View File
@@ -2193,6 +2193,10 @@ func (r *runner) runLoop(ctx context.Context, id int64, graph protocol.Graph, na
if artifactsDir != "" {
state.artifactDirs = append(state.artifactDirs, strconv.Itoa(sequence))
}
} else if step.Status == "failed" && step.Target != "" &&
step.Target != protocol.FailureEnd && step.Target != protocol.SuccessEnd {
// The error edge leads to another stage: tell it what failed.
state.recordFailure(step)
}
// Step finished: report its outcome, routing target, diagnostic and the
// artifacts recorded for the visit, plus the run's running step count.