kobako 0.31.0 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/.githooks/linux-tests.sh +29 -0
  3. data/.release-please-manifest.json +1 -1
  4. data/CHANGELOG.md +125 -0
  5. data/Cargo.lock +457 -494
  6. data/README.md +2 -3
  7. data/ROADMAP.md +0 -1
  8. data/crates/kobako-runtime/CHANGELOG.md +90 -0
  9. data/crates/kobako-runtime/Cargo.toml +14 -15
  10. data/crates/kobako-runtime/README.md +1 -1
  11. data/crates/kobako-runtime/src/cred.rs +32 -20
  12. data/crates/kobako-runtime/src/filesystem/bind/fid.rs +300 -22
  13. data/crates/kobako-runtime/src/filesystem/bind/lookup.rs +56 -22
  14. data/crates/kobako-runtime/src/filesystem/bind/unicode.rs +109 -0
  15. data/crates/kobako-runtime/src/filesystem/bind/walk.rs +33 -14
  16. data/crates/kobako-runtime/src/filesystem/bind.rs +393 -220
  17. data/crates/kobako-runtime/src/filesystem/overlay/stack/copy_up.rs +2 -0
  18. data/crates/kobako-runtime/src/filesystem/overlay/stack.rs +9 -10
  19. data/crates/kobako-runtime/src/filesystem/overlay.rs +277 -46
  20. data/crates/kobako-runtime/src/filesystem/rdir.rs +8 -27
  21. data/crates/kobako-runtime/src/filesystem/testing.rs +31 -0
  22. data/crates/kobako-runtime/src/filesystem/tmpfs.rs +47 -13
  23. data/crates/kobako-runtime/src/filesystem.rs +2 -0
  24. data/crates/kobako-runtime/src/fork.rs +239 -16
  25. data/crates/kobako-runtime/src/limits.rs +17 -41
  26. data/crates/kobako-runtime/src/locking/seqlock.rs +29 -3
  27. data/crates/kobako-runtime/src/locking.rs +508 -113
  28. data/crates/kobako-runtime/src/memcg.rs +83 -160
  29. data/crates/kobako-runtime/src/mount.rs +0 -30
  30. data/crates/kobako-runtime/src/net/connections.rs +53 -13
  31. data/crates/kobako-runtime/src/net/egress.rs +44 -24
  32. data/crates/kobako-runtime/src/net/http.rs +888 -456
  33. data/crates/kobako-runtime/src/net/lookup.rs +150 -50
  34. data/crates/kobako-runtime/src/net/namespace.rs +97 -95
  35. data/crates/kobako-runtime/src/net/reactor.rs +298 -203
  36. data/crates/kobako-runtime/src/net/resolv/darwin.rs +8 -3
  37. data/crates/kobako-runtime/src/net/resolv/stub/tests.rs +50 -0
  38. data/crates/kobako-runtime/src/net/resolv/stub.rs +29 -23
  39. data/crates/kobako-runtime/src/net/resolv/windows.rs +14 -44
  40. data/crates/kobako-runtime/src/net/resolv.rs +39 -15
  41. data/crates/kobako-runtime/src/net/skbuff.rs +109 -0
  42. data/crates/kobako-runtime/src/net/socket.rs +51 -52
  43. data/crates/kobako-runtime/src/net/task.rs +223 -0
  44. data/crates/kobako-runtime/src/net/tcp.rs +410 -158
  45. data/crates/kobako-runtime/src/net/tls.rs +65 -3
  46. data/crates/kobako-runtime/src/net/transport.rs +72 -47
  47. data/crates/kobako-runtime/src/net/udp.rs +231 -129
  48. data/crates/kobako-runtime/src/net.rs +3 -0
  49. data/crates/kobako-runtime/src/sched.rs +244 -58
  50. data/crates/kobako-runtime/src/security.rs +27 -16
  51. data/crates/kobako-runtime/src/vfs/dentry.rs +80 -41
  52. data/crates/kobako-runtime/src/vfs/file.rs +52 -53
  53. data/crates/kobako-runtime/src/vfs/kern_path.rs +24 -11
  54. data/crates/kobako-runtime/src/vfs/namei.rs +399 -184
  55. data/crates/kobako-runtime/src/vfs/namespace.rs +123 -40
  56. data/crates/kobako-runtime/src/vfs/stat.rs +105 -16
  57. data/crates/kobako-runtime/src/vfs.rs +1 -0
  58. data/crates/kobako-runtime/src/wait.rs +75 -50
  59. data/crates/kobako-transport/CHANGELOG.md +7 -0
  60. data/crates/kobako-transport/Cargo.toml +1 -1
  61. data/crates/kobako-transport/README.md +1 -1
  62. data/crates/kobako-wasmtime/CHANGELOG.md +47 -0
  63. data/crates/kobako-wasmtime/Cargo.toml +27 -6
  64. data/crates/kobako-wasmtime/README.md +3 -3
  65. data/crates/kobako-wasmtime/src/abi.rs +2 -1
  66. data/crates/kobako-wasmtime/src/ambient.rs +11 -2
  67. data/crates/kobako-wasmtime/src/cache/unix.rs +95 -0
  68. data/crates/kobako-wasmtime/src/cache/windows.rs +359 -0
  69. data/crates/kobako-wasmtime/src/cache.rs +88 -103
  70. data/crates/kobako-wasmtime/src/driver.rs +40 -27
  71. data/crates/kobako-wasmtime/src/invocation.rs +21 -7
  72. data/crates/kobako-wasmtime/src/lib.rs +2 -0
  73. data/crates/kobako-wasmtime/src/limiter.rs +78 -25
  74. data/crates/kobako-wasmtime/src/preview1/descriptors.rs +13 -17
  75. data/crates/kobako-wasmtime/src/preview1/differential/mount.rs +4 -5
  76. data/crates/kobako-wasmtime/src/preview1/differential.rs +1 -1
  77. data/crates/kobako-wasmtime/src/preview1/fd.rs +23 -19
  78. data/crates/kobako-wasmtime/src/preview1/mount_view.rs +130 -197
  79. data/crates/kobako-wasmtime/src/preview1/path.rs +3 -3
  80. data/crates/kobako-wasmtime/src/preview1/poll.rs +28 -22
  81. data/crates/kobako-wasmtime/src/preview1/random.rs +125 -0
  82. data/crates/kobako-wasmtime/src/preview1/testing.rs +31 -0
  83. data/crates/kobako-wasmtime/src/preview1.rs +85 -9
  84. data/crates/kobako-wasmtime/src/preview2/filesystem.rs +2 -2
  85. data/crates/kobako-wasmtime/src/preview2/host.rs +609 -249
  86. data/crates/kobako-wasmtime/src/preview2/http.rs +299 -215
  87. data/crates/kobako-wasmtime/src/preview2/io.rs +17 -4
  88. data/crates/kobako-wasmtime/src/preview2/table.rs +24 -72
  89. data/crates/kobako-wasmtime/src/trap.rs +68 -23
  90. data/crates/kobako-wasmtime/src/waits.rs +59 -0
  91. data/crates/kobako-wasmtime/src/wasi.rs +91 -10
  92. data/crates/kobako-wasmtime/witx/wasi_snapshot_preview1.witx +13 -0
  93. data/data/kobako.wasm +0 -0
  94. data/ext/kobako/Cargo.toml +6 -2
  95. data/ext/kobako/src/escape.rs +332 -26
  96. data/ext/kobako/src/filesystem/grants.rs +5 -7
  97. data/ext/kobako/src/filesystem/ruby.rs +10 -3
  98. data/ext/kobako/src/filesystem.rs +47 -8
  99. data/ext/kobako/src/fork.rs +72 -0
  100. data/ext/kobako/src/gvl.rs +499 -76
  101. data/ext/kobako/src/handoff.rs +490 -0
  102. data/ext/kobako/src/lib.rs +10 -0
  103. data/ext/kobako/src/network.rs +5 -3
  104. data/ext/kobako/src/pinned_value.rs +28 -15
  105. data/ext/kobako/src/runtime/bridge.rs +32 -25
  106. data/ext/kobako/src/runtime.rs +74 -43
  107. data/lib/kobako/catalog/handles.rb +9 -5
  108. data/lib/kobako/codec/decoder.rb +1 -1
  109. data/lib/kobako/codec/state.rb +2 -18
  110. data/lib/kobako/codec/value_budget.rb +4 -4
  111. data/lib/kobako/codec.rb +5 -6
  112. data/lib/kobako/errors.rb +4 -7
  113. data/lib/kobako/filesystem.rb +1 -1
  114. data/lib/kobako/fork.rb +42 -0
  115. data/lib/kobako/handle.rb +1 -2
  116. data/lib/kobako/sandbox.rb +17 -36
  117. data/lib/kobako/sandbox_options.rb +7 -9
  118. data/lib/kobako/usage.rb +4 -2
  119. data/lib/kobako/version.rb +1 -1
  120. data/lib/kobako.rb +2 -2
  121. data/sig/kobako/catalog/handles.rbs +2 -0
  122. data/sig/kobako/codec/state.rbs +0 -4
  123. data/sig/kobako/codec/value_budget.rbs +1 -1
  124. data/sig/kobako/codec.rbs +2 -2
  125. data/sig/kobako/errors.rbs +0 -3
  126. data/sig/kobako/fork.rbs +17 -0
  127. data/sig/kobako/runtime.rbs +2 -2
  128. data/sig/kobako/sandbox.rbs +3 -12
  129. data/sig/kobako/sandbox_options.rbs +0 -2
  130. metadata +15 -4
  131. data/lib/kobako/pool.rb +0 -162
  132. data/sig/core/thread.rbs +0 -6
  133. data/sig/kobako/pool.rbs +0 -46
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70b88fbf690f1d227e3506de6e696df614c8c4a75d7ef3fb5c7cb565a294eba2
4
- data.tar.gz: 0c8fa01f62a8b2bbb88a66b968079096a07519b826236ed40eea85163c0e96ac
3
+ metadata.gz: '0353518ecea6ea3abdce253ffcbf1ab8e7e0c4c12c9a43cbff1d708b00bb246f'
4
+ data.tar.gz: '09b55d0fd5c2bc23d1c2a5d08db931b674284acb9f3afc3c176877f0100d8df3'
5
5
  SHA512:
