Skip to content

fix(lane D): king Hub repo name is lowercase (first live publish 401) - #1057

Open
tensorlink-dev wants to merge 1 commit into
mainfrom
laned-king-hub-upload-folder
Open

tensorlink-dev wants to merge 1 commit into
mainfrom
laned-king-hub-upload-folder

Conversation

@tensorlink-dev

Copy link
Copy Markdown
Contributor

Live 2026-12-01

ops_jobs king-publish failed: 401 Unauthorized for https://registry.hippius.com/v2/cascade/laned-king-c4096-5HpKLEju/manifests/main, even after a fresh login.

Cause (confirmed)

The repo name has uppercase letters. Harbor answers 401 "un-recognized request" for any call on such a name. An anonymous read-only probe showed:

  • cascade/ckpt-r9645013746285320283-king-toto2-4m → manifest 200
  • the same name with KING in capitals → 401
  • cascade/laned-king-c4096-5hpkleju (missing, lowercase) → 404 (handled as missing)
  • cascade/laned-king-c4096-5HpKLEju → 401

hub_repo built the name from the raw mixed-case ss58 prefix. The failure came from the read-back pre-check (_verify_one → hf_hub_download → fetch_manifest), before any upload. fetch_manifest tolerates only a 404 and raises on anything else (hippius_hub/_oci.py:68-75).

The cause is not upload_file vs upload_folder. Both functions run the same fetch_manifest(registry, oci_repo, revision, oci_token, missing_ok=True) and _put_manifest(..., if_match=prev) (hippius_hub/file_upload.py upload_file ~413, _finalize_upload_manifest ~322). create_repo only lists tags or ensures the Harbor project exists (_repo_ops.py:122-162). So the mirror is left as it is.

Fix

publish.hub_repo now lowercases hotkey8 and raises ValueError for any result that is not a valid OCI repository name (OCI_REPO_RE). The publisher and pull-king both use hub_repo, so they change together. No king has been published yet, so nothing needs renaming. The docs and docstrings that name the repo now say "hotkey8 lowercased".

Tests (torch-free)

tests/unit/test_lane_d_hub_repo_lowercase.py uses a Harbor-like fake API that answers 401 for uppercase names. Three of its tests fail on the base: the name check, the invalid-name refusal, and the end-to-end publish (which reproduces the live 401). The end-to-end test also checks that the read-back runs after the upload. I updated test_w13_mirrors.py to the lowercase name. These pass: w13 mirrors and wiring, the streaming tests, w10 pull-king and incident_rules. PATHS: W13.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe

…ublish 401)

The first live king publish failed with 401 Unauthorized on
cascade/laned-king-c4096-5HpKLEju/manifests/main. The Hippius registry
(Harbor) answers 401 "un-recognized request" for any call on a repository
name with an uppercase letter (anonymous probe: the existing
cascade/ckpt-...-king-toto2-4m answers 200, the same name with KING answers
401; a missing lowercase laned-king repo answers 404). hub_repo used the raw
mixed-case ss58 prefix. It now lowercases hotkey8 and refuses any result that
is not a valid OCI repository name. The publisher and pull-king share
hub_repo, so both sides move together; no king was ever published, so no
existing repo is renamed.

Not upload_file vs upload_folder: both GET manifests/main through the same
fetch_manifest(missing_ok=True) (404 tolerated, 401 raised), and the 401 hit
the read-back pre-check (hf_hub_download) before any upload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe
@vercel

vercel Bot commented Dec 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cascade Ignored Ignored Dec 1, 2026 8:12pm UTC

Request Review

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant