Skip to content

peerd-preview-v0.2.3

Choose a tag to compare

@github-actions github-actions released this 05 Jul 17:31
· 302 commits to main since this release
90b5e8a

Added

  • Agent-to-agent over the mesh (A2A): the dweb actor talks to other
    agents by writing code
    (preview only). The same bet as the web actor
    applies: models write a short script more fluently than they fire one
    gated action per turn. The dweb actor drives peer conversations through a new
    a2a_run tool: it writes JS against a mesh client (mesh.peers(),
    mesh.card(did), mesh.ask(did, msg), mesh.send(...),
    mesh.publishCard(...), mesh.inbox()) and returns the outcome. ask
    sends a request-tagged direct message and awaits the peer's one reply; an
    Agent Card advertises what your agent can do and is discoverable by other
    peers. The data model rhymes with Google's A2A (Agent Card, message shape)
    so future interop is a thin adapter, but the transport is the mesh, the
    address is a did:key, and the reply stream is the fenced inbound wake, not
    A2A's HTTP+SSE. The code runs in the same sealed, keyless worker as
    js_run with one added capability, the mesh bridge, and nothing else: an
    a2a run gets no egress and cannot spawn subagents. First contact to a peer
    (and advertising your own card) needs your explicit ok, remembered per did
    and revocable by blocking the peer; peer replies and cards are always
    fenced as untrusted. It's a dweb-actor tool only: the orchestrator never
    holds it, and the store build prunes the whole surface. Hardened after an
    adversarial re-review: the Agent Card size/field caps are enforced on both
    the publish and fetch paths, first-contact "Allow once" is a genuine
    one-shot (only "Allow for session" persists, and blocking a peer revokes
    it), and the ask/reply round-trip is now covered by a live two-peer
    WebRTC test.

Changed

  • The orchestrator's tool surface got a hard slim: 27 → 18 always-on.
    Three moves, one rule: the main agent bootstraps and delegates, and every
    instance byte stays behind an actor heap.
    • The engine file READS are actor-only now. js_read_file,
      app_read_file, and app_list_files had stayed on the orchestrator as
      fenced "cheap reads". But an instance file is not reliably
      agent-authored (notebook/app code fetches and persists web data), so even
      a fenced read handed untrusted bytes to the orchestrator's context. The
      convenience broke the isolation premise. Reads now ride the instance's
      actor like every other op.
    • One sandbox_create({ kind }) replaces vm_create / js_create /
      app_create.
      Same bootstrap, one tool: the webvm/notebook/app taxonomy
      is laid out side-by-side in a single description where the model actually
      picks, instead of repeated across three. The per-kind create behavior is
      unchanged (background tab, go-there card, chat's current, id returned),
      and the durable-handle harvest still records which kind an id is (the
      result stamps kind; the compaction/trim extractors read it).
    • The instance-gating ("progressive disclosure") machinery is deleted.
      Every op it deferred is actor-only now, so it had nothing left to gate.
      Its "create one first" refusal for a premature call was the wrong
      message anyway; the honest answer is "that's the actor's tool".
      inspect_provider_config, inspect_storage, inspect_session_access,
      inspect_denylist, and inspect_audit_log were five near-identical
      read-only tools; they collapse into a single inspect({ kind }) (kinds:
      provider_config / storage / session_access / denylist /
      audit_log), exactly the way actor_list folded the per-kind list tools
      into one. Behavior per facet is unchanged (same outputs, same audit-log
      subagent-error redaction), but the main agent's tool surface shrinks by
      four, sharpening tool selection. Existing /tools presets that named the
      old tools now name inspect.
  • The service worker is slimmer and the worker bridges are unified. Two
    internal refactors, no behavior change. The four hand-rolled worker↔host
    bridges (OPFS, subagent, base-network reads, the a2a mesh) collapse into a
    single factory, so adding the next one is a one-liner. And the service
    worker sheds the clusters that were logic rather than wiring: the model
    picker's catalog, the tab-strip affordances, and a couple of pure actor
    kernels now live in their own small, tested modules, keeping the service
    worker to assembly and routing.

Fixed

  • WebVM now degrades gracefully on Firefox instead of showing a
    misleading error.
    The in-browser Linux VM (CheerpX) needs
    SharedArrayBuffer, which the browser grants only to a cross-origin-
    isolated page, and a Firefox extension page can't isolate itself
    (a Firefox platform limitation, not a peerd bug). The VM boot screen used
    to fail with a "manifest must declare cross_origin_embedder_policy" error
    that read like a config bug; on Firefox it now shows a plain-English notice
    explaining the limitation, noting WebVM works in the Chrome build, and
    linking the two open upstream threads (Bugzilla 1673477 and the W3C
    WebExtensions issues) to push on.

Install (preview): Firefox: click the .xpi on this page. Chrome: drag
the .crx into chrome://extensions with Developer mode on. Most users
want the store packages (see the README). The auto-update feeds are
attached here and served at peerd.ai/updates/.