Skip to content

Consolidate FanClub AI into native Cloud; retire stack Node demo after qualification #57

Done

Description

@zeekay

Decision

The canonical reference implementation belongs only in hanzoai/cloud, not hanzoai/stack.

The original FanClub AI prototype was merged as hanzoai/stack#1 on 2026-11-19 UTC. The more recent standalone v0.2 Hanzo-native adapter was never merged into that PR. The Stack image quickstart is the wrong place to own an application.

Cloud-native implementation (migration patch prepared)

  • Embed the existing FanClub UI as static offline assets in Cloud's console, served at /fanclub/index.html.
  • Mount an opt-in fanclub subsystem (CLOUD_ENABLE_STAGED=fanclub) with typed operations:
    • GET /v1/fanclub/config — operator-selected public IAM issuer/OIDC client
    • POST /v1/fanclub/oauth/exchange — PKCE code exchange, exact registered redirect
    • GET /v1/fanclub/me — IAM-validated organization and user identity
    • GET /v1/fanclub/inference/status — configuration status (not readiness claim)
    • POST /v1/fanclub/chat — authenticated Cloud AIClient inference; no fake or external-model fallback
  • Only Cloud Base stores records: fc_members, fc_proposals, fc_audit through existing typed /v1/base APIs. Do NOT bring along the Node SQLite server or independent tenant selectors.
  • Use Cloud's existing /mcp typed tools for an IAM-scoped read-only operation. This is not yet a sandbox.
  • Preserve the responsive fictional three-industry UI, but clearly label synthetic rules scoring, simulation-only approvals, and unqualified train-to-serve.
  • No Hanzo runtime dependency on GitHub/GHCR; Hanzo CLI/OCI distribution issues tracked in hanzoai/cli#57.

Build + integration gates

  1. Apply patch to an approved, local hanzoai/cloud checkout, run gofmt and real Go 1.26.8 CGO_ENABLED=0 go test ./...; fix API/type mismatches.
  2. Exercise IAM PKCE against real hanzoai/iam and assert cross-tenant denial.
  3. Exercise Cloud Base CRUD, synthetic-only seed, approval audit and read-only MCP with live Cloud.
  4. Connect Cloud's AI ZAP client to verified private inference, test an actual model's answer, and assert fail-closed behavior on model outage. Engine's plain HTTP endpoint is not automatically a ZAP endpoint.
  5. Add role authorization and atomic approved action path through Framework/Tasks; do not enable external actions on the demo UI.
  6. Qualify licensed, local-only training/LoRA artifact, independently serving via Engine, model custody and holdout evaluation; do not substitute a mock.
  7. Validate hanzo up application reconciliation + signed oci.hanzo.ai images using cli#57, plus offline cached restart and zero GitHub/GHCR runtime access.
  8. Once Cloud is working, delete stack/examples/fanclub-ai and replace its README references with the Cloud canonical location.

Repo rule note: Cloud currently enforces "main is the only branch" with active branch-creation ruleset. Creating a review branch is blocked. A source patch + tests should be reviewed before any direct-main landing; do not weaken this protection merely to merge the prototype.

The prepared migration is self-contained, requires no Node app server, and has five passing local JS protocol tests. It has not passed a full Cloud Go build or live-stack acceptance yet.

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