You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sub-issue of #3. Operational/perf surface needed once jcode is dispatching extension hostcalls at meaningful volume. Only ship after #3a/#3b unless there's a specific need.
Use case: a hot-path bug in the reactor is found in production — operators can degrade to compat lane in one command without disabling extensions wholesale.
Single-shard SPSC channel v1 (multi-shard v2 if profiling justifies).
Bounded queue with backpressure: when full, the extension gets a denied hostcall response with code: "backpressure".
Global drain on shutdown so no hostcall is lost mid-flight.
Optional NUMA slab pool feature-gated behind numa — explicitly not required unless real workloads show NUMA pressure.
Reference: pi_agent_rust → "Deterministic hostcall reactor mesh with optional NUMA slab pool".
3. Warm isolate pool + startup prewarm handoff
Pre-instantiate N QuickJS isolates at startup (configurable; default 0 for batteries-off behavior).
Hand the warmed isolate to the loader when an extension is first invoked → faster cold-load (target P95 < 50 ms).
Pool sizing exposed in settings; observable via jcode doctor --only extensions.
Reference: pi_agent_rust → "Warm isolate pool + startup prewarm handoff".
Out of scope
Math-substrate (CUSUM, conformal, PAC-Bayes, etc.) — pi_agent_rust ships these but they are research surface with no direct user product. Do not import.
Acceptance criteria
--ext-compat-lane all flips all extensions to compat path; jcode doctor reports the override.
Reactor backpressure delivers a structured denied error rather than hanging.
Cold-load P95 with prewarm pool of 2 measurably faster than without.
[#3c] Extension reactor: forced-compat lane, hostcall reactor mesh, warm isolate pool
Hard dependencies
1. Hostcall compatibility-lane forced-compat switch
--ext-compat-lane all(force every extension into compat lane until reverted).ext.compat=truein settings.json.reason_codeandtriggered_by(mirror Extension trust lifecycle and kill-switch #15 ledger format).2. Deterministic hostcall reactor mesh
deniedhostcall response withcode: "backpressure".numa— explicitly not required unless real workloads show NUMA pressure.3. Warm isolate pool + startup prewarm handoff
jcode doctor --only extensions.Out of scope
Acceptance criteria
--ext-compat-lane allflips all extensions to compat path;jcode doctorreports the override.deniederror rather than hanging.Cross-references