fabric-swarm
Fabric Swarm
Build from Fabric primitives; do not install a messenger or swarm extension.
- Persistent identities:
agents.create; asynchronous delegation:agents.tell(askonly when blocking is necessary). - Durable events and history:
mesh.publish/mesh.read; presence:mesh.members. - Atomic claims, leases, and decisions:
mesh.put({ ..., ifVersion }).
Choose a short run key and topic such as team.auth-migration. Store tasks under runs/<run>/tasks/<id> with ifVersion: 0; include title, status, owner, dependencies, progress, and result.
Actor instructions must require workers to verify every dependency task is complete, claim only ready work with ifVersion equal to the observed version, stop after a failed claim, publish progress, update blocked/completed state with the version returned by the preceding successful read/write, CAS-unblock dependents only after all their dependencies complete, direct questions with mesh.publish({ topic, to, ... }), respect path ownership, and emit directives only for blockers or final results.