mirror of
https://github.com/hanzoai/ai.git
synced 2026-11-20 14:13:23 +00:00
Removes 25 /v1 routes, their beego controllers, object models, native ZAP handlers, React pages and i18n strings. Evidence that this was dead upstream demo code and never a Hanzo surface: PROVENANCE. All five objects arrived in ONE upstream casibase commit,a0270c60"feat: add five new objects and related pages (#1670)", authored 2025-10-21 by the GitHub Copilot bot — three months before Hanzo forked the repo (010a124a, 2026-01-19). The original file headers read "Copyright 2025 The Casibase Authors"; they say Hanzo today only becausee0a49b54scrubbed every header in the tree. The `caase` spelling is an artifact of that generator dodging Go's `case` keyword — no human shipped a "Caases" nav label that renders as "Cases". NO HANZO AUTHORSHIP. Since the fork these files carry zero semantic change. Every diff is a repo-wide mechanical sweep: import path rename, xorm -> dbx, gofumpt, pagination refactor, IAM repoint, and one 401/403 conversion that hit chat/message/patient/scale alike. No commit subject, branch, or doc in the repo ever mentions a medical intent. NO CALLERS. Nothing in ~/work/hanzo outside this repo references any of the 25 routes — console, console2, chat, app, cloud, sdk, gui, dev, team, bot, platform, universe, base, iam and kms are all clean. The only external hits were git worktrees of this same repo. In-repo, the sole references were the route table itself and the mechanical ZAP strangler port. NO DATA. The models were registered for table creation but no migration, seed or fixture ever inserted a row, and the routes appear in no API spec. Corroborating: the in-flight router refactor (routers/resources.go) rebuilds every real resource under a subsystem namespace — iam, rag, chat, ai, content, compute, work — and gives these five none, leaving them the only flat verb-noun CRUD blocks left in router.go. They were also nav-filed under "Multimedia", which is where dumped demo code lands, not a product vertical. The `med:` i18n namespace is kept but pruned to the three keys still used by surviving features (Medical Image Analysis and Super Resolution in NavItemTree, Other in FileTree). object.IsAdmin, a duplicate of util.IsAdmin that happened to live in patient_util.go, goes with it. go build ./... and go vet ./... pass; controllers and routers tests are green and the full-suite failure set is byte-identical to the pre-change baseline. Co-authored-by: Hanzo Dev <[email protected]>