Skip to content

P0: hanzo up UDE must deploy app manifests using Hanzo-owned OCI/package distribution only #57

Open

Description

@zeekay

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

  1. 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.
  2. Resolve a dependency graph: Cloud/Framework/Base, IAM, Engine, MCP, approved sandbox, application UI, model artifacts and training jobs.
  3. All Hanzo-owned OCI images must come from oci.hanzo.ai (or a verified Hanzo-owned OCI endpoint on pkg.hanzo.ai) and be pinned to SHA-256 digest. Never silently fall back to ghcr.io, Docker Hub or GitHub Releases.
  4. 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.ai is 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.
  5. @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.
  6. No github.com, api.github.com, raw.githubusercontent.com or ghcr.io network dependency during installation, first boot, normal use, model download or upgrades. Source-control URLs are allowed in contributor docs but not runtime fetches.
  7. Run private AI inference and authenticated organization-scoped app records. hanzo up should show readiness after real end-to-end checks, not merely spawned processes.
  8. 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.rs currently defaults to ghcr.io/hanzoai/cloud-oss:main and does not parse hanzo.config.ts.
  • src/commands/vm.rs fetches pinned VM binaries from GitHub Releases.
  • src/commands/up.rs has a k3s download from github.com/k3s-io/k3s/releases/latest/download.
  • install.sh, npm/install.js, and install.ps1 use github.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 up in 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.

Activity

  1. linear commented on Nov 19, 2026

    @linear
  2. zeekay commented on Nov 25, 2026

    @zeekay
    MemberAuthor

    Landed PR #91 (Hanzo OCI preference oci.hanzo.ai/hanzoai/cloud-oss:main, --strict-registry fail-closed gate refusing ghcr.io/external registries, --staged / --iam-issuer / --ai-base-url measured workload flags, and safe static hanzo.config.json/hanzo.config.ts discovery) 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).

  3. zooqueen commented on Nov 25, 2026

    @zooqueen
    Member

    Tightened --strict-registry in hanzoai/cli@d78377262 (src/commands/up.rs):

    • install_cmd_for(strict_registry, k3s_url_override) now refuses github.com/k3s-io/k3s downloads when --strict-registry / HANZO_STRICT_REGISTRY=1 is active unless HANZO_K3S_URL points to a Hanzo-owned endpoint (pkg.hanzo.ai, oci.hanzo.ai, hanzo.sh, get.hanzo.ai, releases.hanzo.ai).
    • Non-strict default behavior is unchanged until Hanzo-owned signed native binary mirrors exist for k3s, hanzo-vm, cloud-hypervisor, and installer scripts.
    • Covered by commands::up::tests::install_cmd_for_enforces_strict_registry (23/23 commands::up::tests passing).

    Leaving #57 open until signed Hanzo-owned native binary mirrors are published per Zach's note above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions