isoloop
0.1.1GitHub

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.maxRestarts when the isolate's healthy run before it (from ready to its last heartbeat) was shorter than supervisor.withinMs; a run of withinMs or 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, and isolate: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 pool to 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 lagMs say 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; read state and the time since the last beat to see a block in progress. The isoloop_isolates tool 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/runtime and @isoloop/runtime/testing, and for the shared types they use (BusError, the inspection feed's types, Grants, ErrorCode, TopicRef): a lead sentence, @param, @returns and @throws with their error codes, every config and option field with its default, and examples on createKernel, kernel.request, defineIsolate and connectDevMCP. Kernel, KernelConfig, IsolateHandle, IsolateState and CrashReason are 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, topicConfig and the rest), host's HostRenderBridge, runtime's REQUIRES, vite's ISOLATES_ID, MANIFEST and WORKERS_ID, and the worker DOM and applier in @isoloop/dom/worker and @isoloop/dom/host. They're still exported for the other @isoloop/* packages; app code shouldn't import them. @isoloop/protocol and @isoloop/codec say they're internal packages in their READMEs.

  • Names settled for the API freeze:

    • @isoloop/vite: IsolateManifest, the type of isoloop-manifest.json, is now BuildManifest, so it no longer shares a name with host's spawn manifest.
    • @isoloop/host: kernel.request's options type is now KernelRequestOptions (key, timeoutMs, signal, via).
    • @isoloop/runtime: exports RequestOptions (key, timeoutMs), the type of bus.request's options. @isoloop/react and @isoloop/preact re-export it for useRequest, in place of their own copies.
    • @isoloop/balancer: createBalancer takes host's Kernel. KernelLike, ManifestLike, BeatLike, CrashLike, FailedLike and PoolLike are 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's reply schema, 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-error is now worker_error, ready-timeout is ready_timeout, spawn-failed is spawn_failed, render-fmt-mismatch is render_format_mismatch, bus-failed is bus_failed, runtime-too-old is runtime_too_old and isolate-too-old is isolate_too_old.
    • DurabilityDegraded: another-tab is now another_tab, no-sync-access is no_sync_access and open-failed is open_failed.
    • The kernel event bus:durability-degraded is now bus: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 to kernel.request and to an isolate's own bus.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 900 dropped. The dev MCP reports it as a tool error, dropped: <message>, and @isoloop/webmcp rejects with the BusError. 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, for ms (3 s by default, at most 10 s), stopping early at max records (at most 100). It returns { records, skipped, ms }: like the devtools panel's log, a tap gets at most 50 records a second, and skipped is how many the bus left out over that, reported once a second, so the last second's count can be missing. connectDevMCP answers it with inspector.tap() and its onSkipped, and ends the tap at ms, at max, or when the agent cancels or the page disconnects. isoloop_records still reads what a topic retains.

0.1.0-next.5

Minor changes

  • tap() on the host's Inspector and on ctx.inspector takes onSkipped?: (count: number) => void (@experimental). It gets each count of records the bus left out over maxPerSec, 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 dials isoloop mcp's WebSocket (ws://127.0.0.1:4317 by default) and sends the kernel's exposed tools (kernel.tools()). It answers each call with kernel.request(tool.topic, input, { timeoutMs: tool.timeoutMs, via: 'mcp' }), aborts the request when the agent cancels, and sends a failure's BusError code 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 behind if (import.meta.env.DEV).

    @isoloop/vite fails a production build whose output still contains @isoloop/host/dev-mcp, unless you pass isoloop({ allowDevMcp: true }). An import that is tree-shaken away, or dropped behind import.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? }) mirrors bus.request: it resolves with the first valid reply, on any requestable topic, and the record carries req: { from: 'host', id }, plus via when given. It times out after 30 s by default, rejects with the new BusError code aborted when signal aborts, and with the new code no_responder at once when no isolate could answer (none with a subscribe grant for the topic, or all of them stopped or failed). 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 without reply, without tool, or with a schema that doesn't make JSON Schema fails the start with KernelError('not_exposable'), naming the topic. A pattern that matches nothing warns on the console and emits the new agents:unmatched event 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/webmcp to read.
    • Protocol: a host-to-bus request envelope. The run-time JSON Schema module now lives in @isoloop/protocol, so the host can use it; @isoloop/bus still re-exports it.
  • New: the dev MCP's own tools (M4a decision 12). isoloop mcp now offers, on any page that passes a kernel with inspect():

    • 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) and isoloop_events (the kernel's recent events, at most 200, each with how long ago it happened), all from kernel.inspect() (ADR 0020);
    • with --allow-write only: isoloop_restart, isoloop_kill, isoloop_block (at most 10 s), isoloop_publish and isoloop_request (any requestable topic, with via: 'mcp'). Without the flag they aren't listed.

    Every tool takes an optional page; the default is the newest page that can answer. The isoloop_ 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 like markets.quote.v1). connectDevMCP (@experimental) answers these through kernel.inspect(), opened on the first call and closed on disconnect, and still accepts a kernel without inspect() (it then offers only the app's tools).

  • New, @experimental: the inspect grant, which gives an isolate the inspection feed and its controls (ADR 0020, decision 6).

    • grants: { …, inspect: true } gives the isolate ctx.inspector; without it ctx.inspector is undefined. An isolate holding it can't be pooled: spawning one into a pool fails with invalid_config, because a pool merges its members' grants.
    • ctx.inspector mirrors the host's Inspector, asynchronously: snapshot(), on(fn), records(topic, { last }), tap({ topics, maxPerSec? }, fn), and the controls restart(id), kill(id) and block(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: restart calls kernel.restart. kill ends 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. block busy-loops the isolate's worker for up to 10 s, so you can watch the heartbeat go late and the supervisor act. After the host Inspector's close(), or once ctx.inspector's port has ended, the controls reject, while the last snapshot stays readable. Nothing gates them in production.
    • The host's Inspector gains the same tap, records, restart, kill and block.
    • heapBytes is removed from the beat and the feed's types. Nothing filled it: Chromium has performance.memory only 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 an Inspector on the inspection feed (ADR 0020), the one feed that M4a's dev MCP reads.

    • snapshot() returns the isolates (as kernel.isolates() has them), the pools, the bus (its state, its restart count and the latest bus: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 InspectMessage types and the isInspectMessage guard 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 with performance.measureUserAgentSpecificMemory() while a reader listens, at most every 5 s, and gives each isolate its worker's bytes as memory: { bytes, at }; a pool's members share their worker's figure (shared: true). The snapshot carries it and a new memory feed message sends it, to ctx.inspector too. 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 existing crossOriginIsolated: true makes the dev and preview servers send the headers this needs. To tell workers apart, each one starts from @isoloop/runtime/worker with a fragment of its own. virtual:isoloop/workers now marks that entry's URL with #isoloop-entry for this, and the worker's ready reports that it started from it. Workers started from @isoloop/runtime/bootstrap directly 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:metrics now gives each topic its head (the next offset to be written) and retained (how many records it still holds). Everything else is the bus side of kernel.inspect(), and is @experimental:

    • Protocol: a host-to-bus tap that copies records appended to matching topics onto a dedicated port, at most maxPerSec a second (default 50), and counts the rest as skipped. A tap is not a consumer: it has no cursor or credit and never shows in bus:metrics. A host-to-bus read returns a topic's last records (at most 100). Both send RecordPreviews: the value as JSON-like text cut to 2,048 characters, with its estimated size in bytes.
    • Bus: LogEngine gains retained(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.

0.1.0-next.0

Minor changes

  • The main-thread kernel. createKernel loads 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, then failed until kernel.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's requires against its [FLOOR, VERSION] range, and starts and supervises the bus worker. It reports through isolate:* and bus:* events, kernel.isolates() and kernel.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 deliver now carries a seq, counting deliveries to the subscription on its connection from 1, and every commits entry carries the highest seq settled whole with every delivery before it. A group commit covers only records with offset ≤ offset and seq ≤ seq, so a record redelivered after the deliveries it settled stays uncovered. Own subscriptions keep the offset rule, and host subscriptions send the same seq. createCommitter's settle now takes { offset, seq }, and deliveryPoints gives each record of a delivery its point.

    A consumer group that has a committed offset now resumes after it whatever from says: an emptied group rejoining with from: 'earliest' no longer replays the topic. from applies 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 need from: '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: defineIsolate with a start(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: createTestContext from @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/runtime and @isoloop/runtime/testing, and for the shared types they use (BusError, the inspection feed's types, Grants, ErrorCode, TopicRef): a lead sentence, @param, @returns and @throws with their error codes, every config and option field with its default, and examples on createKernel, kernel.request, defineIsolate and connectDevMCP. Kernel, KernelConfig, IsolateHandle, IsolateState and CrashReason are 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, topicConfig and the rest), host's HostRenderBridge, runtime's REQUIRES, vite's ISOLATES_ID, MANIFEST and WORKERS_ID, and the worker DOM and applier in @isoloop/dom/worker and @isoloop/dom/host. They're still exported for the other @isoloop/* packages; app code shouldn't import them. @isoloop/protocol and @isoloop/codec say they're internal packages in their READMEs.

  • Names settled for the API freeze:

    • @isoloop/vite: IsolateManifest, the type of isoloop-manifest.json, is now BuildManifest, so it no longer shares a name with host's spawn manifest.
    • @isoloop/host: kernel.request's options type is now KernelRequestOptions (key, timeoutMs, signal, via).
    • @isoloop/runtime: exports RequestOptions (key, timeoutMs), the type of bus.request's options. @isoloop/react and @isoloop/preact re-export it for useRequest, in place of their own copies.
    • @isoloop/balancer: createBalancer takes host's Kernel. KernelLike, ManifestLike, BeatLike, CrashLike, FailedLike and PoolLike are 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's reply schema, 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 to kernel.request and to an isolate's own bus.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 900 dropped. The dev MCP reports it as a tool error, dropped: <message>, and @isoloop/webmcp rejects with the BusError. 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 first bye after every member had left the routing table closed the worker. Members still shutting down lost their bye, so their stop waited out the full grace. A member the host had just sent init to never started, and from then on every start in that pool ended in a ready-timeout. In the File processor's fault runs on 0.1.0-next.5 (web c4503e5, 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's Inspector and on ctx.inspector takes onSkipped?: (count: number) => void (@experimental). It gets each count of records the bus left out over maxPerSec, 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: the inspect grant, which gives an isolate the inspection feed and its controls (ADR 0020, decision 6).

    • grants: { …, inspect: true } gives the isolate ctx.inspector; without it ctx.inspector is undefined. An isolate holding it can't be pooled: spawning one into a pool fails with invalid_config, because a pool merges its members' grants.
    • ctx.inspector mirrors the host's Inspector, asynchronously: snapshot(), on(fn), records(topic, { last }), tap({ topics, maxPerSec? }, fn), and the controls restart(id), kill(id) and block(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: restart calls kernel.restart. kill ends 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. block busy-loops the isolate's worker for up to 10 s, so you can watch the heartbeat go late and the supervisor act. After the host Inspector's close(), or once ctx.inspector's port has ended, the controls reject, while the last snapshot stays readable. Nothing gates them in production.
    • The host's Inspector gains the same tap, records, restart, kill and block.
    • heapBytes is removed from the beat and the feed's types. Nothing filled it: Chromium has performance.memory only 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 with performance.measureUserAgentSpecificMemory() while a reader listens, at most every 5 s, and gives each isolate its worker's bytes as memory: { bytes, at }; a pool's members share their worker's figure (shared: true). The snapshot carries it and a new memory feed message sends it, to ctx.inspector too. 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 existing crossOriginIsolated: true makes the dev and preview servers send the headers this needs. To tell workers apart, each one starts from @isoloop/runtime/worker with a fragment of its own. virtual:isoloop/workers now marks that entry's URL with #isoloop-entry for this, and the worker's ready reports that it started from it. Workers started from @isoloop/runtime/bootstrap directly 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-isolate block { ms } busy-loops the isolate's worker for ms, cut to MAX_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's busyMs. 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. defineIsolate for plain-DOM isolates; the bus client on ctx.bus (publish, subscribe, request); host calls for layout, focus and scrolling; heartbeats; ctx.reportError for an error that's the isolate's own; and opt-in suspension. /bootstrap and /worker are 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 deliver now carries a seq, counting deliveries to the subscription on its connection from 1, and every commits entry carries the highest seq settled whole with every delivery before it. A group commit covers only records with offset ≤ offset and seq ≤ seq, so a record redelivered after the deliveries it settled stays uncovered. Own subscriptions keep the offset rule, and host subscriptions send the same seq. createCommitter's settle now takes { offset, seq }, and deliveryPoints gives each record of a delivery its point.

    A consumer group that has a committed offset now resumes after it whatever from says: an emptied group rejoining with from: 'earliest' no longer replays the topic. from applies 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 need from: '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 second useTopic or bus.subscribe on 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: testContracts from @isoloop/bus/testing checks 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/bus no 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, BrokerOptions and the rest), and the helpers publishId, estimateSize, effectiveDurability, toIssues, topicConfig and isUnchecked. The public API is unchanged.

  • @isoloop/bus and @isoloop/devtools name their scripts in sideEffects: 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 an import keeps 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: topic and contracts have examples, parameters and return values; contracts lists the ContractsError codes it throws; every field of a topic's definition and of Retention says what it does and its default; testContracts and ContractProblem are 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, topicConfig and the rest), host's HostRenderBridge, runtime's REQUIRES, vite's ISOLATES_ID, MANIFEST and WORKERS_ID, and the worker DOM and applier in @isoloop/dom/worker and @isoloop/dom/host. They're still exported for the other @isoloop/* packages; app code shouldn't import them. @isoloop/protocol and @isoloop/codec say they're internal packages in their READMEs.

  • Names settled for the API freeze:

    • @isoloop/vite: IsolateManifest, the type of isoloop-manifest.json, is now BuildManifest, so it no longer shares a name with host's spawn manifest.
    • @isoloop/host: kernel.request's options type is now KernelRequestOptions (key, timeoutMs, signal, via).
    • @isoloop/runtime: exports RequestOptions (key, timeoutMs), the type of bus.request's options. @isoloop/react and @isoloop/preact re-export it for useRequest, in place of their own copies.
    • @isoloop/balancer: createBalancer takes host's Kernel. KernelLike, ManifestLike, BeatLike, CrashLike, FailedLike and PoolLike are 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's reply schema, 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-error is now worker_error, ready-timeout is ready_timeout, spawn-failed is spawn_failed, render-fmt-mismatch is render_format_mismatch, bus-failed is bus_failed, runtime-too-old is runtime_too_old and isolate-too-old is isolate_too_old.
    • DurabilityDegraded: another-tab is now another_tab, no-sync-access is no_sync_access and open-failed is open_failed.
    • The kernel event bus:durability-degraded is now bus: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 to kernel.request and to an isolate's own bus.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 900 dropped. The dev MCP reports it as a tool error, dropped: <message>, and @isoloop/webmcp rejects with the BusError. 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? }) mirrors bus.request: it resolves with the first valid reply, on any requestable topic, and the record carries req: { from: 'host', id }, plus via when given. It times out after 30 s by default, rejects with the new BusError code aborted when signal aborts, and with the new code no_responder at once when no isolate could answer (none with a subscribe grant for the topic, or all of them stopped or failed). 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 without reply, without tool, or with a schema that doesn't make JSON Schema fails the start with KernelError('not_exposable'), naming the topic. A pattern that matches nothing warns on the console and emits the new agents:unmatched event 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/webmcp to read.
    • Protocol: a host-to-bus request envelope. The run-time JSON Schema module now lives in @isoloop/protocol, so the host can use it; @isoloop/bus still 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). description and readOnly are required, and tool without reply is a type error. Agents are offered only the topics the app lists in agents.expose. tool stays 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, with isRecordReq and isRequestVia guards. 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:metrics now gives each topic its head (the next offset to be written) and retained (how many records it still holds). Everything else is the bus side of kernel.inspect(), and is @experimental:

    • Protocol: a host-to-bus tap that copies records appended to matching topics onto a dedicated port, at most maxPerSec a second (default 50), and counts the rest as skipped. A tap is not a consumer: it has no cursor or credit and never shows in bus:metrics. A host-to-bus read returns a topic's last records (at most 100). Both send RecordPreviews: the value as JSON-like text cut to 2,048 characters, with its estimated size in bytes.
    • Bus: LogEngine gains retained(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.

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, an unchecked() schema, or a converter that throws comes back as a typed "not exportable" result. The kernel's agent tools and isoloop contracts export use 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 with topic() 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, earliest or committed); 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/testing has 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 deliver now carries a seq, counting deliveries to the subscription on its connection from 1, and every commits entry carries the highest seq settled whole with every delivery before it. A group commit covers only records with offset ≤ offset and seq ≤ seq, so a record redelivered after the deliveries it settled stays uncovered. Own subscriptions keep the offset rule, and host subscriptions send the same seq. createCommitter's settle now takes { offset, seq }, and deliveryPoints gives each record of a delivery its point.

    A consumer group that has a committed offset now resumes after it whatever from says: an emptied group rejoining with from: 'earliest' no longer replays the topic. from applies 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 need from: '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: useHost now lists requestCanvas among the host calls, and the maxWorkers option says its default is max(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 second useTopic or bus.subscribe on 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: useTopic follows a topic's latest value, and usePublish writes to a topic.
  • The page through hooks: useHost to measure, focus, scroll, navigate and get a canvas, and useRoute for the current location.
  • Portals: usePortalRoot gives 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 useTopic say that an isolate has one subscription per topic: a second useTopic on the same topic replaces the first with no error, so only the last one gets records. They suggest one useTopic per 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 defineIsolate has an example. RouteValue documents each field.

0.1.0-next.9

Minor changes

  • Names settled for the API freeze:

    • @isoloop/vite: IsolateManifest, the type of isoloop-manifest.json, is now BuildManifest, so it no longer shares a name with host's spawn manifest.
    • @isoloop/host: kernel.request's options type is now KernelRequestOptions (key, timeoutMs, signal, via).
    • @isoloop/runtime: exports RequestOptions (key, timeoutMs), the type of bus.request's options. @isoloop/react and @isoloop/preact re-export it for useRequest, in place of their own copies.
    • @isoloop/balancer: createBalancer takes host's Kernel. KernelLike, ManifestLike, BeatLike, CrashLike, FailedLike and PoolLike are 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's reply schema, useRequest, RequestOptions).

0.1.0-next.0

Minor changes

  • React isolates: defineIsolate(Component) and the hooks useTopic, usePublish, useRequest, useHost, useRoute, useIsolate and usePortalRoot. 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: useHost now lists requestCanvas among the host calls, and the maxWorkers option says its default is max(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 second useTopic or bus.subscribe on 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: useTopic follows a topic's latest value, and usePublish writes to a topic.
  • The page through hooks: useHost to measure, focus, scroll, navigate and get a canvas, and useRoute for the current location.
  • Portals: usePortalRoot gives 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 useTopic say that an isolate has one subscription per topic: a second useTopic on the same topic replaces the first with no error, so only the last one gets records. They suggest one useTopic per 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 defineIsolate has an example. RouteValue documents each field.

0.1.0-next.9

Minor changes

  • Names settled for the API freeze:

    • @isoloop/vite: IsolateManifest, the type of isoloop-manifest.json, is now BuildManifest, so it no longer shares a name with host's spawn manifest.
    • @isoloop/host: kernel.request's options type is now KernelRequestOptions (key, timeoutMs, signal, via).
    • @isoloop/runtime: exports RequestOptions (key, timeoutMs), the type of bus.request's options. @isoloop/react and @isoloop/preact re-export it for useRequest, in place of their own copies.
    • @isoloop/balancer: createBalancer takes host's Kernel. KernelLike, ManifestLike, BeatLike, CrashLike, FailedLike and PoolLike are 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's reply schema, useRequest, RequestOptions).

0.1.0-next.0

Minor changes

  • Preact isolates: defineIsolate(Component) and the hooks useTopic, usePublish, useRequest, useHost, useRoute, useIsolate and usePortalRoot. 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 style an isolate renders through the element's CSSOM (el.style.cssText) instead of setAttribute('style', …), and the devtools panel styles its own page elements the same way. A page with surfaces now works under style-src 'self', with no 'unsafe-inline': before, the browser dropped those styles and logged a violation for each. devCsp() still allows 'unsafe-inline' in style-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/workers gives createKernel the 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/devtools and @isoloop/webmcp has its reference comment: a lead sentence, its parameters, what it returns and throws, and each option's default. isoloop(), createBalancer, connectDevtools and connectWebMCP each 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, topicConfig and the rest), host's HostRenderBridge, runtime's REQUIRES, vite's ISOLATES_ID, MANIFEST and WORKERS_ID, and the worker DOM and applier in @isoloop/dom/worker and @isoloop/dom/host. They're still exported for the other @isoloop/* packages; app code shouldn't import them. @isoloop/protocol and @isoloop/codec say they're internal packages in their READMEs.

  • Names settled for the API freeze:

    • @isoloop/vite: IsolateManifest, the type of isoloop-manifest.json, is now BuildManifest, so it no longer shares a name with host's spawn manifest.
    • @isoloop/host: kernel.request's options type is now KernelRequestOptions (key, timeoutMs, signal, via).
    • @isoloop/runtime: exports RequestOptions (key, timeoutMs), the type of bus.request's options. @isoloop/react and @isoloop/preact re-export it for useRequest, in place of their own copies.
    • @isoloop/balancer: createBalancer takes host's Kernel. KernelLike, ManifestLike, BeatLike, CrashLike, FailedLike and PoolLike are 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's reply schema, 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/vite keeps @isoloop/devtools out of dependency pre-bundling (optimizeDeps.exclude), so the panel's default URL (new URL('./panel.js', import.meta.url)) reaches the published panel.js. With @isoloop/vite, connectDevtools needs no src; with another bundler, pass the URL it serves @isoloop/devtools/panel at.

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 dials isoloop mcp's WebSocket (ws://127.0.0.1:4317 by default) and sends the kernel's exposed tools (kernel.tools()). It answers each call with kernel.request(tool.topic, input, { timeoutMs: tool.timeoutMs, via: 'mcp' }), aborts the request when the agent cancels, and sends a failure's BusError code 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 behind if (import.meta.env.DEV).

    @isoloop/vite fails a production build whose output still contains @isoloop/host/dev-mcp, unless you pass isoloop({ allowDevMcp: true }). An import that is tree-shaken away, or dropped behind import.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 with performance.measureUserAgentSpecificMemory() while a reader listens, at most every 5 s, and gives each isolate its worker's bytes as memory: { bytes, at }; a pool's members share their worker's figure (shared: true). The snapshot carries it and a new memory feed message sends it, to ctx.inspector too. 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 existing crossOriginIsolated: true makes the dev and preview servers send the headers this needs. To tell workers apart, each one starts from @isoloop/runtime/worker with a fragment of its own. virtual:isoloop/workers now marks that entry's URL with #isoloop-entry for this, and the worker's ready reports that it started from it. Workers started from @isoloop/runtime/bootstrap directly 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 add copies it into .claude/skills/build-with-isoloop/, or into the folder given with --dir. A copy that differs is kept unless --force is given. The package has a README.

Patch changes

  • The docs of lagMs say 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; read state and the time since the last beat to see a block in progress. The isoloop_isolates tool 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, for ms (3 s by default, at most 10 s), stopping early at max records (at most 100). It returns { records, skipped, ms }: like the devtools panel's log, a tap gets at most 50 records a second, and skipped is how many the bus left out over that, reported once a second, so the last second's count can be missing. connectDevMCP answers it with inspector.tap() and its onSkipped, and ends the tap at ms, at max, or when the agent cancels or the page disconnects. isoloop_records still reads what a topic retains.

0.1.0-next.3

Minor changes

  • New: the isoloop command line, with isoloop contracts export <module> [--out file] (ADR 0003, decision 21). It loads a contracts module (its default export made by contracts(); a .ts module 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, or input and output when they differ, the same for reply, and the topic's tool annotations (ADR 0018). An unchecked() schema exports as {}, is listed under unchecked and 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 mcp now offers, on any page that passes a kernel with inspect():

    • 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) and isoloop_events (the kernel's recent events, at most 200, each with how long ago it happened), all from kernel.inspect() (ADR 0020);
    • with --allow-write only: isoloop_restart, isoloop_kill, isoloop_block (at most 10 s), isoloop_publish and isoloop_request (any requestable topic, with via: 'mcp'). Without the flag they aren't listed.

    Every tool takes an optional page; the default is the newest page that can answer. The isoloop_ 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 like markets.quote.v1). connectDevMCP (@experimental) answers these through kernel.inspect(), opened on the first call and closed on disconnect, and still accepts a kernel without inspect() (it then offers only the app's tools).

  • 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 on ws://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, destructiveHint for consequential, and a description sentence for untrustedContent). Tools that change something (readOnly: false) are offered only with --allow-write. isoloop_pages lists the connected pages, and every tool takes an optional page; the default is the newest page that exposes it. A page is accepted only from an Origin matching --origin (default http://localhost:*) and with the run's token, printed on stderr or fixed through ISOLOOP_MCP_TOKEN. The page side is connectDevMCP from @isoloop/host/dev-mcp.

    @isoloop/protocol gets the page wire's types, internal.

@isoloop/devtools

0.1.1

Patch changes

  • The host writes the style an isolate renders through the element's CSSOM (el.style.cssText) instead of setAttribute('style', …), and the devtools panel styles its own page elements the same way. A page with surfaces now works under style-src 'self', with no 'unsafe-inline': before, the browser dropped those styles and logged a violation for each. devCsp() still allows 'unsafe-inline' in style-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/bus and @isoloop/devtools name their scripts in sideEffects: 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 an import keeps 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/devtools and @isoloop/webmcp has its reference comment: a lead sentence, its parameters, what it returns and throws, and each option's default. isoloop(), createBalancer, connectDevtools and connectWebMCP each 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. connectDevtools has a new healthStatus option: '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's Inspector and on ctx.inspector takes onSkipped?: (count: number) => void (@experimental). It gets each count of records the bus left out over maxPerSec, 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/vite keeps @isoloop/devtools out of dependency pre-bundling (optimizeDeps.exclude), so the panel's default URL (new URL('./panel.js', import.meta.url)) reaches the published panel.js. With @isoloop/vite, connectDevtools needs no src; with another bundler, pass the URL it serves @isoloop/devtools/panel at.

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 the inspect grant. Closed, it shows a floating button with a health dot (amber while an isolate is restarting, crashed or blocked, red once one has failed); 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 no localStorage).

@isoloop/balancer

0.1.1

Patch changes

  • Docs: useHost now lists requestCanvas among the host calls, and the maxWorkers option says its default is max(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/devtools and @isoloop/webmcp has its reference comment: a lead sentence, its parameters, what it returns and throws, and each option's default. isoloop(), createBalancer, connectDevtools and connectWebMCP each have an example.

0.1.0-next.9

Minor changes

  • Names settled for the API freeze:

    • @isoloop/vite: IsolateManifest, the type of isoloop-manifest.json, is now BuildManifest, so it no longer shares a name with host's spawn manifest.
    • @isoloop/host: kernel.request's options type is now KernelRequestOptions (key, timeoutMs, signal, via).
    • @isoloop/runtime: exports RequestOptions (key, timeoutMs), the type of bus.request's options. @isoloop/react and @isoloop/preact re-export it for useRequest, in place of their own copies.
    • @isoloop/balancer: createBalancer takes host's Kernel. KernelLike, ManifestLike, BeatLike, CrashLike, FailedLike and PoolLike are 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's reply schema, useRequest, RequestOptions).

0.1.0-next.5

Patch changes

  • Two fixes to the room fold, from the File processor's fault runs on 0.1.0-next.4 with maxWorkers: 2:

    • The cap counts a pool a move has claimed, from the moment it's claimed, before its worker runs. Before, a full move and a backlog move in the same decision could each open a new pool, one past maxWorkers.
    • 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.

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-1 that holds only offenders folds into it (the new move reason room), 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 under maxWorkers for a whole quiet window while the members sharing a pool fell behind: in the File processor with faults, on 0.1.0-next.3 with maxWorkers: 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? }): busyMs is the app's own measured busy time, a running total in ms since the isolate started, for work the runtime's busyMs doesn't see (slices resumed after await). 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.backlog is now optional; a report needs one of the two. Placement.reportedPct shows 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 (KernelLike now listens to it): the member's state is failed, 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 fixed pool name, 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 in agents.expose with 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/devtools and @isoloop/webmcp has its reference comment: a lead sentence, its parameters, what it returns and throws, and each option's default. isoloop(), createBalancer, connectDevtools and connectWebMCP each 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 to kernel.request and to an isolate's own bus.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 900 dropped. The dev MCP reports it as a tool error, dropped: <message>, and @isoloop/webmcp rejects with the BusError. Size a tool's topic's retention for its largest burst of calls.

0.1.0-next.5

Patch changes

  • connectWebMCP follows the differences between Chromium's and Firefox's WebMCP by feature detection: it uses navigator.modelContext where document.modelContext is missing, listens for toolcancel only where the context is an EventTarget, and on disconnect also calls unregisterTool for each tool where that exists. A tool's hints are sent only when true, because Firefox lists a tool as read-only whenever readOnlyHint is present, even as false. In Firefox a call can't be cancelled from the agent's side; it runs until its reply or its timeoutMs. A tool name an earlier connectWebMCP on the page registered and hasn't unregistered throws KernelError('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 through agents.expose with the browser's WebMCP API (document.modelContext, behind --enable-features=WebMCP in Chromium), with their JSON Schemas and hints (ADR 0018, decision 8). A call runs kernel.request(…, { via: 'webmcp' }) with the tool's timeout and resolves with the reply, or rejects with the kernel's BusError. The browser cancelling a call aborts it, and the returned function unregisters every tool. Where document.modelContext is missing it does nothing. Firefox exposes WebMCP at navigator.modelContext (behind dom.modelcontext.enabled), which connectWebMCP does not look up.