Repository navigation
Open
Description
Directive
hanzo up is the single developer entry point for a complete Dockerless, Kubernetes-first Hanzo OS application (including FanClub AI reference app). Do not require manual docker, kubectl, npm start, git clone or shell orchestration to provision the deployed runtime.
Deployment and distribution invariants
- Discover
hanzo.config.ts, compile through the approved constrained TypeScript/SDK interface to a versioned, validated native runtime manifest. Do not execute arbitrary TS as root. - Resolve a dependency graph: Cloud/Framework/Base, IAM, Engine, MCP, approved sandbox, application UI, model artifacts and training jobs.
- All Hanzo-owned OCI images must come from
oci.hanzo.ai(or a verified Hanzo-owned OCI endpoint onpkg.hanzo.ai) and be pinned to SHA-256 digest. Never silently fall back toghcr.io, Docker Hub or GitHub Releases. - All Hanzo-owned native binary artifacts, k3s/runtime/VM distribution and model packs must use verified Hanzo-controlled artifact endpoints with hashes/signatures and offline cache.
pkg.hanzo.aiis the preferred package distribution origin after confirming its real repository path and auth. Third-party upstream dependencies must be mirrored and pinned before air-gapped release. @hanzo/*is the first-party npm namespace. Public npm may distribute third-party packages only where licensed and cached; do not require GitHub-hosted npm tarballs/install scripts at runtime.- No
github.com,api.github.com,raw.githubusercontent.comorghcr.ionetwork dependency during installation, first boot, normal use, model download or upgrades. Source-control URLs are allowed in contributor docs but not runtime fetches. - Run private AI inference and authenticated organization-scoped app records.
hanzo upshould show readiness after real end-to-end checks, not merely spawned processes. - Support local k3s + containerd (no Docker), plus private EU cloud and on-prem deployment shapes, with one application contract.
Verified gaps in current CLI code
src/commands/up.rscurrently defaults toghcr.io/hanzoai/cloud-oss:mainand does not parsehanzo.config.ts.src/commands/vm.rsfetches pinned VM binaries from GitHub Releases.src/commands/up.rshas a k3s download fromgithub.com/k3s-io/k3s/releases/latest/download.install.sh,npm/install.js, andinstall.ps1usegithub.com/ GitHub REST release APIs for native binaries.- Those must be replaced with a single signed/Hanzo-owned artifact manifest. Do not just string-substitute registry URLs until images/artifacts exist and digest signatures are verified.
Demonstration consumer
hanzoai/stack draft FanClub AI prototype (the reference app's next branch) exercises IAM PKCE, Cloud Base org scopes, Engine /v1/chat/completions, MCP read-only typed tool checks and a bounded PEFT train-to-serve proof. Current standalone preview is NOT a production hanzo up deployment.
Acceptance
- Fresh machine runs
hanzo upin FanClub AI project; app, Cloud, IAM, Engine and approved MCP/sandbox are available with real health and auth. - OCI image references in startup attestations are all
oci.hanzo.ai/...@sha256:<64 hex>. - No network requests to GitHub/GHCR during cold start, install, model download, use or upgrade (capture and assert via egress tests).
- Offline cached restart works, including chat, records, tools and state recovery.
- Model train/evaluate/register/serve sequence is a separate bounded job; only mark successful when verified on actual supported hardware and artifact paths.
- CI must include regression coverage for default image, VM installer, native installer and k3s distribution, and fail on a source-host fallback.
Tracking issue; requires registry publishing and CLI release engineering before release.
Metadata
Metadata
Assignees
Labels
No labels
Activity
linear commentedon Nov 19, 2026
HAI-523
feat(up): support staged apps, static hanzo.config, and Hanzo OCI pre…
zeekay commentedon Nov 25, 2026
Landed PR #91 (Hanzo OCI preference
oci.hanzo.ai/hanzoai/cloud-oss:main,--strict-registryfail-closed gate refusingghcr.io/external registries,--staged/--iam-issuer/--ai-base-urlmeasured workload flags, and safe statichanzo.config.json/hanzo.config.tsdiscovery) to support the Cloud-native FanClub deployment (hanzoai/cloud#69).Remaining scope in #57 stays open until Hanzo-owned signed native binary mirrors exist for
k3s,hanzo-vm,cloud-hypervisor, and installer scripts (per #57's requirement not to prematurely string-substitute URLs before signed artifacts exist).test(e2e): add container & hermetic integration suite for models, cha…
zooqueen commentedon Nov 25, 2026
Tightened
--strict-registryinhanzoai/cli@d78377262(src/commands/up.rs):install_cmd_for(strict_registry, k3s_url_override)now refusesgithub.com/k3s-io/k3sdownloads when--strict-registry/HANZO_STRICT_REGISTRY=1is active unlessHANZO_K3S_URLpoints to a Hanzo-owned endpoint (pkg.hanzo.ai,oci.hanzo.ai,hanzo.sh,get.hanzo.ai,releases.hanzo.ai).k3s,hanzo-vm,cloud-hypervisor, and installer scripts.commands::up::tests::install_cmd_for_enforces_strict_registry(23/23commands::up::testspassing).Leaving #57 open until signed Hanzo-owned native binary mirrors are published per Zach's note above.