Repository navigation
Description
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
fanclubsubsystem (CLOUD_ENABLE_STAGED=fanclub) with typed operations:GET /v1/fanclub/config— operator-selected public IAM issuer/OIDC clientPOST /v1/fanclub/oauth/exchange— PKCE code exchange, exact registered redirectGET /v1/fanclub/me— IAM-validated organization and user identityGET /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_auditthrough existing typed/v1/baseAPIs. Do NOT bring along the Node SQLite server or independent tenant selectors. - Use Cloud's existing
/mcptyped 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
- Apply patch to an approved, local
hanzoai/cloudcheckout, run gofmt and real Go 1.26.8CGO_ENABLED=0 go test ./...; fix API/type mismatches. - Exercise IAM PKCE against real
hanzoai/iamand assert cross-tenant denial. - Exercise Cloud Base CRUD, synthetic-only seed, approval audit and read-only MCP with live Cloud.
- 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.
- Add role authorization and atomic approved action path through Framework/Tasks; do not enable external actions on the demo UI.
- Qualify licensed, local-only training/LoRA artifact, independently serving via Engine, model custody and holdout evaluation; do not substitute a mock.
- Validate
hanzo upapplication reconciliation + signedoci.hanzo.aiimages usingcli#57, plus offline cached restart and zero GitHub/GHCR runtime access. - Once Cloud is working, delete
stack/examples/fanclub-aiand 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.
Activity
feat(up): support staged apps, static hanzo.config, and Hanzo OCI pre…