H-A-458 (1): compare a want's run with the have's only within its pipeline

A want of another pipeline is a placement the assigner made on purpose, so a
lower run of it was refused against a run of another branch the engine had
applied. The have now keeps the pipeline of the want it was applied from
beside its run (the node-engine seat's form 4), settleOne compares the runs
only when the pipelines are equal, and a want of another pipeline replaces
whatever stands. Rows: a lower run of another pipeline is applied, a lower
run of the same is refused and said; the have names both.

Review round 1, finding: the applied run's branch.

Builds: design 47 H2 §813 (1); H-A-429 (1), H-A-458 (1)
This commit is contained in:
2026-11-22 02:57:04 +01:00
parent 86380b66c1
commit 7d87dde0a4
6 changed files with 48 additions and 14 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ func (h sessionHaves) ReadErr(ctx context.Context, module string) (agent.Have, b
return agent.Have{}, false, err
}
return agent.Have{Module: module, FP: got.Fp, Composed: got.Composed, Phase: string(got.Phase), Detail: got.Detail,
Sealed: got.SealedAt, Wait: got.Wait, Run: got.Run}, true, nil
Sealed: got.SealedAt, Wait: got.Wait, Run: got.Run, Pipeline: got.Pipeline}, true, nil
}
func (h sessionHaves) Write(ctx context.Context, x agent.Have) {
@@ -126,7 +126,7 @@ func (h sessionHaves) Write(ctx context.Context, x agent.Have) {
}
h.session.NoteModule(ctx, link.ModuleFact{Module: x.Module, FP: x.FP, Composed: x.Composed, Phase: phase,
Failed: phase == string(nodeengineclient.PhaseFailed), Detail: shorten(x.Detail), Judgement: x.Judgement, Waits: x.Waits,
BuildAlone: x.BuildAlone, Kept: x.Kept, Sealed: x.Sealed, PullWait: x.PullWait, Wait: x.Wait, Run: x.Run})
BuildAlone: x.BuildAlone, Kept: x.Kept, Sealed: x.Sealed, PullWait: x.PullWait, Wait: x.Wait, Run: x.Run, Pipeline: x.Pipeline})
}
func (h sessionHaves) Removed(ctx context.Context, module string) {