Skip to content

v1.0.0 — Deterministic Multi-Agent DAG Orchestrator & Crash-Safe Resume Engine

Latest

Choose a tag to compare

@codesphere-u codesphere-u released this 07 Nov 12:10

SwarmWeaver v1.0.0 — Deterministic Multi-Agent DAG Orchestrator, File-Scope Lease Conflict Guard & Crash-Safe Checkpoint Resume Engine

Highlights

  • Conflict-Aware Parallel Wave Compiler (DAGCompiler): Groups tasks by topological level, detects cycles with exact path reporting (A -> B -> C -> A), and splits write/write and read/write file-glob overlaps into sequential sub-waves.
  • File-Scope Lease Guard (FileScopeLeaseManager): Enforces SHARED_READ and EXCLUSIVE_WRITE locks with canonical deadlock-free ordering, TTL expiration, SHA-256 lease tokens, and LeaseConflict audit logging.
  • Hash-Chained Checkpoint Resume (CheckpointJournal): Content-addressable JSONL journal (prev_hash -> entry_hash) with <0.01 ms/node zero-token replay on crash recovery and tamper detection (verify_integrity()).
  • Schema-Enforced Shared State (TypedBlackboard): Strict input_contract and output_contract enforcement with version lineage and SHA-256 digests.
  • JSON-RPC 2.0 Stdio MCP Server (swarmweaver mcp): Exposes swarmweaver_plan_waves, swarmweaver_check_file_conflicts, swarmweaver_inspect_checkpoint, and swarmweaver_run_benchmark.

Verified Benchmark Results

  • 200-Task DAG Compilation: P50 = 23.38 ms | P95 = 25.14 ms (5.93x parallel speedup)
  • 50 Parallel Conflicting File-Edit Tasks: 0 race conditions (100.0% collision prevention)
  • 20 Crash-Recovery Workflows (70% Crash): 70.0% token savings (140,000 tokens saved), 0.0074 ms/node replay
  • Cycle & Contract Violation Detection: 15/15 (100.0% recall)