Skip to content

Lane D: cascade lane-d pull-king downloads the king from the Hippius registry - #1054

Merged
tensorlink-dev merged 1 commit into
mainfrom
laned-pull-king
Dec 1, 2026
Merged

tensorlink-dev merged 1 commit into
mainfrom
laned-pull-king

Conversation

@tensorlink-dev

Copy link
Copy Markdown
Contributor

Owner 2026-12-01: miners must be able to pull the current lane D king's model from the Hippius registry with the miner CLI.

What

cascade lane-d pull-king [--digest D] [--out DIR] [--index-url URL] (cascade/miner/lane_d_pull_king.py, loaded at call time like test / example-round, so W9 invariant 12 holds):

  1. GETs the signed champions/lane_d/index.json (default https://s3.hippius.com/cascade-manifests/champions/lane_d/index.json, from [storage]), with no credential.
  2. Verifies it with cascade.lane_d.publish.verify_index against [manifest] validator_hotkey. That is the pinned main-validator key the king-publish job signs with (LANED_SIGNER_SS58), so there is no new trust root. A bad signature is refused before any Hub call.
  3. Picks the newest crown (the current KING_D) or --digest. A takedown entry is refused.
  4. Pulls manifest.json from the king's Hub repo publish.hub_repo(hub_namespace, context, hotkey) with HippiusApi(token=False). That is the anonymous sentinel, so no env token or docker credential is read. The manifest must hash to the signed digest (intake.manifest_digest) and list exactly the four lane D files.
  5. Pulls each file and checks its sha256 and size against the manifest. Downloads land in a sibling staging folder, which is moved to --out only once every check has passed. Any refusal removes it.
  6. Writes config.json, weights.safetensors, model.py, forecast_wrapper.py, manifest.json, plus PROVENANCE.json / MODEL_CARD.md. The two cards are rendered from the signed entry by the same publish.provenance / model_card functions that write champions/lane_d/<digest>/. It then prints the cascade lane-d test YOUR_CKPT --king DIR --king-context N ... line to run next.

When there is no index yet (HTTP 403/404; the public bucket answers 403 for absent keys, which is what the live URL returns today) or the index lists no king, the command returns no_king. The message names the house and example-round. If the Hub refuses an anonymous pull, the error is hub_auth_required, and it says the repos are meant to be public and that the operator should be told.

Read-only: no torch, no GPU, nothing signed or uploaded.

Docs

The --king help no longer points at the HF mirror or says "no command downloads either". docs/MINER_LANE_D.md, docs/LANE_D.md, AGENTS.md and llms.txt now point at pull-king and the Hippius registry. There are no HF mentions for kings.

Tests (torch-free; fake index via file://, fake Hub)

tests/accept/w10/test_w10_pull_king.py covers:

  • a good index: files written byte-identical and verified, cards as published, next line printed
  • a bad signature or tampered index: refused, no Hub call
  • a hash mismatch on weights: refused, no partial or staged files left
  • a consistently rewritten manifest: refused
  • --digest picks a prior king; an unknown digest is refused
  • no index, or an index with no king: no_king
  • the default index URL; the anonymous token=False; no torch import

All 10 fail on base by assertion. test_w10_cli/rules gained pull-king in their command sets. Also green: w10 cli/rules/test_preview/example, test_docs_consistency, wb20 docs, test_incident_rules, w9 independence, scripts/check_docs.py (0 issues), ruff.

Not exercised: a real king pull (no king is published yet). Anonymous Hub pulls of public cascade repos are already used in production (_resolve_hub_token_for_pull; OPSLOG 2026-11-26 "anonymous Hub pull" of the king on a pod).

🤖 Generated with Claude Code

https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe

…ius registry

Miners can now download the current lane D king (or a prior one with
--digest) with the miner CLI. The command fetches the signed
champions/lane_d/index.json from the public manifest store, verifies it
against [manifest] validator_hotkey (publish.verify_index), pulls the
king's Hub repo (publish.hub_repo) anonymously (HippiusApi token=False),
requires manifest.json to hash to the signed digest and every file to
match its sha256/size, and only then writes --out (the four entry files,
manifest.json, PROVENANCE.json, MODEL_CARD.md). Refusals remove the
staged download. Read-only, torch-free, loaded at call time.

The stale `--king` help (HF mirror, "no command downloads") and the
lane D docs now point at pull-king and the Hippius registry.

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 12:03pm UTC

Request Review

@tensorlink-dev
tensorlink-dev added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit a20a9a4 Dec 1, 2026
13 of 14 checks passed
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