godswarm.ai / v0.4.0 R&D Harness

godswarm v0.4.0 - Stigmergic Multi-Agent Environment Studio

A standalone static Go (CGO_ENABLED=0) environment synthesizer and hierarchical swarm harness translating biological ant-colony stigmergy, exponentially decaying pheromones, clean-room epistemic memory, selective typed contracts, and honeybee blind quorums into deterministic autonomous delivery up to 216+ nodes.

Stigmergic Coordination Architecture

SQLite WAL Board DAG + Pheromones Typed State Only Orthogonality Gate Kahn Sort + write_scope SWARM or Variant 0 git worktree Workers Isolated Sandbox EnforceWriteScope DomainOracle + Quorum SHA-256 Protected Files Cross-Inhibition Veto Pheromone Decay: w(t) = min(W_max, w0) * exp(-lambda * dt) | POSITIVE_ROUTE gated on ORACLE_PASS

Five Biological Mechanisms in Pure Go

1. Digital Stigmergy

Zero N-way chat loops. Workers read and write typed state transitions exclusively via a SQLite WAL board and git worktrees.

2. Dual Pheromone Decay

POSITIVE_ROUTE requires ORACLE_PASS quarantine; failures emit NEGATIVE_HAZARD with exponential half-life decay.

3. Response Thresholds

Workers start at Tier 1 and escalate automatically on hazard density, paired with a SHA-256 LoopDetector.

4. Blind Quorum + Cross-Inhibition

Independent scouts review (spec, diff, oracle) without peer leakage. Any concrete stop_signals vetoes merge.

5. Spatial Orthogonality (Variant 0)

Kahn sort + pairwise write_scope checks run parallel waves when disjoint and drop to single-worker mode when coupled.

Empirical Benchmark (go test + Ad-Hoc Oracle Tamper Fault)

Generated: 2026-11-14T11:52:08Z Runtime: go1.26.1 darwin/arm64 Simulated Call Latency: 400 ms Wall-Clock Speedup: 1.44x
Strategy Mode Workers Reported Passed Real Oracle Intact Duration (ms) Attempts Scope Blocked
Baseline A (Single-Agent Sequential) VARIANT0_SINGLE 1 true true 6980 5 0
Baseline B (Naive Unisolated Parallel) UNISOLATED_SHARED 4 true (false pass) false (tampered) 3051 5 0
Godswarm v0.1 (Stigmergic Swarm) SWARM 4 true true 4840 6 1

JSON endpoint: /api/benchmark | Evolution JSON: /api/evolution | Health endpoint: /healthz

3-Round Autonomous Evolution Scorecard (v0.1.0 -> v0.4.0)

Round Version S1 Studio S2 Oracles S3 Scale & Memory S4 Live E2E Composite Duration (ms)
R00.1.020.025.020.015.020.0 / 100.01155
R10.2.0100.050.020.070.060.0 / 100.0226463
R20.3.0100.075.070.085.082.5 / 100.0272936
R30.4.0100.0100.0100.0100.0100.0 / 100.0677229

Verified R3 metrics: 216/216 tasks across 12 clusters (max_prompt=1690B <= 6144B, 1 rogue write blocked), SLO hill-climbing [2484, 50, 15] with regression [7604] rejected, live CLI exams C4.3A (claude), C4.3B (claude->blind:codex), C4.3C (claude + WebAppOracle).

Local Quickstart (Single Static Binary)

git clone <repo-url>
cd godswarm
make build
./dist/godswarm providers
./dist/godswarm init
./dist/godswarm plan -f mission.json
./dist/godswarm run -f mission.json --workers 4 --provider auto
./dist/godswarm studio --repo . --port 8420
./dist/godswarm evolve
./dist/godswarm bench-suite --round R3 --live-dogfood --json