You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+25-11Lines changed: 25 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,16 @@
1
1
# world-compute Development Guidelines
2
2
3
-
Last updated: 2026-04-16
3
+
Last updated: 2026-04-18
4
4
5
5
## Project Overview
6
6
7
-
World Compute is a decentralized, volunteer-built compute federation. The codebase is a Rust workspace with 94+ source files, 489+ passing tests, and 20 library modules. All 5 CLI command groups are functional (donor, job, cluster, governance, admin). Core modules implemented: WASM sandbox with CID store integration, real Ed25519 signature verification, certificate chain validation (TPM2/SEV-SNP/TDX), BrightID/OAuth2/phone identity verification, Sigstore Rekor transparency logging, OTLP telemetry, STUN-based NAT detection, Raft coordinator consensus, and Firecracker/Apple VF sandbox drivers.
7
+
World Compute is a decentralized, volunteer-built compute federation. The codebase is a Rust workspace with 150+ source files, 802 passing tests, and 20 library modules. All 5 CLI command groups are functional (donor, job, cluster, governance, admin). Production P2P daemon with full libp2p NAT-traversal stack (TCP + QUIC, Noise, mDNS + Kademlia DHT, identify, ping, AutoNAT, Relay v2 server+client, DCUtR) and distributed job dispatch (TaskOffer + TaskDispatch request-response with CBOR + real WASM execution) — validated end-to-end in-process via `tests/nat_traversal.rs`. Core modules implemented: WASM sandbox with CID store integration, real Ed25519 signature verification, certificate chain validation (TPM2/SEV-SNP/TDX), BrightID/OAuth2/phone identity verification, Sigstore Rekor transparency logging, OTLP telemetry, STUN-based NAT detection, Raft coordinator consensus, and Firecracker/Apple VF sandbox drivers.
Zero TODO comments in src/ and zero `#[ignore]` tests remain. However, several subsystems have scaffolding landed but placeholders in critical paths — these are not production-ready and are tracked in open issues:
117
+
118
+
-**Mesh LLM** (#27, #54): `src/agent/mesh_llm/expert.rs::load_model()` is a placeholder — no real LLaMA inference. Orchestration (router, aggregator, safety tiers, kill switch) is complete.
119
+
-**AMD / Intel root CA fingerprints** (#28): pinned as `[0u8; 32]` in `src/verification/attestation.rs`. Validators enter permissive bypass mode when fingerprints are zero.
120
+
-**Rekor public key** (#29): pinned as `[0u8; 32]` in `src/ledger/transparency.rs`. Signed tree head verification is skipped when the key is zero.
121
+
-**Agent lifecycle → gossip wiring** (#30): heartbeat/pause/withdraw return payloads but don't broadcast over gossipsub (the daemon event loop does broadcast separately).
122
+
-**Firecracker rootfs** (#33): concatenates layer bytes; does NOT run mkfs.ext4 + OCI tar extraction. A real boot would fail.
123
+
-**Admin `ban()`** (#34): `src/governance/admin_service.rs::ban()` returns `Ok(())` without updating the trust registry.
124
+
-**Platform adapters** (#37, #38, #39): Slurm/K8s/Cloud scaffolds exist but have not been exercised against live systems.
125
+
-**GUI** (#40): never built or run.
126
+
-**Deployment** (#41): Dockerfile and Helm chart exist but have never been built or deployed.
127
+
-**REST gateway** (#43): routing + auth + rate-limit logic exist but no HTTP listener is bound in the daemon.
128
+
-**Churn simulator** (#51): statistical model, not a real kill-rejoin harness.
129
+
-**Apple VF Swift helper** (#52): never built on macOS.
130
+
-**Receipt verification** (`src/verification/receipt.rs`): structural check only; coordinator public key not yet wired.
-**Cross-machine firewall traversal** (#60): production NAT stack validated in-process only. Real WAN operation behind institutional firewalls is unverified.
119
133
120
134
## CI
121
135
@@ -125,6 +139,6 @@ Two GitHub Actions workflows:
125
139
126
140
## Recent Changes
127
141
142
+
- **004-full-implementation** (2026-04-18): Merged scaffolding + significant implementation for #57 and its sub-issues (#28–#56, and a first pass on #27/#54 mesh LLM). 802 tests passing across Linux/macOS/Windows + Sandbox KVM + swtpm CI. Landed: full production P2P daemon with libp2p NAT-traversal stack (TCP + QUIC + Noise + mDNS + Kademlia + identify + ping + AutoNAT + Relay v2 server/client + DCUtR), AutoRelay reservations, public libp2p bootstrap relays as default rendezvous, TaskOffer + TaskDispatch request-response protocols over CBOR, real WASM execution of dispatched jobs, `worldcompute job submit --executor <multiaddr> --workload <wasm>` CLI command, end-to-end 3-node relay-circuit integration test. Also landed: ~12 sub-issues fully completed (policy engine, GPU passthrough, adversarial tests, test coverage, credit decay, preemption, confidential compute, mTLS, energy metering, storage GC, documentation, scheduler matchmaking); ~16 sub-issues partially addressed with scaffolding (see Remaining Stubs above); #27/#54 mesh LLM orchestration shell complete but real LLaMA inference deferred. Critical open issue #60 tracks cross-machine WAN mesh formation behind firewalls.
Copy file name to clipboardExpand all lines: README.md
+35-18Lines changed: 35 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,27 +9,44 @@
9
9
10
10
---
11
11
12
-
> **Honesty notice — please read before going further.**
12
+
> **Status notice (updated 2026-04-18)**
13
13
>
14
-
> This repository contains a ratified governing constitution, a full research package (~28,600 words), detailed feature specifications, and substantial library code (391 tests passing across safety-critical modules). **However, there is no runnable agent, no working CLI, no testnet, and no deployable binary.** The CLI compiles but all commands print "not yet implemented." The library modules (policy engine, attestation verification, governance, incident response, egress enforcement) work as tested Rust code but are not wired into a running daemon.
14
+
> This repository contains a ratified governing constitution, a full research package (~28,600 words), detailed feature specifications, and a substantial implementation with **802 passing tests**across all modules on Linux/macOS/Windows CI. Core systems and the P2P daemon are wired and exercised by unit + integration tests. **However, several subsystems have production scaffolding with placeholder values in critical paths — they are NOT production-ready as shipped.** The open GitHub issues track which pieces remain.
> - Attestation verification (TPM2/SEV-SNP/TDX — measurement validation and signature binding; full CA certificate-chain validation is pluggable but not yet integrated)
20
-
> - Governance separation of duties, quorum thresholds, time-locks
> - Incident response containment primitives with audit trails
23
-
> - CI on Linux/macOS/Windows via GitHub Actions
16
+
> **What is complete and verified in code:**
17
+
> - P2P daemon: full libp2p NAT-traversal stack (TCP + QUIC + Noise + mDNS + Kademlia + identify + ping + AutoNAT + Relay v2 server/client + DCUtR). Validated end-to-end in-process by `tests/nat_traversal.rs` — a 3-node relay-circuit test that dispatches a real WASM job through the relay in ~5ms.
18
+
> - Distributed job dispatch: TaskOffer and TaskDispatch request-response protocols over CBOR. Real WASM execution on the executor. `worldcompute job submit --executor <multiaddr> --workload <wasm>` CLI command for end-to-end remote dispatch.
19
+
> - All 5 CLI command groups functional
20
+
> - WASM sandbox with CID-store integration and real workload execution (wasmtime)
> - 802 tests passing on CI (Linux/macOS/Windows + Sandbox KVM + swtpm)
24
32
>
25
-
> **What does NOT exist yet:**
26
-
> - A running agent daemon
27
-
> - Working CLI subcommands (all print "not yet implemented")
28
-
> - P2P networking between nodes
29
-
> - Actual job execution inside sandboxes
30
-
> - Any form of testnet or multi-node deployment
33
+
> **What has scaffolding but placeholder values or missing integration (see issues):**
34
+
> - Mesh LLM (#27, #54): orchestration + router + aggregator + safety + kill switch all exist, but `load_model()` is a placeholder — no real LLaMA inference yet
35
+
> - Attestation root CA fingerprints (#28): AMD ARK / Intel DCAP pinned as `[0u8; 32]` (bypass mode) — need real fingerprints before production
36
+
> - Rekor public key (#29): pinned as `[0u8; 32]` — tree-head signature verification is skipped
37
+
> - Firecracker rootfs (#33): concatenates layer bytes; real mkfs.ext4 + OCI-layer extraction not yet wired
38
+
> - Platform adapters #37/#38/#39 (Slurm, K8s, Cloud): scaffolds + parsers; not exercised against live systems
39
+
> - Tauri GUI (#40): scaffold; never built or run
40
+
> - Docker / Helm deployment (#41): files present; never built or deployed
41
+
> - REST gateway (#43): routing + auth logic present; no HTTP listener bound in daemon
42
+
> - Admin ban (#34): `admin_service::ban()` is an explicit stub returning `Ok(())`
43
+
> - Churn simulator (#51): statistical model; no real kill-rejoin
44
+
> - Apple VF Swift helper (#52): scaffold; never built on macOS
31
45
>
32
-
> If you want to help build it, see [Contributing](#contributing). If you want to be notified when it becomes installable, watch this repository.
46
+
> **Critical open issue:**
47
+
> -#60: cross-machine firewall traversal. The production NAT stack is validated in-process only. Real WAN operation behind institutional / corporate firewalls is unverified, and our attempts from behind Dartmouth's firewall showed libp2p connections not completing. Resolving this is the next milestone.
48
+
>
49
+
> If you want to help build or test it, see [Contributing](#contributing).
33
50
34
51
---
35
52
@@ -84,7 +101,7 @@ Five constitutional principles govern every design decision. They are not aspira
84
101
85
102
## Status
86
103
87
-
World Compute has completed library-level implementation across core and safety modules. The CLI and agent daemon are scaffolded but not yet functional. Updated 2026-04-16.
104
+
World Compute has substantial implementation with 802 passing tests and a fully-wired P2P daemon. All 5 CLI command groups functional. Several subsystems still have placeholder values in critical paths (see status notice at top of README and open issues #27, #28, #29, #33, #34, #37–#43, #51–#54, #56, #60). Updated 2026-04-18.
0 commit comments