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
+3 -2
View File
@@ -106,8 +106,9 @@ func callerOn(pattern, subject string) string {
return UserOfToken(subject[dot+1:])
}
// CalledHandler answers one call, told who called: the bus user the subject named, or "" when it named none.
type CalledHandler func(caller string, body json.RawMessage) (any, error)
// CalledHandler answers one call, told who called: the bus user the subject named, or "" when it named none; and the ask id the
// call carried in its request header stdio.AskHeader, or "" (design 47 H2 §775, H-A-351).
type CalledHandler func(caller, ask string, body json.RawMessage) (any, error)
// callers is what a connection keeps of its caller-named calls: those in flight, by subject, so a refused
// publish ends its call at once instead of after RequestTimeout.