Selfcompose, compose: the trunk build stands where a placement names none; the fallback is another node's only; only the store listen refusal holds fetchers (A-461b)

Builds: design 47 G A-461b
This commit is contained in:
2026-11-17 01:19:21 +01:00
parent cbed32524a
commit bb285f9c1b
4 changed files with 122 additions and 50 deletions
+6 -2
View File
@@ -209,8 +209,10 @@ type Composer struct {
addedFps map[string]bool
// heard is, by node and module, what each node's event running last said it runs, kept from the seat's stream by this
// node's own consumer (NoteRunning), under mu; heardRead is whether the first read of the stream ended (RunningRead).
heard map[string]map[string]heardRun
heardRead bool
heard map[string]map[string]heardRun
// trunkBuilds is, by module, the trunk build asked for another node's module whose placement names none, with the running build it was asked for (A-461b).
trunkBuilds map[string]trunkBuild
heardRead bool
// ends is, by module, the last build end naming no branch the builder said of it (NoteBuildEnded), its newest build that
// ended, under mu; endsRead is whether the first read of the builder's stream ended (BuildEndsRead) (design 47 G A-293).
ends map[string]builds.BuildEnded
@@ -2311,6 +2313,8 @@ func (c *Composer) WhyUnmade(module string) string {
return c.last.Unmade[module]
}
type trunkBuild struct{ running, fp string }
// heardRun is one running event as the composer keeps it, with when it was said.
type heardRun struct {
at time.Time