18. Deployment
Reproducible build, configuration, and validation scriptsInstall the Python environment with ./scripts/bootstrap-python.sh, the pinned Rust toolchain from rust-toolchain.toml, and the web lockfile with npm ci. Do not commit provider credentials, private keys, checkpoints, encrypted shards, or sensitive logs.
Startup sequence
- Compile model shards and verify the manifest on a trusted build host.
- Build the Rust extension and native allocator on the intended GPU architecture.
- Start the blind controller and workers with pinned certificates and required strict flags.
- Register workers with fresh Ed25519 signatures and validate capabilities.
- Create a client circuit and run numerical, cancellation, failure, and cleanup checks before production traffic.
For Fortress models, SSH-configured hosts are provisioned automatically unless provision_workers=false is explicit; no separate controller endpoint is required. The SDK discovers GPUs with nvidia-smi, resolves pinned checkpoints, compiles recipient-sealed role artifacts, deploys a committed source archive, generates deployment-scoped mutual TLS identities, and starts authenticated QUIC role workers. Four hosts form the default two-share grid, and multiple models receive isolated role packages and ports. Credentials are key/agent based or indirectly supplied and never embedded in commands. Shutdown waits for in-flight cancellation and role exit; failed SSH teardown retains a local recovery workspace for a close() retry. Production workers still require strict transport and recipient isolation; development HTTP is restricted to local testing. python -m xurcroh.stage_worker loads one recipient-sealed stage from a manifest. The public model definition supplies manifest_path, the local tokenizer path, and an indirect boundary_key_env; strict mode rejects full-model remote checkpoints instead of treating HTTPS alone as model-custody protection.
The repository includes a locked multi-stage Dockerfile, loopback-only deploy/compose.yaml, and TLS-oriented deploy/kubernetes.yaml. Compose intentionally uses development HTTP on one network; it is not a zero-trust deployment. Kubernetes requires operator-supplied CA certificates, checkpoint storage, ingress policy, attestation, and strict shard configuration. Full commands and resource checks are in docs/deployment.md; no container or physical cluster deployment is claimed as locally verified on this host.
Remote TEE stages expose /v1/attestation/challenge and /v1/attestation/evidence. Clients bind each fresh nonce to workload, artifact, and public-key hashes, then verify AMD/Intel evidence locally. NVIDIA supports local verification and nonce-bound remote NRAS tokens; composite confidential-GPU acceptance requires both CPU and GPU evidence. Tests exercise real stage inference and tamper rejection with explicit verifier doubles; physical TEE success is unverified.
Confidential cloud matrix
Official API adapters and mocked lifecycle/security tests; no physical provider claim| Provider | Platform | Boundary | Verification requirement |
|---|---|---|---|
| Azure | NCC40ads H100 v5, SEV-SNP + H100 NVL | Confidential GPU | Composite CPU/GPU evidence and explicit ingress CIDRs |
| Google Cloud | A3 HighGPU, TDX + H100 | Confidential GPU | Composite evidence, scoped firewall, parameterized billing-export query |
| Alibaba Cloud | gn8v-tee, TDX + H100 | Confidential GPU | Signed OIDC policy/runtime appraisal with approved Linux image |
| OCI | E5/E6 Flex, SEV-SNP | CPU only | Pinned Veraison key, fresh affirming appraisal, expected measurements |
| AWS | Nitro Enclaves | CPU only, no external enclave network | COSE/ES384, pinned root, PCRs, nonce, KMS policy, AF_VSOCK relay |
| IBM VPC | Current TDX-capable profiles | CPU only | Full Intel DCAP collateral and workload/key binding |
CPU-only paths never count as confidential-GPU evidence. GCP G4 is excluded until its separate AMD evidence flow is implemented. All six adapters implement lifecycle, remaining-instance, and charge-reporting contracts through ProviderRegistry.with_defaults(), but no provider has been physically launched or attested by these local tests. Exact credentials, CIDRs, policies, and funded-agent checks are documented in docs/deployment.md.
Use scripts/gpu/validate.sh for native and CPU checks. EROFS/dm-verity and AMD/Intel/NVIDIA attestation are optional defense-in-depth, not blanket deployment requirements. scripts/fortress/validate_handoff.py validates all 22 offline command forms without contacting a provider. Multi-model manifests require --model; unresolved revisions and final zero artifact fingerprints are stop conditions. The hardware plan lists Stage Two acceptance tests.