BASE is the Bittensor subnet control plane for BaseIntelligence. This branch (main)
is the Rust workspace: gateway, validator, agent-challenge, miner
CVM templates, and shared crates. It coordinates agent challenges (native pack
executor — no Harbor product CLI), seals a final weight vector, and serves it to
validators. The gateway is the sole TLS / public edge process.
- Agent packs: Harbor-format task workspaces from the pinned catalog (BaseIntelligence/deepagent / git pin), graded by the in-tree native executor + Docker socket-proxy.
- Miner CVM: Phala / dstack measured compose —
socket-proxy+agent+attest-helper(digest-pinned images on GHCR). - Emission: validators call on-chain
set_weightsfrom sealedGET /v1/weights/latest— never the gateway.
| Branch | Role |
|---|---|
main |
Active Rust control plane (this tree). PRs target main. |
dev |
Kept alive for in-flight work; merges back into main. |
legacy/main-pre-rust (tag) |
Legacy / prior stack — do not mix secret material across histories. |
Day-1: docs/external-miner/
- Deploy a measured CVM (
miner deploy) with digest-pinnedbase-agent+base-attest-helper+ socket-proxy. - Fund your own Phala account; hotkey + launch token + receipt sk are files
under
/run/base/(never env secret values). - Certify each epoch (
miner certify) via loopback attest-helperGET /v1/quote→ validator attest API.
Weight-only path after seal:
curl -fsS "$GATEWAY/v1/weights/latest"Then set_weights with your wallet. Operator compose:
./deploy/scripts/materialize-env.sh
docker compose up -d # postgres, validator, updater, socket-proxy
docker compose --profile master up -d # + gateway (subnet owner host only)Details: deploy/README.md, docs/ARCHITECTURE.md.
CI workflow .github/workflows/images.yml builds
and pushes digest-pinned service images to ghcr.io/baseintelligence/base/*.
Never :latest in measured compose.
| Target | Image suffix |
|---|---|
| validator | validator |
| gateway | gateway |
| updater | updater |
| agent-challenge | agent-challenge |
| base-agent | base-agent (miner runner) |
| base-attest-helper | base-attest-helper (quote helper) |
- Rust 1.96.0 (
rust-toolchain.toml) - Workspace:
crates/*,bins/*,xtask - Gates:
fmt,clippy -D warnings,test,cargo deny,xtask loc-cap,xtask consensus-lint,xtask spec-check,xtask agent-challenge-check
| Doc | Content |
|---|---|
| docs/ARCHITECTURE.md | System map |
| docs/AGENT_CHALLENGE.md | Pack grade + miner CVM contract |
| docs/BUNDLE_SPEC.md | Sealed weight bundle |
| docs/THREAT_MODEL.md | Security claims |
| docs/runbooks/ | Ops cutovers (incl. measurement re-pin) |
Apache License 2.0 — see LICENSE.
