Repository navigation
fix(lane D): king Hub repo name is lowercase (first live publish 401) - #1057
Open
tensorlink-dev wants to merge 1 commit into
Open
tensorlink-dev wants to merge 1 commit into
tensorlink-dev wants to merge 1 commit into
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Live 2026-12-01
ops_jobs king-publishfailed:401 Unauthorizedforhttps://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 200KINGin capitals → 401cascade/laned-king-c4096-5hpkleju(missing, lowercase) → 404 (handled as missing)cascade/laned-king-c4096-5HpKLEju→ 401hub_repobuilt 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_manifesttolerates 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.pyupload_file ~413,_finalize_upload_manifest~322).create_repoonly lists tags or ensures the Harbor project exists (_repo_ops.py:122-162). So the mirror is left as it is.Fix
publish.hub_reponow lowercaseshotkey8and raisesValueErrorfor any result that is not a valid OCI repository name (OCI_REPO_RE). The publisher andpull-kingboth usehub_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.pyuses 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 updatedtest_w13_mirrors.pyto 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