Design 47 H2: the delivery parts' classes and caps, the builder's publish queue, the indexer's seat list, the runner and the forge bridge #322

Merged
mesh-tools merged 121 commits from feat/47-H2 into main 2026-11-22 04:56:13 +00:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit a63f4e001b - Show all commits
@@ -513,6 +513,7 @@ func TestTheControlRecords(t *testing.T) {
t.Errorf("a state not on the bus yet stopped the message: %v", err)
}
})
t.Run("seat-list", seatListIsOneObjectByItsDigest)
}
// memSource is a state as views.Source, for the indexer's tools that answer from its own states.
@@ -70,9 +70,10 @@ func (noLine) Subscribe(string, nats.MsgHandler) (*nats.Subscription, error) {
return nil, errors.New("no bus in this test")
}
// Design 47 H2 §814, §820 (H-A-441, H-A-443): the trunk's seat list is one object of seat-lists named by its sha256, in the
// order of its seats, kept at each new list with the newest two, and handed by the verb seat-list.
func TestTheSeatListIsOneObjectByItsDigest(t *testing.T) {
// seatListIsOneObjectByItsDigest is TestTheControlRecords' row "seat-list" (design 47 H2 §814, §820; H-A-441, H-A-443): the
// trunk's seat list is one object of seat-lists named by its sha256, in the order of its seats, kept at each new list with the
// newest two, and handed by the verb seat-list. A row, not a test of its own: the indexer's unit count does not rise (§819).
func seatListIsOneObjectByItsDigest(t *testing.T) {
entry := func(seat, source, def string) *views.Entry {
raw, _ := json.Marshal(SeatDefinitionEntry{Seat: seat, Source: source, Digest: "d-" + seat, Definition: json.RawMessage(def)})
return &views.Entry{Value: raw}