Design 47 H1: the indexer retires call-unanswered by the ids it wrote under it

The daemon's call-unanswered keys from before the rename would be seeded and
stated by the tool runner's writer, which owns that kind, and never cleared.
The retired list now names call-unanswered with the indexer's own id forms
(the seed's node-build-<kind>.steps, the floor's
mesh-catalog.versions-floor.<module>, the versions fill's
mesh-delivery-builder.builder_versions), so those keys clear once and the
tool runner's approval findings stay.

Builds: design 47 H H-A-247 (3), H-A-249, G §580
This commit is contained in:
2026-11-21 11:50:27 +01:00
parent ad0052c6f5
commit 31c2c5c7fe
2 changed files with 28 additions and 5 deletions
@@ -178,9 +178,28 @@ func TestFindingKindsHoldEveryKindTheCodeRaises(t *testing.T) {
}
}
// a retired kind is one no code raises and the writer does not own (H-A-247 (3))
for _, k := range RetiredFindingKinds {
if at, ok := raised[k]; ok || slices.Contains(declared, k) {
t.Errorf("the retired kind %q is still declared or raised (%s)", k, at)
for _, r := range RetiredFindingKinds {
if at, ok := raised[r.Kind]; ok || slices.Contains(declared, r.Kind) {
t.Errorf("the retired kind %q is still declared or raised (%s)", r.Kind, at)
}
}
// H-A-249: the retired call-unanswered names the ids the indexer's unanswered calls are written under, as in a key
covers := func(id string) bool {
for _, r := range RetiredFindingKinds {
if r.Kind == mcc.KindCallUnanswered && (slices.Contains(r.IDs, id) ||
slices.ContainsFunc(r.Prefixes, func(p string) bool { return strings.HasPrefix(id, p) })) {
return true
}
}
return false
}
for _, id := range []string{keyID("node-build-go." + StepsVerb), keyID("node-build-image." + StepsVerb), keyID(floorKey("mesh-tools")),
keyID(BuilderVersionsCall)} {
if !covers(id) {
t.Errorf("the retired call-unanswered does not cover the indexer's id %s", id)
}
}
if covers("mesh-hand-acts.warranted") || covers("ask-1") {
t.Error("the retired call-unanswered covers an id of the tool runner's")
}
}
@@ -27,8 +27,12 @@ var FindingKinds = []string{PinMissingKind, OutOfStepKind, PackagesNotPublishedK
views.EventUnhandledKind, heard.Kind}
// RetiredFindingKinds are kinds no code of the indexer raises any more, which its writer clears once at its start (H-A-247
// (3)): merge-untaken went with H-A-82.
var RetiredFindingKinds = []string{"merge-untaken"}
// (3)): merge-untaken went with H-A-82; call-unanswered became indexer-call-unanswered (H-A-247 (2)), and since the tool
// runner's writer owns call-unanswered in the same state, only the ids the indexer wrote under it are cleared (H-A-249):
// the seed's <build seat>.steps (every build seat is named node-build-<kind>), the floor's mesh-catalog.versions-floor.<module>
// and the versions fill's mesh-delivery-builder.builder_versions.
var RetiredFindingKinds = []views.RetiredKind{{Kind: "merge-untaken"}, {Kind: mcc.KindCallUnanswered,
IDs: []string{keyID(BuilderVersionsCall)}, Prefixes: []string{"node-build-", keyID(FloorCall) + "."}}}
// FindingWriter is the indexer's finding writer, mesh-sdk's held writer of the seat mesh-conditions' generated finding (design
// 47 G A-29, A-38): Write raises a finding, Clear clears one, Held answers the findings it holds, so the indexer reads what