docs(research): 4KD6V6IH promotion results and measured bounds
aba9ac391b821ae7959c928aaa3aed6363b56ff4
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: 68397e9cb536
There are many coding harnesses - but this one is fast
aba9ac391b821ae7959c928aaa3aed6363b56ff4
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+30 / −4 text lines
+30 / −4 text lines
3. Spike B (`ureq`) after deciding trust-store policy and pinning `~3.4`; delete reqwest engine and workspace entry.4. Hot-spot refactors with count bounds: `ancestry` → request build → spool → `Value` payloads.## Promotion results (2026-09-26, stack `tlszyzws..wqptrptw`)All three spikes promoted after spec text landed (SMH-SPEC-WASM0001 Sealed WASI; SMH-SPEC-SPEC0001 network transport, memory accounting, index arena).| measure | before | after ||---|---|---|| crates in normal graph | 298 | 210 || lockfile packages | 370 | 294 || async runtime in graph | tokio via reqwest and wasmtime-wasi | none || `Mutex` in library production code | 5 sites | 0, enforced by `cargo x arch` || `fork_at(1000)` allocations | 2020 | 3 || `Session::from_frames(1000)` allocations | unmeasured | 5, equal at 100 entries || mock eval turn allocations | 222 | 42 |What moved each number:- `ancestry` as branch prefix: 2020 → 2002 (the floor of owned `Entry` clones).- Session arena (SMH-PLAN-82POBOKB): `Entry` is a `Copy` record over one `Vec<u8>` arena, content is canonical CBOR bytes decoded on demand, frames embed content as one byte string (`VERSION_ENTRY = 2`): 2002 → 3, load constant, turn 220 → 208.- `Arc<[ToolMetadata]>` registry snapshot on `ProviderRequest.tools` instead of a per-request sorted clone of every schema: 208 → 42.- Provider records over bounded `mpsc`, single-pass masked request build: 222 → 220 in-process (the first turn per process pays +1 allocation of lazy global init; bounds are steady state after a warm-up).- HTTP body channel bounded (16 chunks) and terminated by an explicit `HttpBodyEnd`; RPC worker owns the agent, reader owns responses, two atomics plus channels.Decisions taken on the way: bundled Mozilla roots for TLS (`platform-verifier` deferred); `record_channel` bound 64 with a documented per-round invariant; `smith-alloc` counters stay global atomics (≈ 12 ns per allocation) until a hot path shows the cost; per-frame content `Vec` on load accepted until the reader hands slices.Remaining floor of the mock turn (42): request encoding, stream event vectors, two entry encodes and frame writes; next candidates are a slice-handing frame reader, a borrowed `EntryContent` view at record time, and a per-session text pool.- Trust store for ureq: bundled roots vs `platform-verifier`.- Sealed WASI breadth: which further imports (random seed, wall-clock, filesystem) get Smith substitutes before a non-trivial guest std program runs.- Per-turn peak: reset or epoch API on `smith-alloc`.- Sealed WASI breadth: which further imports (random seed, wall-clock, filesystem) get Smith substitutes before a non-trivial guest std program runs; `monotonic_now` is still never injected.- Per-turn peak: reset or epoch API on `smith-alloc`; thread-local counters.- Trust store: revisit `platform-verifier` when a corporate proxy case appears.- Code and lockfile at `tztonmyo` (`dd069f92`); spike changes `qwzlzyqk`, `lnrvruyv`, `onllulxs`.- Code and lockfile at `tztonmyo` (`dd069f92`); spike changes `qwzlzyqk`, `lnrvruyv`, `onllulxs`; promoted stack `tlszyzws` through `wqptrptw`.- Registry sources: `wasmtime-wasi 49.0.1`, `wasmtime-wasi-io 49.0.1`, `ureq 3.4.2`, `ureq-proto 0.6.4`.