Repository navigation
Description
Context
We want kernal-api to host small Rust "sketches" compiled to one WebAssembly module. Sketches contain portable business logic; every host/OS effect goes through the Rust kernal-api facade. The native host compiles, validates, instantiates, and runs sketches without exposing Wasmer, Wasmtime, Tokio, running-process, WASI, or native OS types.
Rust sketch
|
| kernal-api is the exclusive host-capability API
v
kernal-api guest facade + generated bindings
|
| versioned async/resource/stream ABI
v
kernal-api native host runtime
|
v
existing async/process/fs/hash/... implementations
Preliminary feasibility report
This is feasible as an intentional host/guest split, not as a wholesale wasm32 rebuild of a native application.
kernal-apialready owns the native Tokio runtime, cancellation, progress timeouts, process HAL, and semantic types. The WASM host must adapt these capabilities rather than add another runtime or OS HAL.soldr cargo check --target wasm32-unknown-unknown -p zccache-hashsucceeds. Addingzccache-compiler/zccache-protocolreaches Tokio/Mio and native platform dependencies and fails. Portable policy exists but needs a deliberate capability seam.zccache-compiler,zccache-hash, andzccache-daemon-corecontain roughly 9.9K, 0.7K, and 65K Rust lines. The experiment must move a representative policy slice rather than claim the daemon can be retargeted wholesale.fp-bindgenproves Rust-defined sync/async bindings, but it was archived on 2025-07-10 and its latest release is 3.0.0 from 2023. It targets Wasmer 2.x, lacks stream/resource lifecycle, cancellation/backpressure, and built-in protocol negotiation, limits serialized values to about 16 MiB, and uses a greedy single-thread guest executor.- A maintained fork is acceptable, but it becomes an owned ABI/runtime project rather than a dependency refresh.
- Current Wasmtime Component Model bindings expose typed resources and async streams/futures/cancellation. This is stronger upstream prior art, but compile cost and lifecycle maturity must be measured behind the same Rust guest facade.
Streaming is mandatory. Large source files, compiler output, artifacts, archives, and directory walks must never cross the ABI as one serialized value.
Second applicability check: twp2/extension2
extension2 is a viable policy-core candidate, not a candidate for moving the entire Tauri executable into WASM.
tw-orange-data-sourcecompiles unchanged forwasm32-unknown-unknownon Rust 1.95.0.tw-orange-preview-sourcecurrently stops ataes-gcmrequesting ambient randomness. Randomness must be explicit throughkernal-apior configured for caller-provided nonces; ambient JS/WASI randomness is forbidden.- Portable policy includes feed/protobuf/JSON validation, release selection, URL/UID policy, manifest/archive inventory decisions, test planning, and Vitest-result interpretation.
- Native capabilities include streamed HTTP, encrypted cache, scoped temporary storage, process-tree execution/cancellation, bounded logs, and Tauri/WebView operations.
- Preview limits include a 512 MiB archive, 128 MiB XPI, and 32 MiB XPI entries, independently ruling out whole-value bindings.
- AES-GCM plaintext must remain sealed until authentication succeeds and ZIP needs seekable central-directory access. The host therefore needs sealed blob/seekable archive resources with streamed entries; product validation decisions remain in the sketch.
Proposal
Build a time-boxed, feature-gated prototype comparing two private binding implementations behind one public Rust kernal-api guest API:
- Owned fp-bindgen fork: update the engine integration and add facade-owned resource handles plus bounded pull-based async streams.
- Component Model binding: define a private custom
kernal-apiworld and generate Rust guest/host bindings using resources and async streams, with no ambient WASI.
Select one from evidence. Do not ship two runtime fallbacks.
Runtime and capability contract
- Add an opt-in sketch-host feature.
default = []must not resolve or compile an engine, bindgen, serialization, or component-model dependency tree. - Keep
kernal_api::async_engineas the only host executor. A small guest executor may poll guest futures, but I/O, clocks, randomness, hashing, processes, and storage resolve through nativekernal-api. - Give each instance explicit capabilities and quotas; grant no ambient filesystem, environment, network, clock, random, or process access.
- Compile for a non-ambient target and reject final imports outside the versioned kernel ABI allowlist.
- Keep backend/generated types private and negotiate ABI version/capabilities before invoking sketch logic.
Streaming and resources
The fork may represent streams as opaque resources and ordinary async calls:
async fn read(handle: ReadHandle, max_bytes: u32) -> Result<ReadChunk, StreamError>;
async fn write(handle: WriteHandle, bytes: Vec<u8>) -> Result<u32, StreamError>;
async fn close(handle: StreamHandle) -> Result<(), StreamError>;Require maximum chunk and in-flight byte limits, pull-read/capacity-awaited-write backpressure, EOF/errors/cancellation/half-close, progress timeouts, generation-safe handles, cross-instance rejection, and cleanup on close/cancel/drop/trap/teardown. Provide host-side hash_stream, copy_stream, sealed-blob verification, and archive installation when the guest needs a result rather than raw bytes.
Representative zccache experiment
Extract and execute:
- compiler-family detection and invocation/cacheability parsing from
zccache-compiler, with host facts supplied as semantic inputs/kernel calls; - cache-key material assembly from
zccache-hash, replacing direct implementation hashing with the kernel hash capability; - one hit/miss decision using host metadata/content identities;
- on a controlled miss, a fixture compiler launched through the kernel process facade with bounded stdout/stderr streams;
- existing parser/key fixtures against native and WASM policy with identical results.
Keep the daemon, watcher, IPC listener, payload protocol, artifact bytes, and native lifecycle outside the guest. The sketch owns policy; the host owns effects and bulk movement.
Sketch compile front door
Accept a small Rust package pinned to the exact pre-1.0 kernal-api, permit pure-compute dependencies while requiring every host effect through the facade, consume deterministic bindings without rewriting them each build, build through Soldr on Rust 1.95.0, validate imports/ABI/limits/entry point, and record module size plus cold/no-op/one-line edit timings.
Acceptance criteria
- RED: check in evidence that the native zccache policy path pulls Tokio/Mio/platform dependencies into
wasm32-unknown-unknown. - RED: prove upstream fp-bindgen cannot represent bounded stream/resource lifecycle and cannot safely carry a value beyond its serialized-value limit.
- GREEN: a sketch uses only public Rust
kernal-apioperations for host effects and compiles to one validated module/component on Rust 1.95.0. - GREEN: validation rejects ambient WASI and every non-kernel host import before instantiation.
- GREEN: transfer at least 64 MiB in bounded chunks without whole-payload allocation; outstanding bytes remain within the configured budget independent of total length.
- GREEN: a fast producer/slow consumer proves production stops at capacity and resumes after consumption.
- GREEN: cancelling pending reads/writes unblocks both sides and trap/teardown returns the live host resource count to zero.
- GREEN: stale, double-closed, and cross-instance handles are rejected deterministically.
- GREEN: continuous progress survives beyond the idle interval while a stalled stream expires.
- GREEN: nested async host calls and two concurrent sketch operations finish without deadlock, illegal re-entry, or another Tokio runtime.
- GREEN: ABI/capability mismatch fails before any effect.
- GREEN: the zccache parser/key/decision/compiler-miss slice matches native fixtures.
- GREEN: an extension2 fixture streams a payload larger than 16 MiB through sealed blob/archive resources, exposes no plaintext before AES-GCM authentication, and enforces entry count/size/path limits without buffering the archive in guest memory.
- Neither proof moves zccache daemon infrastructure or extension2 Tauri/WebView/process-tree implementation into the guest.
- Record at least 10 warm one-line edits per candidate. The selected design reaches validated WASM in <=2.0 seconds p50 on the reference host and reports p95, cold time, cache hit rate, peak compiler memory, and module size.
- Compare implementation size, unsafe code, dependency graph, compile/instantiation latency, stream throughput, correctness, platform support, and upgrade ownership.
- Make one go/no-go choice; if neither passes correctness and latency gates, add no production runtime.
- Prove
default = []includes no sketch engine/bindgen/component-model dependencies. - Capture focused RED -> GREEN evidence and pass checks on Linux, macOS, and Windows x86-64/ARM64 hosts.
Decisions
- Priority is P2: strategically valuable but not a blocker for the native zccache migration.
- File in
kernal-api, which must own the ABI, runtime adapter, semantic capabilities, safety policy, and guest API. - Allow a maintained fp-bindgen fork; reject unmodified fp-bindgen because streams, cancellation, cleanup, versioning, and a current engine are mandatory.
- Prefer pull-based bounded operations for natural backpressure and compare them with the Component Model's typed async resources.
- Expose one Rust guest API regardless of generator; WIT, MessagePack, Wasmer, Wasmtime, and generated support types remain private.
- Permit pure-compute dependencies but reject every host import outside
kernal-api; ?kernal-api only? is the exclusive host-capability boundary. - Use scoped resources rather than POSIX/WASI virtualization and keep bulk work host-side when the guest only needs its result.
- Keep Tauri and zccache daemon infrastructure native; move portable policy rather than whole applications.
- Ship one engine and add no speculative public traits or packaging splits before constraints or measurements justify them.
Open questions
- Can native and guest surfaces remain in one published package, or do target constraints justify a generated/private support package while preserving one public API?
- Does the exact Component Model async version selected for Rust 1.95.0 meet lifecycle/platform gates, or is the fork easier to harden?
- Which zccache and extension2 fixtures are the smallest credible proofs while exercising paths, streamed identities, sealed blobs, cancellation, processes, and bounded output?
Related issues
- feat: implement the kernal-api capability spine and fully rebase zccache embedded #5 owns the native capability spine and zccache embedded migration this experiment must reuse.
- perf: benchmark kernal-api compilation boundaries and release packaging #3 owns reproducible compile-boundary measurement; this issue adds sketch candidates and timings.
Activity
zackees commentedon Aug 27, 2026
Decision update: threaded Rust is required for v1
This supersedes the issue body's earlier single-thread guest recommendation wherever the two conflict.
The sketch layer must support ordinary threaded Rust so zccache-class business logic and third-party crates can retain
std::thread,Arc, atomics, mutexes, condition variables, channels, Rayon-style pools, and real concurrentDashMap. Async remains a property of the kernel's effect implementation and an available guest API style; it is not the only permitted application programming model.Revised execution model
wasm32-wasip1-threadsfor the first proof, or an equivalent owned target/sysroot if the standard target cannot meet the final import policy.thread-spawnas a kernal-api-owned bootstrap capability. Rewrite its import namespace or provide an owned shim if necessary; do not require third-party source to call a custom spawn API.std::io::{Read, Write, Seek}-style adapters backed by the same bounded streamed operations. A blocking adapter may suspend one guest thread/instance; it must not turn a stream into a whole-value transfer.Arc<KernelRuntime>and one logical sketch resource registry); do not construct another kernel/Tokio runtime per guest thread.Security and compatibility invariant
The enforceable invariant is: every guest capability is authorized and implemented by the kernal-api runtime. It is not necessary for every third-party source file to import the Rust
kernal-apicrate explicitly.A restricted std/WASI compatibility adapter may translate
stdoperations (filesystem, clocks, randomness, environment, stdio, and thread creation) into the same scoped kernal-api capabilities. Ambient filesystem/network/process access remains forbidden. Final-module validation must allow only the versioned kernel ABI plus explicitly owned compatibility imports, or rewrite those imports into kernel-owned namespaces before validation.Native-only facilities such as process trees, file watchers, mmap/reflinks, dynamic libraries/libclang, crash handlers, signals, and OS IPC remain explicit kernel capabilities or host-side implementations rather than ambient std/WASI access.
Additional acceptance criteria
std::threadandArc<DashMap<...>>performs verified concurrent inserts/lookups over shared Wasm memory.Read/Write/Seek.Wasmtime's current Tier-2 caveats around shared-memory resource limiting, pooling, fuzzing, and atomic-wait interruption are accepted prototype risks that must be explicitly mitigated and measured; they are no longer grounds for excluding guest threads from the v1 experiment.
zackees commentedon Aug 27, 2026
Binding/runtime decision for #16
Select one v1 substrate:
wasm32-wasip1-threadsartifact admitted by the closed profile; one compiled module and engine-owned shared memory, with instance-per-thread Stores/Instances.kernal-apicore-Wasm ABI generator and Rust guest facade.This is not a second engine or runtime. Host effects continue through the one facade-owned
RuntimeHandle; Wasmtime, generated protocol types, Stores, Instances, and host registries remain private. Guest business logic is not async-only: ordinarystd::thread,DashMap, mutexes, condition variables, Rayon/Crossbeam-class concurrency, and blocking std adapters remain supported over the same bounded kernel resource protocol.Why not fp-bindgen as the v1 substrate
fp-bindgen does provide async RPC. The reason not to select it is narrower and concrete: upstream does not provide the required bounded stream/resource lifecycle, cancellation and terminal cleanup, capability/version negotiation, or instance-per-thread-safe generated state/executor semantics. The upstream repository is archived; v3.0.0 is the latest release (2023), the latest upstream commit is 2024, and its support crate directly targets Wasmer 2.1 with
rmp-serde/Serde value transport. Its v3 release retainedwasmer2_hostand only prepared for a future Wasmer 3 migration.The approximately 16 MiB serialized-value observation is a RED reproduction requirement, not a premise: reproduce and measure the concrete whole-value failure/limit before replacing it. Regardless of the exact observed threshold, a whole-value exchange cannot meet this project’s archive/process-output/PNG requirements. Replacing the host, transport, lifecycle, executor, capability model, and cross-instance threading behavior with the required Wasmtime-45 design would be a near-rewrite, not a maintained dependency upgrade.
Sources: fp-bindgen repository, v3.0.0 release, support manifest.
Component Model is deferred, not rejected
The Component Model is the preferred future re-evaluation path once the Rust target/toolchain and threading lifecycle are mature enough. It is not a v1 fallback. Wasmtime documents Component Model async and threading support as very incomplete, and Component Model threading is disabled by default. The current concurrency design limits explicit threads to cooperative sequential interleaving until shared-everything threads; that cannot satisfy the required ordinary Rust concurrent-map/condition-variable/Rayon proof today.
Sources: Wasmtime config, Wasmtime feature status, Component Model concurrency design, WASI SDK target status.
Owned ABI constraints
#16 owns a deliberately small generator, not a broad framework. Check in a versioned core-ABI source of truth plus deterministic generated guest/host glue; keep all glue private except the semantic Rust guest facade. It generates only versioned, capability-scoped operations and opaque generation-safe resource handles. It must not serialize arbitrary files, archives, logs, PNGs, or paths.
Bulk transfer is bounded pull-read and capacity-awaited write operations. The host owns permits/backpressure, cancellation, quotas, and cleanup. Async guest futures poll/yield through the ABI; blocking
Read/Write/Seekadapters use the same operations and may park only their guest thread, never turn a stream into a whole-value transfer.The P1/thread compatibility surface remains closed and authority-free.
wasi-threadsis legacy/Phase 1, sothread-spawnstays a kernal-api-owned compatibility/bootstrap import rather than an ambient WASI grant. wasi-threadsRequired evidence before #13 closes
wasm32-wasip1-threadsartifact—not a checked-in Wasm binary—admits and executes root plus two real guest threads. It proves shared compiled module/prelink/shared memory/runtime identity and distinct Store/Instance/TLS state.DashMap, mutex, condition variable, channel, and Rayon/Crossbeam-class work over shared memory; no source rewrite into a single-thread actor is accepted.default = []remains free of Wasmtime, parser, generator, and guest-build dependency resolution.This resolves the #16 binding choice. Component Model reassessment requires a separately approved migration and cannot become a silent v1 engine/runtime fallback.
zackees commentedon Aug 27, 2026
Binding/runtime decision — supersedes the earlier “do not adopt fp-bindgen” conclusion
We will retain Wasmtime 45 + Cranelift as kernal-api’s only private engine and adopt the owned fork at zackees/fp-bindgen as the lineage for automatic Rust API generation. This supersedes only the prior conclusion that fp-bindgen itself must not be adopted. It does not relax any of the evidence, isolation, streaming, or threading gates recorded above.
The binding model is:
The guest and host compile independently. They do not link an
rlibacross the process/Wasm boundary: the generated guest crate emits Wasm imports/exports, while the generated private host code installs precisely matching Wasmtime imports and calls exports. The generated Rust API remains the supported sketch ergonomics; no manually written C-header-style ABI is required of sketch authors.What we retain
FunctionList/type graph), deterministic code-generation shape, and generated Rust guest/host ergonomics, adapted into an owned, version-pinned lineage.Sources: fp-bindgen README, macro/interface collection, Rust guest generator.
What we replace
The archived upstream’s transport and runtime are not the kernel ABI:
Handle::current()scheduling with the facade-owned kernal-api scheduler/runtime.FatPtrpayload design. The upstream specification documents the 16,777,215-byte single encoded value ceiling; that remains a RED reproduction, not an accepted limit. SPECThe old Wasmer host implementation and async support are the concrete replacement seam: Wasmer generator, host runtime, guest async support.
Prototype gates
default = []remains free of Wasmtime/generator dependencies.DashMap, mutexes, condvars, channels, and a Rayon/Crossbeam-style workload, with per-thread Store/Instance behavior.The Component Model remains a future migration target rather than a rejection, but it is not the v1 threading substrate: Wasmtime currently calls Component async/threading support “very incomplete,” while core threads are Tier 2. Wasmtime proposal status and Config documentation.
zackees commentedon Aug 27, 2026
Execution tracker for the owned fp-bindgen/Wasmtime decision: zackees/fp-bindgen#1. The fork preserves automatic Rust protocol/guest generation, adds a Wasmtime core-Wasm backend, and deliberately replaces the legacy Wasmer 2 + ambient Tokio + callback AsyncValue + whole-value FatPtr runtime contract. kernal-api #36 consumes and pins the landed fork revision; streams/backpressure remain kernal-api-owned under #17.
feat(archive): enforce independent per-entry payload limits
refactor(archive): consume owned seekable sources without path reopening
test(archive): prototype bounded authenticated staging for single-mes…
zackees commentedon Sep 14, 2026
Upstream-generation milestone: fp-bindgen#4 is merged (
1cf645a). It adds a realwasm32-unknown-unknowncompile gate for the generated Core-Wasm guest, covers both async and synchronous scalar imports, and fixes nested-module scalar helper resolution. The focused Rust 1.95.0 checks passed locally; the inherited upstream Actions workflow still has its retired cache-action limitation.This strengthens the generated-guest part of the selected Core lineage but does not close #13 or fp-bindgen#1: synthetic Store lifecycle, mutated-admission coverage, platform evidence, representative policy fixtures, and the full measurement/correctness gates remain separate requirements.
zackees commentedon Sep 14, 2026
Implemented a real closed-profile threaded guest increment in 126843d. The actual Wasm screenshot module now runs, before its first host grant, two guest threads coordinating through std Mutex/Condvar, exchanging bounded Crossbeam messages, and concurrently mutating a deterministic-hasher DashMap. Workers join before screenshot lifecycle effects.
The first implementation exposed two policy failures under the real admission test: DashMap default hashing imported
random_get, and Crossbeam blocking receive importedpoll_oneoff. The final design uses a deterministic standard hasher and only non-blocking reads after join; it passes the existing closed-profile admission/execution test.Validated locally:
CARGO_TARGET_DIR="$PWD/target/screenshot-threaded-proof" bash examples/wasm-tauri-screenshot/build-guest.sh(locked threaded guest build + generated metadata)KERNAL_API_SCREENSHOT_ARTIFACT_WASM=...admitted.wasm soldr cargo test --locked --features wasm-sketch-host --test wasm_tauri_screenshot actual_screenshot_guest_admits_but_cannot_execute_without_webview_grants -- --ignored --nocapturein the documented Nix native dependency shell: passed, executing the real guest in 3.45ssoldr cargo fmt --all -- --check, guest manifest fmt check, andgit diff --checkThis is a concrete #13 concurrency criterion increment, not a claim that the broader #13 selection/measurement/persistence acceptance is complete.
zackees commentedon Sep 14, 2026
External dependency update: fp-bindgen PR #5 is admin-merged. It supplies real Wasmtime 45 linker admission evidence for the generated Core ABI: exact imports execute; namespace/name/signature mutations fail before host effects. The upstream workflow failed before checkout at its known retired cache action; focused Rust 1.95/Soldr validation passed locally. This advances #13 malformed import admission evidence, while manifest metadata/version validation remains kernal-api-owned and the other #13 gates remain open.
zackees commentedon Sep 14, 2026
CI evidence for threaded-guest commit 126843d: run 34793043934 completed 61 jobs successfully, with all six native screenshot targets (Linux/macOS/Windows × x86-64/ARM64), both threaded-artifact lanes, and all archive lanes green. Its sole failure is the known
running-process#1207Windows compiler-session spawn rejection: 734 pass / 2 fail, error 5Access is denied. No new guest-concurrency regression was observed; the Windows compiler execution limitation remains open.zackees commentedon Sep 14, 2026
External dependency update: fp-bindgen PR #6 is merged. It proves a single generated-linker prelink can instantiate after first-Store teardown into a fresh Store with independent host state. Local Rust 1.95/Soldr validation passed; the inherited fork workflow failed before checkout at its retired cache setup. This advances #13 Store/Instance lifecycle evidence but does not close the remaining threaded resource/platform gates.
zackees commentedon Sep 14, 2026
Cross-repo platform evidence: fp-bindgen PR #7 merged as
8d4efb1. Its new Core-Wasm generator matrix passed Linux/macOS/Windows x86-64 + ARM64; the native Linux lane additionally passed the generated Wasmtime linker-admission and independent-Store lifecycle test.fp-bindgen#1 remains open for actual generated async lifecycle across per-thread Stores and the broader integration. The sole legacy Wasmer 2 test failure is the upstream Rust >=1.89
__rust_probestackcompatibility break and is not in the selected Core-Wasm dependency graph.33 remaining items
zackees commentedon Sep 14, 2026
Progress update: PR #247 merged at commit
30367fabee4c33106fd0aa40e288b9c47598badf. It preserves the host-selected per-Blob idle-progress timeout inside the killable worker: the private protocol now carries the exact seconds/nanoseconds duration, the worker reconstructs it through the same public limit validation, and protocol v7 rejects an old peer rather than silently applying a default. Focused protocol (14), worker-binary (21), and worker-module (22) tests plus strict worker-feature Clippy passed locally. This makes the #246 stream policy configuration-preserving across containment; it does not claim an additional compiler-output idle policy or resolve #13’s remaining selection, Extension2 credential, and fp-bindgen gates.zackees commentedon Sep 14, 2026
Progress update: PR #248 merged at commit
c695cf00606c393f8b965afd42ef151b85f9f83f. It fixes thewasm-sketch-host,archive-auth-test-supportcompiler fixture: its explicitRootGrantsnow supplies the test-gated archive field, a gap exposed by fresh Linux revalidation of the exact locked Extension2 revisioncffb98b2a1fa933a8ce126deeebba9c2efa55be0.The isolated runner rebuilt and embedded the wasm32-wasip1-threads guest; its native authenticated filter passed 29 tests (four intentional artifact-dependent ignores) and advanced after the exact 17 MiB guest-stream proof. The companion freshly built compiler cache-hit guest test passed explicitly. Strict archive-feature Clippy also passed.
This closes the stale local feature-combination gap and records fresh Linux evidence only. It does not claim six-host worker/RSS coverage, full upstream Extension2 completion, or closure of #13.
zackees commentedon Sep 14, 2026
Hosted Extension2 matrix update: the Windows x86-64 archive job in run 34827693933 failed before any guest test because Cargo could not authenticate while fetching the exact locked
TechWatchProject/extension2revisioncffb98b2a1fa933a8ce126deeebba9c2efa55be0. The log recordsfailed to authenticate/ credential-helper failure, then exits during the guest dependency build.The staging filter itself passed 29 tests (four intended ignores) before that fetch. This is hosted-access evidence only, not a runtime or archive-policy failure and not six-host proof. CI needs a credential/deploy key with read access to the locked repository before the matrix can satisfy that acceptance gate.
zackees commentedon Sep 14, 2026
Merged PR #249 (8591391): kernal-api now consumes fp-bindgen df94a6988dac3ade189466adbaaa58be4524393e for its Core-Wasm generator. Blob is lowered as an owned generated resource; explicit close and Drop call resource_release_blob, whose host implementation delegates to the existing Store-scoped OperationHub registry. The admitted manifest and protocol revision are now 9, so revision-8 guests cannot be relabeled. Local generator tests, strict Clippy, Wasm guest compile, host compile/admission test, facade lifecycle test, drift check, and pre-push review passed. This advances fp-bindgen#1 consumption; streamed resources, shared-memory behavior, and current six-host proof remain open.
zackees commentedon Sep 14, 2026
PR #250 is the revision-10 owned-resource lifecycle milestone. It lowers EncryptedArchive, AuthenticatedArchive, and ArchiveEntry through fp-bindgen generated release controls, alongside Blob, while keeping OperationHub as the only Store/kind/generation registry. The admitted ABI now requires the four exact generated controls and rebuilt revision-10 guests.
Local validation passed generator tests, ABI drift, host compile, guest facade, admission/mutation checks, archive-input tests, strict clippy, and Astra review. This is not closure of #13: the streamed-resource/shared-memory behavior, Extension2 access and full-application evidence, fresh six-host execution, and remaining selection/performance gates stay open. PR #250 CI is queued.
zackees commentedon Sep 14, 2026
Merged PR #250 at be1d56b. Revision-10 generated ownership now covers Blob, EncryptedArchive, AuthenticatedArchive, and ArchiveEntry through the canonical OperationHub registry. #13 remains open for the stated stream/shared-memory, Extension2, fresh six-host, and performance/selection acceptance gates.
zackees commentedon Sep 14, 2026
Merged PR #251 at 43f1fdb. It records the fresh Rust 1.95 Linux x86-64 revision-10 rebuild: both admitted artifacts carried revision-10 metadata, and the exact ignored 17 MiB extension2 stream proof plus companion compiler cache-hit proof passed from the runner-built harnesses. This is current Linux evidence only; #13 remains open for the other stated gates.
zackees commentedon Sep 14, 2026
Merged PR #252 at 1e6f47f. The current 43f1fdb Rust 1.95 Linux matched diagnostic completed ten distinct edits per candidate: Core p50/p95 0.991/1.031 s, Component 1.856/1.894 s, and a 545,337,344-byte maximum individual build-command GNU-Time high-water mark. The record expressly does not claim cache-hit/process-tree RSS, exact-output parity, timed-artifact execution, or a runtime selection; #13 stays open for those gates.
zackees commentedon Sep 14, 2026
Merged #253: Component compiler cache hits now read a real zccache artifact and restore it through the shared exact-output containment helper before instantiation. The encoded Linux x86-64 hit test uses a forbidden compiler command, verifies the restored 4 MiB artifact and adjacent-file containment, and observes zero compiler-output copies. The Component cache-miss artifact-authority gap remains explicitly open; this does not select a runtime or close #13.
zackees commentedon Sep 14, 2026
Merged #254 at . The private Component hash transport now uses bounded 256-byte scalar frames, reserves and retains the 64 KiB staging lease with the Store-owned consumer, explicitly closes rejected readers, and commits only after a terminal frame with no trailing data. Fresh real Component and compiler-artifact controls passed locally, including oversized/rejected input, terminal trailing data, cancellation/reuse, cache-hit, and lowering-trap cases. This hardens Component lifecycle correctness but does not close #13: the documented cache-miss artifact-authority, controlled selection/RSS, Extension2 credential, and fp-bindgen gates remain.
zackees commentedon Sep 14, 2026
Correction: PR #254 merged at a53c3ab (the preceding comment omitted the SHA due to shell formatting).
zackees commentedon Sep 14, 2026
Cross-repo progress: fp-bindgen PR #15 merged at
af2360eb526a4f2aaf2e151ccca9330e10198831. The generated Core-Wasm stream resource now has actual 64 KiB-bounded caller-memory read/write controls and registry-routed close, not merely reserved names. Its linker preserves wasm32 pointer bits and validates guest ranges before host stream consumption; generated guest compilation and a real Wasmtime copy/oversize/invalid-destination proof passed locally.This is a narrow fp-bindgen#1 increment. kernal-api has not yet consumed this stream ABI, and the remaining #13 cache-miss authority, controlled selection, Extension2 credential, and integration gates are unchanged.
zackees commentedon Sep 14, 2026
Update: Astra review found that fp-bindgen stream controls accepted only ordinary
Memory, while admitted kernal-api threaded guests exportSharedMemory; transfers would trap before OperationHub. I implemented and locally validated a focused fp-bindgen follow-up (825b378, shared-memory atomic bounded copies plus an actual shared-memory Wasmtime proof), but GitHub now reportszackees/fp-bindgenis archived/read-only and refuses PR creation. kernal-api cannot safely pin this local-only revision; publishing or migrating the dependency is required before the Blob stream integration can merge.zackees commentedon Sep 14, 2026
Correction to the stream-lowering update: the reviewed fp-bindgen branch is now pushed and root is pinned to immutable revision
4d8168e(including SharedMemory support plus guest-visibleStreamTransfer::Rejected). GitHub still rejectsgh pr createfor this repository with a contradictory “archived/read-only” GraphQL error despite successful pushes and active repository metadata; the published branch remains https://github.com/zackees/fp-bindgen/tree/fix/shared-stream-memory.