Skip to content

Commit 8dd66cd

Browse files
committed
refactor(workspace): remove legacy Docker/container challenge execution code
Delete crates/secure-container-runtime (Docker container management via bollard, broker, protocol, WebSocket transport, security policies) and crates/challenge-orchestrator (Docker-based challenge orchestration with backend, lifecycle, evaluator, health, continuous monitoring). Workspace and dependency changes: - Remove secure-container-runtime from workspace members in Cargo.toml - Remove secure-container-runtime dependency from validator-node Challenge registry cleanup: - Remove docker_image field from ChallengeEntry struct - Remove docker_image parameter from ChallengeEntry::new() - Change register() validation to require wasm_module (WASM-only) - Remove DockerRegistry variant from DiscoverySource enum - Remove docker_registries field from DiscoveryConfig - Remove Docker deprecation warning from discover_all() - Update all registry tests to use WasmModuleMetadata Comment and documentation updates: - Replace "WASM-first" with "WASM-only" across README, AGENTS.md, and docs - Remove Docker Policy sections from README, validator.md, challenges.md - Remove Test Harness Security (Docker) section from security.md - Remove Testing With Docker section from challenge-integration.md - Remove Challenge Orchestrator from integration architecture diagram - Update stale Docker references in rpc-server, core, challenge-sdk comments - Update test-comprehensive.sh to remove secure-container-runtime test phases - Rewrite validator_wasm_audit.md to reflect completed cleanup
1 parent 5cbb94c commit 8dd66cd

43 files changed

Lines changed: 100 additions & 12909 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AGENTS.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ flowchart TB
169169
- `crates/bittensor-integration` — Bittensor chain interaction
170170
- `crates/subnet-manager` — subnet management
171171
- `crates/rpc-server` — RPC server for validator API
172-
- `crates/secure-container-runtime` — sandboxed runtime (legacy Docker support)
173172
- `crates/p2p-consensus` — libp2p gossipsub + DHT consensus
174173
- `crates/wasm-runtime-interface` — WASM runtime host interface
175174
- `bins/validator-node` — main validator binary
@@ -178,9 +177,6 @@ flowchart TB
178177
- `bins/mock-subtensor` — mock Bittensor node for testing
179178
- `tests` — integration tests
180179

181-
**Non-workspace crate** (exists on disk but not in workspace members):
182-
- `crates/challenge-orchestrator` — Docker-based challenge container orchestration (legacy)
183-
184180
**Note:** Platform is fully decentralized—there is no central server. All validators communicate directly via libp2p (gossipsub + DHT).
185181

186182
---

Cargo.lock

Lines changed: 0 additions & 225 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ members = [
1010
"crates/bittensor-integration",
1111
"crates/subnet-manager",
1212
"crates/rpc-server",
13-
"crates/secure-container-runtime",
1413
"crates/p2p-consensus",
1514
"crates/wasm-runtime-interface",
1615
"crates/challenge-sdk-wasm",

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@
2020

2121
## Overview
2222

23-
Platform is a **WASM-first, peer-to-peer validator network** for deterministic evaluation of miner submissions on Bittensor. Validators execute challenge logic in a hardened WASM runtime, reach stake-weighted consensus over libp2p, and submit finalized weights to the chain. **Docker is reserved for local and CI test harnesses only.**
23+
Platform is a **WASM-only, peer-to-peer validator network** for deterministic evaluation of miner submissions on Bittensor. Validators execute challenge logic in a hardened WASM runtime, reach stake-weighted consensus over libp2p, and submit finalized weights to the chain.
2424

2525
**Core principles**
2626
- Decentralized libp2p mesh (gossipsub + DHT) with no centralized relays.
2727
- Stake-weighted PBFT-style consensus for challenge state and weight aggregation.
2828
- Deterministic WASM execution with strict runtime policy and auditability.
29-
- Explicit separation of production runtime (WASM) and test-only containers (Docker).
3029

3130
---
3231

@@ -165,13 +164,6 @@ See [Validator Operations](docs/operations/validator.md) for hardware, configura
165164

166165
---
167166

168-
## Docker Policy
169-
170-
- **Production**: WASM runtime only.
171-
- **Testing**: Docker-backed harnesses only (e.g., `./scripts/test-comprehensive.sh`).
172-
173-
---
174-
175167
## License
176168

177169
MIT

bins/validator-node/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ platform-bittensor = { path = "../../crates/bittensor-integration" }
1616
platform-p2p-consensus = { path = "../../crates/p2p-consensus" }
1717
platform-distributed-storage = { path = "../../crates/distributed-storage" }
1818
platform-challenge-sdk = { path = "../../crates/challenge-sdk" }
19-
secure-container-runtime = { path = "../../crates/secure-container-runtime" }
2019
wasm-runtime-interface = { path = "../../crates/wasm-runtime-interface" }
2120

2221
# Bittensor

0 commit comments

Comments
 (0)