Make five manifests the milestone changed pass the indexer's judge: an event in one place, one form per state, a digest of a text field, trusted and runtime config values (issue 1966)

messenger's refusal took its declaration of operator-channel out of the judged catalogue, so claude-code's use of it
was refused too. distribution's two remaining refusals (its program builds beside the artifact store it provides,
and its only health check is its own tool) are a design question left to the lead.

Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
This commit is contained in:
2026-11-04 19:55:36 +01:00
parent b4e0518282
commit cea09d8a36
9 changed files with 24 additions and 26 deletions
@@ -4,6 +4,7 @@ import (
"encoding/json"
"os"
"path/filepath"
"slices"
"strings"
"testing"
@@ -53,11 +54,9 @@ func TestEveryStateAndActHasItsTool(t *testing.T) {
if dm, err := catalogue.Decode(raw); err != nil {
t.Errorf("the manifest does not decode: %v", err)
} else {
emits := strings.Join(dm.Emits, ",")
for _, e := range []string{ConfigChanged, EventRenamed, EventRetiring, EventRetired} {
if !strings.Contains(emits, e) {
t.Errorf("the manifest does not declare the event %s", e)
}
// An event goes to one place (novox/hq ADR 0363 §2): config-changed to EVENTS, the rename window's to the stream.
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) ||
!dm.Streams[0].Carries(EventRetiring) || !dm.Streams[0].Carries(EventRetired) || dm.Streams[0].Carries(ConfigChanged) {