Files
zeekayandHanzo Dev a98218dba3 rip(iam): drop a vendor name that never described what we run
Hanzo IAM (github.com/hanzoai/iam) is original work. The identity server
that carried the outside name was iam-v1, and that is retired. Comments
calling the thing we talk to by that name asserted something false, so
the name goes and the behavior each comment explains stays:

- brand.go / brand_test.go: IAM_URL points at ONE in-cluster IAM serving
  every brand host.
- internal/iam/client.go: /v1/iam/ is the only JSON surface; the /api/
  prefix went out with iam-v1.
- internal/iam/doc.go: this package exists so ai links against OIDC + the
  REST API instead of the iam-v1 server module and its beego/xorm/ldap tail.
- internal/iam/user.go: the server's xorm/db tags are dropped; the json
  tags stay load-bearing for redact.go.
- util/permission.go: super admin is membership in the admin org, not a
  configurable list and not a "built-in" org.
- account_authinit_test.go: the second envelope is the string-status
  handler body — that type flip is the whole point of the fixture.

NOTICE keeps the Casibase attribution Apache-2.0 s4 requires; only the
identity-swap bullet is corrected, and its claim that @hanzo/iam-js-sdk
aliases an upstream package is no longer true — 0.19.1 is standalone.
yarn.lock still pinned the old alias at 0.16.0 while package.json asked
for ^0.19.1, so the entry is repinned to the real tarball (shasum and
sha512 verified against the registry).

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 17:13:54 -07:00

40 lines
2.1 KiB
Plaintext

ai
Copyright (c) 2022-2026 Hanzo AI, Inc.
Forked from Casibase (https://github.com/casibase/casibase), licensed under Apache-2.0.
Upstream is authored by Yang Luo ([email protected]); the root commit used the Go module
path github.com/casbin/casbase prior to the Casibase rename. Upstream source-file
headers carry both "The OpenAgent Authors" and "The Casibase Authors" copyright lines,
retained throughout this tree per Apache-2.0 Section 4.
This product includes software from Casibase (https://github.com/casibase/casibase), licensed under Apache-2.0:
Copyright 2023 The OpenAgent Authors. All Rights Reserved.
DEVIATIONS
Changes made by Hanzo AI, Inc. relative to upstream Casibase:
- Repackaged from github.com/casbin/casbase (later Casibase) to the Go module
github.com/hanzoai/ai; product rebranded to Hanzo AI across README, docs, and UI.
- Identity and authentication replaced with Hanzo IAM (github.com/hanzoai/iam;
web SDK @hanzo/iam-js-sdk).
- Web framework forked to github.com/hanzoai/beego.
- Datastore dropped mattn/go-sqlite3 and standardized on github.com/hanzo-ds/go with
github.com/hanzoai/sqlite.
- Cryptography and runtime primitives sourced from the Lux stack
(github.com/luxfi/crypto, luxfi/geth, luxfi/log, luxfi/metric, luxfi/zap, luxfi/pq).
- Rebuilt as an LLM control plane: native Go routing for 66+ models over an
OpenAI-compatible surface (/v1/chat/completions, /v1/models), with provider
integrations for Anthropic, OpenAI, Cohere, Mistral, AWS Bedrock, Azure,
Baidu Qianfan, and Alibaba DashScope.
- Added the Zen model family with Anthropic reasoning-vocabulary round-tripping.
- Added a fine-tune broker for HuggingFace-native LoRA/QLoRA training and deploy
(/v1/finetune/*).
- Provider secrets resolved through Hanzo KMS, scoped per org; per-request usage
metered to Hanzo IAM with org-subject billing.
- Mounts as the "ai" subsystem inside the hanzoai/cloud unified binary
(github.com/hanzoai/cloud).
The upstream Casibase distribution does not ship a NOTICE file; this NOTICE provides
the Apache-2.0 Section 4(d) attribution for the incorporated upstream work.