6
- metadata.gz: 7bf950b0e34bb75561b66276539baf5d9841aa3bd3a4b98c0753c5114c4e3839da1f6df1ab5fca5e096b2e70274a77936f480e92525cddf0a5e10a3431dcca1c
7
- data.tar.gz: fc780f7b0c754733b0d6fba5479bc291e94889a47a475ef37b81612f529b2b6a5624c7e5481ed9c200a4152e9853462d32f47d6483f151171262551186dcf368
6
+ metadata.gz: 2a4cec6c53fcd8b026af7f9af6c0cfe4556a4f9c924a545fc315f9b2f93651295f292e15f3c31eb169db81246280e327f7d1fef8599b4e8d9e7377109ecb0f5e
7
+ data.tar.gz: 33a7702383860a4aa0e346000502c2404a76e4cc9b2efc514a7b52150e70263c1157c9ab8db7cb786119a42e063e1c846d3a61cccf36354cb1002f3a4d0fc09c
@@ -0,0 +1,29 @@
1
+ #!/bin/bash
2
+ # pre-push: run the tests only Linux compiles — the Mount differential probe
3
+ # against wasmtime-wasi — in a Linux container, as CI runs on ubuntu, since
4
+ # a macOS gate never builds them. `rake hooks:install` registers it.
5
+ set -euo pipefail
6
+
7
+ root="$(git rev-parse --show-toplevel)"
8
+
9
+ # Nothing to run in where docker is absent or stopped.
10
+ docker info >/dev/null 2>&1 || {
11
+ echo "[linux-tests] docker unavailable — skipping the Linux-only tests" >&2
12
+ exit 0
13
+ }
14
+
15
+ log="${TMPDIR:-/tmp}"
16
+ log="${log%/}/kobako-linux-tests.log"
17
+
18
+ # Named volumes keep the target and the registry between pushes, so a
19
+ # later run compiles only what changed.
20
+ toolchain=$(sed -nE 's/^channel *= *"([^"]+)".*/\1/p' "$root/rust-toolchain.toml")
21
+ echo "[linux-tests] running the Linux-only tests in rust:${toolchain}-slim" >&2
22
+ if ! docker run --rm -v "$root":/src:ro -v kobako-linux-target:/target \
23
+ -v kobako-linux-cargo:/usr/local/cargo/registry -e CARGO_TARGET_DIR=/target \
24
+ -w /src/crates "rust:${toolchain}-slim" \
25
+ cargo test -p kobako-wasmtime --lib differential >"$log" 2>&1; then
26
+ grep -E 'FAILED|panicked|left:|right:|error' "$log" | head -n 40 >&2
27
+ echo "[linux-tests] failed; full output: $log" >&2
28
+ exit 1
29
+ fi
@@ -1 +1 @@
1
- {".":"0.31.0","wasm/kobako-core":"0.21.0","wasm/kobako-mruby":"0.21.0","wasm/kobako-io":"0.21.0","wasm/kobako-json":"0.21.0","wasm/kobako-regexp":"0.21.0","wasm/kobako-baker":"0.21.0","crates/kobako-transport":"0.21.0","crates/kobako-codec":"0.21.0","crates/kobako-runtime":"0.21.0","crates/kobako-wasmtime":"0.21.0","crates/kobako":"0.21.0"}
1
+ {".":"0.32.0","wasm/kobako-core":"0.22.0","wasm/kobako-mruby":"0.22.0","wasm/kobako-io":"0.22.0","wasm/kobako-json":"0.22.0","wasm/kobako-regexp":"0.22.0","wasm/kobako-baker":"0.22.0","crates/kobako-transport":"0.22.0","crates/kobako-codec":"0.22.0","crates/kobako-runtime":"0.22.0","crates/kobako-wasmtime":"0.22.0","crates/kobako":"0.22.0"}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,130 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.32.0](https://github.com/elct9620/kobako/compare/v0.31.0...v0.32.0) (2026-11-27)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * **spec:** Kobako::Filesystem::Tmpfs.new without size: holds 4 MiB and 1025 entries instead of 64 MiB and 16385. Pass
9
+ * **wasmtime:** a guest no longer reads EINTR from a call its run's deadline or interrupt ended; the run ends there as a timeout or an interrupt.
10
+ * **runtime:** a listing, a walk, or a copy up in a run past its deadline or interrupted now answers EINTR mid-way instead of finishing.
11
+ * **runtime:** a reader may now take a free directory ahead of a writer already waiting for it, and a trylock fails while any thread waits, so calls on a contended directory land in another order.
12
+ * an invocation issuing its 1,000,001st Handle raises
13
+ * **runtime:** connection_limit now also counts name lookups, failed dials, and each further address an HTTP request dials, so a run reaches the default 50 sooner; a socket to a new name spends two. Raise connection_limit for a script that needs more.
14
+ * a Sandbox whose memory_limit is above 4 MiB, or nil, no longer accepts a guest payload of more than 262144 values; such a payload fails as it does under the default cap.
15
+ * **spec:** memory_limit measures the guest's own memory only. A Host App that relied on it to cap host-side buffers caps them through open_connection_limit and open_file_limit instead.
16
+ * **memcg:** a run whose start function, global initializers, table growth, or request grow past memory_limit now raises Kobako::MemoryLimitError, growth of several memories and the GC heap adds up, and Usage#memory_peak includes them. Raise memory_limit by that growth to keep the earlier headroom.
17
+ * **spec:** a run whose start function, global initializers, table growth, or request grow past memory_limit now raises Kobako::MemoryLimitError, and growth of several memories and the GC heap adds up. Raise memory_limit by that growth to keep the earlier headroom.
18
+ * **fork:** Kernel#fork, IO.popen("-") and Process.daemon raise RuntimeError while any Sandbox run is in progress on any Thread, where v0.31.0 forked. Fork before the runs start or once none is in progress, as a preforking server does before it serves, and retry a refused fork after the runs end.
19
+ * **spec:** on Windows, a lookup dropped before it answers keeps its place against `open_connection_limit` until the host's query finishes, so a script dropping lookups and asking again at the cap may see `EAI_AGAIN` a moment longer.
20
+ * **spec:** `open_file_limit` defaults to 16 instead of 1024. A script holding more files, sockets, or Overlay directories at once raises `Errno::EMFILE` sooner; pass `open_file_limit:` to `Sandbox.new` with the room the script needs.
21
+ * **spec:** a script that closes a TCP connection with bytes the peer has not read keeps that connection counted against `open_file_limit` until the peer reads them, so opening another file right away may raise `Errno::EMFILE`; with no open file left, the closed connection resets and its unsent bytes are lost.
22
+ * **filesystem:** `Kobako::Filesystem::Bind.new` raises `Errno::EMFILE` or `Errno::ENFILE` when the host is out of descriptors, where it raised `ArgumentError`; rescue `SystemCallError` for that case.
23
+ * **spec:** `Kobako::Filesystem::Bind.new` raises `Errno::EMFILE` or `Errno::ENFILE` when the host is out of descriptors, where it raised `ArgumentError`; rescue `SystemCallError` for that case. A path that cannot be opened for any other reason still raises `ArgumentError`.
24
+ * **spec:** An Overlay directory over N Bind Layers now takes N of `open_file_limit`, so a script holding such directories open meets the cap sooner; raise `open_file_limit` by the Layers each held directory spans. `Dir.glob` through a directory past the cap raises
25
+ * **gvl:** gvl: :hold no longer serializes guests across Threads. A guest that outlasts one quantum may overlap another Thread's run and use more than one core. A Host App that relied on :hold to run guests one at a time, such as two guests reading and writing one Tmpfs, serializes those calls itself, for example with a Mutex around Sandbox#eval. RUBY_THREAD_TIMESLICE, set before Ruby starts, lengthens the quantum on Ruby 3.4 and later.
26
+ * **spec:** gvl: :hold no longer serializes guests across Threads. A guest that outlasts one quantum may overlap another Thread's run and use more than one core. A Host App that relied on :hold to run guests one at a time, such as two guests reading and writing one Tmpfs, serializes those calls itself, for example with a Mutex around Sandbox#eval. RUBY_THREAD_TIMESLICE, set before Ruby starts, lengthens the quantum on Ruby 3.4 and later.
27
+ * **spec:** Usage#memory_peak can pass memory_limit by a write's permitted room as well as a network read, at most 68 KiB more per open connection. A Host App that allows memory_peak one read past memory_limit allows that margin too.
28
+ * **spec:** a guest's TRACE no longer carries a bound credential's value, where it was swapped in over HTTPS, and its source is not asked. A TRACE with a body raises Errno::EACCES where it was sent; send the body with another method.
29
+ * **spec:** a guest's HTTP request whose method is CONNECT now raises Errno::EACCES where it was sent. A script that needs a tunnel or raw bytes opens a TCPSocket to an endpoint declared with protocol: :tcp.
30
+ * **spec:** Usage#memory_peak can pass memory_limit by at most one network read per open connection, where it never did before. A Host App that checks memory_peak <= memory_limit allows that margin. Making a socket no longer answers ENOMEM for want of room for its buffers.
31
+ * **gvl:** a Service of a Sandbox releasing the GVL no longer takes interrupts the Host App's own Thread.handle_interrupt mask defers; it takes them as that mask allows, as under gvl: :hold. The warning a run releasing the GVL gave on the main Thread is gone.
32
+ * **sandbox:** `Kobako::Pool` and `Kobako::PoolTimeoutError` are removed. Share one `Kobako::Sandbox` across Threads instead; a Host App that needs a bound on concurrent runs or a checkout timeout keeps one of its own, such as a `Thread::SizedQueue` or the `connection_pool` gem.
33
+ * **vfs:** a guest now holds one preopen, `/`, at descriptor 3, instead of one per outermost Mount named by its path. A Guest Binary built on wasi-libc is unaffected; one that reads a Mount through descriptor 3 directly walks from `/` now, or the Host App mounts its Filesystem at `/`. `kobako_runtime::mount::outermost_of` is removed; a Wasm Driver opens `Cred::root` instead.
34
+ * **security:** a Sandbox whose nested mount path passes a host link, at its last name or above it, now fails each run with "stands nowhere: ELOOP" instead of standing where the link leads. Mount the directory the link leads to by its own path instead.
35
+
36
+ ### Features
37
+
38
+ * **gvl:** hand a run's wait on its guest to the Fiber scheduler ([cace4d4](https://github.com/elct9620/kobako/commit/cace4d4cfb2fb168b2e69ab26b0374e48975e6c2))
39
+ * **http:** stream a request body as the guest writes it ([ed2b571](https://github.com/elct9620/kobako/commit/ed2b571820d46b1fdfff577b3c8257fd7c63ce71))
40
+ * **sandbox:** count each Sandbox's runs waiting, read through Sandbox#stat ([5cce9fc](https://github.com/elct9620/kobako/commit/5cce9fcdd87907577845b9e5e196ea341858b272))
41
+ * **sandbox:** have a fork wait for the runs in progress, or raise where it cannot ([3c33928](https://github.com/elct9620/kobako/commit/3c3392818a0454cfd72fc720560afc32b0a04aa5))
42
+ * **sandbox:** remove Kobako::Pool, as Threads share one Sandbox ([f06ee29](https://github.com/elct9620/kobako/commit/f06ee2968231d1fb69334e46a878c42f161520ac))
43
+ * **vfs:** preopen the guest's root alone, beneath which every Mount stands ([2a6d18d](https://github.com/elct9620/kobako/commit/2a6d18d78814f0529b15e109bbcd50f8b372e51b))
44
+ * **wasmtime:** let a forked child on macOS run Sandboxes on any Thread ([a78375a](https://github.com/elct9620/kobako/commit/a78375a440614eb14dee722365702bb3bab5a23c))
45
+
46
+
47
+ ### Bug Fixes
48
+
49
+ * **bench:** let go of the mount suite's Binds before removing their trees ([0bbf4d7](https://github.com/elct9620/kobako/commit/0bbf4d74fd7a95b19d2e2be117663a9302a0e9fc))
50
+ * **ext:** count a run waiting on a fork among a Sandbox's runs waiting ([332665a](https://github.com/elct9620/kobako/commit/332665a276014116232e668d5226706199dcf4e8))
51
+ * **ext:** let Ruby count the native memory its objects own ([f9099a8](https://github.com/elct9620/kobako/commit/f9099a89838179471f0e353eed03274575dc7495))
52
+ * **ext:** list a guest's thread idle before its caller hears the run ended ([d93f309](https://github.com/elct9620/kobako/commit/d93f309b4a5c60ffb1bb9b169ee91ca531441a05))
53
+ * **ext:** raise TrapError for a run the host has no thread for ([034e7ec](https://github.com/elct9620/kobako/commit/034e7ecd12e0aad46a2609f19702100b34c452ca))
54
+ * **filesystem:** collect garbage once before Bind.new gives up on descriptors ([effb018](https://github.com/elct9620/kobako/commit/effb018ca5205937d5f720ffb0abfb4a62afcbaa))
55
+ * **filesystem:** keep a Ruby Filesystem's directory listing as the VFS asks first ([5118802](https://github.com/elct9620/kobako/commit/5118802b71bbbe04f68d6f21dde91af13e877d0b))
56
+ * **fork:** drop the Binds' kept directories before a fork goes on ([c13dde5](https://github.com/elct9620/kobako/commit/c13dde5d3a38f85de8b0ad19b93c74012a884682))
57
+ * **fork:** raise for a fork while any run is in progress ([5dc6ee6](https://github.com/elct9620/kobako/commit/5dc6ee61837207681b0612ba9f63bd6cec1ae5cc))
58
+ * **guest:** free the lists the host hands the guest once they are read ([5830b96](https://github.com/elct9620/kobako/commit/5830b96ddd1c4cb31a73b6ba770f42eeabf4d09e))
59
+ * **gvl:** end a guest's thread left idle for ten seconds ([be70303](https://github.com/elct9620/kobako/commit/be70303952e19e994e00e9ab92c66e4a6b524a57))
60
+ * **gvl:** hand the GVL over each quantum while a run keeps it ([1e0d828](https://github.com/elct9620/kobako/commit/1e0d82802dbf1794744c2c724e013428bf4ca012))
61
+ * **gvl:** have a run on a Fiber a callback starts hold locks as that run ([723db42](https://github.com/elct9620/kobako/commit/723db4236131c95f140bef07e583e014e2ac8168))
62
+ * **gvl:** have the run's caller mark what the run pinned, rather than root it ([001c09f](https://github.com/elct9620/kobako/commit/001c09fc6c4272b92b843d138e4c39c9250fc614))
63
+ * **gvl:** hold what Ruby delivers while the guest runs, in either mode ([12b3067](https://github.com/elct9620/kobako/commit/12b306780be7bcbcce013d05d635c10b5cd47888))
64
+ * **gvl:** judge a run on another Fiber of the Thread as CRuby's Mutex does ([e63a23f](https://github.com/elct9620/kobako/commit/e63a23fcb5fbc2b6c28072c9e8122497f924eb06))
65
+ * **gvl:** keep a Service's throw on its target past Ruby the run calls ([a4cffb7](https://github.com/elct9620/kobako/commit/a4cffb72a1b118a69abf461946d0675864961300))
66
+ * **gvl:** run each guest on a thread of its own, served by its caller ([7710c21](https://github.com/elct9620/kobako/commit/7710c212552415eaa4dd683d54e20d5aad89de26))
67
+ * hold every guest payload to the Codec's own 262144 values ([f5ba51d](https://github.com/elct9620/kobako/commit/f5ba51dc682e4afefdee9023186ce85367c6c293))
68
+ * hold one invocation's Handle table to 1,000,000 entries ([7f37f5b](https://github.com/elct9620/kobako/commit/7f37f5b70b1c9befd45ea5913eac2efb8f290e09))
69
+ * **memcg:** charge every growth from the run's Store past what the binary declares ([44c7a8b](https://github.com/elct9620/kobako/commit/44c7a8bdc444b96a5d34a137a72b4e2f3c292d80))
70
+ * **net:** declare close on every request the proxy sends ([0ef6aa1](https://github.com/elct9620/kobako/commit/0ef6aa12eb1c5497e098570cdaf51c6b7cf7495e))
71
+ * **net:** move each request on the thread that waits for it ([425f82a](https://github.com/elct9620/kobako/commit/425f82abc5fc0b78774d0ae4e448a13a547bac29))
72
+ * **net:** shut a connection down as its exchange lets it go ([054e70a](https://github.com/elct9620/kobako/commit/054e70a2f467688297a9c640efb55cbd27e0553b))
73
+ * **runtime:** answer a name no DNS query carries before the lookup holds it ([6b50f3a](https://github.com/elct9620/kobako/commit/6b50f3ad92fc0557f9485cc517b4931e2ea0a11a))
74
+ * **runtime:** append through a Windows Bind in one step ([bcc692b](https://github.com/elct9620/kobako/commit/bcc692b788ea86e79af5416344c991c1ccc992f9))
75
+ * **runtime:** count only the guest's descriptors against the open-file cap ([b0deca2](https://github.com/elct9620/kobako/commit/b0deca26519684729f37bf288a6a40f28968f9d0))
76
+ * **runtime:** let a TCP socket hear a reset that follows its peer's FIN ([dac6ecb](https://github.com/elct9620/kobako/commit/dac6ecba588867e734e7797f4153e54a659edbe2))
77
+ * **runtime:** let the process's open connections start unbounded ([55c03c5](https://github.com/elct9620/kobako/commit/55c03c51e10ebab0415ace38640c8595f86a321f))
78
+ * **runtime:** promise a reset past the peer's FIN no sooner than a write ([5de137c](https://github.com/elct9620/kobako/commit/5de137c94efad7aa69f5486af099d2da5f72f699))
79
+ * **runtime:** reach a Windows Bind entry by any spelling its host folds ([0a38543](https://github.com/elct9620/kobako/commit/0a38543c42c73a8b0e9557f205ef663f925bf670))
80
+ * **runtime:** read a Windows Bind's link as a guest path ([f1f04f6](https://github.com/elct9620/kobako/commit/f1f04f689d2da83f148b741a2a4abdf232d161f1))
81
+ * **runtime:** remove a Windows Bind's link to a directory as itself ([f200e1e](https://github.com/elct9620/kobako/commit/f200e1ef157d1b12cc71c0f5efba42745a8e0738))
82
+ * **runtime:** serve a directory lock's waiters in turn, as Linux's rwsem ([4ab9bd0](https://github.com/elct9620/kobako/commit/4ab9bd0e2e134ce10a1bd87f3d4924e2acc4c8e5))
83
+ * **runtime:** spend connection_limit before each lookup and dial leaves the host ([f958a44](https://github.com/elct9620/kobako/commit/f958a44ad39b9b3870685fbe23d911f4c4c3fe33))
84
+ * **runtime:** stop a listing and a copy up between steps once the run is to stop ([b2aebca](https://github.com/elct9620/kobako/commit/b2aebca6a83499b4659c95be17a2f68202932d74))
85
+ * **runtime:** watch a socket for room only while a writer found none ([b7e1c4d](https://github.com/elct9620/kobako/commit/b7e1c4d9bcf53e8050dee44d7e68f726055a56ed))
86
+ * **sandbox:** refuse a run another Fiber starts while one on its Thread waits ([582795b](https://github.com/elct9620/kobako/commit/582795b80995fe94839e23462a5806ba6fd4f1f9))
87
+ * **sched:** let a wait go on through a wakeup that raises nothing ([cf7f484](https://github.com/elct9620/kobako/commit/cf7f484ca645be1a0c64b0f9530b6e39034d3db3))
88
+ * **sdk:** compile a Sandbox's snippets outside its registry lock ([023f647](https://github.com/elct9620/kobako/commit/023f6470b8036f89b444e461128d6dfc84b0e9f1))
89
+ * **security:** refuse a nested mount whose path passes a link ([71abead](https://github.com/elct9620/kobako/commit/71abead05818696ef9a2e2b9082bb871087cfa34))
90
+ * **test:** build the Rust oracles once before parallel_tests starts its processes ([5fe2bab](https://github.com/elct9620/kobako/commit/5fe2babf0586207e3dfbc20f52d1fc98b460d6bb))
91
+ * **test:** fail the Ruby suite when parallel_test selects no file ([11120e1](https://github.com/elct9620/kobako/commit/11120e16a42af051118c61edfee181ae5febcac3))
92
+ * **test:** let parallel_tests find the suite's files on Windows' command line ([12063ec](https://github.com/elct9620/kobako/commit/12063ec145342d1b0625c1d033c377e26d85937f))
93
+ * **test:** let Windows find the Ruby suite's files again ([0066ac9](https://github.com/elct9620/kobako/commit/0066ac91274aac6b3677ff98f2359576bf9504af))
94
+ * **test:** measure the GVL quantum once the guest's write returned ([98c3f3c](https://github.com/elct9620/kobako/commit/98c3f3cde94c89c6d85f5745ca01ba9d65a930cf))
95
+ * **vfs:** climb out of the walk's own Filesystem mounted again ([1cf46c2](https://github.com/elct9620/kobako/commit/1cf46c2ba61af87631208ae2aed0471b419bb531))
96
+ * **vfs:** keep each Filesystem's moves to the walks on it ([42062b9](https://github.com/elct9620/kobako/commit/42062b9c2f22e00f6317fa92ebd6abe2b3fd76b0))
97
+ * **vfs:** wake a name's waiters and a move's readers when a panic unwinds ([515343c](https://github.com/elct9620/kobako/commit/515343c71075517c7c4b9a05624df2ef733b62bc))
98
+ * **wasmtime:** answer random_get a page at a time into the guest's buffer ([d55aa1d](https://github.com/elct9620/kobako/commit/d55aa1da4082902e3b3f6b664b64ac50ee25d9b0))
99
+ * **wasmtime:** ask the OS for a permissive guest's entropy on each draw ([fcfaca4](https://github.com/elct9620/kobako/commit/fcfaca49d0067d1d372e24e680004d04cd0f41ee))
100
+ * **wasmtime:** end a run as a host call returns once the run is to stop ([f5840c6](https://github.com/elct9620/kobako/commit/f5840c687f91d18fb01bb426d577f9c4e208b277))
101
+ * **wasmtime:** fail a refused growth as memory.grow does, not by ending the run ([8cd50be](https://github.com/elct9620/kobako/commit/8cd50bed12c18ea0b906b3e2fe1d6310194e34f2))
102
+ * **wasmtime:** stop a guest that only computes once its run takes a fatal signal ([32990b6](https://github.com/elct9620/kobako/commit/32990b63cd6ae16c5d8a0e473a218d46d29c8919))
103
+
104
+
105
+ ### Performance Improvements
106
+
107
+ * **gvl:** spin before a guest's thread sleeps waiting for the next run ([5719de5](https://github.com/elct9620/kobako/commit/5719de5110e03563dbca6df4e7bf487b58de8c20))
108
+ * **test:** build the Rust oracles into the ext's target directory ([002e594](https://github.com/elct9620/kobako/commit/002e594eb5deea86fa5380e21a1c9433cb98a291))
109
+ * **wasmtime:** cache compiled Guest Binaries on disk on Windows too ([76ca86e](https://github.com/elct9620/kobako/commit/76ca86e3aab83d239e1d0b4ebbcd21e2aec14bf3))
110
+
111
+
112
+ ### Documentation
113
+
114
+ * **spec:** bound what the host holds for a run by counts, not its memory ([7d13f7e](https://github.com/elct9620/kobako/commit/7d13f7e710468ee2c41f8f2d9a34995088584c14))
115
+ * **spec:** charge a socket's buffers as they fill, past the limit by one read ([066bbb7](https://github.com/elct9620/kobako/commit/066bbb73073da88e557f73067c1e1629fdee92b6))
116
+ * **spec:** count a connection still closing as an open file of its invocation ([6c0a1c2](https://github.com/elct9620/kobako/commit/6c0a1c2bd261e79a7681b8f603d27b4240490f05))
117
+ * **spec:** count a run's memory from its Store, past what the binary declares ([c85722d](https://github.com/elct9620/kobako/commit/c85722d6c630d5bf5dce0a3702f575e5016c6667))
118
+ * **spec:** count each host directory an Overlay holds against the cap ([c38a813](https://github.com/elct9620/kobako/commit/c38a8131fae81c643d69ab04d84d9ed36520e198))
119
+ * **spec:** default the open-file cap to what leaves the Host App room ([82561d8](https://github.com/elct9620/kobako/commit/82561d8336a0b4d02ad488430a49a73f2517694b))
120
+ * **spec:** hand the GVL over each quantum while a run keeps it ([412cec6](https://github.com/elct9620/kobako/commit/412cec6e0f5502acb19a8c9b1f8fb858667caf19))
121
+ * **spec:** hold 4 MiB in a Tmpfs given no size of its own ([3d94256](https://github.com/elct9620/kobako/commit/3d94256ecedee7de6592ba6d1a47fea9cc8b2e6c))
122
+ * **spec:** hold a cancelled lookup's place until the host's query ends ([3c21b80](https://github.com/elct9620/kobako/commit/3c21b80790663bb6bdd430a62c38fd9f00cb4404))
123
+ * **spec:** keep a credential and content out of a TRACE ([6a3ea2b](https://github.com/elct9620/kobako/commit/6a3ea2b0a70ecfc7b4a292c77d0fe847932826b6))
124
+ * **spec:** keep the room an output stream permits, its memory counted ([d2c2254](https://github.com/elct9620/kobako/commit/d2c2254fa4905685ae35063cc47e0caaa2c51e70))
125
+ * **spec:** make a Bind while the host is out of descriptors as Dir.new does ([4d2d11b](https://github.com/elct9620/kobako/commit/4d2d11bcd5e365085ce9b551025f7b0d7d998b03))
126
+ * **spec:** refuse a CONNECT request unsent ([7852298](https://github.com/elct9620/kobako/commit/785229802adf81a7c3264b79e9eee88a5bdcb02d))
127
+
3
128
  ## [0.31.0](https://github.com/elct9620/kobako/compare/v0.30.0...v0.31.0) (2026-11-18)
4
129
 
5
130