Let the approval gate's start path through mesh-broker.list (A-375)
Builds: design 47 G A-375 (extends A-359) Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
@@ -92,7 +92,7 @@ func (unread) Newest(string) (Entry, bool) { return Entry{}, fals
|
||||
func (unread) Definitions() map[string]seatdef.Definition { return nil }
|
||||
func (unread) Entries() []Entry { return nil }
|
||||
|
||||
// Design 47 G lead answers A-353, A-359: while its catalog half is unread, the gate lets through the four seat verbs that
|
||||
// Design 47 G lead answers A-353, A-359: while its catalog half is unread, the gate lets through the five seat verbs that
|
||||
// half is read by, told from the call's seat and verb, and holds every other call as before.
|
||||
func TestAnUnreadCatalogHalfLetsItsOwnReadsThrough(t *testing.T) {
|
||||
waited := 0
|
||||
@@ -108,6 +108,8 @@ func TestAnUnreadCatalogHalfLetsItsOwnReadsThrough(t *testing.T) {
|
||||
{"mesh-catalog", "revision", true},
|
||||
{"mesh-catalog", "entry", true},
|
||||
{"mesh-delivery", "source", true},
|
||||
{"mesh-broker", "list", true},
|
||||
{"mesh-broker", "events", false},
|
||||
{"mesh-catalog", "register", false},
|
||||
{"mesh-delivery", "registrations", false},
|
||||
{"", "registrations", false}, // a module's tool of that name is no seat verb
|
||||
@@ -127,7 +129,7 @@ func TestAnUnreadCatalogHalfLetsItsOwnReadsThrough(t *testing.T) {
|
||||
t.Errorf("%s: refused with %v, want the marks not read yet", address, err)
|
||||
}
|
||||
}
|
||||
if waited != 4 {
|
||||
t.Errorf("the other calls waited for the catalog half %d times, want 4 (the four start reads wait for nothing)", waited)
|
||||
if waited != 5 {
|
||||
t.Errorf("the other calls waited for the catalog half %d times, want 5 (the five start reads wait for nothing)", waited)
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -70,8 +70,8 @@ type Binding interface{ Bound() bool }
|
||||
|
||||
// startReads are the seat verbs the catalog half is read by, as `<seat>.<verb>`: while it is unread the gate lets them
|
||||
// through, so the runner that serves them answers the reads its own catalog half waits on (design 47 G lead answers
|
||||
// A-353, A-359).
|
||||
var startReads = []string{"mesh-catalog.registrations", "mesh-catalog.revision", "mesh-catalog.entry", "mesh-delivery.source"}
|
||||
// A-353, A-359, A-375).
|
||||
var startReads = []string{"mesh-catalog.registrations", "mesh-catalog.revision", "mesh-catalog.entry", "mesh-delivery.source", "mesh-broker.list"}
|
||||
|
||||
// startRead says the call is one of startReads, told from its seat and verb.
|
||||
func startRead(c Call) bool {
|
||||
|
||||
Reference in New Issue
Block a user