Register a new module from the builder's first done key and ask no first build; its condition reads the key and names a manifest word this controller does not read (issue 1851, A5a, A5b)

This commit is contained in:
2026-10-22 19:05:04 +02:00
parent d984f0a55d
commit ea3c8ad7f6
19 changed files with 608 additions and 1011 deletions
@@ -124,6 +124,11 @@ func TestTheControllerReadsTheBuildersKeysAndTheIndexersValues(t *testing.T) {
if _, err := r.ModuleAt(ctx, "x", "9999999999"); !errors.Is(err, ErrNoValue) {
t.Fatalf("a commit the indexer never wrote: %v", err)
}
put(t, modules, "broken", []byte("{not json"))
all, unread, err := r.Modules(ctx)
if err != nil || len(all) != 1 || all["x"].Commit != "3333333333" || unread["broken"] == nil {
t.Fatalf("every module's value now: %+v %v %v", all, unread, err)
}
}
// The controller's account reaches the builder's and the indexer's buckets: it is granted the JetStream API whole.