T1a verb-timeout-ask: a bundle's ask waits the timeout its verb's definition names

The runner reads the `timeout` (whole seconds) of a seat's verb from the seat list's definitions beside `chunked` and hands it to
the bus connection's ask (AskWithin, AskAsWithin, AskAsChunkedWithin); a verb that names none, a seat the definitions do not hold
and a module's tool wait the runner's own bound, RequestTimeout.

Builds: design 47 H §760, H-A-43

Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
This commit is contained in:
2026-11-20 02:35:28 +01:00
parent 76df3cb420
commit 5314231c0d
8 changed files with 144 additions and 15 deletions
+10
View File
@@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"testing"
"time"
)
func TestSubjectsAreTheOnesTheTypeScriptRuntimeUses(t *testing.T) {
@@ -60,3 +61,12 @@ func TestAnEventDeliveredAgainHasItsOwnKey(t *testing.T) {
}
}
}
// Design 47 H §760: a call waits the bound its verb's definition names, else the tool runner's own.
func TestWaitOfIsTheVerbsBoundElseTheRunnersOwn(t *testing.T) {
for within, want := range map[time.Duration]time.Duration{0: RequestTimeout, 40 * time.Second: 40 * time.Second, 600 * time.Second: 600 * time.Second} {
if got := waitOf(within); got != want {
t.Errorf("waitOf(%s) = %s, want %s", within, got, want)
}
}
}