Repository navigation
Releases
Release 0.7.0
AgentSpaces 0.7.0
Released 2026-11-28 on Maven Central. SPEC v0.1.38, wire version 3. Apache 2.0.
AgentSpaces is an open-source peer-to-peer fabric where agents coordinate through shared, replicated spaces of typed, leased, signed entries. You don't run a broker, a registry or a scheduler.
In 0.7.0 a node no longer runs on a fixed 250 ms tick. The old tick based time scaling is now part of a watchdog, and there is now a proper event loop with deadlines, timers, etc. Each job runs when its deadline comes up, or when a frame or a local change wakes it, and the node sleeps in between with optimizations when multiple things coincide.
Repair between replicas now works entry by entry. A node reports where it stands in each group and retires members that stay lost. The rules for seeds, wakes from sleep and held takes are now fixed tables and plain rules. No frame kind and no wire version changes. A 0.6.0 member and a 0.7.0 member replicate together. There is one flag day, for two new card fields (see Upgrading from 0.6.0).
SPEC v0.1.34 to v0.1.38 ship together in this release.
Highlights
The node loop runs on event loop deadlines
- An idle node wakes a few dozen times a minute instead of four times a second. Waking means probing members, refreshing the node's advertisement, gossip and anti-entropy, each space's sweep and retries, and each capability's rounds are each a job with its own deadline.
- Your own timed work registers with
GroupRuntime.onDue(name, work)(oronDueWallfor a wall-clock deadline) and returns its next deadline. Callwake()when a deadline moves earlier. - One
TimeSourceper node keeps wall time (stamps, leases, expiries) apart from monotonic time (local periods). A test gives the node aVirtualTimefromagentspaces-test-supportand moves protocol time with no real wait. - A process watchdog checks every loop every 2 s and restarts a dead, wedged or timerless loop without losing queued work. Essentially, the tick system as a watchdog system.
PeerNode.loopHealth()readsOK,DEGRADEDorDOWN.agentspaces.watchdog.escalationchoosesreport(the default; under Spring, liveness turnsBROKEN) orexit(status 70). - One timer thread and one watchdog thread serve every node in a process. A small elastic pool of platform threads runs the loops: one at idle, at most min(8, max(2, cores / 2)). Your handlers stay on virtual threads.
- The TTL floor: a configured TTL, lease or expiry under 60 s logs a warning at start.
agentspaces.ttl.strict=truerefuses to start instead, unlessagentspaces.ttl.expert-overridesnames the key with a reason. - Measured with
IdleCostITover TCP (one JVM per member): idle wakes per member fell from about 3,070 a minute on the 0.6.0 tick to a few dozen a minute on the loop.
Read more: Time and the node loop.
Replication by entry
- Each space keeps a fingerprinted tree of its entries. Two members compare the trees from the top, walk down only where they differ, and fetch the differing entries by id (
wire.ae=2). - Every answer stays inside a byte budget, 1 MiB by default, so a late joiner pulls a large space in bounded answers.
- Under
wire.horizon=1, a withdrawn entry is collected ten minutes after its own lease expiry, instead of after twice the longest lease. This holds only while this member and every member in its view advertise the hint. - The hints are negotiated per member from each card. A member of an older release sees nothing new on the wire.
GroupRuntime.replicationStatus()reports the forms in view, the audit's counters and the pacing.- Measured, one run each: one audit round for a single difference took 7.5 to 9.4 KB and 5 to 6 round trips, flat in the space's size. A 100k-entry join over TCP took 11.85 s (164 s before).
- Clients: TypeScript runs the audit, the horizon and the budget. Rust runs the audit and the horizon. Python and Ruby advertise
wire.horizon=1, send a budget and readremainder, but run no trie audit.
Read more: Replication by entry.
Membership status and lost-member retirement
PeerNode.membershipStatus(groupId)names where a node stands in a group:JOINING,CONNECTED,DEGRADED,RECONNECTING,LAST_RESORT,ISOLATEDorALONE.onMembershipStatus(listener)reports each change, andisolated(groupId)answers the common question.- A lost member is retried on a fixed cycling table (5, 10, 20 and 30 s, then 1, 2 and 5 minutes), at most eight a round. After
agentspaces.retirement.after(24 h) with no answer, it moves to a retirement list in the node's state directory. - Post-retirement (opt-in,
agentspaces.post-retirement.enabled) tries retired members as a last resort once a group's view has been empty for two minutes. Basically AgentSpaces want to be in their peer groups, and we'll hold on / back-off as needed. - Best practice is to use DNS names for everything, such that retired nodes, restarted nodes, etc come back online at some point, rebinding to DNS and the system self-heals.
- Under the Spring starter, readiness reports
REFUSING_TRAFFICwhile any group isISOLATED. Liveness is untouched, so an orchestrator does not restart a node only because its fleet is gone.
Read more: Membership status, retirement, and readiness.
Seed, wake and take rules
- Seeds are dialed in list order, 250 ms apart. The first seed to send a verified frame is kept. Every dial runs on its own virtual thread, so a seed that swallows the connect costs a round 250 ms instead of the 5 s connect timeout.
- Seeds are redialed on a fixed table of 5, 10, 20 and 30 s that never gives up.
- A send to a member with no live link never dials on the sender's thread.
- A wall-clock jump of more than 30 s, or a timer that fires more than 30 s late (a stopped process, a long GC or VM pause), counts as a wake. The node PINGs its seed, rechecks held takes, and probes members before it judges them, so a frozen node does not drop healthy members.
- A held take has lapsed when another member's claim won the entry or its wall-time lease has ended. A result after the lapse completes nothing and writes nothing;
binder.lateTakes()counts it. - A take whose lease cannot outlast its settle window is refused at once.
- A node that only dials out answers another member's anti-entropy only for the entries where its own claim lost a race. No member can draw a dial-only node's whole state through its seed.
Read more: Seeds, wakes, and takes.
Also in 0.7.0
Cards: AgentCard threads and the dynamic AppCard
AgentCard.threadsnames the conversations an agent answers. EachChatThreadhas aspace, akeyand a scope:exact,tree(the thread and everykey:<sub>under it) orall. A card names at most 16 threads.ChatThread.takes(space, key)andoverlaps(other)answer the routing questions.- The AppCard kinds are now
peer,fed,gateway,assembledanddynamic. Adynamicapp's agent composes its layout per person and per moment from the catalogs itsuinames, and every result is checked against those catalogs. - Java, TypeScript, Python, Ruby and Rust read and write both fields. Clojure reads them through the Java codec.
- Both fields are a flag day. See below.
Read more: Chat threads, dynamic AppCards, and A2UI 1.0.
Human-in-the-loop plumbing: connect.hitl
- A desk of people is an AssetCard of shape
hitl:<kind>, where the kind isapproval,confirm,review,choiceorinput. Its access map says who decides and how. - The new package
ai.badmonkey.agentspaces.connect.hitlinagentspaces-connect-coreholds both ends:HitlClientfinds the desk a reference names, asks it, and reads its decision. A decision counts only when the desk's own issuer wrote it, and a hash of the arguments binds it to one call.ApprovalGatelets a connector refuse a call to an operation whose card sayshitl.<operation>until the call carries a valid approval. One approval runs one call.
- These are conventions over existing records. No new record or field, so no flag day. 0.7.0 ships the conventions and the code for both ends; you supply the desk that answers.
Read more: People in the loop.
A2UI 1.0 final
- Every page, card and catalog moves from A2UI 0.9.1 to A2UI 1.0 final. A2UI 0.9.1 is no longer read.
- Bindings are
{"@path": ...}and calls@call. Envelope keys take the@prefix (@catalogId,@accessibility,@metadata,@checks). Component ids are Unicode identifiers, so a hyphen is refused. - The React renderer pins
@a2ui/reactand@a2ui/web_core0.16.1. The TypeScript, Python and Ruby clients moved to A2UI 1.0 and reproduce its vectors. agentspaces-a2ui0.7.0 builds from its repository. Maven Central still has 0.6.0, which writes 0.9.1 (see Install).
Read more: the A2UI guide.
A2A 1.0 beside 0.3
- The A2A gateway serves A2A 1.0 and 0.3 at each agent URL. The
A2A-Versionrequest header chooses. A request with no header gets 0.3, so existing clients keep working. An unsupported version gets the JSON-RPC error-32009. - A2A 1.0 methods:
SendMessage,GetTask,CancelTask,SendStreamingMessage,SubscribeToTaskand the push-configuration methods. - The agent card is an A2A 1.0 card listing both interfaces in
supportedInterfaces, 1.0 first. Its top-level 0.3 fields still describe the 0.3 interface. - The module stays experim...