assigner: comments of the chunked composition input cite A-237c

Builds: design 47 G (G-22 lead answers 2) A-237c; A-237b
This commit is contained in:
2026-11-16 14:49:47 +01:00
parent 0ee747cf1b
commit 00de5a7f43
@@ -74,7 +74,7 @@ type nodeInput struct {
type compositionInputs struct {
machines func(module, branch string) []string
// callFile asks a seat verb marked chunks, addressed to one node as `seat:<seat>.<verb>@<node>`, and answers the verb's answer with
// the whole file received added as its member `file`, base64 (process.Conn.CallFile; design 47 G A-237b, A-249). The call
// the whole file received added as its member `file`, base64 (process.Conn.CallFile; design 47 G A-237b, A-237c, A-249). The call
// token is the body's `call`.
callFile func(key string, body any) (json.RawMessage, error)
bound time.Duration
@@ -124,7 +124,7 @@ func (c *compositionInputs) one(ctx context.Context, bound time.Duration, node,
}
got := make(chan reply, 1)
go func() {
// The input is any size, so the verb sends it in chunks on the call token chosen here, and the file is the input (A-237b).
// The input is any size, so the verb sends it in chunks on the call token chosen here, and the file is the input (A-237b, A-237c).
var bits [16]byte
if _, err := rand.Read(bits[:]); err != nil {
got <- reply{nil, err}
@@ -181,7 +181,7 @@ func (c *compositionInputs) one(ctx context.Context, bound time.Duration, node,
}
body = file
} else {
// An answer with the input inline (an engine before A-237b): the object, as it was.
// An answer with the input inline (an engine before A-237b, read until the checker is removed, A-237c, G-6 §321): the object, as it was.
var err error
if body, err = json.Marshal(a.Input); err != nil {
in.Why = "its composition input cannot be encoded again: " + err.Error()