nox calls the seats that own each job, not the unassigned controller
The controller nox forwarded every line to is unassigned (issue 1126), so nox answered nothing but enrol open. Each line now calls the seat verb or module tool that owns its job through this machine's console (mesh_call); a line no seat owns says so and names what to use, never failing silently. Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
@@ -17,8 +17,8 @@ import (
|
||||
|
||||
// 774/S51/AC1, AC2 (novox/hq ADR 0587 §6, §8): a token sealed to a test operator key (as mesh-vault seals it: the text
|
||||
// of the token, anonymous box, base64) is opened with the private half and printed as a token the engine's parser reads
|
||||
// (base64url of version 1 JSON with node, broker, fingerprint, signer and secret), and nothing is asked of the engine's
|
||||
// socket, which here is a path nobody listens on; the wrong key prints nothing and says the token is not sealed to it.
|
||||
// (base64url of version 1 JSON with node, broker, fingerprint, signer and secret), and nothing is asked of the console, which
|
||||
// here is an address nobody listens on; the wrong key prints nothing and says the token is not sealed to it.
|
||||
func TestEnrolOpenOpensASealedTokenLocallyAndOnlyWithItsKey(t *testing.T) {
|
||||
t.Setenv("MESH_VERB", "")
|
||||
token := base64.RawURLEncoding.EncodeToString([]byte(`{"v":1,"node":"new1","broker":"tls://10.77.0.1:4222",` +
|
||||
@@ -37,9 +37,9 @@ func TestEnrolOpenOpensASealedTokenLocallyAndOnlyWithItsKey(t *testing.T) {
|
||||
}
|
||||
return p
|
||||
}
|
||||
before, beforeIn := socket, standardInput
|
||||
socket = filepath.Join(dir, "nobody-listens.sock")
|
||||
t.Cleanup(func() { socket, standardInput = before, beforeIn })
|
||||
beforeIn := standardInput
|
||||
t.Setenv("MESH_CONSOLE", "http://127.0.0.1:1/mcp") // nothing listens: enrol open asks nothing of the mesh
|
||||
t.Cleanup(func() { standardInput = beforeIn })
|
||||
for _, c := range []struct {
|
||||
name string
|
||||
args []string
|
||||
|
||||
Reference in New Issue
Block a user