Copy the kept call's ask id from its request header into the call's _meta as mesh/ask

Every tool call and seat verb the tool runner serves hands the bundle the ask id the kept call set
in the header x-ask (stdio.AskHeader) under _meta mesh/ask (stdio.MetaAsk), beside mesh/call; a call
whose header carries none names none.

Builds: design 47 H2 §775, H-A-351
This commit is contained in:
2026-11-21 23:14:53 +01:00
parent f7269d9812
commit 2365e41811
9 changed files with 87 additions and 27 deletions
+1 -1
View File
@@ -328,7 +328,7 @@ func TestANodeScopedSeatVerbIsAlsoAnsweredWithNoMachine(t *testing.T) {
return []registration{{module: "node-shelf", owner: "theta", tools: []launch.Tool{{Name: "list",
Run: func(string, json.RawMessage) (json.RawMessage, error) { return json.RawMessage(`{"shelf":["x"]}`), nil }}}}}
}
gated := func(_ approval.Call, tool launch.Tool, caller string) (any, error) {
gated := func(_ approval.Call, tool launch.Tool, caller, _ string) (any, error) {
return tool.Run(caller, nil)
}
nodeTools.Follow("theta")