Area 2 (join 11): claude-code invokes operator-channel notify and restic the assigner's assignments
Builds: design 47 G GR8 (per-verb grants), area 2 of the join Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// The seat verbs the module calls are in its manifest's invokes, which the grants part reads per verb (design 47 G GR8): the
|
||||
// assignments that tell who holds the seat mesh-broker (seatlist.HolderOf) and the broker's show that names its finding stream (A-274).
|
||||
func TestTheManifestInvokesTheSeatVerbsTheModuleCalls(t *testing.T) {
|
||||
raw, err := os.ReadFile(moduleDir + "/module.json")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
for _, verb := range []string{"seat:mesh-module-assigner.assignments", "seat:mesh-broker.show"} {
|
||||
if !strings.Contains(string(raw), `"`+verb+`"`) {
|
||||
t.Errorf("the manifest does not invoke %s", verb)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user