Changelog
What changed in each package, release by release. The packages share one version, so they’re released together. The previews before a release are folded under it.
Packages
@isoloop/host
0.1.1
Patch changes
A crash loop slower than the restart window now fails. A crash counts toward
supervisor.maxRestartswhen the isolate's healthy run before it (fromreadyto its last heartbeat) was shorter thansupervisor.withinMs; a run ofwithinMsor longer clears the count. The sliding window still applies, and the isolate fails on whichever limit it meets first. Before, an isolate whose crashes took longer to detect than the window allowed restarted without end and never showed its fallback. The bus worker uses the same rule. The backoff grows with the larger of the two counts, Retry clears both, andisolate:failed's message ends with the limit that was met.
0.1.0
The first release of the kernel on the page.
- Contained failures: each isolate runs on its own worker by default, so one that blocks or crashes doesn't freeze the others.
- Supervision: blocked and crashed isolates restart, and one that keeps failing shows a fallback with Retry.
- Placement as a switch: add
poolto a spawn to share a worker and save memory and start-up time. The isolate's code stays the same. - UI from workers: isolates render in their workers, and the kernel applies their changes to the page once per frame.
- Grants: each isolate publishes and subscribes only to the topics you allow.
- A view of it all: events, state per isolate and pool, and publish and subscribe from the page.
- Experimental:
kernel.inspect(),kernel.request, tools for agents (agents.expose,kernel.tools()) and the dev MCP connection in@isoloop/host/dev-mcp.
The changes made during the previews are in the 0.1.0-next.N sections below.
Previews 0.1.0-next.0 to 0.1.0-next.12
0.1.0-next.12
Patch changes
The docs of
lagMssay what it measures: how late the last beat fired. A blocked worker sends no beat, so it keeps the last beat's value during the block; readstateand the time since the last beat to see a block in progress. Theisoloop_isolatestool description says so too.Each package's homepage on npm is its page on isoloop.dev, and each has search keywords. The public packages' npm descriptions say that they're Isoloop's and what each one does.
Each package has a README on npm: what it gives you, how to install it, a small example, and links to its guides and API reference.
When a pool's worker stops responding or fails, every member's crash carries the same one-line message, such as
pool "widgets" restarted: its worker stopped responding (No heartbeat for 10000 ms). It names no member, because the kernel can't know which one caused it. It used to blame the first member it checked, and each message wrapped the one before it. A kill through the inspection feed still names the member that was killed.
0.1.0-next.10
Patch changes
TSDoc for every public export of
@isoloop/host,@isoloop/host/dev-mcp,@isoloop/runtimeand@isoloop/runtime/testing, and for the shared types they use (BusError, the inspection feed's types,Grants,ErrorCode,TopicRef): a lead sentence,@param,@returnsand@throwswith their error codes, every config and option field with its default, and examples oncreateKernel,kernel.request,defineIsolateandconnectDevMCP.Kernel,KernelConfig,IsolateHandle,IsolateStateandCrashReasonare documented for the first time.
0.1.0-next.9
Minor changes
The API freeze marks Isoloop's own internals
@internal, so they leave the public API and its reference: the bus's engine, storage and broker types and its helpers (Broker,TsEngine,MemoryStorage,LogEngine,estimateSize,isContracts,topicConfigand the rest), host'sHostRenderBridge, runtime'sREQUIRES, vite'sISOLATES_ID,MANIFESTandWORKERS_ID, and the worker DOM and applier in@isoloop/dom/workerand@isoloop/dom/host. They're still exported for the other@isoloop/*packages; app code shouldn't import them.@isoloop/protocoland@isoloop/codecsay they're internal packages in their READMEs.Names settled for the API freeze:
@isoloop/vite:IsolateManifest, the type ofisoloop-manifest.json, is nowBuildManifest, so it no longer shares a name with host's spawn manifest.@isoloop/host:kernel.request's options type is nowKernelRequestOptions(key,timeoutMs,signal,via).@isoloop/runtime: exportsRequestOptions(key,timeoutMs), the type ofbus.request's options.@isoloop/reactand@isoloop/preactre-export it foruseRequest, in place of their own copies.@isoloop/balancer:createBalancertakes host'sKernel.KernelLike,ManifestLike,BeatLike,CrashLike,FailedLikeandPoolLikeare no longer exported, and every export is@experimental.- Marked
@experimental: consumer groups (SubscribeOptions.group,autoCommit,bus.commit) and request/reply (bus.request,bus.reply, a topic'sreplyschema,useRequest,RequestOptions).
Crash reasons, durability reasons and the durability event are snake_case, like the error codes. The strings changed, so code that compares them needs the new spelling:
CrashReason:worker-erroris nowworker_error,ready-timeoutisready_timeout,spawn-failedisspawn_failed,render-fmt-mismatchisrender_format_mismatch,bus-failedisbus_failed,runtime-too-oldisruntime_too_oldandisolate-too-oldisisolate_too_old.DurabilityDegraded:another-tabis nowanother_tab,no-sync-accessisno_sync_accessandopen-failedisopen_failed.- The kernel event
bus:durability-degradedis nowbus:durability_degraded.
Option values you write in config, such as
'bottom-right'or'last-n', keep their kebab-case.
0.1.0-next.8
Patch changes
AgentsConfig.expose's TSDoc describes grant patterns as they work:*matches one or more characters, dots included. It had described a one-segment*and a>, which the matcher doesn't have.
0.1.0-next.7
Patch changes
A request that the topic's retention removes before the bus delivers it to any subscriber now fails at once with the new error code
dropped, with the message "the request was dropped: the topic's retention was full; retry or raise retention" (ADR 0018, decision 5). Before, its caller waited out the whole timeout. It applies tokernel.requestand to an isolate's ownbus.request; a request already delivered stays its responder's to answer, and retention keeps its meaning. On a topic keeping 100 records, a burst of 1,000 calls at once now gets 100 answers and 900dropped. The dev MCP reports it as a tool error,dropped: <message>, and@isoloop/webmcprejects with theBusError. Size a tool's topic's retention for its largest burst of calls.
0.1.0-next.6
Minor changes
The dev MCP gains
isoloop_tap { topics, ms?, max? }, a read: a live sample of the records published to some topics, forms(3 s by default, at most 10 s), stopping early atmaxrecords (at most 100). It returns{ records, skipped, ms }: like the devtools panel's log, a tap gets at most 50 records a second, andskippedis how many the bus left out over that, reported once a second, so the last second's count can be missing.connectDevMCPanswers it withinspector.tap()and itsonSkipped, and ends the tap atms, atmax, or when the agent cancels or the page disconnects.isoloop_recordsstill reads what a topic retains.
0.1.0-next.5
Minor changes
tap()on the host'sInspectorand onctx.inspectortakesonSkipped?: (count: number) => void(@experimental). It gets each count of records the bus left out overmaxPerSec, at most once a second (ADR 0020, decision 6, amended 2026-11-19). The devtools Log header shows the cap and the total skipped since the log was opened.
0.1.0-next.3
Minor changes
New,
@experimental:connectDevMCP(kernel, { token, url?, title? })from the new entry@isoloop/host/dev-mcp, the page side of the dev MCP (ADR 0018, decision 8). It dialsisoloop mcp's WebSocket (ws://127.0.0.1:4317by default) and sends the kernel's exposed tools (kernel.tools()). It answers each call withkernel.request(tool.topic, input, { timeoutMs: tool.timeoutMs, via: 'mcp' }), aborts the request when the agent cancels, and sends a failure'sBusErrorcode and message. It keeps retrying while the CLI isn't running, backing off to one try every 30 s, and stops on a wrong token or a bad hello. The returned function disconnects it. Import it behindif (import.meta.env.DEV).@isoloop/vitefails a production build whose output still contains@isoloop/host/dev-mcp, unless you passisoloop({ allowDevMcp: true }). An import that is tree-shaken away, or dropped behindimport.meta.env.DEV, passes.The host can request, and an app can expose tools to agents (ADR 0018, decisions 2–6). All of it is
@experimental.kernel.request(topic, value, { key?, timeoutMs?, signal?, via? })mirrorsbus.request: it resolves with the first valid reply, on any requestable topic, and the record carriesreq: { from: 'host', id }, plusviawhen given. It times out after 30 s by default, rejects with the newBusErrorcodeabortedwhensignalaborts, and with the new codeno_responderat once when no isolate could answer (none with a subscribe grant for the topic, or all of them stopped orfailed). An isolate that restarts within the timeout still gets the request and can answer it.createKernel({ agents: { expose: ['markets.quote.v1', 'markets.alerts.*'], timeoutMs? } })lists the topics agents may call, with grant matchers. A matched topic withoutreply, withouttool, or with a schema that doesn't make JSON Schema fails the start withKernelError('not_exposable'), naming the topic. A pattern that matches nothing warns on the console and emits the newagents:unmatchedevent once.kernel.tools()lists the exposed tools: name, title, description, the flags, the input and output JSON Schemas (draft 2020-12, made once at start) and the agent timeout (10 s by default), for the dev MCP and@isoloop/webmcpto read.- Protocol: a host-to-bus
requestenvelope. The run-time JSON Schema module now lives in@isoloop/protocol, so the host can use it;@isoloop/busstill re-exports it.
New: the dev MCP's own tools (M4a decision 12).
isoloop mcpnow offers, on any page that passes a kernel withinspect():- reads, always:
isoloop_isolates(state, pool, lag, time since the last beat, restarts, crash reason, busy time, compositor figures; and the pools),isoloop_topics(the bus's state and restart count, each topic's rates, head offset and retained count, each subscription's lag and credit, rejected publishes),isoloop_records(a topic's last records, at most 100, as 2 KB previews) andisoloop_events(the kernel's recent events, at most 200, each with how long ago it happened), all fromkernel.inspect()(ADR 0020); - with
--allow-writeonly:isoloop_restart,isoloop_kill,isoloop_block(at most 10 s),isoloop_publishandisoloop_request(any requestable topic, withvia: 'mcp'). Without the flag they aren't listed.
Every tool takes an optional
page; the default is the newest page that can answer. Theisoloop_tool names are reserved: an app tool with one of them isn't listed (topic names can't collide in practice, since they're dotted likemarkets.quote.v1).connectDevMCP(@experimental) answers these throughkernel.inspect(), opened on the first call and closed on disconnect, and still accepts a kernel withoutinspect()(it then offers only the app's tools).- reads, always:
New,
@experimental: theinspectgrant, which gives an isolate the inspection feed and its controls (ADR 0020, decision 6).grants: { …, inspect: true }gives the isolatectx.inspector; without itctx.inspectorisundefined. An isolate holding it can't be pooled: spawning one into a pool fails withinvalid_config, because a pool merges its members' grants.ctx.inspectormirrors the host'sInspector, asynchronously:snapshot(),on(fn),records(topic, { last }),tap({ topics, maxPerSec? }, fn), and the controlsrestart(id),kill(id)andblock(id, ms). It runs on a port of its own to the host, never through the bus, so it keeps working while the bus restarts and doesn't appear in the bus figures. The feed reaches the port only while the isolate listens.- The controls:
restartcallskernel.restart.killends the isolate's worker as a crash (worker-error), so the supervisor restarts it like any other. For a pooled isolate that's the pool's worker, so every member crashes and restarts. The call resolves once the kill is sent.blockbusy-loops the isolate's worker for up to 10 s, so you can watch the heartbeat go late and the supervisor act. After the hostInspector'sclose(), or oncectx.inspector's port has ended, the controls reject, while the last snapshot stays readable. Nothing gates them in production. - The host's
Inspectorgains the sametap,records,restart,killandblock. heapBytesis removed from the beat and the feed's types. Nothing filled it: Chromium hasperformance.memoryonly on the main thread, not in workers. Memory per isolate comes from the host instead (ADR 0020, decision 4, amended).
The new isolate message (
inspect { port }) is an addition to the host–isolate seam (ADR 0012), so under ADR 0019 it ships in a minor. Runtimes before it ignore the message.New,
@experimental:kernel.inspect()gives anInspectoron the inspection feed (ADR 0020), the one feed that M4a's dev MCP reads.snapshot()returns the isolates (askernel.isolates()has them), the pools, the bus (its state, its restart count and the latestbus:metrics), and the last 200 kernel events.on(fn)delivers events as they happen. Beats and bus metrics are coalesced to about one message a second, with the latest beat per isolate.close()stops this inspector's listeners.- The kernel always keeps a ring buffer of the last 200 events from its start, so a reader that arrives after a crash still sees it. Everything else costs nothing until a reader listens.
- Every message is plain, structured-cloneable data in the usual envelope: the
InspectMessagetypes and theisInspectMessageguard in@isoloop/protocol. Readers ignore message types they don't know, so the format can only grow.
kernel.inspect()now shows each isolate's memory, in Chromium on a cross-origin isolated page (ADR 0020, decision 4). The host measures withperformance.measureUserAgentSpecificMemory()while a reader listens, at most every 5 s, and gives each isolate its worker's bytes asmemory: { bytes, at }; a pool's members share their worker's figure (shared: true). The snapshot carries it and a newmemoryfeed message sends it, toctx.inspectortoo. Chromium answers at its next garbage collection, so a figure is coarse and can be many seconds old. Without cross-origin isolation, and in Firefox and Safari, there is no figure.@isoloop/vite's existingcrossOriginIsolated: truemakes the dev and preview servers send the headers this needs. To tell workers apart, each one starts from@isoloop/runtime/workerwith a fragment of its own.virtual:isoloop/workersnow marks that entry's URL with#isoloop-entryfor this, and the worker'sreadyreports that it started from it. Workers started from@isoloop/runtime/bootstrapdirectly keep one shared URL and get no memory figure.@experimental.
Patch changes
The bus side of the inspection feed (ADR 0020, decisions 2 and 3).
bus:metricsnow gives each topic itshead(the next offset to be written) andretained(how many records it still holds). Everything else is the bus side ofkernel.inspect(), and is@experimental:- Protocol: a host-to-bus
tapthat copies records appended to matching topics onto a dedicated port, at mostmaxPerSeca second (default 50), and counts the rest asskipped. A tap is not a consumer: it has no cursor or credit and never shows inbus:metrics. A host-to-busreadreturns a topic's last records (at most 100). Both sendRecordPreviews: the value as JSON-like text cut to 2,048 characters, with its estimated size in bytes. - Bus:
LogEnginegainsretained(topic), covered by the engine conformance suite. - Host (internal): the bus controller opens a tap again on each new bus worker after a crash, and keeps the bus restart count.
- Protocol: a host-to-bus
0.1.0-next.0
Minor changes
The main-thread kernel.
createKernelloads each isolate into its own worker or a named pool (ADR 0001, ADR 0015) and supervises it: heartbeats, blocked and killed loops, restarts with backoff, and a crash-loop guard (by default, three restarts within a minute, thenfaileduntilkernel.restart). It composites each isolate's surface into a shadow root within a frame budget, owns the URL and routing (ADR 0002), answers host calls, checks each isolate'srequiresagainst its[FLOOR, VERSION]range, and starts and supervises the bus worker. It reports throughisolate:*andbus:*events,kernel.isolates()andkernel.pools().This entry replaces the interim notes written during development with the package as it stands before its first versioned prerelease.
The working notes written before this release are kept as history in
docs/history/interim-changesets.md.
Patch changes
A consumer group no longer loses a record redelivered to a member (#211; ADR 0016, points 10–14). When a member left, its uncommitted records went to the others, and a member's next commit could cover one of them before its handler ran; if that member then stopped (a balancer move, say), nobody got the record again. Every
delivernow carries aseq, counting deliveries to the subscription on its connection from 1, and everycommitsentry carries the highestseqsettled whole with every delivery before it. A group commit covers only records withoffset ≤ offsetandseq ≤ seq, so a record redelivered after the deliveries it settled stays uncovered. Own subscriptions keep the offset rule, and host subscriptions send the sameseq.createCommitter'ssettlenow takes{ offset, seq }, anddeliveryPointsgives each record of a delivery its point.A consumer group that has a committed offset now resumes after it whatever
fromsays: an emptied group rejoining withfrom: 'earliest'no longer replays the topic.fromapplies only before the group's first commit, or after its offsets were dropped with the topic, and a member joining a group that has members takes records from where the group is. Group members don't needfrom: 'committed'to keep their place.ctx.bus.commit(record)settles that record and every one delivered before it on its subscription, and a record delivered before a bus restart no longer commits on the new port.
@isoloop/runtime
0.1.0
The first release of what an isolate runs on.
- One way to write an isolate:
defineIsolatewith astart(ctx), for a widget, a feed, an engine or a request handler. - Plain DOM in a worker: create elements, listen to input and style your surface, and the host draws it.
- The bus: typed publish and subscribe, straight to the bus worker, with replay after a restart.
- The page when you need it: async calls to measure, focus, scroll, navigate and get a canvas to draw on.
- A lifecycle: shutdown handlers, error reporting, and a hold against suspension.
- Unit tests without a worker:
createTestContextfrom@isoloop/runtime/testing. - Experimental: consumer groups and request and reply.
The changes made during the previews are in the 0.1.0-next.N sections below.
Previews 0.1.0-next.0 to 0.1.0-next.12
0.1.0-next.12
Patch changes
Each package's homepage on npm is its page on isoloop.dev, and each has search keywords. The public packages' npm descriptions say that they're Isoloop's and what each one does.
Each package has a README on npm: what it gives you, how to install it, a small example, and links to its guides and API reference.
0.1.0-next.10
Patch changes
TSDoc for every public export of
@isoloop/host,@isoloop/host/dev-mcp,@isoloop/runtimeand@isoloop/runtime/testing, and for the shared types they use (BusError, the inspection feed's types,Grants,ErrorCode,TopicRef): a lead sentence,@param,@returnsand@throwswith their error codes, every config and option field with its default, and examples oncreateKernel,kernel.request,defineIsolateandconnectDevMCP.Kernel,KernelConfig,IsolateHandle,IsolateStateandCrashReasonare documented for the first time.
0.1.0-next.9
Minor changes
The API freeze marks Isoloop's own internals
@internal, so they leave the public API and its reference: the bus's engine, storage and broker types and its helpers (Broker,TsEngine,MemoryStorage,LogEngine,estimateSize,isContracts,topicConfigand the rest), host'sHostRenderBridge, runtime'sREQUIRES, vite'sISOLATES_ID,MANIFESTandWORKERS_ID, and the worker DOM and applier in@isoloop/dom/workerand@isoloop/dom/host. They're still exported for the other@isoloop/*packages; app code shouldn't import them.@isoloop/protocoland@isoloop/codecsay they're internal packages in their READMEs.Names settled for the API freeze:
@isoloop/vite:IsolateManifest, the type ofisoloop-manifest.json, is nowBuildManifest, so it no longer shares a name with host's spawn manifest.@isoloop/host:kernel.request's options type is nowKernelRequestOptions(key,timeoutMs,signal,via).@isoloop/runtime: exportsRequestOptions(key,timeoutMs), the type ofbus.request's options.@isoloop/reactand@isoloop/preactre-export it foruseRequest, in place of their own copies.@isoloop/balancer:createBalancertakes host'sKernel.KernelLike,ManifestLike,BeatLike,CrashLike,FailedLikeandPoolLikeare no longer exported, and every export is@experimental.- Marked
@experimental: consumer groups (SubscribeOptions.group,autoCommit,bus.commit) and request/reply (bus.request,bus.reply, a topic'sreplyschema,useRequest,RequestOptions).
0.1.0-next.7
Patch changes
A request that the topic's retention removes before the bus delivers it to any subscriber now fails at once with the new error code
dropped, with the message "the request was dropped: the topic's retention was full; retry or raise retention" (ADR 0018, decision 5). Before, its caller waited out the whole timeout. It applies tokernel.requestand to an isolate's ownbus.request; a request already delivered stays its responder's to answer, and retention keeps its meaning. On a topic keeping 100 records, a burst of 1,000 calls at once now gets 100 answers and 900dropped. The dev MCP reports it as a tool error,dropped: <message>, and@isoloop/webmcprejects with theBusError. Size a tool's topic's retention for its largest burst of calls.
0.1.0-next.6
Patch changes
A pool's worker no longer closes itself when its last member says
bye. It stays open until the host's loader terminates it after its last member. Before, the firstbyeafter every member had left the routing table closed the worker. Members still shutting down lost theirbye, so their stop waited out the full grace. A member the host had just sentinitto never started, and from then on every start in that pool ended in aready-timeout. In the File processor's fault runs on0.1.0-next.5(webc4503e5, a 4-core bench server at 2.0 GHz), it hit 3 of 15 balancer runs, as an image processor given up on in the first quarantine pool.
0.1.0-next.5
Minor changes
tap()on the host'sInspectorand onctx.inspectortakesonSkipped?: (count: number) => void(@experimental). It gets each count of records the bus left out overmaxPerSec, at most once a second (ADR 0020, decision 6, amended 2026-11-19). The devtools Log header shows the cap and the total skipped since the log was opened.
0.1.0-next.3
Minor changes
New,
@experimental: theinspectgrant, which gives an isolate the inspection feed and its controls (ADR 0020, decision 6).grants: { …, inspect: true }gives the isolatectx.inspector; without itctx.inspectorisundefined. An isolate holding it can't be pooled: spawning one into a pool fails withinvalid_config, because a pool merges its members' grants.ctx.inspectormirrors the host'sInspector, asynchronously:snapshot(),on(fn),records(topic, { last }),tap({ topics, maxPerSec? }, fn), and the controlsrestart(id),kill(id)andblock(id, ms). It runs on a port of its own to the host, never through the bus, so it keeps working while the bus restarts and doesn't appear in the bus figures. The feed reaches the port only while the isolate listens.- The controls:
restartcallskernel.restart.killends the isolate's worker as a crash (worker-error), so the supervisor restarts it like any other. For a pooled isolate that's the pool's worker, so every member crashes and restarts. The call resolves once the kill is sent.blockbusy-loops the isolate's worker for up to 10 s, so you can watch the heartbeat go late and the supervisor act. After the hostInspector'sclose(), or oncectx.inspector's port has ended, the controls reject, while the last snapshot stays readable. Nothing gates them in production. - The host's
Inspectorgains the sametap,records,restart,killandblock. heapBytesis removed from the beat and the feed's types. Nothing filled it: Chromium hasperformance.memoryonly on the main thread, not in workers. Memory per isolate comes from the host instead (ADR 0020, decision 4, amended).
The new isolate message (
inspect { port }) is an addition to the host–isolate seam (ADR 0012), so under ADR 0019 it ships in a minor. Runtimes before it ignore the message.kernel.inspect()now shows each isolate's memory, in Chromium on a cross-origin isolated page (ADR 0020, decision 4). The host measures withperformance.measureUserAgentSpecificMemory()while a reader listens, at most every 5 s, and gives each isolate its worker's bytes asmemory: { bytes, at }; a pool's members share their worker's figure (shared: true). The snapshot carries it and a newmemoryfeed message sends it, toctx.inspectortoo. Chromium answers at its next garbage collection, so a figure is coarse and can be many seconds old. Without cross-origin isolation, and in Firefox and Safari, there is no figure.@isoloop/vite's existingcrossOriginIsolated: truemakes the dev and preview servers send the headers this needs. To tell workers apart, each one starts from@isoloop/runtime/workerwith a fragment of its own.virtual:isoloop/workersnow marks that entry's URL with#isoloop-entryfor this, and the worker'sreadyreports that it started from it. Workers started from@isoloop/runtime/bootstrapdirectly keep one shared URL and get no memory figure.@experimental.A runtime message for the inspection feed's block control (ADR 0020, decision 4),
@experimental. A host-to-isolateblock { ms }busy-loops the isolate's worker forms, cut toMAX_BLOCK_MS(10 s), so a developer can watch containment work: the beat goes late and the supervisor acts as it would for a stuck isolate. For a pool member it blocks the whole worker, and the time is billed to that member'sbusyMs. The host sends it only for inspect access; runtimes before this one ignore it.
Patch changes
A consumer-group member that stops partway through a delivery now keeps the records it settled (ADR 0016, point 17). A commit entry carries
partial, how many records of the next delivery are settled, in the order they arrived, and the broker covers those too. Before, a commit covered a delivery only once all its records were settled. So a member that crashed partway through a batch had its settled records sent again, and a record that crashed every member it reached, once settled, came back until the kernel gave up on all of them.
0.1.0-next.0
Minor changes
Runs inside each isolate's worker.
defineIsolatefor plain-DOM isolates; the bus client onctx.bus(publish,subscribe,request); host calls for layout, focus and scrolling; heartbeats;ctx.reportErrorfor an error that's the isolate's own; and opt-in suspension./bootstrapand/workerare the entries the host loads.This entry replaces the interim notes written during development with the package as it stands before its first versioned prerelease.
The working notes written before this release are kept as history in
docs/history/interim-changesets.md.
Patch changes
A consumer group no longer loses a record redelivered to a member (#211; ADR 0016, points 10–14). When a member left, its uncommitted records went to the others, and a member's next commit could cover one of them before its handler ran; if that member then stopped (a balancer move, say), nobody got the record again. Every
delivernow carries aseq, counting deliveries to the subscription on its connection from 1, and everycommitsentry carries the highestseqsettled whole with every delivery before it. A group commit covers only records withoffset ≤ offsetandseq ≤ seq, so a record redelivered after the deliveries it settled stays uncovered. Own subscriptions keep the offset rule, and host subscriptions send the sameseq.createCommitter'ssettlenow takes{ offset, seq }, anddeliveryPointsgives each record of a delivery its point.A consumer group that has a committed offset now resumes after it whatever
fromsays: an emptied group rejoining withfrom: 'earliest'no longer replays the topic.fromapplies only before the group's first commit, or after its offsets were dropped with the topic, and a member joining a group that has members takes records from where the group is. Group members don't needfrom: 'committed'to keep their place.ctx.bus.commit(record)settles that record and every one delivered before it on its subscription, and a record delivered before a bus restart no longer commits on the new port.
@isoloop/bus
0.1.1
Patch changes
With the kernel's
dev: true, the bus now warns in the console, once per topic per isolate, when an isolate subscribes to a topic it already subscribes to. The newer subscription replaces the older one, as before; the warning names the isolate and the topic, since a seconduseTopicorbus.subscribeon the same topic is the usual cause.
0.1.0
The first release of the bus.
- Contracts: topics with schemas from any Standard Schema library, typed where you use them and checked on every publish.
- Retention: keep the newest records, a span of time, or the latest record for each key.
- Replay: a subscriber that starts late, or restarts, reads what it needs from the log.
- Backpressure: records wait in the log for a busy subscriber, within the topic's retention.
- History that lasts: a persistent topic's records and committed positions survive a reload and a restart of the bus.
- Contract tests:
testContractsfrom@isoloop/bus/testingchecks your schemas against samples. - Experimental: consumer groups, request and reply, and a topic described as a tool for agents.
The changes made during the previews are in the 0.1.0-next.N sections below.
Previews 0.1.0-next.0 to 0.1.0-next.12
0.1.0-next.12
Patch changes
Each package's homepage on npm is its page on isoloop.dev, and each has search keywords. The public packages' npm descriptions say that they're Isoloop's and what each one does.
Each package has a README on npm: what it gives you, how to install it, a small example, and links to its guides and API reference.
0.1.0-next.11
Patch changes
@isoloop/busno longer exports the names its entry carried for the bus worker's own use, all marked@internal:Broker,TsEngine,MemoryStorage, the engine and broker types (LogEngine,LogStorage,BusPort,BrokerOptionsand the rest), and the helperspublishId,estimateSize,effectiveDurability,toIssues,topicConfigandisUnchecked. The public API is unchanged.@isoloop/busand@isoloop/devtoolsname their scripts insideEffects: the bus worker (./dist/bus-worker.js) and the devtools panel (./dist/panel.js) run code when they load, so a bundler that meets one in animportkeeps it rather than dropping it. Their other files stay side-effect-free.
0.1.0-next.10
Patch changes
The bus's TSDoc is complete for the API reference:
topicandcontractshave examples, parameters and return values;contractslists theContractsErrorcodes it throws; every field of a topic's definition and ofRetentionsays what it does and its default;testContractsandContractProblemare documented. The comments no longer cite design records.
0.1.0-next.9
Minor changes
The API freeze marks Isoloop's own internals
@internal, so they leave the public API and its reference: the bus's engine, storage and broker types and its helpers (Broker,TsEngine,MemoryStorage,LogEngine,estimateSize,isContracts,topicConfigand the rest), host'sHostRenderBridge, runtime'sREQUIRES, vite'sISOLATES_ID,MANIFESTandWORKERS_ID, and the worker DOM and applier in@isoloop/dom/workerand@isoloop/dom/host. They're still exported for the other@isoloop/*packages; app code shouldn't import them.@isoloop/protocoland@isoloop/codecsay they're internal packages in their READMEs.Names settled for the API freeze:
@isoloop/vite:IsolateManifest, the type ofisoloop-manifest.json, is nowBuildManifest, so it no longer shares a name with host's spawn manifest.@isoloop/host:kernel.request's options type is nowKernelRequestOptions(key,timeoutMs,signal,via).@isoloop/runtime: exportsRequestOptions(key,timeoutMs), the type ofbus.request's options.@isoloop/reactand@isoloop/preactre-export it foruseRequest, in place of their own copies.@isoloop/balancer:createBalancertakes host'sKernel.KernelLike,ManifestLike,BeatLike,CrashLike,FailedLikeandPoolLikeare no longer exported, and every export is@experimental.- Marked
@experimental: consumer groups (SubscribeOptions.group,autoCommit,bus.commit) and request/reply (bus.request,bus.reply, a topic'sreplyschema,useRequest,RequestOptions).
Crash reasons, durability reasons and the durability event are snake_case, like the error codes. The strings changed, so code that compares them needs the new spelling:
CrashReason:worker-erroris nowworker_error,ready-timeoutisready_timeout,spawn-failedisspawn_failed,render-fmt-mismatchisrender_format_mismatch,bus-failedisbus_failed,runtime-too-oldisruntime_too_oldandisolate-too-oldisisolate_too_old.DurabilityDegraded:another-tabis nowanother_tab,no-sync-accessisno_sync_accessandopen-failedisopen_failed.- The kernel event
bus:durability-degradedis nowbus:durability_degraded.
Option values you write in config, such as
'bottom-right'or'last-n', keep their kebab-case.
0.1.0-next.7
Minor changes
A request that the topic's retention removes before the bus delivers it to any subscriber now fails at once with the new error code
dropped, with the message "the request was dropped: the topic's retention was full; retry or raise retention" (ADR 0018, decision 5). Before, its caller waited out the whole timeout. It applies tokernel.requestand to an isolate's ownbus.request; a request already delivered stays its responder's to answer, and retention keeps its meaning. On a topic keeping 100 records, a burst of 1,000 calls at once now gets 100 answers and 900dropped. The dev MCP reports it as a tool error,dropped: <message>, and@isoloop/webmcprejects with theBusError. Size a tool's topic's retention for its largest burst of calls.
0.1.0-next.3
Minor changes
The host can request, and an app can expose tools to agents (ADR 0018, decisions 2–6). All of it is
@experimental.kernel.request(topic, value, { key?, timeoutMs?, signal?, via? })mirrorsbus.request: it resolves with the first valid reply, on any requestable topic, and the record carriesreq: { from: 'host', id }, plusviawhen given. It times out after 30 s by default, rejects with the newBusErrorcodeabortedwhensignalaborts, and with the new codeno_responderat once when no isolate could answer (none with a subscribe grant for the topic, or all of them stopped orfailed). An isolate that restarts within the timeout still gets the request and can answer it.createKernel({ agents: { expose: ['markets.quote.v1', 'markets.alerts.*'], timeoutMs? } })lists the topics agents may call, with grant matchers. A matched topic withoutreply, withouttool, or with a schema that doesn't make JSON Schema fails the start withKernelError('not_exposable'), naming the topic. A pattern that matches nothing warns on the console and emits the newagents:unmatchedevent once.kernel.tools()lists the exposed tools: name, title, description, the flags, the input and output JSON Schemas (draft 2020-12, made once at start) and the agent timeout (10 s by default), for the dev MCP and@isoloop/webmcpto read.- Protocol: a host-to-bus
requestenvelope. The run-time JSON Schema module now lives in@isoloop/protocol, so the host can use it;@isoloop/busstill re-exports it.
A requestable topic can describe itself as a tool for agents:
topic(name, { …, reply, tool: { title?, description, readOnly, consequential?, untrustedContent? } })(ADR 0018, decision 1).descriptionandreadOnlyare required, andtoolwithoutreplyis a type error. Agents are offered only the topics the app lists inagents.expose.toolstays on the host and isn't part of the topic config the bus compares.Request records can carry
req.via('mcp' | 'webmcp' | 'builder'), the agent transport that made the call, withisRecordReqandisRequestViaguards. Persistent topics keep it. It's self-declared, so a handler may log or refuse by it but must never authorize by it. All of it is@experimental.The bus side of the inspection feed (ADR 0020, decisions 2 and 3).
bus:metricsnow gives each topic itshead(the next offset to be written) andretained(how many records it still holds). Everything else is the bus side ofkernel.inspect(), and is@experimental:- Protocol: a host-to-bus
tapthat copies records appended to matching topics onto a dedicated port, at mostmaxPerSeca second (default 50), and counts the rest asskipped. A tap is not a consumer: it has no cursor or credit and never shows inbus:metrics. A host-to-busreadreturns a topic's last records (at most 100). Both sendRecordPreviews: the value as JSON-like text cut to 2,048 characters, with its estimated size in bytes. - Bus:
LogEnginegainsretained(topic), covered by the engine conformance suite. - Host (internal): the bus controller opens a tap again on each new bus worker after a crash, and keeps the bus restart count.
- Protocol: a host-to-bus
Patch changes
Internal: the bus can make JSON Schema (draft 2020-12) from a topic's schemas through the vendored Standard JSON Schema interface (
~standard.jsonSchema, Zod ≥ 4.2). A schema without the interface, anunchecked()schema, or a converter that throws comes back as a typed "not exportable" result. The kernel's agent tools andisoloop contracts exportuse it (ADR 0018, ADR 0003 decision 21).A consumer-group member that stops partway through a delivery now keeps the records it settled (ADR 0016, point 17). A commit entry carries
partial, how many records of the next delivery are settled, in the order they arrived, and the broker covers those too. Before, a commit covered a delivery only once all its records were settled. So a member that crashed partway through a batch had its settled records sent again, and a record that crashed every member it reached, once settled, came back until the kernel gave up on all of them.
0.1.0-next.0
Minor changes
The log bus, run in its own worker (
@isoloop/bus/worker). Topics are declared withtopic()and a Standard Schema, validated in the broker, and gathered in one contracts module. Each subscriber has its own offset and a start position (latest,earliestorcommitted); commits go out together per port (ADR 0016). Topics have retention, request and response, and an optional durable history in OPFS. A new topic version can be seeded from an older one, and isolates reattach after a bus restart (ADR 0003, ADR 0007).@isoloop/bus/testinghas helpers for tests.This entry replaces the interim notes written during development with the package as it stands before its first versioned prerelease.
The working notes written before this release are kept as history in
docs/history/interim-changesets.md.A consumer group no longer loses a record redelivered to a member (#211; ADR 0016, points 10–14). When a member left, its uncommitted records went to the others, and a member's next commit could cover one of them before its handler ran; if that member then stopped (a balancer move, say), nobody got the record again. Every
delivernow carries aseq, counting deliveries to the subscription on its connection from 1, and everycommitsentry carries the highestseqsettled whole with every delivery before it. A group commit covers only records withoffset ≤ offsetandseq ≤ seq, so a record redelivered after the deliveries it settled stays uncovered. Own subscriptions keep the offset rule, and host subscriptions send the sameseq.createCommitter'ssettlenow takes{ offset, seq }, anddeliveryPointsgives each record of a delivery its point.A consumer group that has a committed offset now resumes after it whatever
fromsays: an emptied group rejoining withfrom: 'earliest'no longer replays the topic.fromapplies only before the group's first commit, or after its offsets were dropped with the topic, and a member joining a group that has members takes records from where the group is. Group members don't needfrom: 'committed'to keep their place.ctx.bus.commit(record)settles that record and every one delivered before it on its subscription, and a record delivered before a bus restart no longer commits on the new port.
@isoloop/react
0.1.1
Patch changes
Docs:
useHostnow listsrequestCanvasamong the host calls, and themaxWorkersoption says its default ismax(2, navigator.hardwareConcurrency - 2)and that a value you set is raised to 1 if lower.With the kernel's
dev: true, the bus now warns in the console, once per topic per isolate, when an isolate subscribes to a topic it already subscribes to. The newer subscription replaces the older one, as before; the warning names the isolate and the topic, since a seconduseTopicorbus.subscribeon the same topic is the usual cause.
0.1.0
The first release of the React adapter, for React 18 and 19.
- Your components in a worker:
defineIsolate(Component)turns a React component into an isolate. - Topics as state:
useTopicfollows a topic's latest value, andusePublishwrites to a topic. - The page through hooks:
useHostto measure, focus, scroll, navigate and get a canvas, anduseRoutefor the current location. - Portals:
usePortalRootgives modals, tooltips and menus a place inside the isolate. - Errors reach the supervisor: a render error restarts that isolate, and in a pool only that member.
- Experimental:
useRequest.
The changes made during the previews are in the 0.1.0-next.N sections below.
Previews 0.1.0-next.0 to 0.1.0-next.12
0.1.0-next.12
Patch changes
Each package's homepage on npm is its page on isoloop.dev, and each has search keywords. The public packages' npm descriptions say that they're Isoloop's and what each one does.
Each package has a README on npm: what it gives you, how to install it, a small example, and links to its guides and API reference.
The docs for
useTopicsay that an isolate has one subscription per topic: a seconduseTopicon the same topic replaces the first with no error, so only the last one gets records. They suggest oneuseTopicper topic, with the value passed down or shared through context.
0.1.0-next.10
Patch changes
The React and Preact adapters' doc comments are complete: each export says what it does, its parameters, what it returns and the error codes it rejects with, and
defineIsolatehas an example.RouteValuedocuments each field.
0.1.0-next.9
Minor changes
Names settled for the API freeze:
@isoloop/vite:IsolateManifest, the type ofisoloop-manifest.json, is nowBuildManifest, so it no longer shares a name with host's spawn manifest.@isoloop/host:kernel.request's options type is nowKernelRequestOptions(key,timeoutMs,signal,via).@isoloop/runtime: exportsRequestOptions(key,timeoutMs), the type ofbus.request's options.@isoloop/reactand@isoloop/preactre-export it foruseRequest, in place of their own copies.@isoloop/balancer:createBalancertakes host'sKernel.KernelLike,ManifestLike,BeatLike,CrashLike,FailedLikeandPoolLikeare no longer exported, and every export is@experimental.- Marked
@experimental: consumer groups (SubscribeOptions.group,autoCommit,bus.commit) and request/reply (bus.request,bus.reply, a topic'sreplyschema,useRequest,RequestOptions).
0.1.0-next.0
Minor changes
React isolates:
defineIsolate(Component)and the hooksuseTopic,usePublish,useRequest,useHost,useRoute,useIsolateandusePortalRoot. React 18 and 19 are supported. A render error is caught at the isolate's root and reported as its own, so in a pool only that member restarts.This entry replaces the interim notes written during development with the package as it stands before its first versioned prerelease.
The working notes written before this release are kept as history in
docs/history/interim-changesets.md.
@isoloop/preact
0.1.1
Patch changes
Docs:
useHostnow listsrequestCanvasamong the host calls, and themaxWorkersoption says its default ismax(2, navigator.hardwareConcurrency - 2)and that a value you set is raised to 1 if lower.With the kernel's
dev: true, the bus now warns in the console, once per topic per isolate, when an isolate subscribes to a topic it already subscribes to. The newer subscription replaces the older one, as before; the warning names the isolate and the topic, since a seconduseTopicorbus.subscribeon the same topic is the usual cause.
0.1.0
The first release of the Preact adapter, for Preact 10 and 11.
- Your components in a worker:
defineIsolate(Component)turns a Preact component into an isolate. - Topics as state:
useTopicfollows a topic's latest value, andusePublishwrites to a topic. - The page through hooks:
useHostto measure, focus, scroll, navigate and get a canvas, anduseRoutefor the current location. - Portals:
usePortalRootgives modals, tooltips and menus a place inside the isolate. - Errors reach the supervisor: a render error restarts that isolate, and in a pool only that member.
- Experimental:
useRequest.
The changes made during the previews are in the 0.1.0-next.N sections below.
Previews 0.1.0-next.0 to 0.1.0-next.12
0.1.0-next.12
Patch changes
Each package's homepage on npm is its page on isoloop.dev, and each has search keywords. The public packages' npm descriptions say that they're Isoloop's and what each one does.
Each package has a README on npm: what it gives you, how to install it, a small example, and links to its guides and API reference.
The docs for
useTopicsay that an isolate has one subscription per topic: a seconduseTopicon the same topic replaces the first with no error, so only the last one gets records. They suggest oneuseTopicper topic, with the value passed down or shared through context.
0.1.0-next.10
Patch changes
The React and Preact adapters' doc comments are complete: each export says what it does, its parameters, what it returns and the error codes it rejects with, and
defineIsolatehas an example.RouteValuedocuments each field.
0.1.0-next.9
Minor changes
Names settled for the API freeze:
@isoloop/vite:IsolateManifest, the type ofisoloop-manifest.json, is nowBuildManifest, so it no longer shares a name with host's spawn manifest.@isoloop/host:kernel.request's options type is nowKernelRequestOptions(key,timeoutMs,signal,via).@isoloop/runtime: exportsRequestOptions(key,timeoutMs), the type ofbus.request's options.@isoloop/reactand@isoloop/preactre-export it foruseRequest, in place of their own copies.@isoloop/balancer:createBalancertakes host'sKernel.KernelLike,ManifestLike,BeatLike,CrashLike,FailedLikeandPoolLikeare no longer exported, and every export is@experimental.- Marked
@experimental: consumer groups (SubscribeOptions.group,autoCommit,bus.commit) and request/reply (bus.request,bus.reply, a topic'sreplyschema,useRequest,RequestOptions).
0.1.0-next.0
Minor changes
Preact isolates:
defineIsolate(Component)and the hooksuseTopic,usePublish,useRequest,useHost,useRoute,useIsolateandusePortalRoot. Preact 10 and 11 are supported. A render error is caught at the isolate's root and reported as its own, so in a pool only that member restarts.This entry replaces the interim notes written during development with the package as it stands before its first versioned prerelease.
The working notes written before this release are kept as history in
docs/history/interim-changesets.md.
@isoloop/vite
0.1.1
Patch changes
The host writes the
stylean isolate renders through the element's CSSOM (el.style.cssText) instead ofsetAttribute('style', …), and the devtools panel styles its own page elements the same way. A page with surfaces now works understyle-src 'self', with no'unsafe-inline': before, the browser dropped those styles and logged a violation for each.devCsp()still allows'unsafe-inline'instyle-src, for the<style>elements Vite's dev server injects; its TSDoc and the hosting guide say so.
0.1.0
The first release of the Vite plugin.
- The workers:
virtual:isoloop/workersgivescreateKernelthe URLs of the isolate bootstrap and the bus worker. - Isolates by import:
import url from './cart?isolate'gives a URL to spawn, and a build emits that module on its own. - Isolates built apart: build named isolates, or a repository of nothing else, for another team's host, with a manifest of the files.
- Headers in development: dev and preview send the Content-Security-Policy Isoloop needs, and cross-origin isolation when you ask.
- A guard for production: a build fails if the development-only MCP connection is still in it.
The changes made during the previews are in the 0.1.0-next.N sections below.
Previews 0.1.0-next.0 to 0.1.0-next.12
0.1.0-next.12
Patch changes
Each package's homepage on npm is its page on isoloop.dev, and each has search keywords. The public packages' npm descriptions say that they're Isoloop's and what each one does.
Each package has a README on npm: what it gives you, how to install it, a small example, and links to its guides and API reference.
0.1.0-next.11
No changes in this release.
0.1.0-next.10
Patch changes
Every public export of
@isoloop/vite,@isoloop/balancer,@isoloop/devtoolsand@isoloop/webmcphas its reference comment: a lead sentence, its parameters, what it returns and throws, and each option's default.isoloop(),createBalancer,connectDevtoolsandconnectWebMCPeach have an example.
0.1.0-next.9
Minor changes
The API freeze marks Isoloop's own internals
@internal, so they leave the public API and its reference: the bus's engine, storage and broker types and its helpers (Broker,TsEngine,MemoryStorage,LogEngine,estimateSize,isContracts,topicConfigand the rest), host'sHostRenderBridge, runtime'sREQUIRES, vite'sISOLATES_ID,MANIFESTandWORKERS_ID, and the worker DOM and applier in@isoloop/dom/workerand@isoloop/dom/host. They're still exported for the other@isoloop/*packages; app code shouldn't import them.@isoloop/protocoland@isoloop/codecsay they're internal packages in their READMEs.Names settled for the API freeze:
@isoloop/vite:IsolateManifest, the type ofisoloop-manifest.json, is nowBuildManifest, so it no longer shares a name with host's spawn manifest.@isoloop/host:kernel.request's options type is nowKernelRequestOptions(key,timeoutMs,signal,via).@isoloop/runtime: exportsRequestOptions(key,timeoutMs), the type ofbus.request's options.@isoloop/reactand@isoloop/preactre-export it foruseRequest, in place of their own copies.@isoloop/balancer:createBalancertakes host'sKernel.KernelLike,ManifestLike,BeatLike,CrashLike,FailedLikeandPoolLikeare no longer exported, and every export is@experimental.- Marked
@experimental: consumer groups (SubscribeOptions.group,autoCommit,bus.commit) and request/reply (bus.request,bus.reply, a topic'sreplyschema,useRequest,RequestOptions).
0.1.0-next.8
No changes in this release.
0.1.0-next.7
No changes in this release.
0.1.0-next.6
No changes in this release.
0.1.0-next.5
Patch changes
In dev,
@isoloop/vitekeeps@isoloop/devtoolsout of dependency pre-bundling (optimizeDeps.exclude), so the panel's default URL (new URL('./panel.js', import.meta.url)) reaches the publishedpanel.js. With@isoloop/vite,connectDevtoolsneeds nosrc; with another bundler, pass the URL it serves@isoloop/devtools/panelat.
0.1.0-next.4
No changes in this release.
0.1.0-next.3
Minor changes
New,
@experimental:connectDevMCP(kernel, { token, url?, title? })from the new entry@isoloop/host/dev-mcp, the page side of the dev MCP (ADR 0018, decision 8). It dialsisoloop mcp's WebSocket (ws://127.0.0.1:4317by default) and sends the kernel's exposed tools (kernel.tools()). It answers each call withkernel.request(tool.topic, input, { timeoutMs: tool.timeoutMs, via: 'mcp' }), aborts the request when the agent cancels, and sends a failure'sBusErrorcode and message. It keeps retrying while the CLI isn't running, backing off to one try every 30 s, and stops on a wrong token or a bad hello. The returned function disconnects it. Import it behindif (import.meta.env.DEV).@isoloop/vitefails a production build whose output still contains@isoloop/host/dev-mcp, unless you passisoloop({ allowDevMcp: true }). An import that is tree-shaken away, or dropped behindimport.meta.env.DEV, passes.kernel.inspect()now shows each isolate's memory, in Chromium on a cross-origin isolated page (ADR 0020, decision 4). The host measures withperformance.measureUserAgentSpecificMemory()while a reader listens, at most every 5 s, and gives each isolate its worker's bytes asmemory: { bytes, at }; a pool's members share their worker's figure (shared: true). The snapshot carries it and a newmemoryfeed message sends it, toctx.inspectortoo. Chromium answers at its next garbage collection, so a figure is coarse and can be many seconds old. Without cross-origin isolation, and in Firefox and Safari, there is no figure.@isoloop/vite's existingcrossOriginIsolated: truemakes the dev and preview servers send the headers this needs. To tell workers apart, each one starts from@isoloop/runtime/workerwith a fragment of its own.virtual:isoloop/workersnow marks that entry's URL with#isoloop-entryfor this, and the worker'sreadyreports that it started from it. Workers started from@isoloop/runtime/bootstrapdirectly keep one shared URL and get no memory figure.@experimental.
0.1.0-next.2
No changes in this release.
0.1.0-next.1
No changes in this release.
0.1.0-next.0
Minor changes
The
isoloop()Vite plugin: the bootstrap and bus worker URLs (virtual:isoloop/workers), the dev server's CSP and headers, and isolate builds with a manifest, including isolates built apart from the host (ADR 0012).This entry replaces the interim notes written during development with the package as it stands before its first versioned prerelease.
The working notes written before this release are kept as history in
docs/history/interim-changesets.md.
isoloop CLI
0.1.0
The first release of the isoloop command line.
isoloop contracts export: your contracts as JSON Schema.isoloop mcp: the dev MCP server, so a coding agent can inspect your running app (experimental).isoloop skill add: adds the "build with Isoloop" agent skill to your project.
The changes made during the previews are in the 0.1.0-next.N sections below.
Previews 0.1.0-next.3 to 0.1.0-next.12
0.1.0-next.12
Minor changes
The CLI ships the "build with Isoloop" agent skill, and
isoloop skill addcopies it into.claude/skills/build-with-isoloop/, or into the folder given with--dir. A copy that differs is kept unless--forceis given. The package has a README.
Patch changes
The docs of
lagMssay what it measures: how late the last beat fired. A blocked worker sends no beat, so it keeps the last beat's value during the block; readstateand the time since the last beat to see a block in progress. Theisoloop_isolatestool description says so too.Each package's homepage on npm is its page on isoloop.dev, and each has search keywords. The public packages' npm descriptions say that they're Isoloop's and what each one does.
0.1.0-next.6
Minor changes
The dev MCP gains
isoloop_tap { topics, ms?, max? }, a read: a live sample of the records published to some topics, forms(3 s by default, at most 10 s), stopping early atmaxrecords (at most 100). It returns{ records, skipped, ms }: like the devtools panel's log, a tap gets at most 50 records a second, andskippedis how many the bus left out over that, reported once a second, so the last second's count can be missing.connectDevMCPanswers it withinspector.tap()and itsonSkipped, and ends the tap atms, atmax, or when the agent cancels or the page disconnects.isoloop_recordsstill reads what a topic retains.
0.1.0-next.3
Minor changes
New: the
isoloopcommand line, withisoloop contracts export <module> [--out file](ADR 0003, decision 21). It loads a contracts module (its default export made bycontracts(); a.tsmodule works on Node ≥ 26) and prints one JSON document with JSON Schema (draft 2020-12) for every topic, made through Standard JSON Schema (Zod ≥ 4.2):schema, orinputandoutputwhen they differ, the same forreply, and the topic'stoolannotations (ADR 0018). Anunchecked()schema exports as{}, is listed underuncheckedand warns. A schema without Standard JSON Schema, or one its converter can't express, is reported per topic, nothing is written and the exit code is 1.New: the dev MCP's own tools (M4a decision 12).
isoloop mcpnow offers, on any page that passes a kernel withinspect():- reads, always:
isoloop_isolates(state, pool, lag, time since the last beat, restarts, crash reason, busy time, compositor figures; and the pools),isoloop_topics(the bus's state and restart count, each topic's rates, head offset and retained count, each subscription's lag and credit, rejected publishes),isoloop_records(a topic's last records, at most 100, as 2 KB previews) andisoloop_events(the kernel's recent events, at most 200, each with how long ago it happened), all fromkernel.inspect()(ADR 0020); - with
--allow-writeonly:isoloop_restart,isoloop_kill,isoloop_block(at most 10 s),isoloop_publishandisoloop_request(any requestable topic, withvia: 'mcp'). Without the flag they aren't listed.
Every tool takes an optional
page; the default is the newest page that can answer. Theisoloop_tool names are reserved: an app tool with one of them isn't listed (topic names can't collide in practice, since they're dotted likemarkets.quote.v1).connectDevMCP(@experimental) answers these throughkernel.inspect(), opened on the first call and closed on disconnect, and still accepts a kernel withoutinspect()(it then offers only the app's tools).- reads, always:
New:
isoloop mcp, the dev MCP server (ADR 0018, decision 8). An agent runs it over stdio (claude mcp add isoloop -- npx isoloop mcp), and pages in development connect to its WebSocket onws://127.0.0.1:4317(--port). Each connected page's exposed tools (kernel.tools()) become MCP tools under their topic names, with their JSON Schemas and annotations (readOnlyHint,destructiveHintforconsequential, and a description sentence foruntrustedContent). Tools that change something (readOnly: false) are offered only with--allow-write.isoloop_pageslists the connected pages, and every tool takes an optionalpage; the default is the newest page that exposes it. A page is accepted only from anOriginmatching--origin(defaulthttp://localhost:*) and with the run's token, printed on stderr or fixed throughISOLOOP_MCP_TOKEN. The page side isconnectDevMCPfrom@isoloop/host/dev-mcp.@isoloop/protocolgets the page wire's types, internal.
@isoloop/devtools
0.1.1
Patch changes
The host writes the
stylean isolate renders through the element's CSSOM (el.style.cssText) instead ofsetAttribute('style', …), and the devtools panel styles its own page elements the same way. A page with surfaces now works understyle-src 'self', with no'unsafe-inline': before, the browser dropped those styles and logged a violation for each.devCsp()still allows'unsafe-inline'instyle-src, for the<style>elements Vite's dev server injects; its TSDoc and the hosting guide say so.
0.1.0
The first release, experimental: the panel and its options may change in any minor.
- A panel in its own worker: drawn by a visual isolate, so a crash or hang in the panel never touches the app.
- What it shows: isolates, topics and live records, from the inspection feed.
- What it does: restart, kill and block an isolate.
The changes made during the previews are in the 0.1.0-next.N sections below.
Previews 0.1.0-next.4 to 0.1.0-next.12
0.1.0-next.12
Patch changes
Each package's homepage on npm is its page on isoloop.dev, and each has search keywords. The public packages' npm descriptions say that they're Isoloop's and what each one does.
0.1.0-next.11
Patch changes
@isoloop/busand@isoloop/devtoolsname their scripts insideEffects: the bus worker (./dist/bus-worker.js) and the devtools panel (./dist/panel.js) run code when they load, so a bundler that meets one in animportkeeps it rather than dropping it. Their other files stay side-effect-free.
0.1.0-next.10
Patch changes
Every public export of
@isoloop/vite,@isoloop/balancer,@isoloop/devtoolsand@isoloop/webmcphas its reference comment: a lead sentence, its parameters, what it returns and throws, and each option's default.isoloop(),createBalancer,connectDevtoolsandconnectWebMCPeach have an example.
0.1.0-next.8
Minor changes
The devtools button is bigger (70 px) and shows the Isoloop mark, by default in white, on a round dark tile. Hover it and two small chevrons appear to move it one corner across or up and down.
The closed button has a ring of twelve arcs, one stretch of isolates each, coloured by their worst state (green, amber, red, or grey without data), with a wave of brightness running round it.
connectDevtoolshas a newhealthStatusoption:'ring'(the default),'radar'(the logo filled by the ring's colours) or'off'(a plain white ring).The open panel docks flush against the window's edge, so it can be dragged to the very bottom. It resizes from either inner edge or the corner, and its toolbar has a stretch button (full width, the height still adjustable) and a maximize button, both toggling back and kept across reloads. The tab bars and the tables' headers stay in view while the rows scroll, there is a second level of tabs (Pools beside the isolates, and Topics, Subscriptions and Rejected on the Bus view), and the isolates table has an Actions header.
The new Events tab lists the kernel's own history: isolates changing state, crashing or failing, and the bus restarting. It keeps up to 6,000 of this page session's events (the oldest go first), not only the feed's last 200, and the last 3 sessions before it in IndexedDB (up to 6,000 events each, 24,000 in all), to read back after a reload. Its tab counts the problems you haven't acknowledged, and an Acknowledge button marks them as seen.
The tab that shows the records an app publishes is now called Messages. Its columns have a fixed width, its values are coloured, and a row opens into its value and its record, each with a Copy button.
0.1.0-next.5
Minor changes
The panel has a Bus tab. It shows the bus's state and restart count, and, from the latest metrics:
- each topic's records and bytes a second, head and retained count;
- each subscription's lag and credit;
- rejected publishes by error code;
- the origin's storage use.
The tabs follow the WAI-ARIA tabs pattern, and each isolate's controls have an accessible name that includes its id.
The panel has a Log tab: records as they're appended to the bus, newest first, with the last 200 kept. They come from a tap capped at 50 a second, which runs only while the tab is open and carries on through a bus restart. Topic patterns narrow it; Pause and Clear are in the bar. Values show as 2 KB previews with their size.
tap()on the host'sInspectorand onctx.inspectortakesonSkipped?: (count: number) => void(@experimental). It gets each count of records the bus left out overmaxPerSec, at most once a second (ADR 0020, decision 6, amended 2026-11-19). The devtools Log header shows the cap and the total skipped since the log was opened.
Patch changes
In dev,
@isoloop/vitekeeps@isoloop/devtoolsout of dependency pre-bundling (optimizeDeps.exclude), so the panel's default URL (new URL('./panel.js', import.meta.url)) reaches the publishedpanel.js. With@isoloop/vite,connectDevtoolsneeds nosrc; with another bundler, pass the URL it serves@isoloop/devtools/panelat.
0.1.0-next.4
Minor changes
The panel's isolates view lists every isolate. For each one it shows the state, lag, busy time, memory (Chromium, cross-origin isolated, with its age), crash restarts, the patch queue and the pool, and it marks the panel itself as
devtools. A table under it lists each pool and its members. Each isolate has Restart, Kill and Block 2 s controls; Kill on a pool member ends the whole pool's worker.New package (
@experimental):connectDevtools(kernel, { src, position, id })connects the devtools panel, a visual isolate in its own worker with theinspectgrant. Closed, it shows a floating button with a health dot (amber while an isolate isrestarting,crashedorblocked, red once one hasfailed); open, a panel docked in a corner, resizable, toggled with Alt+Shift+D. It returns a function that disconnects. Guide:docs/guide/devtools.md. Open state, size and corner persist in IndexedDB (a worker has nolocalStorage).
@isoloop/balancer
0.1.1
Patch changes
Docs:
useHostnow listsrequestCanvasamong the host calls, and themaxWorkersoption says its default ismax(2, navigator.hardwareConcurrency - 2)and that a value you set is raised to 1 if lower.
0.1.0
The first release, experimental: every export may change in any minor.
- Placement by load: spawn through the balancer instead of naming a pool, and it picks the worker.
- Moves and packing: it moves an isolate out of a pool that can't keep up, and empties a quiet pool into another to free a worker.
- Quarantine: an isolate that blocks or crashes waits in a quarantine pool until it has been quiet for a while.
The changes made during the previews are in the 0.1.0-next.N sections below.
Previews 0.1.0-next.0 to 0.1.0-next.12
0.1.0-next.12
Patch changes
Each package's homepage on npm is its page on isoloop.dev, and each has search keywords. The public packages' npm descriptions say that they're Isoloop's and what each one does.
0.1.0-next.10
Patch changes
Every public export of
@isoloop/vite,@isoloop/balancer,@isoloop/devtoolsand@isoloop/webmcphas its reference comment: a lead sentence, its parameters, what it returns and throws, and each option's default.isoloop(),createBalancer,connectDevtoolsandconnectWebMCPeach have an example.
0.1.0-next.9
Minor changes
Names settled for the API freeze:
@isoloop/vite:IsolateManifest, the type ofisoloop-manifest.json, is nowBuildManifest, so it no longer shares a name with host's spawn manifest.@isoloop/host:kernel.request's options type is nowKernelRequestOptions(key,timeoutMs,signal,via).@isoloop/runtime: exportsRequestOptions(key,timeoutMs), the type ofbus.request's options.@isoloop/reactand@isoloop/preactre-export it foruseRequest, in place of their own copies.@isoloop/balancer:createBalancertakes host'sKernel.KernelLike,ManifestLike,BeatLike,CrashLike,FailedLikeandPoolLikeare no longer exported, and every export is@experimental.- Marked
@experimental: consumer groups (SubscribeOptions.group,autoCommit,bus.commit) and request/reply (bus.request,bus.reply, a topic'sreplyschema,useRequest,RequestOptions).
0.1.0-next.5
Patch changes
Two fixes to the
roomfold, from the File processor's fault runs on0.1.0-next.4withmaxWorkers: 2:- The cap counts a pool a move has claimed, from the moment it's claimed, before its worker runs. Before, a
fullmove and abacklogmove in the same decision could each open a new pool, one pastmaxWorkers. - A second quarantine pool folds into the first like with like. Offenders join a first quarantine that holds only offenders. Members that never offended, such as the other half of a bisect, join one that holds no offender, and the bisect ends. Before, only a pool of offenders folded, so a bisect's second half kept its worker while a member sharing a pool fell behind. Anyone who hasn't offended still never joins an offender.
- The cap counts a pool a move has claimed, from the moment it's claimed, before its worker runs. Before, a
0.1.0-next.4
Minor changes
A rising backlog outranks a second quarantine worker. When a member that shares a pool has a rising backlog and the cap leaves it nowhere to go, a quarantine pool beyond
balancer-quarantine-1that holds only offenders folds into it (the new move reasonroom), which frees that worker for the backlog move. For the next 10 s no new quarantine pool takes a freed worker, and a bisect whose halves fold together ends. Before, a quarantine that had split could hold the last worker undermaxWorkersfor a whole quiet window while the members sharing a pool fell behind: in the File processor with faults, on0.1.0-next.3withmaxWorkers: 2, six processors shared one worker for the rest of the run.
0.1.0-next.2
Minor changes
These changes follow a local run of the File processor that showed three ways the balancer moved too much or packed too little (M3j, ADR 0017):
- The move budget. A never-measured isolate's way out of the quarantine, where it starts, no longer counts toward the 3 moves in 5 minutes. Before, a new isolate that then had one move for load and one quarantine move had to wait out the budget, past its quiet window.
- Packing. It now empties a quiet pool of several members into another, one member per pack, when the whole pool fits under 40 % there. Before, only an isolate alone in its pool packed.
- Backlog moves. These need the backlog to rise over two 10 s windows in a row. A queue that jumps once and then holds no longer moves anything.
0.1.0-next.1
Minor changes
The balancer sees work its busy time misses, packs while work keeps arriving, lets offenders out of the quarantine sooner, and leaves alone an isolate the kernel gave up on (M3j, ADR 0017).
report(id, { backlog?, busyMs? }):busyMsis the app's own measured busy time, a running total in ms since the isolate started, for work the runtime'sbusyMsdoesn't see (slices resumed afterawait). The balancer uses the larger of it and the beats' figure over the 3 s window, wherever it reads a load. A report older than 10 s counts as none.Report.backlogis now optional; a report needs one of the two.Placement.reportedPctshows the reported figure.- Packing back no longer needs a backlog of 0: a member, and the pool it joins, qualify while their backlog is no higher than 60 s before.
- An offender's quiet window is capped at 2 minutes, and back in a balancer pool it loses one offence per quiet window completed there.
- A bisect starts only with a quarantine pool of its own: an empty quarantine, or room under the cap for a new one. Suspects never join offenders; with no room, the pool's members get
behind. isolate:failed(KernelLikenow listens to it): the member's state isfailed, it leaves its pool's load and any bisect,on('failed', { id, pool, reason })reports it, and no move restarts it. Once the app restarts it (kernel.restart(id)) and it beats, it's placed again as new.
0.1.0-next.0
Minor changes
Experimental (ADR 0017).
createBalancer(kernel)places isolates in pools by measured load instead of a fixedpoolname, moves one out when its pool lags or fills, and quarantines an isolate that keeps blocking. A kernel has one balancer at a time;dispose()gives the kernel back.This entry replaces the interim notes written during development with the package as it stands before its first versioned prerelease.
The working notes written before this release are kept as history in
docs/history/interim-changesets.md.
@isoloop/webmcp
0.1.0
The first release, experimental: it follows the WebMCP draft and may change in any minor.
- Your tools in the browser's agent:
connectWebMCP(kernel)registers the topics the app lists inagents.exposewith the browser's WebMCP API.
The changes made during the previews are in the 0.1.0-next.N sections below.
Previews 0.1.0-next.4 to 0.1.0-next.12
0.1.0-next.12
Patch changes
Each package's homepage on npm is its page on isoloop.dev, and each has search keywords. The public packages' npm descriptions say that they're Isoloop's and what each one does.
0.1.0-next.10
Patch changes
Every public export of
@isoloop/vite,@isoloop/balancer,@isoloop/devtoolsand@isoloop/webmcphas its reference comment: a lead sentence, its parameters, what it returns and throws, and each option's default.isoloop(),createBalancer,connectDevtoolsandconnectWebMCPeach have an example.
0.1.0-next.7
Patch changes
A request that the topic's retention removes before the bus delivers it to any subscriber now fails at once with the new error code
dropped, with the message "the request was dropped: the topic's retention was full; retry or raise retention" (ADR 0018, decision 5). Before, its caller waited out the whole timeout. It applies tokernel.requestand to an isolate's ownbus.request; a request already delivered stays its responder's to answer, and retention keeps its meaning. On a topic keeping 100 records, a burst of 1,000 calls at once now gets 100 answers and 900dropped. The dev MCP reports it as a tool error,dropped: <message>, and@isoloop/webmcprejects with theBusError. Size a tool's topic's retention for its largest burst of calls.
0.1.0-next.5
Patch changes
connectWebMCPfollows the differences between Chromium's and Firefox's WebMCP by feature detection: it usesnavigator.modelContextwheredocument.modelContextis missing, listens fortoolcancelonly where the context is anEventTarget, and on disconnect also callsunregisterToolfor each tool where that exists. A tool's hints are sent only when true, because Firefox lists a tool as read-only wheneverreadOnlyHintis present, even asfalse. In Firefox a call can't be cancelled from the agent's side; it runs until its reply or itstimeoutMs. A tool name an earlierconnectWebMCPon the page registered and hasn't unregistered throwsKernelError('invalid_config')naming the tool, and nothing is registered; before, Chromium rejected it while Firefox replaced the tool.
0.1.0-next.4
Minor changes
New package,
@experimental:connectWebMCP(kernel)registers the tools an app exposes throughagents.exposewith the browser's WebMCP API (document.modelContext, behind--enable-features=WebMCPin Chromium), with their JSON Schemas and hints (ADR 0018, decision 8). A call runskernel.request(…, { via: 'webmcp' })with the tool's timeout and resolves with the reply, or rejects with the kernel'sBusError. The browser cancelling a call aborts it, and the returned function unregisters every tool. Wheredocument.modelContextis missing it does nothing. Firefox exposes WebMCP atnavigator.modelContext(behinddom.modelcontext.enabled), whichconnectWebMCPdoes not look up.