nats and mesh-config: their event streams keep their history, the bus's predefined form of an event family, not an age-limited stream of their own (V1; ADR 0592 §6; issue 1966)
Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i
This commit is contained in:
@@ -63,9 +63,9 @@ func TestEveryStateAndActHasItsTool(t *testing.T) {
|
||||
if !slices.Equal(dm.Emits, []string{ConfigChanged}) {
|
||||
t.Errorf("emits %v, want only %s: the stream carries the others", dm.Emits, ConfigChanged)
|
||||
}
|
||||
if len(dm.Streams) != 1 || dm.Streams[0].Name != StreamName || dm.Streams[0].Days() != 7 || !dm.Streams[0].Carries(EventRenamed) ||
|
||||
if len(dm.Streams) != 1 || dm.Streams[0].Name != StreamName || !dm.Streams[0].KeepsHistory() || !dm.Streams[0].Carries(EventRenamed) ||
|
||||
!dm.Streams[0].Carries(EventRetiring) || !dm.Streams[0].Carries(EventRetired) || dm.Streams[0].Carries(ConfigChanged) {
|
||||
t.Errorf("streams %+v: want %s, seven days, carrying renamed, retiring and retired but not config-changed", dm.Streams, StreamName)
|
||||
t.Errorf("streams %+v: want %s, keeping its history, carrying renamed, retiring and retired but not config-changed", dm.Streams, StreamName)
|
||||
}
|
||||
}
|
||||
for _, verb := range SeatVerbs {
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
const (
|
||||
RenamesState = "renames"
|
||||
// EventRenamed is `renamed`, EventRetiring `retiring` and EventRetired `retired`, the family `config.events` of the
|
||||
// seat's definition (design 26), under the holder's subjects: each carried by the stream StreamName, kept seven days.
|
||||
// seat's definition (design 26), under the holder's subjects: each carried by the stream StreamName, which keeps its history.
|
||||
EventRenamed = "renamed"
|
||||
EventRetiring = "retiring"
|
||||
EventRetired = "retired"
|
||||
|
||||
Reference in New Issue
Block a user