Keep the reserved stream prefixes in the judge, the one part that reads them (ADR 0578 §4)
Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
@@ -5459,7 +5459,7 @@ func StreamProblems(m catalogue.Manifest) []string {
|
||||
problems = append(problems, fmt.Sprintf(
|
||||
"%s declares stream %q, which is the mesh's own stream %s (novox/hq ADR 0363)", m.Module, s.Name, s.BusName()))
|
||||
default:
|
||||
for _, prefix := range catalogue.ReservedStreamPrefixes {
|
||||
for _, prefix := range reservedStreamPrefixes {
|
||||
if strings.HasPrefix(s.BusName(), prefix) {
|
||||
problems = append(problems, fmt.Sprintf(
|
||||
"%s declares stream %q, whose name on the bus starts with %s, which the mesh derives names "+
|
||||
@@ -8829,3 +8829,7 @@ type barOption struct {
|
||||
|
||||
func first(a, _ []string) []string { return a }
|
||||
func second(_, b []string) []string { return b }
|
||||
|
||||
// reservedStreamPrefixes are the starts of the stream names the mesh derives, which no module's stream may take (moved
|
||||
// from mesh-sdk's catalogue, ReservedStreamPrefixes: a rule's table is the judge's, novox/hq ADR 0578 §4).
|
||||
var reservedStreamPrefixes = []string{"SEAT_", "LOG_", "KV_", "OBJ_", "DEAD_"}
|
||||
|
||||
Reference in New Issue
Block a user