A-386 runner-left-out-is-kept-and-carried: a tool runner of the list in force that the pass composes no account for is kept as it runs and written as a carrying runner

Builds: design 47 G A-386 (G-22-lead-answers-2.md)

Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
2026-11-14 01:53:44 +01:00
parent 54a19f3f64
commit fa5df62e97
3 changed files with 95 additions and 0 deletions
@@ -153,3 +153,20 @@ func (p *Part) sayHeldModules(held map[string]string, kept map[string]User) {
p.heldModulesSaid, p.heldModulesKnown = why, true
}
}
// runnersOutOfTheList are, by user, why it is kept: a user of the list in force that is a tool runner (it says its node's runner is alive,
// buscompose.ToolsAliveSubject) and that the pass composed no account for. Pure.
func runnersOutOfTheList(inForce map[string]User, composed []User, already map[string]string) map[string]string {
out := map[string]string{}
for user, u := range inForce {
node, _, cut := strings.Cut(user, ".")
if !cut || !slices.Contains(u.Publish, buscompose.ToolsAliveSubject(node)) {
continue
}
if _, kept := already[user]; kept || slices.ContainsFunc(composed, func(c User) bool { return c.User == user }) {
continue
}
out[user] = fmt.Sprintf("the pass composes no account for the tool runner of %s (its manifest is not readable), so it keeps what it runs", node)
}
return out
}
@@ -370,6 +370,11 @@ func (p *Part) Compose() Result {
}
heldUsers := heldModuleUsers(in, candidates)
runnersKept := runnerUsersKept(listRecs, inForce)
// And a runner of the list in force that the pass composes no principal for, whatever the reason (its manifest is unreadable and another
// module placed on its node says it is the runner): kept as it runs, and written as a carrying runner (design 47 G A-386).
for user, why := range runnersOutOfTheList(inForce, users, runnersKept) {
runnersKept[user] = why
}
for user, why := range runnersKept {
heldUsers[user] = why
}